/* ==========================================================================
   Rafela Mart — main.css (ported from the static prototype)
   1 Tokens · 2 Base · 3 Layout · 4 Components · 5 Site shell · 6 Home
   7 Shop · 8 Product · 9 Cart & Checkout · 10 Utilities
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --primary: #14213D;
  --primary-dark: #0D172A;
  --background: #FFFFFF;
  --background-soft: #F7F8FA;
  --tile: #F1F2F5;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --border: #E5E7EB;
  --accent: #C9A66B;
  --accent-text: #8A6A2F;
  --success: #15803D;
  --danger: #DC2626;

  --font-heading: "Poppins", "Noto Sans Bengali", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 80px;

  --r-sm: 6px; --r-md: 8px; --r-lg: 12px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);

  /* semantic tokens (re-themed in dark mode) */
  --ink: #14213D;            /* headings, icons, outlines */
  --surface: #FFFFFF;        /* cards, inputs, header, drawers */
  --deep: #0D172A;           /* announcement bar, toast */
  --brand-bg: #14213D;       /* footer, promo banner */
  --border-strong: #CBD0D8;
  --success-bg: #ECFDF3;
  --star-off: #D1D5DB;
  --crumb: #9CA3AF;
  --hint-bg: rgba(255, 255, 255, 0.92);
  --focus-ring: rgba(20, 33, 61, 0.1);
  --overlay: rgba(13, 23, 42, 0.45);
  color-scheme: light;

  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: 24px; --header-h: 72px; } }

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.6;
  color: var(--text-primary); background: var(--background);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 16px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--ink); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5vw, 50px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 200; }
.skip-link:focus { top: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 3. LAYOUT ---------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s-7); }
.section--soft { background: var(--background-soft); }
.section--tight { padding-block: var(--s-6); }
@media (min-width: 1024px) { .section { padding-block: var(--s-9); } }
.section-head { text-align: center; max-width: 560px; margin: 0 auto var(--s-6); }
.section-head p { margin-top: var(--s-2); color: var(--text-secondary); font-size: 14px; }
.section-head--row { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); text-align: left; max-width: none; }
.section-head--row p { margin-top: 4px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }

/* 4. COMPONENTS ------------------------------------------------------------ */
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 28px; height: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: var(--r-sm);
  border: 1px solid transparent; font-weight: 500; font-size: 14px; letter-spacing: 0.01em;
  background: none; transition: background-color .18s, color .18s, border-color .18s; white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--light { background: #fff; color: #14213D; }
.btn--light:hover { background: #F3F4F6; }
.btn--ghost { color: var(--ink); padding-inline: 8px; }
.btn--ghost:hover { text-decoration: underline; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; color: var(--ink); }
.link-arrow:hover { text-decoration: underline; }

.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); border-radius: var(--r-sm); }
.icon-btn:hover { background: var(--background-soft); }
.count-badge {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 9px; background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 1;
}
.count-badge[hidden] { display: none; }

.badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; }
.badge--sale, .onsale { background: var(--primary); color: #fff; }
.badge--new { background: var(--accent); color: #0D172A; }

.star-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.star-rating__stars { position: relative; display: inline-block; font-size: 13px; letter-spacing: 1px; line-height: 1; color: var(--star-off); }
.star-rating__stars > span { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--accent); }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-family: var(--font-heading); }
.price ins { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink); }
.price del { font-size: 13px; color: var(--text-secondary); }
.price .discount { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--success); }

.breadcrumb { font-size: 13px; color: var(--text-secondary); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--crumb); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* forms */
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.field .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); font-size: 15px; transition: border-color .15s;
}
.textarea { min-height: 88px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus-ring); }
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--danger); }
.field__error { display: none; font-size: 12px; color: var(--danger); }
.field--error .field__error { display: block; }
.field__hint { font-size: 12px; color: var(--text-secondary); }

.check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--ink); }
.check .n { margin-left: auto; color: var(--text-secondary); font-size: 12px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.qty button { width: 40px; height: 44px; border: 0; background: none; color: var(--ink); font-size: 18px; line-height: 1; }
.qty button:hover { background: var(--background-soft); }
.qty input { width: 44px; height: 44px; border: 0; text-align: center; font-weight: 500; -moz-appearance: textfield; background: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button { width: 34px; height: 36px; }
.qty--sm input { width: 36px; height: 36px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 300; opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
  background: var(--deep); color: #fff; padding: 12px 18px; border-radius: var(--r-md); font-size: 14px;
  transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { text-decoration: underline; font-weight: 500; white-space: nowrap; }
.has-buybar .toast { bottom: 96px; }

.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 500; color: var(--ink); list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--text-secondary); }
.accordion details[open] summary::after { content: "–"; }
.accordion .accordion__body { padding: 0 0 18px; color: var(--text-secondary); font-size: 14px; max-width: 70ch; }

.backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 90; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.backdrop.is-visible { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(88vw, 340px); background: var(--surface); z-index: 100;
  transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.drawer__title { font-family: var(--font-heading); font-weight: 600; color: var(--ink); }

/* 5. SITE SHELL ------------------------------------------------------------ */
.announce { background: var(--deep); color: #fff; font-size: 12.5px; text-align: center; padding: 8px var(--gutter); letter-spacing: .02em; }
.announce strong { font-weight: 600; color: #fff; }
.announce span.sep { opacity: .4; margin: 0 8px; }
.announce__more { display: none; }
@media (min-width: 768px) { .announce__more { display: inline; } }

.site-header { position: sticky; top: 0; z-index: 80; background: var(--surface); border-bottom: 1px solid var(--border); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; gap: 4px; height: var(--header-h); }
.site-logo { display: inline-flex; align-items: center; margin-right: auto; margin-left: 4px; }
.site-logo img { height: 30px; width: auto; }
.primary-nav { display: none; }
.hide-mobile { display: none !important; }
.header-actions { display: flex; align-items: center; }
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .site-logo { margin-right: 32px; margin-left: 0; }
  .site-logo img { height: 38px; }
  .primary-nav { display: block; margin-right: auto; }
  .primary-nav .menu { display: flex; gap: 4px; }
  .primary-nav a { display: block; padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--text-primary); border-radius: var(--r-sm); position: relative; }
  .primary-nav a:hover { color: var(--ink); }
  .primary-nav .current-menu-item > a { color: var(--ink); }
  .primary-nav .current-menu-item > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--ink); }
  .hide-mobile { display: inline-grid !important; }
  .site-header__inner { gap: 0; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-logo { margin-right: 16px; }
  .site-logo img { height: 32px; }
  .primary-nav .menu { gap: 0; }
  .primary-nav a { padding: 8px 7px; font-size: 13.5px; }
  .primary-nav .current-menu-item > a::after { left: 7px; right: 7px; }
  .lang-switch { margin-right: 4px; }
  .lang-switch a { padding: 0 9px; }
}
.primary-nav a { white-space: nowrap; }
@media (min-width: 1280px) { .site-logo img { height: 46px; } }

.mobile-menu .menu a { display: block; padding: 14px 20px; border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-menu .current-menu-item > a { color: var(--ink); background: var(--background-soft); box-shadow: inset 3px 0 0 var(--ink); }
.mobile-menu__foot { margin-top: auto; padding: 20px; display: grid; gap: 12px; font-size: 14px; color: var(--text-secondary); background: var(--background-soft); }
.mobile-menu__foot a { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }

.search-overlay { position: fixed; inset: 0 0 auto 0; z-index: 110; background: var(--surface); padding: 16px 0 24px; transform: translateY(-100%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; box-shadow: var(--shadow); }
.search-overlay.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.search-form { display: flex; gap: 8px; align-items: center; }
.search-form .input { flex: 1; min-height: 48px; }
.search-suggest { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--text-secondary); }
.search-suggest a { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text-primary); }
.search-suggest a:hover { border-color: var(--ink); color: var(--ink); }

.site-footer { background: var(--brand-bg); color: #CBD2DF; font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 0; padding-block: var(--s-7) var(--s-5); }
.footer-brand p { margin-top: 12px; max-width: 34ch; line-height: 1.7; }
.footer-brand .site-logo { margin: 0; }
.footer-brand .site-logo img { height: 36px; }
.footer-col { border-top: 1px solid rgba(255,255,255,.12); }
.footer-col summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-family: var(--font-heading); font-weight: 500; color: #fff; font-size: 15px; cursor: pointer; }
.footer-col summary::-webkit-details-marker { display: none; }
.footer-col summary::after { content: "+"; font-size: 20px; color: #9AA5BC; }
.footer-col[open] summary::after { content: "–"; }
.footer-col ul { display: grid; gap: 10px; padding-bottom: 18px; }
.footer-col li { display: flex; gap: 10px; align-items: flex-start; }
.footer-col li .icon { margin-top: 3px; color: #9AA5BC; }
.footer-brand { padding-bottom: 24px; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-sm); color: #fff; }
.social a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: #9AA5BC; }
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 40px; }
  .footer-col { border-top: 0; }
  .footer-col summary { padding: 0 0 16px; cursor: default; pointer-events: none; }
  .footer-col summary::after { display: none; }
  .footer-brand { padding-bottom: 0; }
}

/* 6. HOME ------------------------------------------------------------------ */
.hero { background: var(--background-soft); overflow: hidden; }
.hero__grid { display: grid; gap: var(--s-6); padding-block: var(--s-6) var(--s-7); align-items: center; }
.hero__copy { max-width: 540px; }
.hero__copy h1 { margin: 12px 0 16px; }
.hero__copy p { color: var(--text-secondary); font-size: 16px; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: 13px; color: var(--text-secondary); }
.hero__points li { display: inline-flex; align-items: center; gap: 6px; }
.hero__points .icon { color: var(--ink); width: 16px; height: 16px; }
.hero__media { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1 / 1; }
.hero__media figure { overflow: hidden; border-radius: var(--r-lg); background: var(--tile); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media figure:first-child { grid-row: 1 / 3; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 1.1fr; gap: var(--s-8); padding-block: var(--s-8); }
  .hero__media { aspect-ratio: 5 / 4.4; }
  .hero__copy p { font-size: 17px; }
}

.trust-strip { border-bottom: 1px solid var(--border); }
.trust-strip ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.trust-strip li { display: flex; align-items: center; gap: 12px; padding: 16px 0; font-size: 13px; line-height: 1.35; }
.trust-strip li .icon { color: var(--ink); width: 24px; height: 24px; }
.trust-strip strong { display: block; font-weight: 600; color: var(--ink); }
.trust-strip span { color: var(--text-secondary); }
@media (min-width: 768px) { .trust-strip ul { grid-template-columns: repeat(4, 1fr); } .trust-strip li { padding: 20px 0; } }

.cat-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
.cat-grid::-webkit-scrollbar { display: none; }
.cat-card { flex: 0 0 120px; scroll-snap-align: start; text-align: center; }
.cat-card__img { aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--tile); }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cat-card:hover .cat-card__img img { transform: scale(1.04); }
.cat-card h3 { font-size: 14px; font-weight: 500; margin-top: 10px; color: var(--text-primary); letter-spacing: 0; }
.cat-card:hover h3 { color: var(--ink); }
@media (min-width: 768px) { .cat-card { flex-basis: 150px; } }
@media (min-width: 1024px) { .cat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; overflow: visible; margin: 0; padding: 0; } }

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
@media (min-width: 600px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1024px) { .products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; } }
.products--shop { }
@media (min-width: 1024px) { .products--shop { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .products--shop { gap: 40px 20px; } }
.products--scroll { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 8px; scrollbar-width: none; }
.products--scroll::-webkit-scrollbar { display: none; }
.products--scroll > li { scroll-snap-align: start; }
@media (min-width: 600px) { .products--scroll { grid-auto-columns: 32%; } }
@media (min-width: 1024px) { .products--scroll { grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; margin-inline: 0; padding-inline: 0; } }

.product { position: relative; display: flex; flex-direction: column; height: 100%; }
.product__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--tile); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product:hover .product__media img { transform: scale(1.03); }
.product__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wishlist-btn {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--surface); border: 0; border-radius: 50%; color: var(--ink); transition: background-color .15s, color .15s;
}
.wishlist-btn:hover { background: var(--primary); color: #fff; }
.wishlist-btn[aria-pressed="true"] { background: var(--primary); color: #fff; }
.wishlist-btn[aria-pressed="true"] .icon { fill: currentColor; }
.wishlist-btn .icon { width: 18px; height: 18px; }
a.wishlist-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.wishlist-btn.tinvwl-product-in-list { background: var(--primary); color: #fff; }
.wishlist-btn.tinvwl-product-in-list .icon { fill: currentColor; }
.product__info { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; flex: 1; }
.product__cat { font-size: 12px; color: var(--text-secondary); }
.product__title { font-family: var(--font-body); font-weight: 500; font-size: 14.5px; line-height: 1.35; color: var(--text-primary); letter-spacing: 0; }
.product__title a:hover { color: var(--ink); }
.product__rating { min-height: 18px; padding-bottom: 12px; }
.product .price { margin-top: 2px; margin-bottom: 12px; }
.product .add_to_cart_button { margin-top: auto; }
@media (min-width: 768px) { .product__title { font-size: 15.5px; } }

.promo { background: var(--brand-bg); color: #fff; border-radius: var(--r-lg); overflow: hidden; display: grid; }
.promo__copy { padding: var(--s-6) var(--s-5); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; }
.promo__copy h2 { color: #fff; }
.promo__copy p { color: #CBD2DF; max-width: 40ch; }
.promo__copy .eyebrow { color: var(--accent); }
.promo__media { min-height: 220px; background: var(--tile); }
.promo__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .promo { grid-template-columns: 1.1fr 1fr; } .promo__copy { padding: var(--s-8) var(--s-7); } .promo__media { min-height: 360px; } }

.benefits { display: grid; grid-template-columns: 1fr; gap: 24px; }
.benefit { display: flex; gap: 16px; align-items: flex-start; }
.benefit__icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--ink); border-radius: var(--r-md); flex: none; }
.benefit h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; margin-bottom: 4px; letter-spacing: 0; }
.benefit p { font-size: 14px; color: var(--text-secondary); }
@media (min-width: 600px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(5, 1fr); gap: 28px; } .benefit { flex-direction: column; gap: 14px; } }

.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 8px; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.review-card { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.review-card blockquote { font-size: 15px; line-height: 1.65; color: var(--text-primary); flex: 1; }
.review-card footer { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-secondary); }
.review-card .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.review-card cite { font-style: normal; font-weight: 600; color: var(--text-primary); display: block; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: 12px; }
.reviews-summary { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--text-secondary); }
@media (min-width: 768px) { .reviews { grid-auto-columns: 45%; } }
@media (min-width: 1024px) { .reviews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 24px; } }

.social-row { border-top: 1px solid var(--border); padding-block: var(--s-6); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.social-row h2 { font-size: 20px; }
.social-row p { color: var(--text-secondary); font-size: 14px; }
.social-row .social { margin-top: 0; }
.social-row .social a { border-color: var(--border); color: var(--ink); }
.social-row .social a:hover { background: var(--primary); color: #fff; }

.newsletter { text-align: center; }
.newsletter__form { display: flex; flex-direction: column; gap: 10px; max-width: 480px; margin: 24px auto 0; }
.newsletter__form .input { text-align: left; }
.newsletter__msg { margin-top: 12px; font-size: 14px; min-height: 22px; }
.newsletter__msg.is-error { color: var(--danger); }
.newsletter__msg.is-ok { color: var(--success); }
@media (min-width: 600px) { .newsletter__form { flex-direction: row; } .newsletter__form .input { flex: 1; } }
.faq { max-width: 760px; margin-inline: auto; }

/* 7. SHOP ------------------------------------------------------------------ */
.page-head { background: var(--background-soft); border-bottom: 1px solid var(--border); padding-block: var(--s-5) var(--s-6); }
.page-head h1 { font-size: clamp(26px, 4vw, 38px); margin-top: 10px; }
.page-head p { color: var(--text-secondary); margin-top: 6px; font-size: 14px; max-width: 60ch; }
.shop-layout { display: grid; gap: var(--s-5); padding-block: var(--s-5) var(--s-8); }
.shop-toolbar { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.shop-toolbar__count { font-size: 14px; color: var(--text-secondary); margin-right: auto; }
.shop-toolbar__count strong { color: var(--text-primary); }
.shop-toolbar .select { width: auto; min-height: 42px; padding-right: 32px; font-size: 14px; }
.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.sort-wrap label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.filters { padding: 8px 20px 24px; }
.filter-group { padding: 18px 0; border-bottom: 1px solid var(--border); border-width: 0 0 1px; margin: 0; min-width: 0; }
.filter-group > legend { font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--ink); padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.filter-group > legend + * { clear: both; }
.price-fields { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.price-fields .input { min-height: 42px; padding: 8px 10px; }
.filters__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 20px; position: sticky; bottom: 0; background: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); font-size: 13px; }
.chip:hover { border-color: var(--ink); }
a.chip { text-decoration: none; color: inherit; }
a.chip--clear { text-decoration: underline; }
.chip .icon { width: 14px; height: 14px; }
.chip--clear { border: 0; background: none; color: var(--ink); text-decoration: underline; }
.no-results { text-align: center; padding: var(--s-8) 0; color: var(--text-secondary); }
.no-results h2 { font-size: 22px; margin-bottom: 8px; }
.no-results .btn { margin-top: 20px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: var(--s-7); flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-sm); font-weight: 500; color: var(--text-primary); }
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination [aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .dots { border: 0; background: none; }
.pagination:empty { display: none; }
@media (max-width: 1023px) {
  .filters-drawer { position: fixed; top: 0; bottom: 0; right: 0; left: auto; width: min(92vw, 380px); background: var(--surface); z-index: 100; transform: translateX(100%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; overflow-y: auto; }
  .filters-drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .filters-drawer .drawer__head { display: flex; }
}
@media (min-width: 1024px) {
  .shop-layout { grid-template-columns: 240px 1fr; gap: var(--s-7); }
  .filters-drawer { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
  .filters-drawer .drawer__head, #filter-open { display: none; }
  .filters { padding: 0 8px 0 0; }
  html.js .filters__actions { display: none; }
  .sort-wrap label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
}

/* 8. PRODUCT --------------------------------------------------------------- */
.pdp { display: grid; gap: var(--s-5); padding-block: var(--s-4) var(--s-7); }
.gallery { display: grid; gap: 12px; min-width: 0; }
.gallery__main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--tile); cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; transform-origin: 50% 50%; }
.gallery__main.is-zoomed { cursor: zoom-out; }
.gallery__main.is-zoomed img { transform: scale(2.1); }
.gallery__hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; background: var(--hint-bg); border-radius: var(--r-sm); padding: 5px 10px; font-size: 12px; color: var(--ink); pointer-events: none; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery__thumbs button { aspect-ratio: 1; padding: 0; border: 1px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: var(--tile); opacity: .75; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; box-shadow: 0 0 0 1px var(--ink); }
.summary { display: grid; gap: 16px; align-content: start; min-width: 0; }
.summary h1 { font-size: clamp(24px, 3.4vw, 34px); }
.summary__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--text-secondary); }
.summary .price ins { font-size: 28px; }
.summary .price del { font-size: 17px; }
.summary .price .discount { font-size: 13px; background: var(--success-bg); padding: 2px 8px; border-radius: 4px; }
.summary__short { color: var(--text-secondary); max-width: 56ch; }
.opt-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: block; color: var(--text-primary); }
.opt-label span { font-weight: 400; color: var(--text-secondary); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); padding: 3px; background: var(--surface); }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; }
.swatch[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: stretch; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.buy-actions .btn { min-height: 50px; }
.wish[aria-pressed="true"] { background: var(--background-soft); }
.wish[aria-pressed="true"] .icon { fill: var(--ink); }
.stock { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-weight: 500; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock--out { color: var(--danger); }
.assure { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--r-md); }
.assure li { display: flex; gap: 14px; padding: 14px 16px; align-items: flex-start; font-size: 14px; }
.assure li + li { border-top: 1px solid var(--border); }
.assure .icon { color: var(--ink); margin-top: 2px; }
.assure strong { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.assure span { color: var(--text-secondary); font-size: 13px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.info-table th { width: 38%; font-weight: 500; color: var(--text-secondary); padding-right: 16px; }
.tabs [role="tablist"] { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; margin-bottom: 28px; }
.tabs [role="tab"] { padding: 14px 18px; border: 0; background: none; font-weight: 500; color: var(--text-secondary); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs [role="tabpanel"] { max-width: 820px; }
.tabs [role="tabpanel"] p + p { margin-top: 12px; }
.tabs ul.bullets { list-style: disc; padding-left: 20px; display: grid; gap: 6px; margin-top: 12px; }
.pdp-review { padding: 18px 0; border-bottom: 1px solid var(--border); }
.pdp-review header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; font-size: 13px; color: var(--text-secondary); }
.pdp-review strong { color: var(--text-primary); }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--surface); border-top: 1px solid var(--border); padding: 10px var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buybar .btn { min-height: 48px; }
.has-buybar { padding-bottom: 72px; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-8); padding-block: var(--s-5) var(--s-9); }
  .gallery { grid-template-columns: 84px 1fr; align-items: start; }
  .gallery__thumbs { grid-template-columns: 1fr; grid-row: 1; grid-column: 1; }
  .gallery__main { grid-column: 2; grid-row: 1; }
  .buybar { display: none; }
  .has-buybar { padding-bottom: 0; }
  .summary { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* 9. CART & CHECKOUT ------------------------------------------------------- */
.cart-layout, .checkout-layout { display: grid; gap: var(--s-6); padding-block: var(--s-5) var(--s-8); }
.cart-item { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.cart-item:first-child { padding-top: 0; }
.cart-item__img { aspect-ratio: 4/5; border-radius: var(--r-sm); overflow: hidden; background: var(--tile); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__body { display: grid; gap: 6px; align-content: start; min-width: 0; }
.cart-item__title { font-weight: 500; line-height: 1.35; }
.cart-item__title a:hover { color: var(--ink); }
.cart-item__meta { font-size: 13px; color: var(--text-secondary); }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.cart-item__total { font-family: var(--font-heading); font-weight: 600; color: var(--ink); }
.remove-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--text-secondary); font-size: 13px; padding: 8px 0; }
.remove-btn:hover { color: var(--danger); }
.summary-card { border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px; background: var(--surface); align-self: start; }
.summary-card h2 { font-size: 18px; margin-bottom: 16px; }
.summary-card dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.summary-card dt { color: var(--text-secondary); }
.summary-card dd { font-weight: 500; }
.summary-card .total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 17px; }
.summary-card .total dt { color: var(--text-primary); font-weight: 600; }
.summary-card .total dd { font-family: var(--font-heading); font-weight: 600; color: var(--ink); font-size: 20px; }
.discount-row dd { color: var(--success); }
.coupon { margin-top: 18px; }
.coupon__row { display: flex; gap: 8px; }
.coupon__row .input { flex: 1; min-height: 44px; text-transform: uppercase; }
.coupon__msg { font-size: 13px; margin-top: 8px; min-height: 20px; }
.coupon__msg.is-ok { color: var(--success); }
.coupon__msg.is-error { color: var(--danger); }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--text-secondary); margin-top: 14px; }
.empty-state { text-align: center; padding: var(--s-8) 0; }
.empty-state .icon { width: 48px; height: 48px; color: var(--text-secondary); margin: 0 auto 16px; }
.empty-state p { color: var(--text-secondary); margin: 8px 0 24px; }
.form-card { border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; background: var(--surface); display: grid; gap: 16px; }
.form-card + .form-card { margin-top: 16px; }
.form-card h2 { font-size: 18px; }
.form-card h2 span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; margin-right: 10px; vertical-align: 2px; }
.form-grid { display: grid; gap: 16px; }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-md); cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--ink); background: var(--background-soft); box-shadow: 0 0 0 1px var(--ink); }
.pay-option input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ink); }
.pay-option strong { display: block; color: var(--ink); }
.pay-option span { font-size: 13px; color: var(--text-secondary); }
.mini-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; font-size: 14px; }
.mini-line__img { position: relative; aspect-ratio: 4/5; border-radius: var(--r-sm); background: var(--tile); }
.mini-line__img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sm); }
.mini-line__img b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 11px; display: grid; place-items: center; }
.mini-line small { display: block; color: var(--text-secondary); }
.summary-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--border); background: var(--background-soft); border-radius: var(--r-md); font-weight: 500; color: var(--ink); }
.summary-toggle strong { font-family: var(--font-heading); }
.checkout-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--surface); border-top: 1px solid var(--border); padding: 10px var(--gutter); display: flex; align-items: center; gap: 14px; }
.checkout-bar__total { line-height: 1.2; font-size: 12px; color: var(--text-secondary); }
.checkout-bar__total strong { display: block; font-family: var(--font-heading); font-size: 18px; color: var(--ink); }
.checkout-bar .btn { flex: 1; min-height: 50px; }
.confirm { text-align: center; max-width: 520px; margin: var(--s-8) auto; }
.confirm__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; margin: 0 auto 20px; }
.confirm__icon .icon { width: 30px; height: 30px; }
.confirm p { color: var(--text-secondary); margin-top: 10px; }
.confirm .order-no { display: inline-block; margin-top: 18px; padding: 8px 16px; border: 1px dashed var(--border); border-radius: var(--r-sm); font-family: var(--font-heading); color: var(--ink); }
.confirm .btn { margin-top: 24px; }
.demo-note { font-size: 12px !important; }
@media (min-width: 600px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .cart-item { grid-template-columns: 112px 1fr; gap: 20px; } }
@media (min-width: 1024px) {
  .cart-layout { grid-template-columns: 1fr 380px; gap: var(--s-8); }
  .checkout-layout { grid-template-columns: 1fr 400px; gap: var(--s-8); }
  .summary-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
  .checkout-bar, .summary-toggle { display: none; }
  .has-checkout-bar { padding-bottom: 0 !important; }
}
.has-checkout-bar { padding-bottom: 76px; }
.summary-body.is-collapsed { display: none; }
@media (min-width: 1024px) { .summary-body.is-collapsed { display: block; } }

/* 10. UTILITIES ------------------------------------------------------------ */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
[hidden] { display: none !important; }

/* additions */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.section-cta { text-align: center; margin-top: var(--s-6); }
.mini-heading { font-size: 16px; margin-bottom: 4px; }
.mt-gap { margin-top: 20px; margin-bottom: 4px; font-size: 16px; }
.pdp-crumb { padding-top: 16px; }
.continue { margin-top: 20px; }
.cart-count { font-family: var(--font-body); font-size: .5em; font-weight: 400; color: var(--text-secondary); }
.cart-item__title { font-family: var(--font-body); font-size: 15px; letter-spacing: 0; }
.search-field { grid-template-columns: 1fr auto; }
.buybar { grid-template-columns: auto 1fr 1fr; align-items: center; }
.buybar__price { line-height: 1.15; font-family: var(--font-heading); font-weight: 600; color: var(--ink); font-size: 17px; padding-right: 4px; }
.buybar__price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 11px; color: var(--text-secondary); }
.place-desktop { display: none; margin-top: 16px; min-height: 50px; }
.summary-title { display: none; }
@media (min-width: 1024px) { .place-desktop { display: inline-flex; } .summary-title { display: block; } }

/* ---- language switcher & Bangla typography ---- */
.lang-switch { display: none; margin-right: 8px; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.lang-switch a { display: inline-flex; align-items: center; border: 0; background: var(--surface); color: var(--text-secondary); min-height: 36px; padding: 0 12px; font-size: 13px; font-weight: 500; text-decoration: none; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--primary); color: #fff; }
.lang-toggle { font-size: 13px; font-weight: 600; width: 44px; }
@media (min-width: 1024px) { .lang-switch { display: inline-flex; } .lang-toggle { display: none; } }
.review-card blockquote::before { content: "“"; }
.review-card blockquote::after { content: "”"; }

html[lang^="bn"] {
  --font-heading: "Noto Sans Bengali", "Poppins", system-ui, sans-serif;
  --font-body: "Noto Sans Bengali", "Inter", system-ui, -apple-system, sans-serif;
}
html[lang^="bn"] body { line-height: 1.75; }
html[lang^="bn"] h1, html[lang^="bn"] h2, html[lang^="bn"] h3, html[lang^="bn"] h4 { letter-spacing: 0; line-height: 1.4; }
html[lang^="bn"] h1 { line-height: 1.3; }
html[lang^="bn"] .eyebrow, html[lang^="bn"] .badge { letter-spacing: 0; text-transform: none; }
html[lang^="bn"] .btn { letter-spacing: 0; }
html[lang^="bn"] .product__title { line-height: 1.5; }
html[lang^="bn"] .lang-toggle { font-family: "Inter", sans-serif; }
html[lang^="en"] .lang-toggle { font-family: "Noto Sans Bengali", sans-serif; }

/* ---- theme: logo swap & toggle ---- */
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
.theme-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font-weight: 500; text-align: left; }
.theme-row .icon { flex: none; }
.theme-row__state { margin-left: auto; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 10px; background: var(--border); color: var(--text-secondary); }
[data-theme="dark"] .theme-row__state { background: var(--primary); color: #fff; }
.theme-row__state::before { content: "OFF"; }
[data-theme="dark"] .theme-row__state::before { content: "ON"; }

/* ---- dark theme ---- */
[data-theme="dark"] {
  --accent-text: #C9A66B;
  --background: #0E1420;
  --background-soft: #141B2A;
  --tile: #1B2336;
  --surface: #121A29;
  --text-primary: #E6E9F0;
  --text-secondary: #9AA4B8;
  --border: #263048;
  --border-strong: #34415F;
  --ink: #EEF1F8;
  --primary: #3E62AD;
  --primary-dark: #2F4E92;
  --deep: #070B13;
  --brand-bg: #111B33;
  --success: #4BC08A;
  --success-bg: #10261D;
  --danger: #F27878;
  --star-off: #3A4560;
  --crumb: #5C6783;
  --hint-bg: rgba(14, 20, 32, 0.88);
  --focus-ring: rgba(120, 150, 220, 0.28);
  --overlay: rgba(0, 0, 0, 0.62);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
[data-theme="dark"] .product__media img,
[data-theme="dark"] .hero__media img,
[data-theme="dark"] .cat-card__img img,
[data-theme="dark"] .gallery__main img,
[data-theme="dark"] .promo__media img { filter: brightness(0.92); }
[data-theme="dark"] .site-footer { border-top: 1px solid var(--border); }
[data-theme="dark"] .toast { border: 1px solid var(--border); }


/* ---- product page: WooCommerce form pieces ---- */
.variation-select--hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.variation-row { display: grid; gap: 8px; }
.single_variation_wrap .woocommerce-variation { display: none !important; } /* price and stock are shown above; colours share one price */
.variations_form .buy-row { margin-top: 4px; }
/* disabled until a colour is chosen: solid greys that still meet 4.5:1 contrast (no opacity fade) */
.btn.single_add_to_cart_button.disabled, .btn.single_add_to_cart_button:disabled { cursor: not-allowed; }
.btn--primary.single_add_to_cart_button.disabled, .btn--primary.single_add_to_cart_button:disabled { background: var(--text-secondary); border-color: var(--text-secondary); color: #fff; }
.btn--outline.single_add_to_cart_button.disabled, .btn--outline.single_add_to_cart_button:disabled { color: var(--text-secondary); border-color: var(--border-strong); background: var(--surface); }
.wish.disabled, .wish.disabled-add-wishlist, .tinvwl_add_to_wishlist_button.wish.disabled-add-wishlist, .woocommerce-variation-add-to-cart-disabled .wish { opacity: 1 !important; color: var(--text-secondary); border-color: var(--border-strong); cursor: not-allowed; }
.wish.disabled *, .woocommerce-variation-add-to-cart-disabled .wish * { opacity: 1; }
.summary .buy-actions { margin-top: 12px; }
.tabs .entry__content ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; margin-top: 12px; }
.tabs .entry__content p + p { margin-top: 12px; }
.product-reviews-empty { color: var(--text-secondary); }


/* ---- cart and checkout: WooCommerce form rows and notices ---- */
.form-grid { display: grid; gap: 16px; }
.form-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.woocommerce-checkout .form-row { display: grid; gap: 6px; margin: 0; float: none; width: auto; }
.woocommerce-checkout .form-row label { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.woocommerce-checkout .form-row .required { color: var(--danger); text-decoration: none; border: 0; }
.woocommerce-checkout .form-row .optional { color: var(--text-secondary); font-weight: 400; }
.woocommerce-input-wrapper { display: block; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper { display: grid; gap: 16px; }
.woocommerce-checkout .form-row { margin-bottom: 0 !important; padding: 0; }
.woocommerce-checkout .form-row-first, .woocommerce-checkout .form-row-last { width: auto; float: none; }
.woocommerce-checkout .form-row .input-text, .woocommerce-checkout .form-row .select { min-height: 48px; }
.woocommerce-checkout .select2-container { display: block; width: 100% !important; }
.woocommerce-checkout .select2-container .select2-selection--single { height: 48px; display: flex; align-items: center; border: 1px solid var(--border-strong, #d4d4d8); border-radius: 8px; }
.woocommerce-checkout .select2-container .select2-selection__rendered { line-height: 1.4; padding: 0 14px; color: var(--text-primary); }
.woocommerce-checkout .select2-container .select2-selection__arrow { height: 100%; right: 8px; }
.woocommerce-checkout .form-row .woocommerce-input-wrapper > .input-text + .input-text { margin-top: 12px; }
.woocommerce-input-wrapper .input, .woocommerce-input-wrapper .select, .woocommerce-input-wrapper .textarea { width: 100%; }
.form-row.field--error .input, .form-row.field--error .select, .form-row.field--error .textarea,
.form-row.woocommerce-invalid .input, .form-row.woocommerce-invalid .select, .form-row.woocommerce-invalid .textarea { border-color: var(--danger); }
.form-row.field--error .field__error { display: block; }
.mini-lines { padding: 0; }
.cart-actions { display: flex; justify-content: flex-end; padding-top: 16px; }
.confirm__lines { margin-top: 24px; text-align: left; border-top: 1px solid var(--border); }
.confirm__address { font-size: 14px; }
.wc-page > .woocommerce-notices-wrapper, .woocommerce-notices-wrapper { margin-bottom: 16px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
  list-style: none; margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--border); border-left-width: 4px; border-radius: var(--r-sm);
  background: var(--surface); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
}
.woocommerce-message { border-left-color: var(--success); }
.woocommerce-info { border-left-color: var(--ink); }
.woocommerce-error { border-left-color: var(--danger); display: grid; justify-content: stretch; }
.woocommerce-message a:not(.btn), .woocommerce-info a:not(.btn) { text-decoration: underline; font-weight: 500; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; display: inline-flex; padding: 8px 14px; border: 1px solid var(--ink); border-radius: var(--r-sm); text-decoration: none; font-weight: 500; }
.blockUI.blockOverlay { background: var(--surface) !important; opacity: .6 !important; }
.summary-card .coupon + .btn--block, .summary-card dl + .btn--block { margin-top: 16px; }

.confirm__note { font-size: 14px; }

/* ---- My Account, login, orders (WooCommerce markup) ---- */
.wc-page { padding-block: var(--s-5) var(--s-8); }
.woocommerce-account .woocommerce { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 900px) { .woocommerce-account.logged-in .woocommerce { grid-template-columns: 240px 1fr; gap: var(--s-7); } }
.woocommerce-MyAccount-navigation ul { display: grid; gap: 4px; border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px; background: var(--surface); }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--text-primary); text-decoration: none; }
.woocommerce-MyAccount-navigation a:hover { background: var(--background-soft); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--primary); color: #fff; }
.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-MyAccount-content p + p { margin-top: 12px; }
.woocommerce-account h2, .woocommerce-account h3 { font-size: 20px; margin-bottom: 14px; }
.woocommerce-form-login, .woocommerce-form-register, .woocommerce-EditAccountForm, .woocommerce-address-fields, .lost_reset_password {
  display: grid; gap: 16px; border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; background: var(--surface); max-width: 520px;
}
.woocommerce-account .form-row, .woocommerce-form-row { display: grid; gap: 6px; margin: 0; }
.woocommerce-address-fields__field-wrapper { display: grid; gap: 16px; }
.woocommerce-account .form-row-first, .woocommerce-account .form-row-last { width: auto; float: none; }
.woocommerce-account .form-row .input-text, .woocommerce-account .form-row .select { min-height: 48px; }
.woocommerce-account .select2-container { display: block; width: 100% !important; }
.woocommerce-account .select2-container .select2-selection--single { height: 48px; display: flex; align-items: center; border: 1px solid var(--border-strong, #d4d4d8); border-radius: 8px; }
.woocommerce-account .select2-container .select2-selection__rendered { line-height: 1.4; padding: 0 14px; color: var(--text-primary); }
.woocommerce-account .select2-container .select2-selection__arrow { height: 100%; right: 8px; }
.woocommerce-account .form-row .woocommerce-input-wrapper > .input-text + .input-text { margin-top: 12px; }
.woocommerce-account .form-row label, .woocommerce-form-row label { font-size: 13px; font-weight: 500; }
.woocommerce-account .input-text, .woocommerce-account select, .woocommerce-account textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text-primary);
}
.woocommerce-account .input-text:focus, .woocommerce-account select:focus, .woocommerce-account textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus-ring); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid var(--primary); border-radius: var(--r-sm);
  background: var(--primary); color: #fff; font-weight: 500; text-decoration: none; cursor: pointer;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--primary-dark); }
table.shop_table, .woocommerce-orders-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.shop_table th, table.shop_table td, .woocommerce-orders-table th, .woocommerce-orders-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.shop_table th, .woocommerce-orders-table th { color: var(--text-secondary); font-weight: 500; }
.woocommerce-orders-table { overflow-x: auto; display: block; }
.woocommerce-Addresses { display: grid; gap: 16px; }
@media (min-width: 700px) { .woocommerce-Addresses { grid-template-columns: 1fr 1fr; } }
.woocommerce-Address { border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.woocommerce-Address-title h2 { margin: 0; font-size: 18px; }
.u-columns { display: grid; gap: var(--s-5); }
@media (min-width: 800px) { .u-columns { grid-template-columns: 1fr 1fr; } }
.faq__more { text-align: center; margin-top: var(--s-5); }
.faq-group + .faq-group { margin-top: var(--s-6); }
.faq-group h2 { font-size: 20px; margin-bottom: 0; }

/* Password show/hide toggle (WooCommerce) */
.woocommerce .password-input { position: relative; display: block; }
.woocommerce .password-input .input-text { width: 100%; padding-right: 48px; }
.woocommerce .show-password-input {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 0;
}
.woocommerce .show-password-input::before {
  content: ""; display: block; width: 20px; height: 20px; margin: auto; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce .show-password-input.display-password::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.9 10.9 0 0 1 12 20C5 20 1 12 1 12a18.5 18.5 0 0 1 5.06-5.94M9.9 4.24A9.1 9.1 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19M14.12 14.12a3 3 0 1 1-4.24-4.24M1 1l22 22'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.9 10.9 0 0 1 12 20C5 20 1 12 1 12a18.5 18.5 0 0 1 5.06-5.94M9.9 4.24A9.1 9.1 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19M14.12 14.12a3 3 0 1 1-4.24-4.24M1 1l22 22'/%3E%3C/svg%3E");
}
.woocommerce .show-password-input:hover { color: var(--ink); }
.woocommerce .show-password-input:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--focus-ring); }

/* ---- My Account menu ---- */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; }
.woocommerce-MyAccount-navigation a { transition: background-color .18s, color .18s; }
.woocommerce-MyAccount-navigation .is-active a { font-weight: 500; }
.woocommerce-MyAccount-navigation a:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--focus-ring); }
.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--text-secondary); }
@media (max-width: 899px) {
  .woocommerce-MyAccount-navigation ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px; }
  .woocommerce-MyAccount-navigation li { flex: none; }
  .woocommerce-MyAccount-navigation a { white-space: nowrap; padding: 9px 14px; }
}

/* ---- Wishlist page (TI WooCommerce Wishlist markup) ---- */
.tinv-wishlist { max-width: 960px; text-align: left; }
.tinv-wishlist table td, .tinv-wishlist table th, .tinv-wishlist.woocommerce table.tinvwl-table-manage-list td, .tinv-wishlist.woocommerce table.tinvwl-table-manage-list th { text-align: left; }
.tinv-wishlist .tinv-header { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the page already has an h1 */
.tinv-wishlist table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tinv-wishlist .tinvwl-mobile { display: none; }
.tinv-wishlist thead th { padding: 0 12px 12px; text-align: left; font-size: 13px; font-weight: 500; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.tinv-wishlist tbody td { padding: 16px 12px; vertical-align: middle; border-bottom: 1px solid var(--border); }
.tinv-wishlist .product-cb { width: 36px; padding-inline: 0 4px; }
.tinv-wishlist input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.tinv-wishlist .product-thumbnail { width: 88px; }
.tinv-wishlist .product-thumbnail img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); background: var(--tile); display: block; }
.tinv-wishlist .product-name a { font-weight: 500; color: var(--text-primary); text-decoration: none; line-height: 1.4; }
.tinv-wishlist .product-name a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tinv-wishlist .product-price { font-weight: 500; white-space: nowrap; }
.tinv-wishlist .product-price ins, .tinv-wishlist .product-price del { display: inline-block; margin-inline-end: 6px; white-space: nowrap; }
.tinv-wishlist .product-price .discount { display: block; white-space: nowrap; }
.tinv-wishlist .product-price del { font-weight: 400; font-size: 13px; color: var(--text-secondary); }
.tinv-wishlist .product-price .discount { font-size: 12px; font-weight: 600; color: var(--success); }
.tinv-wishlist .product-price ins { text-decoration: none; }
.tinv-wishlist .product-date { color: var(--text-secondary); white-space: nowrap; width: 120px; }
.tinv-wishlist .stock { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--success); white-space: nowrap; }
.tinv-wishlist .stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tinv-wishlist .stock.out-of-stock { color: var(--danger); }
.tinv-wishlist .stock i { display: none; }
.tinv-wishlist .product-action { text-align: right; width: 1%; }
.tinv-wishlist .product-action .button { white-space: nowrap; min-width: 148px; }
.tinv-wishlist .product-remove { width: 40px; padding-inline: 0; }
.tinv-wishlist .product-remove button {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text-secondary); cursor: pointer; display: grid; place-items: center; transition: color .18s, border-color .18s, background-color .18s;
}
.tinv-wishlist .product-remove button i { display: none; }
.tinv-wishlist .product-remove button::before {
  content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tinv-wishlist .product-remove button:hover { color: var(--danger); border-color: var(--danger); background: #FEF2F2; }
.tinv-wishlist .product-remove button:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--focus-ring); }

.tinv-wishlist tfoot td { padding: 20px 0 0; border: 0; }
.tinv-wishlist tfoot td > .tinvwl-to-left, .tinv-wishlist tfoot td > .tinvwl-to-right { display: flex; flex-wrap: wrap; gap: 10px; }
.tinv-wishlist tfoot td { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.tinv-wishlist .tinvwl-input-group { display: flex; gap: 8px; }
.tinv-wishlist .tinvwl-input-group select { min-height: 46px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text-primary); }
.tinv-wishlist .tinvwl-input-group select:focus-visible { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus-ring); }
.tinv-wishlist .tinvwl-to-right .button { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.tinv-wishlist .tinvwl-to-right .button:hover { background: var(--primary); color: #fff; }
.tinv-wishlist .tinvwl-to-right .button[value="product_all"] { background: var(--primary); color: #fff; }
.tinv-wishlist .tinvwl-to-right .button[value="product_all"]:hover { background: var(--primary-dark); }

.tinv-wishlist .social-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--border); font-size: 14px; color: var(--text-secondary); }
.tinv-wishlist .social-buttons ul { display: flex; width: auto; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tinv-wishlist .social-buttons a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text-primary); text-decoration: none; font-size: 13px; transition: background-color .18s, color .18s; }
.tinv-wishlist .social-buttons a i { display: none; }
.tinv-wishlist .social-buttons li { margin: 0; float: none; width: auto; }
.tinv-wishlist .social-buttons ul li a.social { white-space: nowrap; width: auto; height: auto; line-height: 1.2; }
.tinv-wishlist .social-buttons > span { margin: 0; }
.tinv-wishlist .social-buttons a::after { content: attr(title); }
.tinv-wishlist .social-buttons a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

@media (max-width: 767px) {
  .tinv-wishlist thead { display: none; }
  .tinv-wishlist table, .tinv-wishlist tbody { display: block; }
  .tinv-wishlist tr.wishlist_item {
    display: grid; grid-template-columns: 88px 1fr 36px; gap: 4px 14px; align-items: start; position: relative;
    padding: 16px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
  }
  .tinv-wishlist tbody td { display: block; padding: 0; border: 0; width: auto; text-align: left; }
  .tinv-wishlist .product-cb { display: none; } /* bulk select is for the desktop table; mobile uses the buttons */
  .tinv-wishlist .product-thumbnail { grid-column: 1; grid-row: 1 / span 4; }
  .tinv-wishlist .product-thumbnail img { width: 88px; height: 112px; }
  .tinv-wishlist .product-name, .tinv-wishlist .product-price, .tinv-wishlist .product-date, .tinv-wishlist .product-stock { grid-column: 2; }
  .tinv-wishlist .product-remove { grid-column: 3; grid-row: 1; justify-self: end; }
  
  .tinv-wishlist .product-action { grid-column: 1 / -1; width: auto; margin-top: 12px; text-align: left; }
  .tinv-wishlist .product-action .button { width: 100%; }
  .tinv-wishlist tfoot, .tinv-wishlist tfoot tr { display: block; }
  .tinv-wishlist tfoot td { display: grid; gap: 12px; }
  .tinv-wishlist tfoot td > .tinvwl-to-left, .tinv-wishlist tfoot td > .tinvwl-to-right { display: grid; }
  .tinv-wishlist .tinvwl-input-group { display: grid; grid-template-columns: 1fr auto; }
  .tinv-wishlist .tinvwl-to-right .button { width: 100%; }
}

/* wishlist: win over the plugin's own stylesheet */
.tinv-wishlist.woocommerce table.tinvwl-table-manage-list th.product-cb, .tinv-wishlist.woocommerce table.tinvwl-table-manage-list td.product-cb { width: 36px; padding-inline: 0 4px; }
.tinv-wishlist.woocommerce table.tinvwl-table-manage-list th.product-remove, .tinv-wishlist.woocommerce table.tinvwl-table-manage-list td.product-remove { width: 44px; padding-inline: 0 8px; }
.tinv-wishlist.woocommerce table.tinvwl-table-manage-list td.product-stock p.stock { text-align: left; }
.tinv-wishlist.woocommerce table.tinvwl-table-manage-list tfoot td { display: table-cell; padding: 20px 0 0; border: 0; }
.tinv-wishlist.woocommerce table.tinvwl-table-manage-list tfoot td::after { content: ""; display: table; clear: both; }
.tinv-wishlist.woocommerce .tinvwl-to-left { float: left; display: flex; flex-wrap: wrap; gap: 10px; }
.tinv-wishlist.woocommerce .tinvwl-to-right { float: right; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.tinv-wishlist.woocommerce .tinvwl-to-right .button, .tinv-wishlist.woocommerce .tinvwl-to-left .button { white-space: nowrap; width: auto; margin: 0; }
.tinv-wishlist.woocommerce .social-buttons ul li a.social { font-size: 13px; font-family: inherit; }
@media (max-width: 767px) {
  .tinv-wishlist.woocommerce table.tinvwl-table-manage-list td.product-cb { display: none; }
  .tinv-wishlist.woocommerce table.tinvwl-table-manage-list td.product-stock p.stock { justify-content: flex-start; }
  .tinv-wishlist.woocommerce table.tinvwl-table-manage-list td { display: block; }
  .tinv-wishlist.woocommerce table.tinvwl-table-manage-list tfoot, .tinv-wishlist.woocommerce table.tinvwl-table-manage-list tfoot tr { display: block; }
  .tinv-wishlist.woocommerce table.tinvwl-table-manage-list tfoot td { display: grid; width: 100%; }
  .tinv-wishlist.woocommerce .tinvwl-to-left, .tinv-wishlist.woocommerce .tinvwl-to-right { float: none; display: grid; }
  .tinv-wishlist.woocommerce .tinvwl-to-right .button { width: 100%; white-space: normal; }
}
.tinv-wishlist.woocommerce table.tinvwl-table-manage-list td.product-stock p.stock { display: inline-flex; margin: 0; }
.tinv-wishlist.woocommerce table.tinvwl-table-manage-list th.product-thumbnail, .tinv-wishlist.woocommerce table.tinvwl-table-manage-list td.product-thumbnail { min-width: 0; }
@media (max-width: 767px) {
  .tinv-wishlist.woocommerce .tinvwl-to-left, .tinv-wishlist.woocommerce .tinvwl-to-right { width: 100%; max-width: none; }
  .tinv-wishlist.woocommerce .tinvwl-input-group { width: 100%; }
}
@media (max-width: 767px) {
  .tinv-wishlist.woocommerce table.tinvwl-table-manage-list tfoot td { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
}

/* wishlist: desktop rows are a grid so the remove button can sit at the end of the row */
@media (min-width: 768px) {
  .tinv-wishlist.woocommerce table.tinvwl-table-manage-list, .tinv-wishlist.woocommerce table.tinvwl-table-manage-list :is(thead, tbody, tfoot) { display: block; }
  .tinv-wishlist.woocommerce table.tinvwl-table-manage-list :is(thead, tbody) tr {
    display: grid; grid-template-columns: 36px 72px minmax(0, 1.4fr) minmax(150px, .8fr) minmax(110px, .9fr) minmax(110px, .9fr) 168px 40px; column-gap: 16px; align-items: center;
  }
  .tinv-wishlist.woocommerce table.tinvwl-table-manage-list :is(th, td) { width: auto; min-width: 0; padding-inline: 0; }
  .tinv-wishlist.woocommerce table.tinvwl-table-manage-list thead th { padding-bottom: 12px; }
  .tinv-wishlist.woocommerce table.tinvwl-table-manage-list tbody td { padding-block: 16px; }
  .tinv-wishlist.woocommerce table.tinvwl-table-manage-list th.product-remove, .tinv-wishlist.woocommerce table.tinvwl-table-manage-list td.product-remove { order: 9; justify-self: end; }
  .tinv-wishlist.woocommerce table.tinvwl-table-manage-list td.product-action { width: auto; }
  .tinv-wishlist.woocommerce table.tinvwl-table-manage-list :is(thead, tbody) :is(th, td) { border: 0; }
  .tinv-wishlist.woocommerce table.tinvwl-table-manage-list :is(thead, tbody) tr { border-bottom: 1px solid var(--border); }
  .tinv-wishlist.woocommerce table.tinvwl-table-manage-list tfoot tr, .tinv-wishlist.woocommerce table.tinvwl-table-manage-list tfoot td { display: block; width: 100%; }
}
.tinv-wishlist input[type="checkbox"] { margin: 0; }
.tinv-wishlist { margin-top: var(--s-5); }

/* wishlist: share row */
.tinv-wishlist .social-buttons { display: flex; align-items: center; gap: 16px; }
.tinv-wishlist .social-buttons > span { margin: 0; line-height: 1; }
.tinv-wishlist .social-buttons ul { margin: 0; align-items: center; }
.tinv-wishlist.woocommerce .social-buttons ul li a.social { position: relative; width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 0; color: var(--text-primary); }
.tinv-wishlist.woocommerce .social-buttons ul li a.social::after { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--rm-share) center / contain no-repeat; mask: var(--rm-share) center / contain no-repeat; }
.tinv-wishlist.woocommerce .social-buttons ul li a.social:hover { color: #fff; }
.tinv-wishlist.woocommerce .social-buttons ul li a.social:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--focus-ring); }
.tinv-wishlist .social-facebook { --rm-share: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M18%202h-3a5%205%200%200%200-5%205v3H7v4h3v8h4v-8h3l1-4h-4V7a1%201%200%200%201%201-1h3z'/%3E%3C/svg%3E"); }
.tinv-wishlist .social-twitter { --rm-share: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M22%204s-.7%202.1-2%203.4c1.6%2010-9.4%2017.3-18%2011.6%202.2.1%204.4-.6%206-2C3%2015.5.5%209.6%203%205c2.2%202.6%205.6%204.1%209%204-.9-4.2%204-6.6%207-3.8%201.1%200%203-1.2%203-1.2z'/%3E%3C/svg%3E"); }
.tinv-wishlist .social-pinterest { --rm-share: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%202a10%2010%200%201%200%200%2020%2010%2010%200%200%200%200-20zM9.5%2020.5%2012%209M9.5%2012.5c.5%201.5%202%202%203.5%201.5%202-.7%202.5-3.5%201.2-5-1.5-1.7-4.7-1.2-5.5%201.3'/%3E%3C/svg%3E"); }
.tinv-wishlist .social-whatsapp { --rm-share: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M7.9%2020A9%209%200%201%200%204%2016.1L2%2022z'/%3E%3C/svg%3E"); }
.tinv-wishlist .social-clipboard { --rm-share: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M10%2013a5%205%200%200%200%207.54.54l3-3a5%205%200%200%200-7.07-7.07l-1.72%201.71M14%2011a5%205%200%200%200-7.54-.54l-3%203a5%205%200%200%200%207.07%207.07l1.71-1.71'/%3E%3C/svg%3E"); }
.tinv-wishlist .social-email { --rm-share: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M2%204h20v16H2zM22%207l-10%206L2%207'/%3E%3C/svg%3E"); }
.tinv-wishlist.woocommerce .social-buttons ul li a.social { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.tinv-wishlist.woocommerce .social-buttons ul li a.social:hover { background: var(--primary); border-color: var(--primary); }
.tinv-wishlist.woocommerce .social-buttons ul li { display: flex; }
.tinv-wishlist.woocommerce .social-buttons > span, .tinv-wishlist.woocommerce .social-buttons > ul { display: flex; align-items: center; vertical-align: baseline; }
.tinv-wishlist.woocommerce .social-buttons > span { height: 40px; margin: 0; padding: 0; }
.tinv-wishlist.woocommerce .social-buttons > ul { margin: 0; padding: 0; }
.tinv-wishlist.woocommerce .social-buttons ul li a.social { margin: 0; top: auto; }

/* wishlist popup: the plugin's icon font is not loaded, so draw its icons with masks */
.tinv-modal-inner > i, .tinv-modal .button i.ftinvwl { display: inline-block; width: 40px; height: 40px; margin-bottom: 8px; background: var(--ink); -webkit-mask: var(--rm-wl-icon) center / contain no-repeat; mask: var(--rm-wl-icon) center / contain no-repeat; font-size: 0; }
.tinv-modal-inner > i { --rm-wl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E"); }
.tinv-modal-inner > i.ftinvwl-times, .tinv-modal-inner > i.ftinvwl-exclamation-triangle { --rm-wl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m15 9-6 6m0-6 6 6'/%3E%3C/svg%3E"); }
.tinv-modal .button i.ftinvwl { display: none; }
