/* ============================================================
   Supplementary storefront styles — components added by the PHP
   build that aren't in the original styles.css. Loaded AFTER it,
   reusing the same tokens (falls back if a token is absent).
   ============================================================ */

.section { padding: 40px 0; }
.section__title { font-family: "Source Serif 4", Georgia, serif; font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 20px; }

/* Hero */
.hero {
  background: oklch(0.97 0.01 75);
  border-bottom: 1px solid var(--line, oklch(0.9 0.006 65));
  padding: 56px 0;
}
.hero__inner { max-width: 720px; }
.hero__eyebrow { color: var(--maroon, oklch(0.43 0.115 24)); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 8px; }
.hero__title { font-family: "Source Serif 4", serif; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 12px; line-height: 1.05; }
.hero__sub { font-size: 1.1rem; color: var(--ink-soft, oklch(0.47 0.012 50)); margin: 0 0 24px; max-width: 60ch; }
.btn--lg { padding: .8em 1.6em; font-size: 1.05rem; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat-tile {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 22px 14px; background: var(--surface, #fff); border: 1px solid var(--line, oklch(0.9 0.006 65));
  border-radius: 6px; font-weight: 600; color: var(--ink, oklch(0.245 0.012 50));
  transition: border-color .18s, transform .18s;
}
.cat-tile:hover { border-color: var(--maroon, oklch(0.43 0.115 24)); transform: translateY(-2px); text-decoration: none; }

/* Product grid — 4 books per row (home: featured / new releases) */
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1080px) { .book-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .book-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .book-grid { grid-template-columns: 1fr; } }
.book__add { width: 100%; margin-top: 10px; }

/* Breadcrumb */
.breadcrumb { font-size: .85rem; color: var(--ink-soft, oklch(0.47 0.012 50)); margin-bottom: 14px; }
.breadcrumb span { margin: 0 6px; }

/* Product detail (.product__layout defined in the Single product page block below) */
.product__stage {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-deep, oklch(0.97 0.008 75));
  border: 1px solid var(--line, oklch(0.9 0.006 65)); border-radius: 8px;
  padding: 18px; overflow: hidden;
}
.product__img { width: 100%; height: auto; border-radius: 4px; }
.product__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.product__thumb {
  width: 64px; height: 80px; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line, oklch(0.9 0.006 65)); border-radius: 4px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.product__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product__thumb:hover { border-color: var(--maroon, oklch(0.43 0.115 24)); }
.product__thumb.is-active {
  border-color: var(--maroon, oklch(0.43 0.115 24));
  box-shadow: 0 0 0 1px var(--maroon, oklch(0.43 0.115 24));
}
.product__title { font-family: "Source Serif 4", serif; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.25; margin: 0 0 6px; }
.product__author { color: var(--ink-soft, oklch(0.47 0.012 50)); margin: 0 0 16px; }
.product__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.product__price-now { font-size: 1.8rem; font-weight: 700; }
.product__price-mrp { color: var(--ink-soft, oklch(0.47 0.012 50)); text-decoration: line-through; }
.product__meta { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 6px; color: var(--ink-soft, oklch(0.47 0.012 50)); }
.product__buy { display: flex; align-items: center; gap: 14px; }
.stepper { display: inline-flex; border: 1px solid var(--line, oklch(0.9 0.006 65)); border-radius: 4px; overflow: hidden; }
.stepper button { width: 38px; border: 0; background: var(--surface, #fff); font-size: 1.1rem; cursor: pointer; }
.stepper input { width: 48px; border: 0; text-align: center; font: inherit; }
.product__desc { margin-top: 40px; max-width: 70ch; }

/* Account */
.account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.account-card { display: block; padding: 22px; background: var(--surface, #fff); border: 1px solid var(--line, oklch(0.9 0.006 65)); border-radius: 6px; color: inherit; }
.account-card:hover { border-color: var(--maroon, oklch(0.43 0.115 24)); text-decoration: none; }
.account-card h3 { margin: 0 0 6px; }
.account-logout { margin-top: 12px; }

.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.address-card { padding: 18px; border: 1px solid var(--line, oklch(0.9 0.006 65)); border-radius: 6px; background: var(--surface, #fff); }
.address-card.is-default { border-color: var(--maroon, oklch(0.43 0.115 24)); }
.address-card__type { display: inline-block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--maroon, oklch(0.43 0.115 24)); margin-bottom: 6px; }

/* Auth card */
.auth-card { max-width: 420px; }
.form__label { display: block; margin-bottom: 14px; font-weight: 600; }
.form__input { display: block; width: 100%; margin-top: 6px; padding: .6em .75em; border: 1px solid var(--line, oklch(0.9 0.006 65)); border-radius: 4px; font: inherit; }
.form__aside { margin-top: 16px; font-size: .9rem; }

/* Alerts (storefront) */
.alert { padding: .7em 1em; border-radius: 4px; margin-bottom: 16px; }
.alert--error { background: oklch(0.95 0.04 25); color: oklch(0.45 0.16 25); }
.alert--success { background: oklch(0.95 0.05 152); color: oklch(0.4 0.09 152); }

/* Tables / misc */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: .7em .8em; border-bottom: 1px solid var(--line, oklch(0.9 0.006 65)); }
.empty { color: var(--ink-soft, oklch(0.47 0.012 50)); padding: 24px 0; }
.status { font-size: .8rem; padding: .2em .6em; border-radius: 99px; background: oklch(0.93 0.01 75); }

/* ===== Phase 3: cart, checkout, account ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: .7em .6em; border-bottom: 1px solid var(--line, oklch(0.9 0.006 65)); text-align: left; vertical-align: middle; }
.cart-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft, oklch(0.47 0.012 50)); }
.cart-table__img img { width: 44px; height: 56px; object-fit: cover; border-radius: 3px; }
.cart-qty { width: 64px; padding: .4em; border: 1px solid var(--line, oklch(0.9 0.006 65)); border-radius: 4px; }
.cart-actions { display: flex; justify-content: space-between; margin-top: 16px; gap: 12px; }
.cart-summary, .checkout__summary { background: var(--surface, #fff); border: 1px solid var(--line, oklch(0.9 0.006 65)); border-radius: 6px; padding: 20px; position: sticky; top: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: .4em 0; }
.summary-row--total { border-top: 2px solid var(--line, oklch(0.9 0.006 65)); margin-top: 8px; padding-top: 12px; font-size: 1.15rem; }
.summary-items { list-style: none; padding: 0; margin: 0 0 12px; font-size: .85rem; }
.summary-items li { display: flex; justify-content: space-between; gap: 14px; padding: .6em 0; border-bottom: 1px solid var(--line, oklch(0.93 0.006 65)); color: var(--ink, oklch(0.245 0.012 50)); }
.summary-items .si-name { flex: 1; min-width: 0; line-height: 1.4; }              /* name wraps instead of overflowing */
.summary-items .si-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; white-space: nowrap; }
.summary-items .si-qty {
  font-size: .72rem; font-weight: 600; color: var(--ink-soft, oklch(0.47 0.012 50));
  background: oklch(0.95 0.01 75); border-radius: 99px; padding: .1em .55em;
}
.summary-items .si-price { font-weight: 700; }
.coupon-row { display: flex; gap: 8px; margin: 12px 0; align-items: center; }
.coupon-applied { font-weight: 600; color: var(--green, oklch(0.5 0.085 152)); }
.link-danger { background: none; border: 0; color: oklch(0.5 0.16 25); cursor: pointer; font: inherit; padding: 0; }
.link-danger:hover { text-decoration: underline; }
.link-btn { background: none; border: 0; color: var(--maroon, oklch(0.43 0.115 24)); cursor: pointer; font: inherit; padding: 0; }
.btn--block { width: 100%; display: block; text-align: center; }

/* Checkout */
.checkout__grid { display: grid; grid-template-columns: 1fr 400px; gap: 28px; align-items: start; }
.checkout__main { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__row--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) { .form__row, .form__row--3 { grid-template-columns: 1fr; } }
.cform { border: 1px solid var(--line, oklch(0.9 0.006 65)); border-radius: 6px; padding: 18px 20px; margin: 0; }
.cform legend { font-family: "Source Serif 4", serif; font-weight: 600; padding: 0 6px; }
.cfield { margin-bottom: 12px; }
.cfield label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 4px; }
.cnote { color: var(--ink-soft, oklch(0.47 0.012 50)); font-size: .85rem; }
.addr-choices { display: grid; gap: 10px; }
.addr-choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line, oklch(0.9 0.006 65)); border-radius: 6px; cursor: pointer; }
.addr-choice input { margin-top: 3px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.address-card__actions { display: flex; gap: 14px; margin-top: 10px; align-items: center; font-size: .85rem; }
.address-card__actions form { margin: 0; }
.order-totals { max-width: 320px; margin-left: auto; margin-top: 16px; }
.order-addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.status { font-size: .75rem; padding: .2em .6em; border-radius: 99px; background: oklch(0.93 0.01 75); }
.status--completed { background: oklch(0.9 0.06 152); }
.status--cancelled, .status--failed { background: oklch(0.92 0.05 25); }

@media (max-width: 860px) {
  .cart-layout, .checkout__grid { grid-template-columns: 1fr; }
  .order-addresses { grid-template-columns: 1fr; }
}

/* ===== Overflow hardening =====
   Imported book titles can be a single very long unbroken token
   (e.g. "GST-Margdarshak-by-KMS-Publication-..."). In a CSS grid, items
   default to min-width:auto, so such a token forces its track wider than the
   viewport and creates a horizontal scrollbar. Allow long words to wrap and
   let grid/flex children shrink. */
.book-grid > *,
.cat-grid > *,
.book { min-width: 0; }

.book__title,
.book__title a,
.book__cover-title,
.book__author,
.product__title,
.product__author,
.cat-tile,
.cart-table td a,
.summary-items li,
.section__lead,
.breadcrumb { overflow-wrap: anywhere; word-break: break-word; }

/* Media never forces width. */
img { max-width: 100%; height: auto; }

/* Final safety net: nothing should push the page wider than the viewport. */
html, body { overflow-x: hidden; }

/* ===== cat-nav: let the category bar wrap =====
   styles.css sets `.cat-nav ul { display:flex }` with no wrap; with the full
   category list (13+ items, some long) that forced a single row wider than the
   viewport → page-level horizontal scrollbar. Allow it to wrap to multiple
   rows with comfortable spacing. */
.cat-nav ul { flex-wrap: wrap; row-gap: 2px; column-gap: 4px; }
.cat-nav a { white-space: nowrap; }

/* ===== cat-nav: All Categories dropdown ===== */
.cat-nav ul { position: relative; }
.cat-nav__has-dropdown { position: relative; }
.cat-nav__all {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 14px 12px 0; font: inherit; font-size: var(--fs-sm, .9rem); font-weight: 600;
  color: var(--ink, oklch(0.245 0.012 50)); background: none; border: 0; cursor: pointer;
  white-space: nowrap;
}
.cat-nav__all:hover { color: var(--maroon, oklch(0.43 0.115 24)); }
.cat-nav__all svg { width: 18px; height: 18px; }
.cat-nav__caret { width: 14px !important; height: 14px !important; transition: transform .18s ease; }
.cat-nav__has-dropdown.is-open .cat-nav__caret { transform: rotate(180deg); }

.cat-dropdown {
  position: absolute; top: 100%; left: 0; z-index: 80;
  min-width: 260px; max-width: 320px;
  background: var(--surface, #fff); border: 1px solid var(--line, oklch(0.9 0.006 65));
  border-radius: 8px; box-shadow: 0 14px 40px oklch(0.2 0.02 50 / 0.14);
  padding: 6px; margin-top: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  max-height: 70vh; overflow-y: auto;
}
.cat-nav__has-dropdown:hover .cat-dropdown,
.cat-nav__has-dropdown.is-open .cat-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.cat-dropdown__list { display: block; columns: 2; column-gap: 4px; }
.cat-dropdown__list li { break-inside: avoid; }
.cat-dropdown__list a {
  display: block; padding: 8px 12px; border-radius: 5px;
  font-size: .85rem; font-weight: 500; color: var(--ink-soft, oklch(0.47 0.012 50));
  white-space: normal; overflow-wrap: anywhere;
}
.cat-dropdown__list a:hover { background: var(--paper, oklch(0.97 0.005 75)); color: var(--maroon, oklch(0.43 0.115 24)); }
.cat-dropdown__list a[aria-current="page"] { color: var(--maroon, oklch(0.43 0.115 24)); font-weight: 600; }

@media (max-width: 640px) {
  .cat-dropdown { min-width: 220px; }
  .cat-dropdown__list { columns: 1; }
}

/* ===== Catalogue: 4 books per row ===== */
.grid-books { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .grid-books { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .grid-books { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .grid-books { grid-template-columns: 1fr; } }

/* page-head spacing for the catalogue header block */
.page-head { padding: 24px 0 8px; }
.page-head .breadcrumb { margin-bottom: 6px; }

/* ===== Search button icon (ensure the magnifier is always visible) ===== */
.search button { background: var(--maroon, #8a1f1f); color: #fff; min-width: 46px; }
.search button svg { width: 18px; height: 18px; display: block; stroke: #fff; }

/* ===== Product card pricing ===== */
.book__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.book__price-now { font-weight: 700; font-size: 1.05rem; color: var(--ink, oklch(0.245 0.012 50)); }
.book__price-mrp { font-size: .9rem; color: var(--ink-soft, oklch(0.47 0.012 50)); text-decoration: line-through; }
.book__price-na  { font-size: .95rem; font-weight: 600; color: var(--ink-soft, oklch(0.47 0.012 50)); }
.badge--save {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: var(--green, oklch(0.5 0.085 152)); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .2em .5em; border-radius: 4px;
}
.product__price-off { color: var(--green, oklch(0.5 0.085 152)); font-weight: 700; font-size: .95rem; }

/* Wider container on large desktops — bigger cards (base stays 1240px) */
@media (min-width: 1440px) {
  :root { --wrap: 1400px; }
}

/* Catalogue pagination */
.pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px; margin: 36px 0 8px;
}
.pager__num, .pager__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line, oklch(0.9 0.006 65)); border-radius: 6px;
  font-size: .92rem; font-weight: 600; color: var(--ink, oklch(0.245 0.012 50));
  background: var(--surface, #fff); transition: border-color .18s, background .18s, color .18s;
}
.pager__num:hover, .pager__btn:hover {
  border-color: var(--maroon, oklch(0.43 0.115 24));
  color: var(--maroon, oklch(0.43 0.115 24)); text-decoration: none;
}
.pager__num.is-current {
  background: var(--maroon, oklch(0.43 0.115 24));
  border-color: var(--maroon, oklch(0.43 0.115 24)); color: #fff; cursor: default;
}
.pager__btn.is-disabled {
  opacity: .45; pointer-events: none;
}
.pager__gap { padding: 0 4px; color: var(--ink-soft, oklch(0.47 0.012 50)); }
@media (max-width: 560px) {
  .pager__num, .pager__btn { min-width: 36px; height: 36px; padding: 0 9px; font-size: .85rem; }
}

/* ===== Single product page ===== */
/* Prominent, full-width breadcrumb bar sitting on top of the product */
.product-crumb {
  background: oklch(0.97 0.01 75);
  border-bottom: 1px solid var(--line, oklch(0.9 0.006 65));
  padding: 16px 0;
}
.breadcrumb--lg {
  display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
  min-width: 0; margin: 0; font-size: 1rem;
}
.breadcrumb--lg span { margin: 0; }                     /* override base .breadcrumb span margins */
.breadcrumb--lg a { color: var(--maroon, oklch(0.43 0.115 24)); font-weight: 600; white-space: nowrap; flex: none; }
.breadcrumb--lg a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--ink-faint, oklch(0.6 0.01 60)); flex: none; }
.breadcrumb__current {                                   /* truncates when it can't fit */
  color: var(--ink, oklch(0.245 0.012 50)); font-weight: 600;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* product-page is a plain container (NOT the old styles.css .product grid) */
.product-page { display: block; }
/* images on the left, info + add-to-cart on the right */
.product__layout { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 48px; align-items: start; }
@media (max-width: 760px) {
  .product__layout { grid-template-columns: 1fr; gap: 28px; }
  .product__gallery { position: static; }
}

/* Zoomable main image (button-wrapped stage) */
.product__stage--zoom { position: relative; width: 100%; cursor: zoom-in; appearance: none; font: inherit; }
.product__zoom-hint {
  position: absolute; right: 12px; bottom: 12px;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.9); border: 1px solid var(--line, oklch(0.9 0.006 65));
  border-radius: 50%; color: var(--ink, oklch(0.245 0.012 50));
  opacity: 0; transition: opacity .15s; pointer-events: none;
}
.product__stage--zoom:hover .product__zoom-hint { opacity: 1; }
.product__zoom-hint svg { width: 20px; height: 20px; }

/* Spec/details table inside the tab */
.spec-table { border-collapse: collapse; width: 100%; max-width: 560px; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line, oklch(0.9 0.006 65)); vertical-align: top; }
.spec-table th { width: 160px; color: var(--ink-soft, oklch(0.47 0.012 50)); font-weight: 600; }
.product__tabs { margin-top: 40px; }

/* Related products */
.related { padding: 8px 0 48px; }
.related .section__title { font-size: 1.3rem; margin-bottom: 16px; }

/* Free-shipping progress bar (cart) */
.freeship {
  background: var(--surface, #fff); border: 1px solid var(--line, oklch(0.9 0.006 65));
  border-radius: 8px; padding: 14px 18px; margin-bottom: 20px;
}
.freeship__msg { margin: 0 0 10px; font-size: .95rem; color: var(--ink, oklch(0.245 0.012 50)); }
.freeship__icon { margin-right: 4px; }
.freeship__track {
  height: 8px; border-radius: 99px; overflow: hidden;
  background: oklch(0.92 0.008 75);
}
.freeship__fill {
  height: 100%; border-radius: 99px;
  background: var(--maroon, oklch(0.43 0.115 24));
  transition: width .4s ease;
}
.freeship--done { border-color: var(--green, oklch(0.5 0.085 152)); background: var(--green-tint, oklch(0.96 0.03 152)); }
.freeship--done .freeship__fill { background: var(--green, oklch(0.5 0.085 152)); }
/* compact variant inside the checkout summary */
.freeship--sm { padding: 12px 14px; margin-bottom: 16px; }
.freeship--sm .freeship__msg { font-size: .85rem; margin-bottom: 8px; }

/* ===== Contact page ===== */
.contact-grid { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; }
.contact-info h2, .contact-form-wrap h2 { font-family: "Source Serif 4", serif; font-size: 1.4rem; margin: 0 0 8px; }
.contact-info .muted { margin-bottom: 20px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list__ic {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: oklch(0.96 0.02 75); color: var(--maroon, oklch(0.43 0.115 24));
}
.contact-list__ic svg { width: 20px; height: 20px; }
.contact-list strong { display: block; margin-bottom: 2px; }
.contact-list p { margin: 0; color: var(--ink-soft, oklch(0.47 0.012 50)); font-size: .92rem; line-height: 1.5; }
.contact-list a { color: var(--maroon, oklch(0.43 0.115 24)); }

.contact-form-wrap {
  background: var(--surface, #fff); border: 1px solid var(--line, oklch(0.9 0.006 65));
  border-radius: 10px; padding: 26px 28px;
}
.form__textarea {
  display: block; width: 100%; margin-top: 6px; padding: .6em .75em;
  border: 1px solid var(--line, oklch(0.9 0.006 65)); border-radius: 4px; font: inherit; resize: vertical;
}
.field-error { display: block; color: var(--maroon, oklch(0.43 0.115 24)); font-size: .8rem; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,18,24,.88); padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(92vw, 900px); max-height: 88vh; object-fit: contain;
  border-radius: 6px; box-shadow: 0 12px 48px rgba(0,0,0,.5); background: #fff;
}
.lightbox__close {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,.25); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }
.lightbox__nav[hidden] { display: none; }
@media (max-width: 560px) {
  .lightbox { padding: 16px; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.8rem; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* Uploaded site logo in the header */
.brand--has-logo { gap: 0; }
.brand__logo { height: 48px; width: auto; max-width: 320px; display: block; }
@media (max-width: 560px) { .brand__logo { height: 38px; max-width: 210px; } }

/* Footer logo (uploaded) */
.footer-logo { display: inline-block; }
.footer-logo img { height: 52px; width: auto; max-width: 260px; display: block; }

/* ===== Hero banner slider ===== */
.hero-banner { padding-top: 18px; }
.hero-slider {
  position: relative; margin-inline: auto;
  /* Full content width; banner height follows the image's natural aspect ratio.
     Use ~3:1 banners (e.g. 2100×700) for a full-width, ~470px-tall, uncropped hero. */
  border-radius: 10px; overflow: hidden;
  background: var(--paper-deep, oklch(0.97 0.008 75));
}
.hero-slider__viewport { overflow: hidden; }
.hero-slider__track { display: flex; transition: transform .5s ease; will-change: transform; }
.hero-slide { min-width: 100%; }
.hero-slide__link { display: block; }
.hero-slide__img { display: block; width: 100%; height: auto; }  /* full image, no crop */

/* Prev / next arrows */
.hero-slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.8); color: var(--ink, #1f2733);
  font-size: 1.8rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: background .15s;
}
.hero-slider__nav:hover { background: #fff; }
.hero-slider__nav--prev { left: 16px; }
.hero-slider__nav--next { right: 16px; }

/* Dots */
.hero-slider__dots {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2;
  display: flex; gap: 8px; justify-content: center;
}
.hero-dot {
  width: 10px; height: 10px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.9); background: rgba(0,0,0,.25); transition: background .15s, transform .15s;
}
.hero-dot.is-active { background: #fff; transform: scale(1.25); }

@media (max-width: 640px) {
  .hero-slider__nav { width: 34px; height: 34px; font-size: 1.4rem; }
  .hero-slider__nav--prev { left: 8px; }
  .hero-slider__nav--next { right: 8px; }
}

/* ===== Search suggestions (typeahead) ===== */
.search { position: relative; }
.search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line, oklch(0.9 0.006 65));
  border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.14);
  max-height: 70vh; overflow-y: auto; padding: 6px;
}
.search-suggest[hidden] { display: none; }
.ss-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft, oklch(0.47 0.012 50)); padding: 8px 10px 4px; }
.ss-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 6px; color: var(--ink, oklch(0.245 0.012 50)); text-decoration: none;
}
.ss-item:hover, .ss-item.is-active { background: oklch(0.96 0.01 75); text-decoration: none; }
.ss-thumb { width: 34px; height: 44px; object-fit: cover; border-radius: 3px; flex: none; background: oklch(0.93 0.01 75); }
.ss-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.ss-price { font-weight: 700; font-size: .85rem; color: var(--maroon, oklch(0.43 0.115 24)); flex: none; }
.ss-item--cat { font-weight: 600; }
.ss-all { justify-content: center; font-weight: 600; color: var(--maroon, oklch(0.43 0.115 24)); border-top: 1px solid var(--line, oklch(0.9 0.006 65)); margin-top: 4px; border-radius: 0 0 6px 6px; }
.ss-empty { padding: 14px 10px; color: var(--ink-soft, oklch(0.47 0.012 50)); font-size: .9rem; text-align: center; }

/* Cash-on-Delivery via Amazon note (checkout summary) */
.cod-note {
  background: oklch(0.97 0.03 90); border: 1px solid oklch(0.86 0.07 85);
  border-radius: 8px; padding: 12px 14px; margin: 14px 0; font-size: .85rem;
}
.cod-note__head { margin: 0 0 4px; font-size: .95rem; color: var(--ink, oklch(0.245 0.012 50)); }
.cod-note__body { margin: 0 0 8px; color: var(--ink-soft, oklch(0.47 0.012 50)); }
.cod-note__list { margin: 0; padding-left: 2px; list-style: none; display: grid; gap: 6px; }
.cod-note__list a { color: var(--maroon, oklch(0.43 0.115 24)); font-weight: 600; overflow-wrap: anywhere; }

/* Razorpay payment page */
.pay-card { background: var(--surface, #fff); border: 1px solid var(--line, oklch(0.9 0.006 65)); border-radius: 10px; padding: 28px; text-align: center; }
.pay-amount { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0; padding: 14px 16px; background: var(--paper-deep, oklch(0.97 0.008 75)); border-radius: 8px; }
.pay-amount strong { font-size: 1.5rem; }
.pay-note { font-size: .8rem; margin-top: 12px; }
.pay-cancel { margin-top: 10px; font-size: .9rem; }

/* Checkout payment method box (in summary, above Place order) */
.pay-method { margin: 14px 0 12px; }
.pay-method__opt {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  padding: 12px 14px; border: 1px solid var(--maroon, oklch(0.43 0.115 24)); border-radius: 8px;
  background: oklch(0.98 0.012 24);
}
.pay-method__opt input { margin-top: 3px; }
.pay-method__opt strong { display: block; }
.pay-method__sub { display: block; font-size: .78rem; color: var(--ink-soft, oklch(0.47 0.012 50)); margin-top: 2px; }
.pay-method__note { font-size: .76rem; color: var(--ink-soft, oklch(0.47 0.012 50)); text-align: center; margin: 8px 0 0; }
