/* ==========================================================================
   Multikart APP — Enhanced Stylesheet v2
   Fonts  : Plus Jakarta Sans (headings) + DM Sans (body)
   Tables : fully contained, never overflow screen, professional headers
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
  --brand:           #FF4C3B;
  --brand-light:     rgba(255,76,59,0.08);
  --brand-mid:       rgba(255,76,59,0.20);
  --brand-shadow:    rgba(255,76,59,0.28);

  --title:           #1A1A2E;
  --body:            #3D3D50;
  --muted:           #7A7A8C;
  --border:          #EAECF4;
  --surface:         #F5F6FA;
  --white:           #FFFFFF;

  --font-head:       'Plus Jakarta Sans', sans-serif;
  --font-body:       'DM Sans', sans-serif;

  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  14px;
  --r-xl:  20px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);

  --ease: 0.28s cubic-bezier(0.4,0,0.2,1);
}

[class="dark"] {
  --title:   #F0F0F8;
  --body:    #C4C4D4;
  --muted:   #8A8A9E;
  --border:  #2E2E40;
  --surface: #1C1C2E;
  --white:   #13131F;
}

/* ========================================================================
   TABLES — NEVER overflow, always 100% width
   ======================================================================== */

/*
  .table-wrap  — required outer shell; provides horizontal scroll ONLY when
                 content truly cannot shrink further (e.g. 8-column data grid).
                 For typical 3-4 column tables the scroll will never trigger.
*/
.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* Hard-contain the table itself */
table,
.table-wrap table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed;          /* forces columns to share available width */
  border-collapse: collapse;
  border-spacing: 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--body);
  background: var(--white);
  word-break: break-word;       /* long words wrap instead of blowing out */
  overflow-wrap: break-word;
}

/* ── Table header — professional, readable ──────────────────────────────── */
table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

table thead tr {
  background: var(--title);
}

table thead th {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  padding: 13px 14px;
  text-align: left;
  white-space: nowrap;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.08);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}
table thead th:last-child { border-right: none; }

/* Sort indicator (optional, add data-sort attr) */
table thead th[data-sort]::after {
  content: " ↕";
  opacity: 0.4;
  font-size: 10px;
}
table thead th[data-sort="asc"]::after  { content: " ↑"; opacity: 0.8; }
table thead th[data-sort="desc"]::after { content: " ↓"; opacity: 0.8; }

/* ── Table body ─────────────────────────────────────────────────────────── */
table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}
table tbody tr:last-child { border-bottom: none; }
table tbody tr:hover { background: var(--surface); }

table tbody td {
  padding: 11px 14px;
  vertical-align: middle;
  font-size: 13px;
  color: var(--body);
  border: none;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;           /* combined with table-layout:fixed — enables ellipsis */
}

/* First column: slightly bolder (acts as a row label) */
table tbody td:first-child {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--title);
  font-size: 13px;
}

/* ── Table footer ───────────────────────────────────────────────────────── */
table tfoot tr { background: var(--surface); }
table tfoot td {
  padding: 12px 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--title);
  border-top: 2px solid var(--border);
}

/* ── Variants ───────────────────────────────────────────────────────────── */
/* Striped */
.table-striped tbody tr:nth-child(even) { background: rgba(245,246,250,0.65); }

/* Compact */
.table-sm thead th,
.table-sm tbody td,
.table-sm tfoot td { padding: 7px 10px; font-size: 12px; }

/* Brand header instead of dark */
.table-brand thead tr { background: var(--brand); }
.table-brand thead th { border-right-color: rgba(255,255,255,0.15); }

/* Bordered */
.table-bordered tbody td,
.table-bordered thead th { border-right: 1px solid var(--border); }
.table-bordered tbody td:last-child,
.table-bordered thead th:last-child { border-right: none; }

/* ── Mobile stacked layout ──────────────────────────────────────────────── */
/*
  Add class="table-stack" to <table> for card-style stacking on narrow screens.
  Add data-label="Column Name" to every <td>.
*/
@media (max-width: 520px) {
  .table-stack {
    table-layout: auto;         /* stacked layout; fixed not needed */
  }
  .table-stack thead {
    display: none;              /* headers hidden; shown via data-label */
  }
  .table-stack tbody,
  .table-stack tbody tr,
  .table-stack tbody td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .table-stack tbody tr {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--white);
  }
  .table-stack tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    max-width: none;            /* reset ellipsis behaviour for stacked */
    text-overflow: clip;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
  }
  .table-stack tbody td:last-child { border-bottom: none; }
  /* Row label shown inline before value */
  .table-stack tbody td::before {
    content: attr(data-label);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    flex-shrink: 0;
    width: 38%;
    padding-right: 10px;
    padding-top: 1px;
  }
  /* First-child bold reset for stacked */
  .table-stack tbody td:first-child { font-size: 13px; }
}

/* ========================================================================
   1.1  Reset
   ======================================================================== */
*,*::before,*::after { box-sizing: border-box; }

section, .section-t-space { padding-top: 28px; }
.section-b-space { padding-bottom: 28px; }
.lg-t-space { padding-top: 18px; }
.lg-b-space { padding-bottom: 18px; }

.divider { height: 8px; width: 100%; margin: 22px 0; background-color: var(--border); }
.divider.t-12 { margin-top: 12px; }
.divider.b-20 { margin-bottom: 20px; }

.px-15 { padding-left: 15px; padding-right: 15px; }
.pl-15 { padding-left: 15px; }
[dir="rtl"] .pl-15 { padding-left: 0; padding-right: 15px; }
.pr-15 { padding-right: 15px; }

.text-green    { color: #198754; }
.content-color { color: var(--muted) !important; }
.bg-theme      { background-color: var(--brand) !important; }
.theme-color   { color: var(--brand); }
.title-color   { color: var(--title); }
.title-color:hover { color: var(--title); }

.listing-section { list-style-type: disc; padding-inline-start: 20px; }
.listing-section li { display: list-item; color: var(--muted); }

.filter-color .light-purple  { background-color: #E6E6FA; }
.filter-color .light-grey    { background-color: #F5F5F5; }
.filter-color .blue-purple   { background-color: #B0C4DE; }
.filter-color .light-orange  { background-color: #EBACA2; }
.filter-color .dark-pink     { background-color: #FFC0CB; }
.filter-color .green-blue    { background-color: #ADD8E6; }
.filter-color .green         { background-color: #BED3C3; }
.filter-color .blue          { background-color: #9FD9F2; }
.filter-color .yellow        { background-color: #F5DEB3; }
.filter-color .light-red     { background-color: #FFE4E1; }
.filter-color .light-purple2 { background-color: #E6E6FA; }

.offcanvas,.modal-content { background-color: var(--white); }
.mt-cls { margin-top: -3px; }
.mb-minus-2 { margin-bottom: -2px; }
.mb-minus-4 { margin-bottom: -4px; }

@media (min-width: 767px) {
  body { max-width: 600px; margin: 0 auto !important; }
  header { max-width: 600px; left: 50% !important; transform: translateX(-50%) !important; }
  .bottom-panel ul { max-width: 600px; margin: 0 auto; }
  .fixed-panel .row { max-width: 600px; margin: 0 auto; }
  .cart-bottom > div { max-width: 600px; margin: 0 auto; }
}

/* ========================================================================
   1.2  Typography
   ======================================================================== */
body {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--body);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  position: relative;
}
body::-webkit-scrollbar { width: 0; background: transparent; }
html { scroll-behavior: smooth; }

ul { padding-left: 0; margin-bottom: 0; }
[dir="rtl"] ul { padding-inline-start: 0; margin-inline-start: 0; }

li    { display: inline-block; font-size: 14px; color: var(--body); }
p     { font-size: 14px; line-height: 1.65; color: var(--body); }
a     { transition: color var(--ease), opacity var(--ease); text-decoration: none; color: var(--body); }
a:hover { text-decoration: none; }
a:focus  { outline: none; }
:focus   { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-sm); }

.form-control {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--body);
  border-radius: var(--r-md);
  border-color: var(--border);
  transition: border-color var(--ease), box-shadow var(--ease);
}
[dir="rtl"] .form-control { text-align: right; }
.form-control:focus {
  box-shadow: 0 0 0 3px var(--brand-mid);
  border-color: var(--brand);
}

h1 { font-family: var(--font-head); font-size: 22px; font-weight: 800; line-height: 1.15; text-transform: capitalize; margin: 0; color: var(--title); letter-spacing: -0.3px; }
h2 { font-family: var(--font-head); font-size: 17px; font-weight: 700; line-height: 1.3;  margin: 0; color: var(--title); letter-spacing: -0.2px; }
h3 { font-family: var(--font-head); font-size: 15px; font-weight: 600; line-height: 1.3;  margin: 0; color: var(--title); }
h4 { font-family: var(--font-head); font-size: 14px; font-weight: 600; line-height: 1.35; margin: 0; color: var(--title); }
h5 { font-family: var(--font-head); font-size: 13px; font-weight: 600; line-height: 1.35; margin: 0; color: var(--title); }
h6 { font-family: var(--font-head); font-size: 12px; font-weight: 500; line-height: 1.4;  margin: 0; color: var(--title); }
span { font-size: 12px; color: var(--body); }
.title { margin-bottom: 15px; margin-top: -3px; }

/* ========================================================================
   2.1  Accordion
   ======================================================================== */
.accordion-button { font-family: var(--font-body); font-weight: 500; color: var(--title); background-color: var(--white); border-radius: var(--r-md) !important; }
.accordion-item { background-color: var(--white); }
.classic-accordion .accordion-item { border: none; }
.classic-accordion .accordion-item + .accordion-item { margin-top: 6px; }
.classic-accordion .accordion-body { padding: 8px 0; }
.classic-accordion .accordion-header { border-left: 3px solid var(--brand); }
.classic-accordion .accordion-button { padding-left: 40px; background-color: var(--surface); color: var(--title); border-radius: 0 !important; }
.classic-accordion .accordion-button::after { background-image: none; content: "+"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }
.classic-accordion .accordion-button:not(.collapsed) { color: var(--title); box-shadow: none; }
.classic-accordion .accordion-button:not(.collapsed)::after { content: "×"; }
.classic-accordion .accordion-button:focus { box-shadow: none; }

/* ========================================================================
   2.2  Alert
   ======================================================================== */
.alert-classic .alert { font-family: var(--font-body); font-size: 14px; background-color: transparent; border-left-width: 4px; padding: 10px 40px 10px 10px; border-radius: var(--r-md); }
.alert-classic .alert i { margin-right: 12px; font-size: 20px; }
[dir="rtl"] .alert-classic .alert i { margin-right: 0; margin-left: 12px; }
[class="dark"] .alert-dismissible .btn-close { filter: invert(1); }

/* ========================================================================
   2.3  Animation keyframes
   ======================================================================== */
.effect-group { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.effect-group .effect { display: block; position: absolute; top: 38%; left: 50%; width: 20px; transform-origin: 0px 2px; }
.effect-group .effect:nth-child(2) { transform: rotate(72deg); }
.effect-group .effect:nth-child(3) { transform: rotate(144deg); }
.effect-group .effect:nth-child(4) { transform: rotate(216deg); }
.effect-group .effect:nth-child(5) { transform: rotate(288deg); }
.effect-group .effect::before { content: ""; display: block; position: absolute; right: 0; border-radius: 1.5px; height: 3px; background: var(--muted); }
.effect-group .effect::after  { content: ""; display: block; position: absolute; top: 10px; right: 10%; border-radius: 50%; width: 3px; height: 3px; background: var(--brand); transform: scale(0,0); }
@keyframes fireworkLine { 0%{right:20%;transform:scale(0,0)} 25%{right:20%;width:6px;transform:scale(1,1)} 35%{right:0;width:35%} 70%{right:0;width:4px;transform:scale(1,1)} 100%{right:0;transform:scale(0,0)} }
@keyframes fireworkPoint { 30%{transform:scale(0,0)} 60%{transform:scale(1,1)} 100%{transform:scale(0,0)} }
@keyframes zoomIn { from{opacity:0;transform:scale3d(0.6,0.6,0.6)} 50%{opacity:1} }
@keyframes loader  { 0%{transform:scale(0,0);opacity:0.8} 100%{transform:scale(1,1);opacity:0} }

/* ========================================================================
   2.4  Buttons
   ======================================================================== */
button:focus { outline: none; }
.btn { font-family: var(--font-head); font-size: calc(13px + (15 - 13) * ((100vw - 320px) / (1920 - 320))); font-weight: 600; letter-spacing: 0.4px; padding: calc(7px + (9 - 7) * ((100vw - 320px) / (1920 - 320))) 20px; text-transform: uppercase; border-radius: var(--r-md); transition: all var(--ease); }
.btn:focus,.btn.focus { outline: none; box-shadow: none; }
.btn.btn-sm { font-size: 13px; padding: 5px 14px; }
.btn-solid { background-color: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 4px 12px var(--brand-shadow); }
.btn-solid:hover { background-color: #e63b2a; color: #fff; box-shadow: 0 6px 16px var(--brand-shadow); transform: translateY(-1px); }
[class="dark"] .btn-solid { color: #fff; }
.btn-outline { background-color: transparent; border: 1.5px solid var(--brand); color: var(--brand); font-weight: 600; }
.btn-outline.content-color { border-color: var(--muted); color: var(--muted); }
.btn-outline:hover { background-color: var(--brand-light); color: var(--brand); }

/* ========================================================================
   2.5  FAQ
   ======================================================================== */
.faq-section .accordion-item { border: none; margin-top: 10px; }
.faq-section .accordion-button { font-family: var(--font-body); font-weight: 500; background-color: var(--surface); color: var(--title); line-height: 1.5; border-radius: var(--r-md) !important; }
.faq-section .accordion-button:not(.collapsed) { background-color: var(--brand-light); color: var(--brand); box-shadow: none; }
.faq-section .accordion-button:focus { border-color: transparent; box-shadow: none; }
.faq-section .accordion-button::after { background-size: 0.9rem; transform: rotate(270deg); margin-top: -4px; margin-right: -10px; }
.faq-section .accordion-button:not(.collapsed)::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); }
[dir="rtl"] .faq-section .accordion-button::after { margin-right: auto; }
[class="dark"] .faq-section .accordion-button::after { filter: invert(1); }

/* ========================================================================
   2.6  Form
   ======================================================================== */
.form-control,.form-select { font-family: var(--font-body); background-color: var(--white); color: var(--body); border-color: var(--border); border-radius: var(--r-md); }
.form-control:focus,.form-select:focus { background-color: var(--white); border-color: var(--brand); color: var(--body); box-shadow: 0 0 0 3px var(--brand-mid); }
.form-floating > .form-control { height: 44px; }
.radio_animated { position: relative; margin: 2px 1rem 0 1px; cursor: pointer; }
[dir="rtl"] .radio_animated { margin: 2px 1px 0 1rem; }
.radio_animated::before { transition: transform 0.35s cubic-bezier(0.45,1.8,0.5,0.75); transform: scale(0,0); content: ""; position: absolute; top: 4px; left: 3px; z-index: 1; width: 0.55rem; height: 0.55rem; background: var(--brand); border-radius: 50%; }
[dir="rtl"] .radio_animated::before { left: unset; right: 3px; }
.radio_animated::after { content: ""; position: absolute; top: 0; left: -1px; width: 1.05rem; height: 1.05rem; background: var(--white); border: 1.5px solid #d5d5e0; border-radius: 50%; }
[dir="rtl"] .radio_animated::after { left: unset; right: -1px; }
.radio_animated:checked::before { transform: scale(1,1); }
.radio_animated:checked::after  { border-color: var(--brand); }
.checkbox_animated { padding-left: 0; }
[dir="rtl"] .checkbox_animated { padding-right: 0; }
.checkbox_animated input[type="checkbox"] { display: none; }
.checkbox_animated input[type="checkbox"] + label { display: flex; align-items: center; color: var(--muted); cursor: pointer; font-family: var(--font-body); }
.checkbox_animated input[type="checkbox"] + label::before { content: "\2714"; border: 1.5px solid #c8c8d4; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; width: 17px; height: 17px; margin-right: 10px; color: transparent; transition: all 0.2s; line-height: 1; }
[dir="rtl"] .checkbox_animated input[type="checkbox"] + label::before { margin-right: 0; margin-left: 10px; }
.checkbox_animated input[type="checkbox"] + label:active::before { transform: scale(0); }
.checkbox_animated input[type="checkbox"]:checked + label::before { background-color: var(--brand); border-color: var(--brand); color: #fff; }
.form-theme { font-family: var(--font-body); background-color: var(--surface); border: 1.5px solid transparent; font-size: 15px; color: var(--body); border-radius: var(--r-md); transition: border-color var(--ease); }
.form-theme:focus { background-color: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-mid); }
.form-theme::placeholder { color: rgba(122,122,140,0.8); }
.form-floating > label { font-family: var(--font-body); padding: 2px 6px; background-color: var(--white); height: auto; left: 16px; top: -13px; color: var(--muted); text-transform: capitalize; font-size: 12px; font-weight: 500; }
.form-floating > .form-select,.form-floating > .form-control { padding: 6px 15px !important; height: 44px; }
.form-floating > .form-control:focus ~ label,.form-floating > .form-control:not(:placeholder-shown) ~ label,.form-floating > .form-select ~ label { opacity: 1; transform: none; }
.form-select:focus { box-shadow: none; border-color: var(--border); }

/* ========================================================================
   2.7  Loader
   ======================================================================== */
.loader { display: flex; padding: 0; position: fixed; left: 0; top: 0; width: 100%; height: 100%; background-color: var(--white); z-index: 9; align-items: center; justify-content: center; }
.loader span { position: absolute; display: inline-block; width: 52px; height: 52px; border-radius: 100%; background: var(--brand); animation: loader 1.5s linear infinite; }
.loader span:last-child { animation-delay: -0.9s; }

/* ========================================================================
   2.8  Offcanvas
   ======================================================================== */
.addtohome-popup { height: 156px; }
.addtohome-popup .btn-close { position: absolute; right: 20px; top: 20px; }
[dir="rtl"] .addtohome-popup .btn-close { left: 20px; right: unset; }
[class="dark"] .addtohome-popup .btn-close { filter: invert(1); }
.addtohome-popup .install-app { position: absolute; right: 20px; bottom: 20px; }
[dir="rtl"] .addtohome-popup .install-app { left: 20px; right: unset; }
.addtohome-popup .app-info { display: flex; align-items: center; }
.addtohome-popup .app-info .content { padding-left: 15px; }
[dir="rtl"] .addtohome-popup .app-info .content { padding-left: 0; padding-right: 15px; }
.addtohome-popup .app-info .content h3 { font-weight: 700; color: var(--title); }
.addtohome-popup .app-info .content a  { color: var(--muted); }

/* ========================================================================
   2.9-2.13  Ratio / Slider / Switch / Theme-tab / Timer  (condensed)
   ======================================================================== */
.ratio_40 .bg-size::before{padding-top:40%;content:"";display:block}
.ratio_45 .bg-size::before{padding-top:45%;content:"";display:block}
.ratio2_1 .bg-size::before{padding-top:50%;content:"";display:block}
.ratio_55 .bg-size::before{padding-top:55%;content:"";display:block}
.ratio_59 .bg-size::before{padding-top:59%;content:"";display:block}
.ratio2_3 .bg-size::before{padding-top:60%;content:"";display:block}
.ratio3_2 .bg-size::before{padding-top:66.66%;content:"";display:block}
.ratio_90 .bg-size::before{padding-top:93%;content:"";display:block}
.ratio_landscape .bg-size::before{padding-top:75%;content:"";display:block}
.ratio_square .bg-size::before{padding-top:100%;content:"";display:block}
.ratio_asos .bg-size::before{padding-top:127.78%;content:"";display:block}
.ratio_portrait .bg-size::before{padding-top:150%;content:"";display:block}
.ratio1_2 .bg-size::before{padding-top:200%;content:"";display:block}
.b-top{background-position:top !important}
.b-bottom{background-position:bottom !important}
.b-center{background-position:center !important}
.b-left{background-position:left !important}
.b-right{background-position:right !important}
.b_size_content{background-size:contain !important}

.slick-default .slick-slide > div { margin: 0 8px; }
.slick-default .slick-list { margin: 0 -8px; }
.theme-dots .slick-dots { position: relative; bottom: 5px; }
.theme-dots .slick-dots li { height: auto; width: auto; }
.theme-dots .slick-dots li button { height: 6px; width: 6px; border-radius: 5px; background: var(--border); padding: 0; transition: all 0.4s ease; }
[class="dark"] .theme-dots .slick-dots li button { background: #6e6e6e; }
.theme-dots .slick-dots li button::before { display: none; }
.theme-dots .slick-dots li.slick-active button { width: 30px; background: var(--brand); }
.theme-dots.slick-dotted.slick-slider { margin-bottom: 0; }

.toggle-sec { display: flex; align-items: center; }
.toggle-sec label { margin-right: 20px; }
[dir="rtl"] .toggle-sec label { margin-right: 0; margin-left: 20px; }
.toggle-sec label span { display: block; color: #647589; }
.toggle-sec .toggle-btn { position: relative; width: 74px; height: 36px; overflow: hidden; border-radius: 100px; margin-left: auto; }
[dir="rtl"] .toggle-sec .toggle-btn { margin-right: auto; margin-left: 0; }
.toggle-sec .toggle-btn .knobs,.toggle-sec .toggle-btn .layer { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-color: var(--surface); transition: 0.3s ease all; z-index: 1; }
.toggle-sec .toggle-btn .checkbox { position: relative; width: 100%; height: 100%; padding: 0; margin: 0; opacity: 0; cursor: pointer; z-index: 3; }
.toggle-sec .toggle-btn .knobs { z-index: 2; }
.toggle-sec .toggle-btn .knobs::before,.toggle-sec .toggle-btn .knobs::after,.toggle-sec .toggle-btn .knobs span { position: absolute; top: 4px; width: 28px; height: 28px; font-family: var(--font-head); font-size: 9px; font-weight: 700; text-align: center; line-height: 1; padding: 9px 4px; border-radius: 50%; transition: 0.4s cubic-bezier(0.18,0.89,0.35,1.15) all; }
.toggle-sec .toggle-btn .knobs::before { content: 'NO'; left: 4px; }
.toggle-sec .toggle-btn .knobs::after  { content: 'YES'; right: -24px; }
.toggle-sec .toggle-btn .knobs::before,.toggle-sec .toggle-btn .knobs::after { color: #fff; z-index: 2; }
.toggle-sec .toggle-btn .knobs span { left: 4px; background-color: rgba(0,0,0,0.55); z-index: 1; }
.toggle-sec .toggle-btn .checkbox:checked + .knobs::before { left: -24px; }
.toggle-sec .toggle-btn .checkbox:checked + .knobs::after  { right: 4px; }
.toggle-sec .toggle-btn .checkbox:checked + .knobs span    { left: 42px; background-color: var(--brand); }
.toggle-sec .toggle-btn .checkbox:checked + .knobs ~ .layer { background-color: var(--border); }

.theme-tab { border-bottom: none; display: flex; flex-wrap: nowrap; width: 100%; overflow-x: scroll; overflow-y: hidden; margin-bottom: 20px; gap: 8px; }
.theme-tab::-webkit-scrollbar { width: 0; height: 0; background: transparent; }
.theme-tab .nav-link { font-family: var(--font-head); border: none; padding: 8px 14px; background-color: var(--surface); color: var(--body); text-transform: capitalize; border-radius: var(--r-md) !important; margin-bottom: 0; white-space: nowrap; font-weight: 600; font-size: 13px; transition: all var(--ease); }
.theme-tab .nav-link.active { background-color: var(--brand); color: #fff; }
[class="dark"] .theme-tab .nav-link.active { color: #fff; }
.tab-section { overflow: hidden; }
.tab-section .tab-pane.show .product-box { animation: zoomIn 300ms ease-in-out; }

.counters { display: flex; align-items: center; margin: 6px 0; }
.counters .counter { background-color: var(--brand); border-radius: var(--r-md); width: 42px; height: 42px; color: #fff; margin-right: 8px; position: relative; padding: 8px; box-shadow: 0 3px 8px var(--brand-shadow); }
[dir="rtl"] .counters .counter { margin-right: 0; margin-left: 8px; }
@media(max-width:360px){.counters .counter{width:32px;height:32px}}
.counters .counter span { font-size: 20px; font-weight: 700; color: #fff; font-family: var(--font-head); }
@media(max-width:360px){.counters .counter span{font-size:15px}}
.counters .counter p { font-size: 8px; position: absolute; left: 5px; top: 2px; color: rgba(255,255,255,0.8); }

/* ========================================================================
   3.1  Bottom panel
   ======================================================================== */
.bottom-panel { position: fixed; left: 0; bottom: -1px; width: 100%; z-index: 1; background-color: var(--white); padding: 10px 14px; box-shadow: 0 -2px 12px rgba(0,0,0,0.08); border-top: 1px solid var(--border); }
.bottom-panel ul { display: flex; justify-content: space-around; padding: 0; }
.bottom-panel ul li { text-align: center; }
.bottom-panel ul li .icon { display: flex; align-items: center; justify-content: center; }
.bottom-panel ul li a { color: var(--body); }
.bottom-panel ul li a i { font-size: 22px; }
.bottom-panel ul li a i.icbo { display: none; }
.bottom-panel ul li a span { font-family: var(--font-head); font-size: 9px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-top: 4px; display: block; letter-spacing: 0.4px; }
.bottom-panel ul li.active a span { color: var(--brand); }
.bottom-panel ul li.active a i.icbo { display: block; color: var(--brand); }
.bottom-panel ul li.active a i.icli { display: none; }
.panel-space { padding-top: 82px; }

/* ========================================================================
   3.2  Header
   ======================================================================== */
header { display: flex; align-items: center; padding: 14px 16px; position: fixed; left: 0; top: -1px; width: 100%; background-color: var(--white); z-index: 3; border-bottom: 1px solid var(--border); }
header .back-links a { display: flex; align-items: center; }
header .back-links a i { color: var(--title); font-size: 22px; margin-right: 10px; }
[dir="rtl"] header .back-links a i { margin-right: 0; margin-left: 10px; }
header .back-links a .content h2 { color: var(--title); text-transform: capitalize; display: flex; align-items: center; }
header .back-links a .content h6 { color: var(--muted); }
header .back-links a .content span { display: flex; align-items: center; color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 4px; margin-top: 3px; }
header .nav-bar { margin-right: calc(10px + (15 - 10) * ((100vw - 320px) / (1920 - 320))); display: flex; align-items: center; }
[dir="rtl"] header .nav-bar { margin-right: 0; margin-left: calc(10px + (15 - 10) * ((100vw - 320px) / (1920 - 320))); }
header .nav-bar svg { stroke: var(--title); }
header .nav-bar img { width: 22px; }
[class="dark"] header .nav-bar img { filter: invert(1); }
header .brand-logo img { width: 125px; }
header .header-option { margin-left: auto; }
[dir="rtl"] header .header-option { margin-right: auto; margin-left: 0; }
header .header-option ul { display: flex; align-items: center; }
header .header-option ul li { line-height: 1; }
header .header-option ul li a { display: block; }
header .header-option ul li i { font-size: calc(20px + (22 - 20) * ((100vw - 320px) / (1920 - 320))); color: var(--title); }
header .header-option ul li + li { margin-left: calc(10px + (12 - 10) * ((100vw - 320px) / (1920 - 320))); }
[dir="rtl"] header .header-option ul li + li { margin-right: calc(10px + (12 - 10) * ((100vw - 320px) / (1920 - 320))); margin-left: 0; }
header.darkHeader { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
header.darkHeader.bg-transparent { background-color: var(--white) !important; }
.main-logo  { display: block; }
[class="dark"] .main-logo  { display: none; }
.white-logo { display: none; }
[class="dark"] .white-logo { display: block; }
.overlay-sidebar { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0,0,0,0.35); opacity: 0; visibility: hidden; transition: all 0.4s ease; z-index: 3; }
.overlay-sidebar.show { opacity: 1; visibility: visible; }
.header-sidebar { position: fixed; left: -320px; top: 0; background-color: var(--white); width: 310px; height: 100vh; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); z-index: 3; overflow: auto; border-right: 1px solid var(--border); }
[dir="rtl"] .header-sidebar { left: unset; right: -320px; }
.header-sidebar.show { left: 0; }
[dir="rtl"] .header-sidebar.show { left: unset; right: 0; }
.header-sidebar .user-panel { padding: 18px 16px; width: 100%; display: flex; align-items: center; background-color: var(--surface); border-bottom: 1px solid var(--border); }
.header-sidebar .user-panel .user-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin-right: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
[dir="rtl"] .header-sidebar .user-panel .user-img { margin-right: 0; margin-left: 14px; }
.header-sidebar .user-panel .icli { margin-left: 2px; font-size: 16px; color: var(--title); }
.header-sidebar .user-panel span { display: inline-block; color: var(--title); font-family: var(--font-head); font-size: 14px; font-weight: 700; }
@media(max-width:340px){.header-sidebar{width:288px}}
.sidebar-content { padding: 20px 0; }
.sidebar-content .link-section { padding: 0 20px; }
.sidebar-content .link-section li { width: 100%; padding: 14px 6px; border-bottom: 1px solid rgba(234,236,244,0.6); }
.sidebar-content .link-section li a,.sidebar-content .link-section li > div { display: flex; align-items: center; }
.sidebar-content .link-section li a i,.sidebar-content .link-section li > div i { font-size: 20px; color: var(--title); margin-right: 14px; }
[dir="rtl"] .sidebar-content .link-section li a i,[dir="rtl"] .sidebar-content .link-section li > div i { margin-right: 0; margin-left: 14px; }
.sidebar-content .link-section li a img,.sidebar-content .link-section li > div img { margin-right: 14px; width: 20px; }
[dir="rtl"] .sidebar-content .link-section li a img,[dir="rtl"] .sidebar-content .link-section li > div img { margin-right: 0; margin-left: 14px; }
.sidebar-content .link-section li a .content h4,.sidebar-content .link-section li > div .content h4 { color: var(--title); margin-bottom: 2px; font-weight: 700; text-transform: capitalize; }
.sidebar-content .link-section li a .content h6,.sidebar-content .link-section li > div .content h6 { color: var(--muted); text-transform: capitalize; }
.sidebar-content .link-section li:first-child { padding-top: 0; }
.sidebar-content .link-section li:last-child  { padding-bottom: 0; border-bottom: 0; }

/* ========================================================================
   3.3  Product box / Price / Wishlist / Ratings
   ======================================================================== */
.product-inline { background-color: var(--surface); border-radius: var(--r-lg); overflow: hidden; display: flex; align-items: center; padding: 12px; position: relative; }
.product-inline .product-inline-content { width: 60%; padding-right: 10px; }
.product-inline .product-inline-content h4 { margin-bottom: 3px; color: var(--title); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; margin-top: -3px; }
.product-inline .product-inline-content h5 { color: var(--muted); margin-bottom: 3px; }
.product-inline img { width: 90px; height: 90px; border-radius: var(--r-md); object-fit: cover; margin-right: 12px; }
[dir="rtl"] .product-inline img { margin-right: 0; margin-left: 12px; }
.price { margin-top: 3px; }
.price h4 { margin-bottom: 0; }
.price h4 del { color: var(--muted); margin-left: 6px; }
.price h4 span { color: var(--brand); font-size: 14px; font-weight: 600; margin-left: 6px; }
.wishlist-btn { width: 26px; height: 26px; border-radius: 50%; position: absolute; top: 10px; right: 10px; box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; background-color: var(--white); transition: transform var(--ease); }
[dir="rtl"] .wishlist-btn { left: 10px; right: unset; }
.wishlist-btn:hover { transform: scale(1.1); }
.wishlist-btn .icli { color: var(--muted); }
.wishlist-btn .icbo { display: none; }
.wishlist-btn.active .icli { display: none; }
.wishlist-btn.active .icbo { display: block; color: var(--brand); }
.wishlist-btn.active .effect::before { animation: fireworkLine 0.5s linear 0.1s; }
.wishlist-btn.active .effect::after  { animation: fireworkPoint 0.5s linear 0.1s; }
.product-box .img-part { box-shadow: var(--shadow-sm); border-radius: var(--r-md); position: relative; overflow: hidden; }
.product-box .img-part label { font-family: var(--font-head); font-size: 9px; font-weight: 700; color: #fff; background-color: var(--brand); position: absolute; left: 8px; top: 10px; border-radius: var(--r-sm); text-transform: uppercase; padding: 3px 9px; }
[dir="rtl"] .product-box .img-part label { left: unset; right: 8px; }
.product-box .product-content { margin-top: 9px; }
[dir="rtl"] .product-box .product-content { text-align: right; }
.product-box .product-content h4 { margin: 0; color: var(--title); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-family: var(--font-head); }
.product-box .product-content .price h4 { font-weight: 400; margin-bottom: -1px; }
.rating-section { display: flex; align-items: center; }
.rating-section h6 { margin-left: 5px; }
.ratings { display: flex; align-items: center; }
.ratings li .icbo { color: #FFBA49; }
.ratings li .icbo.empty { color: #d8d8e0; }
.ratings li + li { margin-left: 4px; }

/* ========================================================================
   4.x  Page sections (condensed — variable upgrades only)
   ======================================================================== */
.about-stats .stats-box { background-color: var(--surface); padding: 16px 10px; height: 100%; border-radius: var(--r-md); }
.about-stats .stats-box .top-part { display: flex; align-items: center; margin-bottom: 10px; }
.about-stats .stats-box .top-part img { margin-right: 10px; width: 12%; }
[dir="rtl"] .about-stats .stats-box .top-part img { margin-right: 0; margin-left: 10px; }
.about-section p { word-break: normal; hyphens: auto; text-align: justify; line-height: 1.7; }

.form-section h1 { font-size: 26px; margin-bottom: 26px; line-height: 1.25; }
.or-divider { border-bottom: 1px solid var(--border); margin: 28px 0; position: relative; }
.or-divider span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: inline-block; padding: 2px 10px; background-color: var(--white); font-family: var(--font-body); color: var(--muted); font-size: 12px; }
.social-auth ul { display: flex; align-items: center; justify-content: center; }
.social-auth ul li { width: 52px; height: 52px; border-radius: var(--r-md); background-color: var(--surface); display: flex; align-items: center; justify-content: center; margin: 0 6px; transition: box-shadow var(--ease); }
.social-auth ul li:hover { box-shadow: var(--shadow-md); }
.social-auth ul li img { width: 26px; }
.password-hs { position: absolute; top: 50%; transform: translateY(-50%); right: 15px; }
[dir="rtl"] .password-hs { right: unset; left: 15px; }
.password-hs i { font-size: 22px; color: var(--muted); }
.input-otp-form { display: flex; align-items: center; gap: 10px; }
.input-otp-form input { width: 56px; height: 56px; text-align: center; border: 1.5px solid var(--border); border-radius: var(--r-md); background-color: var(--surface); font-family: var(--font-head); font-size: 20px; font-weight: 700; transition: border-color var(--ease), box-shadow var(--ease); }
.input-otp-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-mid); }

.cart-box { display: flex; align-items: flex-start; }
.cart-box .cart-img { margin-right: 18px; }
[dir="rtl"] .cart-box .cart-img { margin-right: 0; margin-left: 18px; }
.cart-box .cart-img img { width: calc(90px + (110 - 90) * ((100vw - 320px) / (1920 - 320))); height: calc(90px + (110 - 90) * ((100vw - 320px) / (1920 - 320))); border-radius: var(--r-md); object-fit: cover; }
.cart-box .cart-content { width: 76%; }
.cart-box .cart-content a h4 { margin-bottom: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: -3px; font-weight: 600; line-height: 1.2; }
.cart-box .cart-content .price { margin-top: 8px; }
.order-details li { display: block; }
.order-details li h4 { color: var(--muted); display: flex; align-items: center; width: 100%; }
.order-details li h4 span,.order-details li h4 a { margin-left: auto; font-size: 14px; }
[dir="rtl"] .order-details li h4 span,[dir="rtl"] .order-details li h4 a { margin-right: auto; margin-left: 0; }
.order-details li + li { margin-top: 9px; }
.order-details .total-amount { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
.order-details .total-amount h4 { color: var(--title); display: flex; align-items: center; font-weight: 700; }
.order-details .total-amount h4 span { margin-left: auto; font-size: 14px; }
.cart-bottom { background-color: var(--white); position: fixed; left: 0; bottom: 0; width: 100%; box-shadow: 0 -4px 16px rgba(0,0,0,0.10); padding: 8px 12px; z-index: 1; border-top: 1px solid var(--border); }
@media(min-width:767px){.cart-bottom{max-width:600px;left:50%;transform:translateX(-50%)}}
.cart-bottom > div { display: flex; align-items: center; }
.cart-bottom .left-content { width: 42%; }
.cart-bottom .left-content h4 { font-family: var(--font-head); font-weight: 700; }
.cart-bottom .btn { padding: 8px 38px; font-size: 15px; font-weight: 700; width: 58%; margin-left: auto; }
@media(max-width:360px){.cart-bottom .btn{font-size:13px}}

.top-space{margin-top:56px}
.top-space.sm-space{margin-top:42px}
.top-space.lg-space{margin-top:62px}
.top-space.xl-space{margin-top:80px}
@media(max-width:767px){.top-space.xl-space{margin-top:66px}}
@media(max-width:480px){.top-space.xl-space{margin-top:60px}}

.deals-section { margin-top: 10px; }
.deals-section .title-part { display: flex; align-items: center; margin-bottom: 18px; }
.deals-section .title-part h2 { font-family: var(--font-head); font-weight: 800; }
.deals-section .title-part a { font-family: var(--font-body); font-size: 13px; margin-left: auto; color: var(--brand); }
[dir="rtl"] .deals-section .title-part a { margin-right: auto; margin-left: 0; }
.title-section { margin-bottom: 16px; }
.title-section h2 { margin-top: -3px; }
.title-section h3 { color: var(--muted); }
.page-title { font-family: var(--font-head); font-weight: 800; display: flex; align-items: center; margin-bottom: 16px; margin-top: -4px; }
.page-title a { color: var(--brand); font-weight: 500; font-family: var(--font-body); margin-left: auto; }
[dir="rtl"] .page-title a { margin-left: unset; margin-right: auto; }

.filter-title { border-bottom: none; display: flex; flex-wrap: nowrap; width: 100%; overflow-x: scroll; overflow-y: hidden; margin-bottom: 20px; gap: 10px; }
.filter-title::-webkit-scrollbar{width:0;height:0;background:transparent}
.filter-title li { background-color: var(--surface); text-transform: capitalize; border-radius: var(--r-md) !important; flex-shrink: 0; }
.filter-title li a { padding: 8px 20px; display: block; color: var(--body); white-space: nowrap; font-family: var(--font-body); font-size: 13px; font-weight: 500; }
.filter-title li.active { background-color: var(--brand); }
.filter-title li.active a { color: #fff; }

.search-panel { display: flex; align-items: center; justify-content: space-between; }
.search-panel .search-bar { position: relative; width: calc(100% - 52px); }
.search-panel .search-bar input { padding: 8px 36px; border-radius: var(--r-md); font-family: var(--font-body); font-size: 14px; }
.search-panel .search-bar .search-icon,.search-panel .search-bar .camera-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
.search-panel .search-bar .camera-icon { right: 10px; left: unset; }
.search-panel .filter-btn { width: 38px; height: 38px; border-radius: var(--r-md); background-color: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px var(--brand-shadow); transition: transform var(--ease); }
.search-panel .filter-btn:hover { transform: scale(1.06); }
.search-panel .filter-btn i { font-size: 18px; color: #fff; }

.order-success-section { text-align: center; }
.order-success-section h1 { margin-top: 26px; color: var(--brand); margin-bottom: 10px; font-size: 24px; }
.order-success-section .check-circle { width: 120px; height: 120px; padding: 20px; margin: 0 auto; border-radius: 50%; background-color: #78b248; box-shadow: 0 8px 24px rgba(120,178,72,0.35); }

/* ========================================================================
   5.1  RTL
   ======================================================================== */
[dir="rtl"] .slick-slider { direction: ltr; }
[dir="rtl"] .slick-slide  { float: left; }
[dir="rtl"] .form-floating > label { left: unset; right: 16px; }

/* ========================================================================
   PRODUCT DETAIL PAGE — merged & harmonised with design tokens
   Covers: main image, product header, info blocks, details grid,
   certificates, ingredient tables, language selector, videos,
   bordered tables, declaration blocks
   ======================================================================== */

/* ── Main image ─────────────────────────────────────────────────────────── */
#preview-main-image-container {
  width: 100%;
  height: 300px;
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  overflow: hidden;
}
#preview-main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Product header ─────────────────────────────────────────────────────── */
.product-header {
  text-align: center;
  padding: 20px 0;
}

#preview-brand-name {
  font-family: var(--font-body);
  font-size: 0.85em;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

#preview-item-name {
  font-family: var(--font-head);
  font-size: 1.55em;
  font-weight: 800;
  color: var(--title);
  margin: 6px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

#preview-location {
  font-family: var(--font-body);
  font-size: 0.9em;
  font-weight: 500;
  color: var(--muted);
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

#preview-recycle-point {
  font-family: var(--font-head);
  font-size: 1.55em;
  font-weight: 700;
  color: #2e7d32;
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tree-icon {
  font-size: 0.75em;
  line-height: 1;
  display: flex;
  align-items: center;
}

#preview-item-desc {
  font-family: var(--font-body);
  font-size: 0.95em;
  line-height: 1.7;
  color: var(--body);
  margin-top: 16px;
  text-align: center;
}

/* ── Info block (section separator) ────────────────────────────────────── */
.info-block {
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 24px;
}

.info-block h5 {
  font-family: var(--font-head);
  font-size: 1em;
  font-weight: 700;
  color: var(--title);
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.info-block h6 {
  font-family: var(--font-head);
  font-size: 0.9em;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  color: var(--body);
}

/* ── Details grid ───────────────────────────────────────────────────────── */
/*
  CSS Grid enforces two equal columns at ALL screen sizes.
  flex + width:48% breaks on mobile because padding/box-sizing
  can push items past the row width. Grid never does that.
*/
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* exactly 2 columns, always */
  gap: 0;
  text-align: left;
}

.detail-item {
  padding: 12px 8px 12px 0;
  border-bottom: 1px solid var(--border);
  min-width: 0;                      /* prevent grid blowout from long text */
}

/* Remove bottom border on the last row (last 1 or 2 items) */
.detail-item:last-child { border-bottom: none; }
.detail-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

/* Full-width item spans both columns */
.detail-item.full-width {
  grid-column: 1 / -1;
}

.detail-item strong {
  font-family: var(--font-head);
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

.detail-item span {
  font-family: var(--font-body);
  font-size: 0.95em;
  color: var(--title);
  font-weight: 500;
  word-break: break-word;
}

.detail-item span.fssai-highlight {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--brand);
}

/* ── Certificates ───────────────────────────────────────────────────────── */
.certificate-item {
  width: 100%;
  margin-bottom: 28px;
  text-align: center;
}

.certificate-item a {
  display: block;
  text-decoration: none;
}

.certificate-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
.certificate-item a:hover img {
  box-shadow: var(--shadow-md);
}

.certificate-item .cert-name a {
  font-family: var(--font-body);
  font-weight: 500;
  padding: 10px 8px;
  font-size: 0.88em;
  color: #1a5ca8;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: block;
  transition: color var(--ease);
}
.certificate-item .cert-name a:hover {
  color: var(--brand);
}

/* ── Ingredient / info table ────────────────────────────────────────────── */
/*  Same containment rules as the global table block — never overflows  */
.info-table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 10px;
  text-align: left;
  font-family: var(--font-body);
  word-break: break-word;
  overflow-wrap: break-word;
}

.info-table th,
.info-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  overflow: hidden;
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table th {
  font-family: var(--font-head);
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background-color: var(--surface);
}

.info-table td:first-child {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--body);
  width: 40%;
  font-size: 0.9em;
}

.info-table td:nth-child(2) {
  color: var(--title);
  width: 60%;
  font-size: 0.92em;
}

.info-table td.translated-text {
  color: var(--muted);
  font-style: italic;
}

/* ── Language selector ──────────────────────────────────────────────────── */
.language-selector-container {
  text-align: right;
  margin-bottom: 14px;
}

.language-selector-container select {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background-color: var(--white);
  color: var(--body);
  cursor: pointer;
  transition: border-color var(--ease);
  appearance: auto;
}
.language-selector-container select:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-mid);
}

/* ── Header logo (product page header) ─────────────────────────────────── */
.header-logo {
  height: 20px;
  width: auto;
}

.secondary-logo {
  height: 20px;
  width: auto;
}

/* ── Video embed ────────────────────────────────────────────────────────── */
.video-item {
  margin-bottom: 24px;
}

.video-item h6 {
  font-family: var(--font-head);
  font-size: 0.95em;
  font-weight: 700;
  color: var(--title);
  text-align: left;
  margin-bottom: 10px;
}

.video-responsive-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;  /* 16:9 */
  border-radius: var(--r-lg);
  background: var(--surface);
}

.video-responsive-wrapper iframe {
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Bordered tables (Nutrition / QUID) ─────────────────────────────────── */
/*  Inherits global table containment; adds visible borders + themed header  */
.product-detail-box .info-block .table-bordered {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed;
  border-collapse: collapse;
  word-break: break-word;
  overflow-wrap: break-word;
  font-family: var(--font-body);
  font-size: 13px;
}

.product-detail-box .info-block .table-bordered th,
.product-detail-box .info-block .table-bordered td {
  border: 1px solid var(--border);
  padding: 9px 10px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-detail-box .info-block .table-bordered th {
  font-family: var(--font-head);
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: var(--title);
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.12);
}

.product-detail-box .info-block .table-bordered tbody tr:hover {
  background-color: var(--surface);
}

.product-detail-box .info-block .table-bordered tbody td:first-child {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--title);
}

/* ── Declaration blocks ─────────────────────────────────────────────────── */
.dec-block {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.dec-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.dec-block-title {
  font-family: var(--font-head);
  font-size: 0.9em;
  font-weight: 700;
  color: var(--title);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.dec-block-desc {
  font-family: var(--font-body);
  font-size: 0.88em;
  color: var(--body);
  line-height: 1.7;
  text-align: left;
  white-space: pre-wrap;
}

/* ── Mobile tweaks for product detail ──────────────────────────────────── */
@media (max-width: 480px) {
  #preview-main-image-container {
    height: 240px;
    border-radius: var(--r-md);
  }

  #preview-item-name {
    font-size: 1.3em;
  }

  #preview-recycle-point {
    font-size: 1.3em;
  }

  .certificate-item img {
    height: 160px;
  }
}
