/* ==========================================================================
   SEVENDRIP EYEWEAR — OPTICAL ATELIER V2 DESIGN SYSTEM
   Warm architectural paper (#f6f5f0), Obsidian (#181818), Olive (#66725a).
   Completely independent layout architecture & component language.
   Preserves admin settings hooks, #addc & #buy PDP primary buttons, and dark mode.
   ========================================================================== */

:root {
  --sd-bg: var(--bg, #f6f5f0);
  --sd-surface: var(--surface, #ffffff);
  --sd-surface-2: var(--surface-2, #eeede7);
  --sd-ink: var(--ink, #1c1d1a);
  --sd-muted: var(--muted, #62645c);
  --sd-line: var(--line, #dfddd5);
  --sd-accent: var(--accent, #66725a);
  --sd-accent-deep: #485140;
  --sd-obsidian: #181818;
  --sd-serif: 'Cormorant Garamond', Georgia, serif;
  --sd-sans: 'DM Sans', 'Noto Sans Bengali', system-ui, sans-serif;
  --sd-card-bg: #f3f2ed;
  --sd-radius: 10px;
  --sd-radius-sm: 6px;
  --sd-gutter: clamp(12px, 3vw, 24px);
  --sd-touch-min: 44px;
}

:root[data-theme="dark"] {
  --sd-bg: #141614;
  --sd-surface: #1c1e1c;
  --sd-surface-2: #252825;
  --sd-ink: #eeede7;
  --sd-muted: #a6a79f;
  --sd-line: #313430;
  --sd-card-bg: #242624;
}

body {
  background: var(--sd-bg);
  color: var(--sd-ink);
  font-family: var(--sd-sans);
  letter-spacing: -.005em;
}

:focus-visible {
  outline: 2px solid var(--sd-accent);
  outline-offset: 2px;
}

/* ---------- 1. Slim Announcement Ticker ---------- */
.topstrip {
  background: #141614 !important;
  color: #f4f1ea !important;
  font-size: 11px !important;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.3;
  padding: 5px 12px !important;
  min-height: 26px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.topstrip .ts-msg {
  color: #f4f1ea !important;
  gap: 6px;
}

.topstrip .ts-msg .icon {
  width: 13px !important;
  height: 13px !important;
  color: #b7c6a7;
}

.topstrip b {
  color: #e8e9d2;
  font-weight: 700;
}

/* ---------- 2. Unified Atelier Header (Desktop Single-Row Architecture) ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 78;
  background: rgba(246, 245, 240, .97) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--sd-line) !important;
}

.hdr.sg-open {
  z-index: 86;
}

[data-theme="dark"] .hdr {
  background: rgba(20, 22, 20, .94) !important;
}

.hdr-row {
  height: 78px !important;
  gap: 24px !important;
  justify-content: space-between;
}

.hdr .logo {
  flex: none;
  margin-right: 4px;
}

.hdr .logo img {
  width: 148px !important;
  height: auto !important;
  max-height: 54px !important;
  object-fit: contain;
}

[data-theme="dark"] .hdr .logo img {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  filter: brightness(0) invert(.94);
}

/* Inline editorial nav links centered between logo and utilities */
.hdr .catnav.sd-inline-nav {
  background: transparent !important;
  border: 0 !important;
  color: var(--sd-ink);
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible !important;
  z-index: 2;
}

.hdr .catnav.sd-inline-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px !important;
  flex-wrap: nowrap;
  overflow: visible !important;
}

.hdr .catnav.sd-inline-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0 !important;
  font-size: 14px !important;
  font-weight: 500;
  letter-spacing: .005em;
  color: var(--sd-muted);
  position: relative;
  white-space: nowrap;
  transition: color .15s;
}

.hdr .catnav.sd-inline-nav a .icon {
  width: 15px;
  height: 15px;
}

.hdr .catnav.sd-inline-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background: var(--sd-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.hdr .catnav.sd-inline-nav a:hover,
.hdr .catnav.sd-inline-nav a.on {
  color: var(--sd-ink) !important;
  font-weight: 600;
}

.hdr .catnav.sd-inline-nav a:hover::after,
.hdr .catnav.sd-inline-nav a.on::after {
  transform: scaleX(1);
}

/* Streamlined Right Utility Cluster (Cohesive Pill Capsule + Balanced Icon/Label Strip + Cart CTA) */
.sd-hdr-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.hdr .sd-hdr-prefs {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 38px;
  border: 1px solid var(--sd-line) !important;
  border-radius: 999px;
  background: var(--sd-surface) !important;
  padding: 0 3px;
  flex: none;
}

.hdr .sd-hdr-prefs::after {
  display: none !important;
}

.hdr .pref-btn {
  height: 30px !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .03em;
  color: var(--sd-muted) !important;
  background: transparent !important;
  transition: background .15s, color .15s;
}

.hdr .pref-btn+.pref-btn {
  position: relative;
  margin-left: 4px;
  padding: 0 9px !important;
}

.hdr .pref-btn+.pref-btn::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: var(--sd-line);
}

.hdr .pref-btn:hover {
  color: var(--sd-ink) !important;
  background: var(--sd-surface-2) !important;
}

.hdr .pref-btn .icon {
  width: 15px;
  height: 15px;
}

.hdr-actions {
  gap: 4px !important;
  align-items: center;
}

.hdr-actions .hact {
  flex-direction: row !important;
  gap: 6px !important;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13.5px !important;
  font-weight: 500;
  color: var(--sd-ink) !important;
  border: 1px solid transparent;
  position: relative;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.hdr-actions .hact .icon {
  width: 19px;
  height: 19px;
  stroke-width: 1.75;
}

.hdr-actions .hact:hover {
  background: var(--sd-surface);
  color: var(--sd-accent) !important;
}

.hdr-actions .hact.sd-search-trig,
.hdr-actions .hact.sd-wish-link {
  width: 38px;
  padding: 0;
  justify-content: center;
}

.hdr-actions .hact.sd-search-trig[aria-expanded="true"] {
  background: var(--sd-surface);
  border-color: var(--sd-line);
  color: var(--sd-accent) !important;
}

.hdr-actions .hact.sd-wish-link .badge {
  position: absolute !important;
  top: 2px;
  right: 2px;
  min-width: 15px;
  height: 15px;
  border-radius: 999px !important;
  font-size: 9.5px;
  padding: 0 3px;
  background: var(--sd-accent);
  color: #fff;
  border: 1.5px solid var(--sd-bg);
}

.hdr-actions .hact.sd-wish-link .badge:empty,
.hdr-actions .hact.sd-wish-link .badge[data-wish-count="0"] {
  display: none;
}

/* Signature Cart Capsule (crisp white Shopping Cart SVG + rounded badge) */
.hdr .hdr-actions .hact.sd-bag-btn {
  background: var(--sd-obsidian);
  color: #fff !important;
  border-color: var(--sd-obsidian);
  height: 40px;
  padding: 0 15px;
  margin-left: 4px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px !important;
  gap: 7px !important;
}

.hdr .hdr-actions .hact.sd-bag-btn .icon,
.hdr .hdr-actions .hact.sd-bag-btn svg,
.hdr .hdr-actions .hact[data-open="cart"].sd-bag-btn .icon {
  width: 18px !important;
  height: 18px !important;
  color: #ffffff !important;
  stroke: #ffffff !important;
  stroke-width: 1.85 !important;
}

.hdr .hdr-actions .hact.sd-bag-btn:hover {
  background: var(--sd-accent);
  border-color: var(--sd-accent);
  color: #fff !important;
}

.hdr .hdr-actions .hact[data-open="cart"].sd-bag-btn .badge {
  position: static !important;
  border: 0 !important;
  box-shadow: none !important;
  min-width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, .24) !important;
  color: #fff !important;
}

[data-theme="dark"] .hdr .hdr-actions .hact.sd-bag-btn {
  background: #eeede7;
  color: #181818 !important;
  border-color: #eeede7;
}

[data-theme="dark"] .hdr .hdr-actions .hact.sd-bag-btn .icon,
[data-theme="dark"] .hdr .hdr-actions .hact.sd-bag-btn svg,
[data-theme="dark"] .hdr .hdr-actions .hact[data-open="cart"].sd-bag-btn .icon {
  color: #181818 !important;
  stroke: #181818 !important;
}

[data-theme="dark"] .hdr .hdr-actions .hact[data-open="cart"].sd-bag-btn .badge {
  background: #181818 !important;
  color: #eeede7 !important;
}

/* Header Spotlight Search Drop-down Panel (Desktop) */
.sd-search-bar {
  border-top: 1px solid var(--sd-line);
  background: var(--sd-surface);
  padding: 12px 0;
}

.sd-search-bar[hidden] {
  display: none !important;
}

.sd-search-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 680px !important;
}

.sd-search-inner .search.desk {
  flex: 1 1 auto !important;
  max-width: none !important;
  margin: 0 !important;
  display: block !important;
}

.hdr .search input {
  height: 40px !important;
  border-radius: 9px !important;
  border: 1px solid var(--sd-line) !important;
  background: var(--sd-bg) !important;
  padding: 0 42px 0 15px !important;
  font-size: 14px;
}

.hdr .search input:focus {
  border-color: var(--sd-accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sd-accent) 14%, transparent) !important;
}

.hdr .search button {
  top: 3px !important;
  right: 3px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: var(--sd-muted) !important;
}

.hdr .search button:hover {
  color: var(--sd-ink) !important;
}

.sd-search-close {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 8px;
  border: 1px solid var(--sd-line);
  background: transparent;
  color: var(--sd-muted);
  display: grid;
  place-items: center;
}

.sd-search-close:hover {
  color: var(--sd-ink);
  border-color: var(--sd-ink);
}

.hdr .suggest {
  top: 46px !important;
  border-radius: 10px !important;
  background: var(--sd-surface) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 1px solid var(--sd-line);
  box-shadow: 0 20px 44px -16px rgba(20, 22, 20, .25) !important;
  z-index: 84 !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1220px) and (min-width: 992px) {
  .hdr-row {
    gap: 12px !important;
  }

  .hdr .logo img {
    width: 124px !important;
  }

  .hdr .catnav.sd-inline-nav ul {
    gap: 14px !important;
  }

  .hdr .catnav.sd-inline-nav a {
    font-size: 13px !important;
  }

  .hdr-actions .sd-track-link span,
  .hdr-actions .sd-acct-btn span {
    display: none !important;
  }

  .hdr-actions .sd-track-link,
  .hdr-actions .sd-acct-btn {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
}

/* Mobile Header: Confident Menu | Prominent Centered Logo | Account + Cart (clean & balanced above slim ticker!) */
.hdr .msearch {
  display: none;
}

body.show-msearch .hdr .msearch {
  display: block;
}

@media (max-width: 991px) {
  .sd-search-bar {
    display: none !important;
  }

  .hdr .catnav.sd-inline-nav,
  .hdr .sd-hdr-prefs {
    display: none !important;
  }

  .hdr-row {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    height: 68px !important;
    gap: 8px !important;
    padding-inline: 14px;
  }

  .burger {
    justify-self: start;
    width: 42px !important;
    height: 42px !important;
  }

  .burger .icon {
    width: 24px !important;
    height: 24px !important;
  }

  .hdr .logo {
    justify-self: center;
    margin: 0 !important;
  }

  .hdr .logo img {
    width: 142px !important;
    max-height: 50px !important;
  }

  .sd-hdr-right {
    justify-self: end;
    gap: 0;
  }

  .hdr .hdr-actions {
    gap: 6px !important;
  }

  .hdr .hdr-actions .hact.hide-m {
    display: none !important;
  }

  .hdr .hdr-actions .hact {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    display: inline-grid;
    place-items: center;
  }

  .hdr .hdr-actions .hact .icon {
    width: 22px !important;
    height: 22px !important;
  }

  .hdr-actions .hact span:not(.hav) {
    display: none !important;
  }

  .hdr .hdr-actions .hact.sd-bag-btn {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--sd-ink) !important;
  }

  .hdr .hdr-actions .hact.sd-bag-btn .icon,
  .hdr .hdr-actions .hact.sd-bag-btn svg,
  .hdr .hdr-actions .hact[data-open="cart"].sd-bag-btn .icon {
    width: 22px !important;
    height: 22px !important;
    color: var(--sd-ink) !important;
    stroke: currentColor !important;
  }

  .hdr .hdr-actions .hact[data-open="cart"].sd-bag-btn .badge {
    position: absolute !important;
    top: 2px !important;
    right: 1px !important;
    min-width: 17px !important;
    height: 17px !important;
    font-size: 10px !important;
    line-height: 13px !important;
    padding: 0 4px !important;
    background: var(--sd-accent) !important;
    color: #fff !important;
    border: 2px solid var(--sd-bg) !important;
    border-radius: 999px !important;
  }

  .hdr .msearch {
    display: block;
    padding: 0 14px 10px !important;
  }

  body[data-page="product"]:not(.show-msearch) .hdr .msearch {
    display: none;
  }

  .msearch .search input {
    height: 40px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    -webkit-appearance: none;
    appearance: none;
  }
  .msearch .suggest {
    top: calc(100% + 4px) !important;
    max-height: min(50dvh, 360px) !important;
  }
}

/* Original Right-Edge Floating Cart Tab (restored per user request: right edge vertical dock) */
.float-cart {
  position: fixed !important;
  right: 0 !important;
  left: auto !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  min-width: 78px !important;
  padding: 0 !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  border-radius: 8px 0 0 8px !important;
  background: var(--sd-surface) !important;
  border: 1px solid var(--sd-line) !important;
  border-right: 0 !important;
  box-shadow: -6px 10px 28px -8px rgba(24, 24, 24, .22) !important;
}

.float-cart .fc-top {
  background: var(--sd-obsidian) !important;
  color: #fff !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 9px 10px 7px !important;
  border-radius: 0 !important;
  gap: 3px !important;
}

.float-cart .fc-top .icon {
  width: 18px;
  height: 18px;
  color: #fff;
}

.float-cart .fc-top>span {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.float-cart .fc-tot {
  color: var(--sd-ink) !important;
  background: var(--sd-surface) !important;
  padding: 6px 8px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .float-cart .fc-top {
  background: var(--sd-accent) !important;
}

[data-theme="dark"] .float-cart .fc-tot {
  background: var(--sd-surface) !important;
  color: var(--sd-ink) !important;
}

@media (max-width: 991px) {
  html body .float-cart:not(.x-off) {
    display: flex !important;
    min-width: 54px !important;
    width: 54px !important;
    top: 46% !important;
  }

  html body .float-cart .fc-top {
    padding: 7px 4px 5px !important;
  }

  html body .float-cart .fc-tot {
    font-size: 10.5px !important;
    padding: 5px 2px !important;
  }
}

/* Mobile Bottom App Dock (frosted obsidian bar with clean top active indicator) */
@media (max-width: 991px) {
  .bnav.bnav5 {
    background: rgba(20, 22, 20, .97) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top: 1px solid rgba(255, 255, 255, .12) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .18) !important;
  }

  .bnav.bnav5>a,
  .bnav.bnav5>button {
    position: relative;
    color: rgba(255, 255, 255, .66) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: .06em !important;
  }

  .bnav.bnav5>a.on {
    color: #ffffff !important;
  }

  .bnav.bnav5>a.on::before {
    content: '';
    position: absolute;
    top: 0;
    left: 26%;
    right: 26%;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: #a5b592;
  }

  .bnav.bnav5 .badge {
    background: var(--sd-accent) !important;
    color: #fff !important;
  }

  .fab {
    bottom: 76px !important;
    right: 14px !important;
  }

  .fab-main {
    width: 48px !important;
    height: 48px !important;
  }
}

/* ---------- 3. Editorial Eyebrow & Collection Section Harmony ---------- */
.page-head {
  padding: 20px 0 12px !important;
  border-bottom: 1px solid var(--sd-line);
  margin-bottom: 16px;
}

.page-head h1 {
  font-size: clamp(24px, 3vw, 34px) !important;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.sd-shop-head {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sd-shop-head-copy {
  display: grid;
  gap: 6px;
}

.sd-shop-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sd-pill-link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--sd-line);
  background: var(--sd-surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--sd-muted);
  transition: .15s;
}

.sd-pill-link:hover,
.sd-pill-link.on {
  background: var(--sd-obsidian);
  border-color: var(--sd-obsidian);
  color: #fff;
}

[data-theme="dark"] .sd-pill-link.on {
  background: #eeede7;
  border-color: #eeede7;
  color: #181818;
}

/* Carousel Arrows: Crisp monochrome atelier circles instead of bright Kidoria circles */
.carousel .arrow {
  width: 38px !important;
  height: 38px !important;
  background: var(--sd-surface) !important;
  color: var(--sd-ink) !important;
  border: 1px solid var(--sd-line);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .25) !important;
  top: 40% !important;
}

.carousel .arrow:hover {
  background: var(--sd-obsidian) !important;
  color: #fff !important;
  border-color: var(--sd-obsidian);
}

[data-theme="dark"] .carousel .arrow:hover {
  background: #eeede7 !important;
  color: #181818 !important;
}

.cdots span {
  border-color: var(--sd-line) !important;
  background: var(--sd-line);
  width: 7px !important;
  height: 7px !important;
}

.cdots span.on {
  border-color: var(--sd-accent) !important;
  background: var(--sd-accent) !important;
  width: 22px !important;
}

/* ---------- 4. Completely Redesigned Product Card System (Atelier Studio Card) ---------- */
html body .pcard {
  background: var(--sd-surface) !important;
  border: 1px solid var(--sd-line) !important;
  border-radius: 12px !important;
  padding: 10px !important;
  box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease !important;
}

html body .pcard:hover {
  border-color: color-mix(in srgb, var(--sd-accent) 45%, var(--sd-line)) !important;
  box-shadow: 0 16px 34px -22px rgba(24, 24, 24, .32) !important;
  transform: translateY(-2px) !important;
}

html body .track .pcard {
  width: 268px;
}

@media (min-width: 992px) {
  .sd-product-section .track>.pcard {
    width: calc((100% - 48px) / 4);
  }
}

/* Original 1:1 Square Product Proportions (preserves full eyewear height & silhouette) + Hover Angle Swap */
html body .pcard .thumb {
  position: relative;
  aspect-ratio: 1 / 1 !important;
  border-radius: 8px !important;
  background: var(--sd-card-bg) !important;
  border: 1px solid color-mix(in srgb, var(--sd-line) 65%, transparent);
  overflow: hidden;
  display: block;
}

html body .pcard .thumb img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1), opacity .35s ease !important;
}

html body .pcard .thumb img.img-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
}

@media (hover: hover) {
  html body .pcard:hover .thumb img.img-main {
    transform: scale(1.035);
  }

  html body .pcard:hover .thumb img.img-alt {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* Thumb Corner Badge Box: Top-Left Flag | Top-Right Olive Save % | Bottom-Right Heart */
.sd-thumb-box {
  position: relative;
}

html body .pcard .flag.best,
html body .pcard .flag.new,
html body .pcard .flag.soldout {
  top: 9px !important;
  left: 9px !important;
  right: auto !important;
  z-index: 3;
  border-radius: 5px !important;
  padding: 4px 8px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: none;
  line-height: 1.2 !important;
}

html body .pcard .flag.best {
  background: #181818 !important;
  color: #f7f6f2 !important;
}

html body .pcard .flag.new {
  background: var(--sd-accent) !important;
  color: #fff !important;
}

html body .pcard .flag.soldout {
  background: rgba(24, 24, 24, .82) !important;
  color: #fff !important;
}

.sd-save-mark {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--sd-accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  box-shadow: 0 3px 10px -2px rgba(72, 81, 64, .35);
}

html body .pcard .wish {
  top: auto !important;
  bottom: 9px !important;
  right: 9px !important;
  left: auto !important;
  z-index: 3;
  width: 32px !important;
  height: 32px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .94) !important;
  color: #202020;
  border: 1px solid rgba(24, 24, 24, .1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .09) !important;
  transition: transform .15s, background .15s, color .15s;
}

html body .pcard .wish:hover {
  transform: scale(1.08);
}

html body .pcard .wish.on {
  color: #181818 !important;
  background: #fff !important;
  border-color: #181818;
}

html body .pcard .wish.on .icon {
  fill: currentColor;
}

/* Card Body Info Ledger */
.sd-pc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 2px 4px;
  min-height: 16px;
}

.sd-pc-cat {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sd-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-pc-rate {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--sd-ink);
  flex: none;
}

.sd-pc-rate i {
  font-style: normal;
  color: #b58428;
}

html body .pcard h3 {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  line-height: 1.32 !important;
  margin: 0 2px 6px !important;
  min-height: 2.64em !important;
  color: var(--sd-ink) !important;
  letter-spacing: -.01em;
}

.sd-sw-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 2px 7px;
  min-height: 14px;
}

.sd-sw-row i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(24, 24, 24, .22);
  display: inline-block;
}

.sd-sw-row small {
  font-size: 11px;
  color: var(--sd-muted);
}

html body .pcard .price {
  margin: 0 2px 5px !important;
  gap: 6px !important;
  align-items: baseline !important;
  font-variant-numeric: tabular-nums;
}

html body .pcard .price b {
  font-size: 16.5px !important;
  font-weight: 700 !important;
  color: var(--sd-ink) !important;
}

html body .pcard .price s {
  font-size: 12.5px !important;
  color: var(--sd-muted) !important;
}

html body .pcard .price .savep {
  display: inline-flex !important;
  align-items: center;
  margin-left: auto;
  background: color-mix(in srgb, var(--sd-accent) 14%, transparent) !important;
  color: var(--sd-accent-deep) !important;
  border: 1px solid color-mix(in srgb, var(--sd-accent) 26%, transparent);
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 1px 7px !important;
  border-radius: 4px !important;
  white-space: nowrap;
}

[data-theme="dark"] html body .pcard .price .savep,
[data-theme="dark"] .pcard .price .savep {
  background: color-mix(in srgb, var(--sd-accent) 24%, transparent) !important;
  color: #d6e2c9 !important;
}

html body .pcard .stars,
html body .pcard.wide .stars {
  margin: 2px 2px 9px !important;
  color: #d97706 !important;
}

/* Bespoke Side-by-Side Split Action Bar inside Card Footer (zero 2-line wrapping) */
html body .pcard .cta {
  display: flex !important;
  align-items: stretch;
  gap: 6px;
  margin-top: auto !important;
  padding-top: 2px;
}

html body .pcard .cta .add:not(.buy2),
html body .pcard .cta .stepper {
  flex: 1 1 auto !important;
  min-width: 0;
  width: auto !important;
  height: 36px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

html body .pcard .cta .add:not(.buy2) {
  background: var(--sd-accent) !important;
  border: 1px solid var(--sd-accent) !important;
  color: #fff !important;
  padding: 0 8px !important;
  gap: 4px !important;
}

html body .pcard .cta .add:not(.buy2) .icon {
  width: 14px !important;
  height: 14px !important;
  flex: none;
}

html body .pcard .cta .add:not(.buy2):hover {
  background: var(--sd-accent-deep) !important;
  border-color: var(--sd-accent-deep) !important;
}

html body .pcard .cta .add.is-sold {
  background: var(--sd-surface-2) !important;
  border-color: var(--sd-line) !important;
  color: var(--sd-muted) !important;
  cursor: not-allowed;
}

html body .pcard .cta .add.buy2 {
  flex: 0 0 auto !important;
  width: auto !important;
  height: 36px !important;
  padding: 0 9px !important;
  border-radius: 7px !important;
  border: 1px solid var(--sd-line) !important;
  background: transparent !important;
  color: var(--sd-ink) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  gap: 4px !important;
}

html body .pcard .cta .add.buy2 .icon {
  width: 13px !important;
  height: 13px !important;
  flex: none;
}

html body .pcard .cta .add.buy2:hover {
  background: var(--sd-obsidian) !important;
  border-color: var(--sd-obsidian) !important;
  color: #fff !important;
}

[data-theme="dark"] html body .pcard .cta .add.buy2:hover {
  background: #eeede7 !important;
  color: #181818 !important;
}

@media (max-width: 640px) {
  html body .pcard {
    padding: 9px !important;
    border-radius: 11px !important;
  }

  html body .pcard .flag.best,
  html body .pcard .flag.new,
  html body .pcard .flag.soldout {
    top: 8px !important;
    left: 8px !important;
    font-size: 9.5px !important;
    padding: 3px 7px !important;
  }

  .sd-save-mark {
    top: 8px;
    right: 8px;
    font-size: 10px;
    padding: 3px 7px;
  }

  html body .pcard .wish {
    bottom: 8px !important;
    top: auto !important;
    right: 8px !important;
    width: 28px !important;
    height: 28px !important;
  }

  .sd-pc-meta {
    gap: 4px !important;
    margin: 7px 0 3px !important;
    min-height: 14px !important;
  }

  .sd-pc-cat {
    font-size: 9px !important;
    letter-spacing: .04em !important;
  }

  html body .pcard h3 {
    font-size: 12.5px !important;
    line-height: 1.28 !important;
    min-height: 2.56em !important;
    margin-bottom: 4px !important;
  }

  html body .pcard .price {
    margin-bottom: 8px !important;
    flex-wrap: wrap;
    justify-content: flex-start !important;
    gap: 4px 6px !important;
  }

  html body .pcard .price b {
    font-size: 15px !important;
  }

  html body .pcard .price .savep {
    display: inline-flex !important;
    margin-left: 0 !important;
    font-size: 10px !important;
    padding: 1px 6px !important;
  }

  html body .pcard .cta {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding-top: 2px;
  }

  html body .pcard .cta .add:not(.buy2),
  html body .pcard .cta .stepper {
    flex: none !important;
    width: 100% !important;
    height: 36px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 0 10px !important;
    gap: 6px !important;
  }

  html body .pcard .cta .add:not(.buy2) .icon {
    display: inline-flex !important;
    width: 14px !important;
    height: 14px !important;
  }

  html body .pcard .cta .stepper button {
    width: 32px !important;
    font-size: 15px;
  }

  html body .pcard .cta .add.buy2 {
    flex: none !important;
    width: 100% !important;
    height: 33px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    background: var(--sd-bg) !important;
    border: 1px solid color-mix(in srgb, var(--sd-ink) 20%, var(--sd-line)) !important;
    color: var(--sd-ink) !important;
    padding: 0 10px !important;
    gap: 5px !important;
  }

  html body .pcard .cta .add.buy2 .icon,
  html body .pcard .cta:has(.stepper) .add.buy2 .icon {
    display: inline-flex !important;
    width: 13px !important;
    height: 13px !important;
  }

  html body .pcard .cta:has(.stepper) .add.buy2 .bl {
    display: inline !important;
  }
}

/* ---------- 5. Shop Sidebar, Active Chips, Wishlist Bar & Empty States ---------- */
@media (min-width: 992px) {
  .shop {
    grid-template-columns: 248px minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  .shop #plist.grid.g4 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

@media (max-width: 991px) {
  html body .shop {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .sd-shop-head {
    padding: 12px 0 14px !important;
    gap: 10px !important;
  }

  .sd-shop-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    width: 100%;
    padding-bottom: 2px;
    gap: 7px !important;
  }

  .sd-shop-pills::-webkit-scrollbar {
    display: none;
  }

  .sd-pill-link {
    flex: none !important;
    white-space: nowrap !important;
    height: 32px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 768px) {
  .toolbar {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    margin-bottom: 10px !important;
  }

  .toolbar .fbtn {
    height: 34px !important;
    padding: 0 12px !important;
    font-size: 12.5px !important;
    border-radius: 8px !important;
    border-color: var(--sd-line) !important;
    background: var(--sd-bg) !important;
  }

  .toolbar .count {
    font-size: 12px !important;
    text-align: center;
    white-space: nowrap;
  }

  .toolbar > label {
    justify-self: end;
    margin: 0 !important;
  }

  .toolbar select {
    height: 34px !important;
    padding: 0 8px !important;
    font-size: 12.5px !important;
    max-width: 142px;
  }
}

.filters {
  gap: 12px !important;
}

.fbox {
  background: var(--sd-surface) !important;
  border: 1px solid var(--sd-line) !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  box-shadow: none !important;
}

.fbox h4 {
  font-size: 11.5px !important;
  letter-spacing: .1em !important;
  color: var(--sd-muted);
  border-bottom: 1px solid var(--sd-line) !important;
  padding-bottom: 8px !important;
}

.fbox h4::after {
  width: 24px !important;
  height: 2px !important;
  background: var(--sd-obsidian) !important;
}

[data-theme="dark"] .fbox h4::after {
  background: var(--sd-accent) !important;
}

.toolbar {
  background: var(--sd-surface) !important;
  border: 1px solid var(--sd-line);
  border-radius: 10px !important;
  padding: 10px 16px !important;
  box-shadow: none !important;
}

.toolbar select {
  border-radius: 7px !important;
  border-color: var(--sd-line) !important;
  font-size: 13.5px;
  font-weight: 500;
}

.sd-wish-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: var(--sd-surface);
  border: 1px solid var(--sd-line);
  border-radius: 12px;
}

.sd-wish-bar-meta b {
  display: block;
  font-size: 16px;
}

.sd-wish-bar-meta small {
  color: var(--sd-muted);
  font-size: 13px;
}

.sd-wish-bar-acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sd-wish-bar-acts .btn {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 8px;
}

.sd-empty-atelier {
  grid-column: 1 / -1;
  background: var(--sd-surface);
  border: 1px solid var(--sd-line);
  border-radius: 14px;
  padding: 52px 24px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.sd-empty-ic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sd-surface-2);
  color: var(--sd-accent);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.sd-empty-ic .icon {
  width: 26px;
  height: 26px;
}

.sd-empty-atelier h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.sd-empty-atelier p {
  margin: 0 0 10px;
  max-width: 380px;
  color: var(--sd-muted);
  font-size: 14px;
}

.sd-empty-acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.sd-empty-acts .btn {
  height: 40px;
  font-size: 13.5px;
  border-radius: 8px;
}

/* ---------- 6. Product Details Page (PRESERVES #addc & #buy Visuals!) ---------- */
html body .pbox {
  background: var(--sd-surface) !important;
  border: 1px solid var(--sd-line) !important;
  border-radius: 14px !important;
  padding: 26px !important;
  gap: 34px !important;
  box-shadow: none !important;
  grid-template-columns: 1.08fr .92fr !important;
}

@media (max-width: 991px) {
  html body .pbox {
    grid-template-columns: 1fr !important;
    padding: 14px !important;
    gap: 18px !important;
  }
}

/* Shopify-Style Full-Width Gallery + Horizontal Thumbnail Strip Beneath Main Stage */
.gallery.sd-shopify-gal {
  display: flex !important;
  flex-direction: column-reverse !important;
  gap: 12px !important;
  align-items: stretch !important;
  width: 100%;
  min-width: 0;
}
.sd-shopify-gal .mainimg {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 12px !important;
  border: 1px solid var(--sd-line) !important;
  background: var(--sd-card-bg) !important;
}
.sd-shopify-gal .mainimg img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
.sd-shopify-gal .thumb-rail {
  contain: none !important;
  min-height: auto !important;
  align-self: stretch !important;
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  order: 0 !important;
}
.sd-shopify-gal .thumbs {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
  width: 100%;
  padding: 2px;
}
.sd-shopify-gal .thumbs::-webkit-scrollbar { display: none; }
.sd-shopify-gal .thumbs button {
  flex: 0 0 68px !important;
  width: 68px !important;
  height: 68px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 8px !important;
  border: 1.5px solid var(--sd-line) !important;
  background: var(--sd-card-bg) !important;
  padding: 0;
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.sd-shopify-gal .thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sd-shopify-gal .thumbs button:hover { border-color: var(--sd-muted) !important; }
.sd-shopify-gal .thumbs button.on {
  border-color: var(--sd-accent) !important;
  box-shadow: 0 0 0 1px var(--sd-accent);
}
.sd-shopify-gal .thumb-scroll {
  display: none;
  flex: none;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50%;
  border: 1px solid var(--sd-line);
  background: var(--sd-surface);
  color: var(--sd-ink);
  place-items: center;
}
.sd-shopify-gal .thumb-rail.has-overflow .thumb-scroll { display: grid; }
.sd-shopify-gal .thumb-scroll[disabled] { opacity: .35; cursor: default; }
.sd-shopify-gal .thumb-scroll .icon,
.sd-shopify-gal .thumb-scroll[data-dir="-1"] .icon { width: 15px; height: 15px; transform: none !important; }
@media (max-width: 640px) {
  .sd-shopify-gal { gap: 9px !important; }
  .sd-shopify-gal .thumbs { gap: 8px !important; }
  .sd-shopify-gal .thumbs button { flex: 0 0 56px !important; width: 56px !important; height: 56px !important; border-radius: 7px !important; }
}

.sd-gal-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(24, 24, 24, .76);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.sd-gal-badge .icon {
  width: 13px;
  height: 13px;
}

/* Atelier PDP Header Meta (refined editorial hierarchy — NO delivery charges shown above CTA) */
.sd-pinfo-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.sd-pcat-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sd-accent);
  transition: color .15s;
}

.sd-pcat-link:hover {
  color: var(--sd-ink);
}

.sd-pmeta-sep {
  color: var(--sd-line);
  font-weight: 700;
}

.sd-psku {
  font-size: 11.5px;
  color: var(--sd-muted);
  font-family: ui-monospace, Consolas, monospace;
}

.sd-pstock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1f7a44;
  margin-left: auto;
}

.sd-pstock::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22a35a;
}

.sd-pstock.is-low {
  color: #b45309;
}

.sd-pstock.is-low::before {
  background: #d97706;
}

.sd-pstock.is-sold {
  color: #b42318;
}

.sd-pstock.is-sold::before {
  background: #b42318;
}

[data-theme="dark"] .sd-pstock {
  color: #86efac;
}

html body .pinfo h1 {
  font-size: clamp(23px, 2.5vw, 31px) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em !important;
  margin: 0 0 8px !important;
}

.sd-prate-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--sd-muted);
  margin-bottom: 12px;
}

.sd-prate-jump b {
  color: var(--sd-ink);
}

.sd-prate-jump i {
  font-style: normal;
  color: #b58428;
}

.sd-pprice-strip {
  padding: 2px 0 16px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--sd-line);
}

html body .pinfo .sd-pprice-strip .price {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  align-items: baseline !important;
}

html body .pinfo .sd-pprice-strip .price b {
  font-size: 30px !important;
  font-weight: 700 !important;
  letter-spacing: -.02em;
  color: var(--sd-ink) !important;
  font-variant-numeric: tabular-nums;
}

html body .pinfo .sd-pprice-strip .price s {
  font-size: 15px !important;
  color: var(--sd-muted) !important;
}

html body .pinfo .sd-pprice-strip .price .savep {
  background: color-mix(in srgb, var(--sd-accent) 16%, transparent) !important;
  color: var(--sd-accent-deep) !important;
  border: 1px solid color-mix(in srgb, var(--sd-accent) 30%, transparent);
  padding: 3px 10px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
}

[data-theme="dark"] html body .pinfo .sd-pprice-strip .price .savep {
  color: #d6e2c9 !important;
}

.sd-pdp-highlights {
  margin-top: 14px;
  border: 1px solid var(--sd-line);
  border-radius: 10px;
  background: var(--sd-bg);
  overflow: hidden;
}

.sd-pdp-hl {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 14px;
  font-size: 12.5px;
  line-height: 1.45;
}

.sd-pdp-hl+.sd-pdp-hl {
  border-top: 1px solid var(--sd-line);
}

.sd-pdp-hl.is-kit {
  background: color-mix(in srgb, var(--sd-accent) 6%, var(--sd-bg));
}

.sd-pdp-hl .icon {
  width: 17px;
  height: 17px;
  color: var(--sd-accent);
  margin-top: 2px;
  flex: none;
}

.sd-pdp-hl b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sd-ink);
}

.sd-pdp-hl span {
  color: var(--sd-muted);
}

.sd-pdp-hl em {
  font-style: normal;
  font-weight: 600;
  color: var(--sd-ink);
}

@media (max-width: 640px) {
  .sd-pprice-strip {
    padding-bottom: 10px;
    margin-bottom: 12px;
  }

  .sd-pdp-highlights {
    margin-top: 9px;
    border-radius: 8px;
  }

  .sd-pdp-hl {
    padding: 7px 10px;
    gap: 8px;
    font-size: 11.5px;
    line-height: 1.32;
  }

  .sd-pdp-hl .icon {
    width: 14px;
    height: 14px;
    margin-top: 1px;
  }

  .sd-pdp-hl b {
    display: inline;
    font-size: 11.5px;
    margin-right: 4px;
  }

  .sd-pdp-hl b::after {
    content: ': ';
  }
}

/* KEEP #addc and #buy styling intact (see style.css lines 2010-2019 & 3436)!
   Remove leftover Khelna Bari orange drop-shadow under #buy while preserving button styling */
html body .cta4 #addc,
html body .cta4 #buy {
  box-shadow: none !important;
}

html body .pinfo-trust .perks {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

html body .pinfo-trust .perks>div {
  background: var(--sd-bg) !important;
  border: 1px solid var(--sd-line) !important;
  border-radius: 10px !important;
  padding: 11px 13px !important;
  font-size: 12.5px !important;
  font-weight: 500;
  color: var(--sd-ink) !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
}

html body .pinfo-trust .perks>div .icon {
  width: 28px !important;
  height: 28px !important;
  padding: 6px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--sd-accent) 13%, var(--sd-surface));
  color: var(--sd-accent) !important;
  flex: none;
}

@media (max-width: 640px) {
  html body .pinfo-trust .perks {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

    html body .pinfo-trust .perks>div {
      padding: 8px 9px !important;
      gap: 7px;
      font-size: 11px !important;
      border-radius: 8px !important;
      line-height: 1.25;
    }

    html body .pinfo-trust .perks>div .icon {
      width: 22px !important;
      height: 22px !important;
      padding: 4px;
      border-radius: 6px;
    }
  }

  /* Redesigned Mobile Sticky Purchase Bar (.sticky-buy.sb2) + safe #fab lift */
  @media (max-width: 991px) {
    body.has-buybar .fab {
      bottom: 112px !important;
      right: 12px !important;
    }

    html body .sticky-buy.sb2 {
      background: var(--sd-surface) !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      border-top: 1px solid var(--sd-line) !important;
      border-radius: 16px 16px 0 0 !important;
      box-shadow: 0 -10px 30px -8px rgba(0, 0, 0, .14) !important;
      grid-template-columns: 48px minmax(0, 1fr) !important;
      column-gap: 10px !important;
      row-gap: 7px !important;
      padding: 9px 14px calc(10px + env(safe-area-inset-bottom)) !important;
    }

    .sticky-buy.sb2 .sb-img {
      width: 48px !important;
      height: 48px !important;
      aspect-ratio: 1 / 1;
      border-radius: 8px !important;
      border: 1px solid var(--sd-line);
      background: var(--sd-card-bg);
    }

    .sticky-buy.sb2 .sb-name {
      font-size: 13px !important;
      font-weight: 600 !important;
      color: var(--sd-ink) !important;
    }

    .sticky-buy.sb2 .sb-price {
      font-size: 15px !important;
      font-weight: 700 !important;
      color: var(--sd-ink) !important;
      font-variant-numeric: tabular-nums;
    }

    .sticky-buy.sb2 .sb-row {
      gap: 7px !important;
    }

    .sticky-buy.sb2 .sb-qty {
      height: 38px !important;
      border-radius: 8px !important;
      background: var(--sd-bg) !important;
      border: 1px solid var(--sd-line) !important;
    }

    .sticky-buy.sb2 .sb-qty button {
      width: 28px !important;
      font-size: 16px;
    }

    .sticky-buy.sb2 .sb-qty span {
      font-size: 13.5px !important;
      font-weight: 600;
    }

    html body .sticky-buy.sb2 .sb-buy {
      height: 38px !important;
      border-radius: 8px !important;
      background: var(--sd-obsidian) !important;
      color: #ffffff !important;
      font-size: 13.5px !important;
      font-weight: 600 !important;
      gap: 5px;
      box-shadow: none !important;
    }

    [data-theme="dark"] html body .sticky-buy.sb2 .sb-buy {
      background: #eeede7 !important;
      color: #181818 !important;
    }

    html body .sticky-buy.sb2 .sb-add {
      width: 44px !important;
      height: 38px !important;
      border-radius: 8px !important;
      background: var(--sd-accent) !important;
      color: #ffffff !important;
    }

    html body .sticky-buy.sb2 .sb-add .icon {
      width: 18px !important;
      height: 18px !important;
    }
  }

  /* Frequently Bought Together (clean studio row with original 1:1 framing) */
  .fbt3-panel {
    border: 1px solid var(--sd-line) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    padding: 20px 22px !important;
  }

  .fbt3-it {
    border-radius: 10px !important;
    border-color: var(--sd-line) !important;
    padding: 14px 10px !important;
  }

  .fbt3-it.on {
    border-color: var(--sd-accent) !important;
    background: color-mix(in srgb, var(--sd-accent) 7%, var(--sd-surface)) !important;
  }

  .fbt3-it img {
    width: 78px !important;
    height: 78px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px !important;
  }

  .fbt3-sum {
    border-radius: 10px !important;
    background: var(--sd-obsidian) !important;
  }

  [data-theme="dark"] .fbt3-sum {
    background: #252825 !important;
    border: 1px solid var(--sd-line);
  }

  /* Panels & Spec Grid inside Tabs */
  .panel {
    border: 1px solid var(--sd-line);
    border-radius: 14px !important;
    box-shadow: none !important;
  }

  .tabs button {
    font-size: 14px;
    font-weight: 600 !important;
    border-bottom-width: 2px !important;
  }

  .sd-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--sd-line);
    border-radius: 10px;
    overflow: hidden;
    margin: 12px 0;
  }

  .sd-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--sd-line);
    border-right: 1px solid var(--sd-line);
    background: var(--sd-surface);
  }

  .sd-spec-row:nth-child(2n) {
    border-right: 0;
  }

  .sd-spec-row:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .sd-spec-row span {
    color: var(--sd-muted);
  }

  .sd-spec-row b {
    color: var(--sd-ink);
    font-weight: 600;
    text-align: right;
  }

  @media (max-width: 640px) {
    .sd-specs-grid {
      grid-template-columns: 1fr;
    }

    .sd-spec-row {
      border-right: 0;
    }

    .sd-spec-row:nth-last-child(-n+2) {
      border-bottom: 1px solid var(--sd-line);
    }

    .sd-spec-row:last-child {
      border-bottom: 0;
    }
  }

  /* ---------- 7. Completely Redesigned Slide-Over Bag Drawer (#cart) ---------- */
  .drawer.sd-bag-drawer {
    width: min(440px, 94vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    background: var(--sd-surface) !important;
    border-left: 1px solid var(--sd-line);
    box-shadow: -24px 0 60px -20px rgba(0, 0, 0, .35) !important;
  }

  .sd-bag-drawer .drawer-head.sd-bag-head {
    background: var(--sd-obsidian) !important;
    color: #fff !important;
    padding: 18px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
  }

  [data-theme="dark"] .sd-bag-drawer .drawer-head.sd-bag-head {
    background: #202320 !important;
  }

  .sd-bag-htitle {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .sd-bag-htitle>.icon {
    width: 22px;
    height: 22px;
    color: #b7c6a7;
    flex: none;
  }

  .sd-bag-htitle h3 {
    margin: 0 !important;
    font-size: 16.5px !important;
    font-weight: 600 !important;
    color: #fff !important;
    letter-spacing: -.01em;
  }

  .sd-bag-htitle small {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, .64);
    margin-top: 1px;
  }

  .sd-bag-drawer .sd-bag-head .x {
    width: 34px;
    height: 34px;
    padding: 0 !important;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .06);
    transition: background .15s;
    flex: none;
  }

  .sd-bag-drawer .sd-bag-head .x:hover {
    background: rgba(255, 255, 255, .16);
  }

  .sd-bag-drawer .sd-bag-head .x .icon {
    width: 16px;
    height: 16px;
    display: block;
  }

  .sd-bag-drawer .drawer-body {
    padding: 16px 20px !important;
    background: var(--sd-bg);
  }

  .sd-ship-meter,
  .sd-ship-ok {
    background: var(--sd-surface) !important;
    border: 1px solid var(--sd-line) !important;
    border-radius: 10px !important;
    padding: 11px 14px !important;
    margin-bottom: 14px !important;
  }

  .sd-ship-ok {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
  }

  .sd-ship-ok .icon {
    width: 17px;
    height: 17px;
    color: var(--sd-accent);
  }

  .sd-ship-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12.5px;
    margin-bottom: 7px;
  }

  .sd-ship-row em {
    font-style: normal;
    font-weight: 700;
    color: var(--sd-accent);
    font-size: 12px;
  }

  .sd-ship-meter .bar {
    height: 6px;
    border-radius: 999px;
    background: var(--sd-surface-2) !important;
  }

  .sd-ship-meter .bar i {
    background: var(--sd-accent) !important;
    border-radius: 999px;
  }

  .sd-bag-list {
    display: grid;
    gap: 10px;
  }

  .citem.sd-bag-item {
    display: grid !important;
    grid-template-columns: 74px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 12px !important;
    border: 1px solid var(--sd-line) !important;
    border-radius: 12px !important;
    background: var(--sd-surface);
    align-items: center;
  }

  .sd-bag-thumb {
    display: block;
    width: 74px;
    height: 74px;
    border-radius: 8px;
    border: 1px solid var(--sd-line);
    background: var(--sd-card-bg);
    overflow: hidden;
  }

  .sd-bag-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 0 !important;
    border: 0 !important;
  }

  .sd-bag-info {
    display: grid;
    gap: 6px;
    min-width: 0;
  }

  .sd-bag-row1 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }

  .sd-bag-name h4 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--sd-ink);
  }

  .sd-bag-item .cvar {
    font-size: 11.5px;
    color: var(--sd-muted);
  }

  .sd-bag-rm {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    color: var(--sd-muted);
    display: grid;
    place-items: center;
    transition: background .15s, color .15s;
  }

  .sd-bag-rm:hover {
    background: var(--sd-surface-2);
    color: #b42318;
  }

  .sd-bag-rm .icon {
    width: 14px;
    height: 14px;
  }

  .sd-bag-row2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
  }

  .mini.sd-bag-mini {
    border: 1px solid var(--sd-line);
    border-radius: 7px;
    background: var(--sd-bg);
    height: 30px;
  }

  .sd-bag-mini button {
    width: 26px;
    height: 28px;
    font-size: 14px;
  }

  .sd-bag-mini span {
    min-width: 22px;
    font-size: 13px;
    font-weight: 600;
  }

  .sd-bag-lp {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-variant-numeric: tabular-nums;
  }

  .sd-bag-lp s {
    font-size: 12px;
    color: var(--sd-muted);
  }

  .sd-bag-lp b {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--sd-ink);
  }

  .sd-bag-empty {
    text-align: center;
    padding: 52px 18px;
    display: grid;
    justify-items: center;
    gap: 8px;
  }

  .sd-bag-empty-ic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--sd-surface);
    border: 1px solid var(--sd-line);
    display: grid;
    place-items: center;
    color: var(--sd-accent);
    margin-bottom: 4px;
  }

  .sd-bag-empty-ic .icon {
    width: 26px;
    height: 26px;
  }

  .sd-bag-empty h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
  }

  .sd-bag-empty p {
    margin: 0 0 10px;
    font-size: 13.5px;
    color: var(--sd-muted);
  }

  .sd-bag-drawer .drawer-foot {
    padding: 0 !important;
    gap: 0 !important;
    border-top: 1px solid var(--sd-line) !important;
    background: var(--sd-surface) !important;
  }

  .dr-up.sd-bag-up {
    background: var(--sd-surface-2) !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--sd-line) !important;
  }

  .sd-bag-up h4 {
    font-size: 13px !important;
    font-weight: 600;
    color: var(--sd-ink);
    margin: 0;
  }

  .sd-bag-up h4::after {
    display: none !important;
  }

  .dr-arrows button {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    -webkit-appearance: none;
    appearance: none;
    display: grid !important;
    place-items: center !important;
    background: var(--sd-surface) !important;
    color: var(--sd-ink) !important;
    border: 1px solid var(--sd-line) !important;
    flex: none;
  }
  .dr-arrows button .icon {
    width: 15px !important;
    height: 15px !important;
    display: block;
  }

  .dr-upc {
    flex: 0 0 228px !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    border-radius: 10px !important;
    border: 1px solid var(--sd-line);
    background: var(--sd-surface);
    padding: 8px !important;
    gap: 10px !important;
  }

  .dr-upc img {
    width: 58px !important;
    height: 58px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 7px !important;
    background: var(--sd-card-bg);
  }

  .dr-upc b {
    font-size: 12px !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.25;
  }

  .dr-upc button {
    background: var(--sd-obsidian) !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    font-weight: 600;
  }

  [data-theme="dark"] .dr-upc button {
    background: #eeede7 !important;
    color: #181818 !important;
  }

  .sd-bag-summary {
    padding: 12px 18px max(18px, calc(14px + env(safe-area-inset-bottom))) !important;
    display: grid;
    gap: 10px;
  }
  @media (max-width: 991px) {
    .sd-bag-drawer .drawer-head.sd-bag-head { padding: 14px 16px !important; }
    .sd-bag-drawer .drawer-body { padding: 12px 16px !important; }
    .dr-up.sd-bag-up { padding: 10px 16px !important; }
    .sd-bag-checkout { font-size: 13.5px !important; padding-inline: 12px !important; }
  }

  .sd-bag-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .sd-bag-sub>div span {
    font-size: 14px;
    font-weight: 600;
    color: var(--sd-ink);
  }

  .sd-bag-sub>div small {
    font-size: 12px;
    color: var(--sd-muted);
    font-weight: 400;
  }

  .sd-bag-note {
    display: block;
    margin-top: 2px;
    font-size: 11.5px !important;
  }

  .sd-bag-sub>b {
    font-size: 21px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--sd-ink);
  }

  .sd-bag-ctas {
    display: grid;
    gap: 8px;
  }

  .sd-bag-checkout {
    height: 46px !important;
    border-radius: 9px !important;
    font-weight: 600 !important;
    justify-content: center;
    gap: 8px;
  }

  .sd-bag-checkout .icon {
    width: 17px;
    height: 17px;
  }

  .sd-bag-wa {
    height: 40px !important;
    border-radius: 9px !important;
    background: transparent !important;
    border: 1px solid var(--sd-line) !important;
    color: var(--sd-ink) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    justify-content: center;
    gap: 7px;
  }

  .sd-bag-wa:hover {
    border-color: #1fa855 !important;
    color: #1fa855 !important;
  }

  .sd-bag-wa .icon {
    width: 16px;
    height: 16px;
    color: #1fa855;
  }

  /* ---------- 8. Split 2-Column Express Modal & Atelier Checkout + Track Order ---------- */
  .ck-modal {
    z-index: 125 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(14, 16, 14, .62) !important;
  }

  .ck.is-modal.sd-ck-modal {
    width: min(880px, 95vw) !important;
    max-height: min(92vh, 880px) !important;
    border-radius: 16px !important;
    border: 1px solid var(--sd-line);
    background: var(--sd-bg) !important;
    box-shadow: 0 36px 90px -20px rgba(0, 0, 0, .55) !important;
  }

  .ck.is-modal.sd-ck-modal::before {
    display: none !important;
  }

  .sd-ckm-head {
    background: var(--sd-obsidian) !important;
    color: #ffffff !important;
    padding: 16px 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
  }

  [data-theme="dark"] .sd-ckm-head {
    background: #202320 !important;
  }

  .sd-ckm-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #b7c6a7;
    margin-bottom: 2px;
  }

  .sd-ckm-head h3 {
    color: #ffffff !important;
    font-size: 19px !important;
    font-weight: 600 !important;
  }

  .sd-ckm-head small {
    color: rgba(255, 255, 255, .7) !important;
  }

  .sd-ckm-head .ck-x {
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #ffffff !important;
  }

  .sd-ckm-head .ck-x:hover {
    background: rgba(255, 255, 255, .18) !important;
  }

  .sd-ck-modal .ck-body.sd-ck-modal-grid {
    background: var(--sd-bg);
    padding: 18px 22px 22px !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .sd-ck-modal .ck-sec {
    min-width: 0;
    background: var(--sd-surface);
    border: 1px solid var(--sd-line) !important;
    border-radius: 12px;
    padding: 16px 18px !important;
  }

  .sd-ck-modal .ck-foot {
    background: var(--sd-surface) !important;
    border-top: 1px solid var(--sd-line) !important;
    padding: 14px 24px !important;
  }

  .sd-ck-modal .ck-order {
    background: var(--sd-accent) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
  }

  .sd-ck-modal .ck-order:hover {
    background: var(--sd-accent-deep) !important;
  }

  @media (min-width: 860px) {
    .sd-ck-modal .ck-body.sd-ck-modal-grid {
      grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
      gap: 16px 20px;
      align-items: start;
    }

    .sd-ck-modal .ck-free {
      grid-column: 1 / -1;
      grid-row: 1;
    }

    .sd-ck-modal .ck-sec-delivery {
      grid-column: 1;
      grid-row: 2 / span 2;
    }

    .sd-ck-modal .ck-sec-pay {
      grid-column: 1;
      grid-row: 4;
    }

    .sd-ck-modal .ck-sec-items {
      grid-column: 2;
      grid-row: 2;
    }

    .sd-ck-modal .ck-sec.ck-up {
      grid-column: 2;
      grid-row: 3;
    }

    .sd-ck-modal .ck-sec-sum {
      grid-column: 2;
      grid-row: 4;
    }
  }

  @media (max-width: 859px) {
    .ck-modal {
      padding: 12px !important;
      align-items: center !important;
      justify-content: center !important;
    }

    .ck.is-modal.sd-ck-modal {
      width: min(520px, calc(100vw - 24px)) !important;
      max-height: min(86dvh, 760px) !important;
      border-radius: 18px !important;
      box-shadow: 0 28px 70px -12px rgba(0, 0, 0, .62) !important;
    }

    .sd-ckm-head {
      padding: 12px 16px !important;
    }

    .sd-ckm-head h3 {
      font-size: 16.5px !important;
    }

    .sd-ck-modal .ck-body.sd-ck-modal-grid {
      padding: 12px !important;
      gap: 10px !important;
    }

    .sd-ck-modal .ck-sec {
      padding: 12px !important;
      border-radius: 10px !important;
    }

    .sd-ck-modal .ck-foot {
      padding: 11px 14px !important;
    }
  }

  .ck.is-page {
    max-width: 1080px !important;
    background: transparent !important;
    border: 0 !important;
  }

  .ck.is-page .ck-head {
    background: var(--sd-surface);
    border: 1px solid var(--sd-line);
    border-radius: 12px 12px 0 0;
    padding: 18px 24px !important;
  }

  .ck.is-page .ck-body {
    padding: 20px 0 0 !important;
    overflow: visible !important;
  }

  @media (min-width: 960px) {
    .ck.is-page .ck-body.sd-ck-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.22fr) minmax(0, .88fr);
      gap: 18px 24px;
      align-items: start;
    }

    .ck.is-page .ck-free {
      grid-column: 1 / -1;
      grid-row: 1;
    }

    .ck.is-page .ck-sec-delivery {
      grid-column: 1;
      grid-row: 2 / span 2;
    }

    .ck.is-page .ck-sec-pay {
      grid-column: 1;
      grid-row: 4;
    }

    .ck.is-page .ck-sec-items {
      grid-column: 2;
      grid-row: 2;
    }

    .ck.is-page .ck-sec.ck-up {
      grid-column: 2;
      grid-row: 3;
    }

    .ck.is-page .ck-sec-sum {
      grid-column: 2;
      grid-row: 4;
    }

    .ck.is-page .ck-sec {
      background: var(--sd-surface);
      border: 1px solid var(--sd-line);
      border-radius: 12px;
      padding: 20px 22px !important;
    }

    .ck.is-page .ck-foot {
      position: static !important;
      width: calc(41.9% - 10px);
      margin: 16px 0 0 auto;
      border: 1px solid var(--sd-line) !important;
      border-radius: 12px !important;
      padding: 16px 20px !important;
      background: var(--sd-surface);
    }
  }

  @media (max-width: 959px) {
    .ck.is-page .ck-body.sd-ck-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 14px;
    }

    .ck.is-page .ck-sec {
      min-width: 0;
      max-width: 100%;
      overflow: hidden;
      background: var(--sd-surface);
      border: 1px solid var(--sd-line);
      border-radius: 12px;
      padding: 16px !important;
    }

    .ck.is-page .ck-uptrack {
      max-width: 100%;
    }

    /* Fix V1 overlap: dock footer naturally at bottom of checkout page on mobile instead of sticky floating over fields */
    .ck.is-page .ck-foot {
      position: static !important;
      margin-top: 14px;
      border: 1px solid var(--sd-line) !important;
      border-radius: 12px !important;
      padding: 14px 16px !important;
    }
  }

  /* Clean Checkout 2-Column Zone Cards + Inputs + Seamless +88 Phone Field (zero "Outside Dha..." truncation!) */
  .ck-item img {
    aspect-ratio: 1 / 1;
    width: 62px !important;
    height: 62px !important;
    object-fit: cover;
    border-radius: 8px !important;
    background: var(--sd-card-bg);
  }

  .ck-areas {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .ck-chip {
    padding: 13px 14px !important;
    border-radius: 10px !important;
    border: 1.5px solid var(--sd-line) !important;
    background: var(--sd-bg) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
  }

  .ck-chip::after {
    display: none !important;
  }

  .ck-chip:has(input:checked) {
    border-color: var(--sd-accent) !important;
    background: color-mix(in srgb, var(--sd-accent) 9%, var(--sd-surface)) !important;
  }

  .ck-area-top {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .ck-rd {
    width: 16px;
    height: 16px;
    flex: none;
    border-radius: 50%;
    border: 1.5px solid var(--sd-muted);
    background: var(--sd-surface);
    transition: border-color .15s, border-width .15s;
  }

  .ck-chip:has(input:checked) .ck-rd {
    border: 5px solid var(--sd-accent);
  }

  .ck-area-top b {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--sd-ink) !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    padding: 0 !important;
    line-height: 1.25;
  }

  .ck-area-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding-left: 24px;
  }

  .ck-area-meta small {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: var(--sd-ink) !important;
    font-variant-numeric: tabular-nums;
  }

  .ck-area-meta em.ck-area-eta {
    font-style: normal;
    font-size: 11.5px;
    color: var(--sd-muted);
  }

  .ck-pay {
    border-radius: 10px !important;
  }

  .ck-inp {
    border-radius: 9px !important;
    border: 1px solid var(--sd-line) !important;
    background: var(--sd-bg) !important;
  }

  .ck-inp:focus {
    background: var(--sd-surface) !important;
    border-color: var(--sd-accent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--sd-accent) 14%, transparent);
  }

  .ck-phone {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
    border-radius: 9px;
    border: 1px solid var(--sd-line);
    background: var(--sd-bg);
    overflow: hidden;
  }

  .ck-phone:focus-within {
    border-color: var(--sd-accent);
    background: var(--sd-surface);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--sd-accent) 14%, transparent);
  }

  .ck-phone>span {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    background: var(--sd-surface-2);
    border-right: 1px solid var(--sd-line);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sd-muted);
  }

  .ck-phone .ck-inp {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .ck-h span {
    background: var(--sd-obsidian) !important;
    color: #fff !important;
    border-radius: 6px !important;
  }

  [data-theme="dark"] .ck-h span {
    background: var(--sd-accent) !important;
  }

  /* Track Order Redesign */
  .trk {
    max-width: 820px !important;
  }

  .trk-card {
    border-radius: 14px !important;
    box-shadow: none !important;
    border: 1px solid var(--sd-line) !important;
    padding: 26px !important;
  }

  .trk-ic {
    background: var(--sd-surface-2) !important;
    border: 1px solid var(--sd-line);
  }

  .trk-bar i {
    background: var(--sd-accent) !important;
  }

  .trk-steps li.now i {
    background: var(--sd-accent) !important;
  }

/* ---------- 9. Minimal Centered Atelier Auth Card (Simple, Fast & Clutter-Free) ---------- */
.aa-blob { display: none !important; }
.auth-wrap.sd-auth-simple,
.auth-wrap {
  display: block !important;
  grid-template-columns: 1fr !important;
  max-width: 480px !important;
  margin: 34px auto 24px !important;
  border-radius: 16px !important;
  border: 1px solid var(--sd-line) !important;
  background: var(--sd-surface) !important;
  box-shadow: 0 20px 50px -28px rgba(24, 24, 24, .18) !important;
  overflow: hidden;
}
.sd-auth-simple-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--sd-line);
}
.sd-auth-simple-top img {
  width: 96px;
  height: auto;
  object-fit: contain;
}
[data-theme="dark"] .sd-auth-simple-top img {
  filter: brightness(0) invert(.94);
}
.auth-card { padding: 28px 34px 30px !important; }
@media (max-width: 520px) {
  .auth-wrap.sd-auth-simple { margin-top: 20px !important; border-radius: 14px !important; }
  .auth-card { padding: 22px 20px 24px !important; }
}
.auth-tabs {
  background: transparent !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--sd-line);
  border-radius: 0 !important;
  gap: 22px;
  display: flex !important;
  justify-content: center;
}
.auth-tabs button {
  height: 40px !important;
  padding: 0 4px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-bottom: 2px solid transparent;
  font-weight: 600 !important;
  color: var(--sd-muted) !important;
}
.auth-tabs button.on {
  color: var(--sd-ink) !important;
  border-bottom-color: var(--sd-accent);
}

  .sd-forgot-trig {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--sd-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .sd-forgot-box {
    margin: 10px 0 4px;
    padding: 12px 14px;
    border-radius: 9px;
    border: 1px solid var(--sd-line);
    background: var(--sd-surface-2);
    font-size: 13px;
    color: var(--sd-muted);
    display: grid;
    gap: 8px;
  }

  .sd-forgot-box[hidden] {
    display: none !important;
  }

  .sd-forgot-box a {
    color: var(--sd-ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .acct-head {
    background: var(--sd-obsidian) !important;
    border-radius: 14px !important;
  }

  .acct-nav,
  .as,
  .acct-card,
  .ord {
    border: 1px solid var(--sd-line) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  .acct-nav a.on {
    background: var(--sd-surface-2) !important;
    color: var(--sd-ink) !important;
  }

  /* ---------- 10. Info Pages (Differentiated Editorial Layouts) ---------- */
  .ip-hero {
    background: var(--sd-surface) !important;
    color: var(--sd-ink) !important;
    border: 1px solid var(--sd-line);
    border-radius: 14px !important;
    padding: 28px 32px !important;
    margin-bottom: 24px !important;
  }

  .ip-hero::after {
    display: none !important;
  }

  .ip-ic {
    background: var(--sd-surface-2) !important;
    border: 1px solid var(--sd-line);
    color: var(--sd-accent) !important;
    border-radius: 10px !important;
  }

  .ip-hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sd-accent);
    margin-bottom: 4px;
  }

  .ip-hero h1 {
    font-size: clamp(24px, 3vw, 34px) !important;
    font-weight: 600;
    letter-spacing: -.025em;
    color: var(--sd-ink) !important;
  }

  .ip-hero p {
    color: var(--sd-muted) !important;
    opacity: 1 !important;
    font-size: 14.5px;
  }

  @media (min-width: 901px) {
    .ip-grid {
      grid-template-columns: 240px minmax(0, 1fr) !important;
      gap: 24px !important;
    }
  }

  @media (max-width: 900px) {
    html body .ip-grid {
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 14px !important;
    }

    .ip-hero {
      padding: 18px 16px !important;
      margin-bottom: 14px !important;
    }

    .ip-nav {
      position: static !important;
      display: flex !important;
      flex-wrap: nowrap !important;
      overflow-x: auto !important;
      scrollbar-width: none;
      gap: 6px !important;
      padding: 8px !important;
      max-width: 100%;
    }

    .ip-nav::-webkit-scrollbar {
      display: none;
    }

    .ip-nav a {
      flex: none !important;
      white-space: nowrap !important;
      padding: 8px 12px !important;
      font-size: 13px !important;
    }
  }

  .ip-nav {
    background: var(--sd-surface) !important;
    border: 1px solid var(--sd-line);
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  .ip-nav a {
    border-radius: 8px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
  }

  .ip-nav a.on {
    background: var(--sd-obsidian) !important;
    color: #fff !important;
    font-weight: 600 !important;
  }

  .ip-nav a.on .icon {
    color: #fff !important;
  }

  [data-theme="dark"] .ip-nav a.on {
    background: #eeede7 !important;
    color: #181818 !important;
  }

  [data-theme="dark"] .ip-nav a.on .icon {
    color: #181818 !important;
  }

  .ip-body {
    background: var(--sd-surface) !important;
    border: 1px solid var(--sd-line);
    border-radius: 14px !important;
    box-shadow: none !important;
    padding: 32px 36px !important;
  }

  .ip-body h2 {
    border-left: 0 !important;
    padding-left: 0 !important;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--sd-line);
    font-size: 19px !important;
    font-weight: 600;
  }

  .ip-body ul li::before {
    width: 6px !important;
    height: 6px !important;
    background: var(--sd-accent) !important;
  }

  /* Layout A: Legal / Policy Document Reader with Auto TOC */
  .sd-doc-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    align-items: start;
  }

  .sd-doc-toc {
    position: sticky;
    top: 96px;
    background: var(--sd-surface-2);
    border: 1px solid var(--sd-line);
    border-radius: 10px;
    padding: 14px;
    display: grid;
    gap: 6px;
  }

  .sd-doc-toc-h {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sd-muted);
    margin-bottom: 4px;
  }

  .sd-doc-toc a {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--sd-muted);
    text-decoration: none !important;
    padding: 4px 0;
    border-bottom: 1px dashed transparent;
  }

  .sd-doc-toc a:hover {
    color: var(--sd-ink);
    border-bottom-color: var(--sd-accent);
  }

  .sd-doc-print {
    margin-top: 8px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--sd-line);
    background: var(--sd-surface);
    font-size: 12px;
    font-weight: 600;
    color: var(--sd-ink);
  }

  @media (max-width: 1060px) {
    .sd-doc-wrap {
      grid-template-columns: 1fr;
    }

    .sd-doc-toc {
      position: static;
      order: -1;
    }
  }

  /* Layout B: Contact Atelier Split Studio */
  .sd-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: start;
  }

  .sd-contact-form {
    background: var(--sd-surface-2);
    border: 1px solid var(--sd-line);
    border-radius: 12px;
    padding: 22px;
    display: grid;
    gap: 12px;
  }

  .sd-contact-form h3 {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 600;
  }

  .sd-contact-form p {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--sd-muted);
  }

  .sd-contact-form input,
  .sd-contact-form select,
  .sd-contact-form textarea {
    width: 100%;
    border: 1px solid var(--sd-line);
    border-radius: 8px;
    background: var(--sd-surface);
    padding: 10px 12px;
    font-size: 14px;
  }

  .sd-contact-form textarea {
    min-height: 92px;
    resize: vertical;
  }

  .sd-cf-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .sd-cf-btns .btn {
    height: 42px;
    font-size: 13px;
    border-radius: 8px;
  }

  @media (max-width: 820px) {
    .sd-contact-grid {
      grid-template-columns: 1fr;
    }

    .ip-body {
      padding: 20px 18px !important;
    }
  }

  /* Layout C: Help Center Searchable FAQ Studio */
  .sd-faq-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sd-line);
  }

  .sd-faq-search {
    flex: 1 1 240px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--sd-line);
    background: var(--sd-surface-2);
    padding: 0 14px;
    font-size: 14px;
  }

  .sd-faq-toggle {
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--sd-line);
    background: var(--sd-surface);
    font-size: 12.5px;
    font-weight: 600;
  }

  .sd-faq-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .sd-faq-topics button {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--sd-line);
    font-size: 12px;
    font-weight: 500;
    color: var(--sd-muted);
  }

  .sd-faq-topics button.on {
    background: var(--sd-accent);
    border-color: var(--sd-accent);
    color: #fff;
  }

  .ip-body details {
    border-radius: 10px !important;
    border: 1px solid var(--sd-line) !important;
    background: var(--sd-surface) !important;
  }

  .ip-body details[open] {
    border-color: var(--sd-accent) !important;
    background: color-mix(in srgb, var(--sd-accent) 4%, var(--sd-surface)) !important;
    box-shadow: none !important;
  }

  @media (max-width: 820px) {
    .ip-body {
      padding: 18px 15px !important;
      max-width: 100%;
      overflow-x: hidden;
    }

    .sd-faq-controls {
      gap: 8px !important;
      padding-bottom: 12px !important;
      margin-bottom: 14px !important;
    }

    .sd-faq-search {
      flex: 1 1 100% !important;
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
      box-sizing: border-box;
      font-size: 13.5px !important;
    }

    .sd-faq-toggle {
      height: 34px !important;
      padding: 0 12px !important;
      font-size: 12px !important;
    }

    .sd-faq-topics {
      flex-wrap: nowrap !important;
      overflow-x: auto !important;
      scrollbar-width: none;
      padding-bottom: 2px;
    }

    .sd-faq-topics::-webkit-scrollbar {
      display: none;
    }

    .sd-faq-topics button {
      flex: none !important;
      white-space: nowrap !important;
    }
  }

  /* ---------- 11. Architectural Obsidian Footer (Zero Kidoria Accordion Clone + Clean Studio Lockup) ---------- */
  html body .to-top {
    display: none !important;
  }

  .ftr {
    margin-top: 64px !important;
    position: relative;
  }

  .ftr-main.sd-ftr-main {
    background: #141614 !important;
    background-image: none !important;
    padding: 60px 0 0 !important;
    color: #b7bdb1 !important;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .sd-ftr-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px 36px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .sd-ftr-id {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 24px;
  }

  .ftr-logo {
    display: inline-block;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    flex: none;
  }

  .ftr-logo img {
    filter: brightness(0) invert(.94);
    width: 146px !important;
    height: auto !important;
  }

  .sd-ftr-tagline {
    margin: 0;
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, .16);
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(244, 241, 234, .68);
    max-width: 44ch;
  }

  .sd-ftr-side {
    display: flex;
    align-items: center;
    flex: none;
  }

  .ftr-social.sd-ftr-channels {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .ftr-social.sd-ftr-channels a {
    width: 40px !important;
    height: 40px !important;
    display: inline-grid !important;
    place-items: center;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05);
    color: #f4f1ea;
    transition: background .15s, border-color .15s, transform .15s, color .15s;
  }

  .ftr-social.sd-ftr-channels a svg,
  .ftr-social.sd-ftr-channels a .icon {
    width: 17px !important;
    height: 17px !important;
    display: block;
    color: inherit !important;
  }

  .ftr-social.sd-ftr-channels a.is-wa {
    border-color: rgba(158, 177, 137, .45);
    background: rgba(102, 114, 90, .2);
    color: #d6e2c9;
  }

  .ftr-social.sd-ftr-channels a:hover {
    background: var(--sd-accent);
    border-color: var(--sd-accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: none !important;
  }

  @media (max-width: 720px) {
    .sd-ftr-tagline {
      padding-left: 0;
      border-left: 0;
    }
  }

  .sd-ftr-matrix {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding: 40px 0 36px;
  }

  .sd-ftr-col h4 {
    margin: 0 0 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(244, 241, 234, .92);
  }

  .sd-ftr-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
  }

  .sd-ftr-col li {
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(244, 241, 234, .68);
  }

  .sd-ftr-col a {
    color: rgba(244, 241, 234, .74);
    transition: color .15s;
  }

  .sd-ftr-col a:hover {
    color: #ffffff;
  }

  .sd-ftr-studio-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
  }

  .sd-ftr-studio-list .icon {
    width: 15px;
    height: 15px;
    color: #9eb189;
    margin-top: 3px;
    flex: none;
  }

  .ftr-trust.sd-ftr-trust {
    margin-top: 0 !important;
    padding: 20px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .1) !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between !important;
    gap: 12px 24px;
    font-size: 12.5px;
    color: rgba(244, 241, 234, .7);
  }

  .sd-ftr-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }

  .sd-ftr-trust .icon {
    width: 15px;
    height: 15px;
    color: #9eb189;
  }

  .ftr-bottom.sd-ftr-base {
    background: #0e100e !important;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 18px 0 !important;
    color: rgba(244, 241, 234, .56) !important;
  }

  .sd-ftr-base .copy {
    font-size: 12.5px;
  }

  .sd-ftr-pay {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .sd-ftr-pay span {
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
    color: rgba(244, 241, 234, .78);
    font-size: 11.5px;
    font-weight: 500;
  }

  @media (max-width: 960px) {
    .sd-ftr-top {
      grid-template-columns: 1fr;
      gap: 22px;
    }

    .sd-ftr-matrix {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 28px 24px;
    }

    .sd-ftr-matrix {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 26px 24px;
    }

    .sd-ftr-col.is-studio {
      grid-column: 1 / -1;
    }
  }

  @media (max-width: 640px) {
    .ftr {
      margin-top: 48px !important;
    }

    .ftr-main.sd-ftr-main {
      padding-top: 40px !important;
    }

    .sd-ftr-top {
      padding-bottom: 26px;
    }

    .sd-ftr-connect {
      padding: 16px;
    }

    .sd-ftr-matrix {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 24px 18px;
      padding: 28px 0;
    }

    .ftr-main.sd-ftr-main {
      padding-top: 38px !important;
    }

    .sd-ftr-bar {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 16px;
      padding-bottom: 24px;
    }

    .sd-ftr-id {
      justify-content: center;
      gap: 10px;
    }

    .ftr-logo img {
      width: 136px !important;
    }

    .sd-ftr-tagline {
      font-size: 13px;
    }

    .sd-ftr-matrix {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 22px 18px;
      padding: 24px 0;
    }

    .sd-ftr-col.is-studio {
      grid-column: 1 / -1;
      background: rgba(255, 255, 255, .04);
      border: 1px solid rgba(255, 255, 255, .09);
      border-radius: 12px;
      padding: 15px 16px;
    }

    .sd-ftr-col.is-studio h4 {
      margin-bottom: 10px;
    }

    .sd-ftr-col:last-child {
      grid-column: 1 / -1;
      border-top: 1px solid rgba(255, 255, 255, .08);
      padding-top: 18px;
    }

    .sd-ftr-col:last-child h4 {
      margin-bottom: 10px;
    }

    .sd-ftr-col:last-child ul {
      display: flex !important;
      flex-wrap: wrap;
      gap: 8px 18px;
    }

    .ftr-trust.sd-ftr-trust {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px 14px;
      padding: 16px 0 !important;
      font-size: 11.5px;
    }

    .ftr-bottom.sd-ftr-base {
      padding: 16px 0 84px !important;
    }

    .sd-ftr-base .wrap {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 10px;
    }

    .sd-ftr-pay {
      justify-content: center;
    }
  }

/* ---------- 12. Auxiliary Public PHP Pages (blog.php, collection.php, pay.php, review.php) ---------- */
.mc-art,
.mc-card,
.pay-card,
.rv-card {
  border: 1px solid var(--sd-line) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

/* ---------- 13. Top-Docked Atelier Notification Pill & Mobile Float Cart Clearance ---------- */
.toast.sd-toast {
  top: 88px !important;
  bottom: auto !important;
  right: 24px !important;
  left: auto !important;
  transform: translateY(-14px) !important;
  background: var(--sd-surface) !important;
  color: var(--sd-ink) !important;
  border: 1px solid var(--sd-line) !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  box-shadow: 0 14px 34px -10px rgba(24, 24, 24, .24) !important;
  pointer-events: auto;
  max-width: min(380px, calc(100vw - 28px));
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.toast.sd-toast.on {
  opacity: 1;
  transform: translateY(0) !important;
}
.sd-toast-ic {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sd-accent) 16%, transparent);
  color: var(--sd-accent);
  display: grid;
  place-items: center;
  flex: none;
}
.sd-toast-ic .icon { width: 14px !important; height: 14px !important; color: var(--sd-accent) !important; }
.sd-toast-tx { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-toast-act {
  flex: none;
  margin-left: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sd-obsidian);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.sd-toast-act:hover { background: var(--sd-accent); }
[data-theme="dark"] .sd-toast-act { background: #eeede7; color: #181818; }
@media (max-width: 991px) {
  .sd-hdr-right > .sd-search-trig { display: none !important; }
  .toast.sd-toast {
    top: 74px !important;
    right: auto !important;
    left: 50% !important;
    transform: translate(-50%, -14px) !important;
    padding: 7px 12px !important;
  }
  .toast.sd-toast.on { transform: translate(-50%, 0) !important; }
  html body .float-cart:not(.has) { display: none !important; }
  html body .float-cart.has:not(.x-off) { min-width: 64px !important; width: 64px !important; padding: 0 !important; display: flex !important; }
  html body .float-cart .fc-top { padding: 7px 4px 5px !important; }
  html body .float-cart .fc-tot { font-size: 9.5px !important; letter-spacing: -0.02em; padding: 5px 2px !important; font-variant-numeric: tabular-nums; }
}

/* Razor-slim micro announcement bar */
.topstrip {
  padding: 2px 10px !important;
  min-height: 22px !important;
  font-size: 11px !important;
}
.topstrip .ts-track { height: 22px !important; }
.topstrip .ts-msg { font-size: 11px !important; gap: 5px !important; }
.topstrip .ts-msg .icon { width: 12px !important; height: 12px !important; }

/* ---------- 14. Clean Editorial Hero Sale Card (Desktop only), Mobile Menu Drawer, & 360px PDP View ---------- */
.hdr-actions .hact.sd-search-trig,
.sd-hdr-right > .sd-search-trig {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--sd-ink);
  transition: background .15s, color .15s;
}
.sd-hdr-right > .sd-search-trig:hover,
.sd-hdr-right > .sd-search-trig[aria-expanded="true"] {
  background: var(--sd-surface);
  color: var(--sd-accent);
}
.sd-hdr-right > .sd-search-trig .icon { width: 19px; height: 19px; }

/* Restore cleaner classic Editorial Hero Sale Banner + hide on mobile */
html body .hero .sale-banner {
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(0deg, rgba(16, 16, 16, .88), rgba(16, 16, 16, .18) 64%), url("../img/sevendrip-sale.jpg") center/cover no-repeat, #202020 !important;
  box-shadow: none !important;
  transition: transform .25s ease;
}
html body .hero .sale-banner:hover { transform: translateY(-2px); }
html body .hero .sale-banner .sale-prefix { font-size: 13px !important; color: #d0d4c2 !important; }
html body .hero .sale-banner strong { font-family: var(--sd-serif) !important; font-weight: 500 !important; letter-spacing: -.03em !important; }
html body .hero .sale-banner .sale-link { border-top-color: rgba(255, 255, 255, .26) !important; font-weight: 600 !important; }
@media (max-width: 991px) {
  html body .hero > .side-banner,
  html body .hero .sale-banner {
    display: none !important;
  }
}

/* Redesigned Atelier Mobile Menu Drawer (#mmenu.sd-mmenu) */
html body .drawer.left.sd-mmenu {
  width: min(350px, 88vw) !important;
  background: var(--sd-bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-right: 1px solid var(--sd-line) !important;
  box-shadow: 24px 0 60px -20px rgba(0, 0, 0, .42) !important;
}
.sd-mmenu .sd-mm-head {
  background: var(--sd-obsidian) !important;
  color: #ffffff !important;
  padding: 14px 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
[data-theme="dark"] .sd-mmenu .sd-mm-head { background: #1c1f1c !important; }
.sd-mm-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.sd-mm-brand .logo { padding: 0; }
.sd-mm-brand .logo img {
  height: 30px !important;
  width: auto !important;
  filter: brightness(0) invert(1);
}
.sd-mm-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #b7c6a7;
}
.sd-mmenu .sd-mm-close {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .1) !important;
  border: 1px solid rgba(255, 255, 255, .2) !important;
  color: #ffffff !important;
  display: grid;
  place-items: center;
  flex: none;
}
.sd-mmenu .sd-mm-close .icon { width: 16px; height: 16px; }
.sd-mmenu .drawer-body.sd-mm-body {
  padding: 14px !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.sd-mm-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sd-surface);
  border: 1px solid var(--sd-line);
  border-radius: 10px;
  padding: 4px 6px 4px 12px;
}
.sd-mm-search .icon { width: 16px; height: 16px; color: var(--sd-muted); flex: none; }
.sd-mm-search input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--sd-ink);
  font-size: 13px;
  outline: none;
}
.sd-mm-search button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--sd-obsidian);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.sd-mm-search button .icon { width: 14px; height: 14px; color: #fff; }
.sd-mm-sec { display: grid; gap: 6px; }
.sd-mm-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--sd-muted);
  padding: 0 4px;
}
.sd-mm-list {
  display: grid;
  background: var(--sd-surface);
  border: 1px solid var(--sd-line);
  border-radius: 12px;
  overflow: hidden;
}
html body .mmenu .sd-mm-list a.sd-mm-link {
  display: grid !important;
  grid-template-columns: 32px 1fr 16px !important;
  align-items: center;
  gap: 11px !important;
  padding: 10px 12px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--sd-line) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--sd-ink) !important;
  transition: background .15s;
}
html body .mmenu .sd-mm-list a.sd-mm-link:last-child { border-bottom: 0 !important; }
html body .mmenu .sd-mm-list a.sd-mm-link:hover { background: var(--sd-bg); }
html body .mmenu a.sd-mm-link i.sd-mm-ic {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: var(--sd-card-bg) !important;
  color: var(--sd-ink) !important;
  display: grid !important;
  place-items: center !important;
  font-style: normal;
}
html body .mmenu a.sd-mm-link.is-offer i.sd-mm-ic {
  background: color-mix(in srgb, var(--sd-accent) 14%, var(--sd-surface)) !important;
  color: var(--sd-accent) !important;
}
html body .mmenu a.sd-mm-link i.sd-mm-ic .icon { width: 16px; height: 16px; }
.sd-mm-go { display: grid; place-items: center; color: var(--sd-muted); }
.sd-mm-go .icon { width: 14px; height: 14px; }
.sd-mm-prefs.mm-prefs {
  margin: 0 !important;
  padding: 11px 12px !important;
  border-radius: 12px !important;
  border: 1px solid var(--sd-line) !important;
  background: var(--sd-surface) !important;
  display: grid;
  gap: 8px;
}
.sd-mm-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 2px;
}
html body .mmenu .sd-mm-foot a.sd-mm-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px !important;
  border-radius: 10px !important;
  border: 1px solid var(--sd-line) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}
html body .mmenu .sd-mm-foot a.sd-mm-cta .icon { width: 15px; height: 15px; }
html body .mmenu .sd-mm-foot a.sd-mm-cta.is-wa {
  background: #1fa855 !important;
  border-color: #1fa855 !important;
  color: #ffffff !important;
}
html body .mmenu .sd-mm-foot a.sd-mm-cta.is-tel {
  background: var(--sd-obsidian) !important;
  border-color: var(--sd-obsidian) !important;
  color: #ffffff !important;
}

/* Mobile PDP Refinement + Compact 360x800 View */
@media (max-width: 640px) {
  .sd-pinfo-top { gap: 6px; margin-bottom: 5px; }
  .sd-pcat-link { font-size: 10px; letter-spacing: .12em; }
  .sd-pstock { font-size: 11px; }
  html body .pinfo h1 { font-size: 20px !important; line-height: 1.18 !important; margin-bottom: 4px !important; }
  .sd-pprice-strip { padding-bottom: 7px; margin-bottom: 8px; }
  html body .pinfo .sd-pprice-strip .price b { font-size: 23px !important; }
  .sd-pdp-highlights { margin-top: 6px; border-radius: 8px; }
  .sd-pdp-hl { padding: 5px 8px !important; gap: 6px; font-size: 10.5px !important; line-height: 1.25 !important; }
  .sd-pdp-hl .icon { width: 13px !important; height: 13px !important; margin-top: 1px; }
  .sd-pdp-hl b { font-size: 10.5px !important; }
}
@media (max-width: 480px) {
  body[data-page="product"] #crumb { margin: 4px 0 8px !important; font-size: 11px !important; }
  html body .pbox { padding: 8px !important; gap: 10px !important; border-radius: 12px !important; }
  .sd-shopify-gal { gap: 8px !important; width: 100% !important; max-width: 100% !important; }
  .sd-shopify-gal .mainimg { width: 100% !important; max-width: 100% !important; margin: 0 !important; border-radius: 10px !important; }
  .sd-shopify-gal .thumbs { gap: 7px !important; }
  .sd-shopify-gal .thumbs button { flex: 0 0 46px !important; width: 46px !important; height: 46px !important; }
  html body .pinfo h1 { font-size: 18.5px !important; }
  .sd-pdp-hl { font-size: 10.2px !important; letter-spacing: -.01em; padding: 4px 8px !important; }
  .qtyline { margin: 8px 0 6px !important; }
  .cta-grid.cta4 { gap: 7px !important; }
  body[data-page="product"] .fab { display: none !important; }
}

/* ---------- 15. Permanent Responsive Safety & 320px–2560px Cross-Viewport Guardrails ---------- */
.wrap {
  max-width: 1340px !important;
  padding-inline: var(--sd-gutter);
}
.grid > *, .shop > *, .ip-grid > *, .acct-layout > *, .sd-doc-wrap > *, .sd-contact-grid > * {
  min-width: 0;
}
.ip-body img, .mc-art img, .desc img, .desc video, .desc iframe {
  max-width: 100%;
  height: auto;
}
.ip-body table, .mc-art table, .desc table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.ip-body pre, .ip-body code, .desc pre, .desc code {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 374px) {
  .hdr-row { height: 60px !important; padding-inline: 10px !important; }
  .hdr .logo img { width: 120px !important; max-height: 44px !important; }
  .burger, .hdr .hdr-actions .hact { width: 36px !important; height: 36px !important; }
  .hdr .hdr-actions { gap: 4px !important; }
  .bnav a span { font-size: 9.5px !important; letter-spacing: .01em !important; }
  html body .pcard { padding: 7px !important; }
  html body .pcard h3 { font-size: 12px !important; }
  .sd-shop-head h1 { font-size: 20px !important; }
  .toolbar { gap: 6px !important; padding: 7px 8px !important; }
  .toolbar .fbtn { padding: 0 9px !important; font-size: 11.5px !important; }
  .toolbar select { max-width: 122px !important; font-size: 11.5px !important; }
  .sd-shopify-gal .mainimg { width: 100% !important; max-width: 100% !important; }
}

@media (max-width: 860px) {
  .acct-layout { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
  .acct-nav {
    position: static !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    gap: 6px !important;
    padding: 8px !important;
  }
  .acct-nav::-webkit-scrollbar { display: none; }
  .acct-nav a { flex: none !important; white-space: nowrap !important; }
  .acct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .mc-cards { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-height: 520px) {
  .ck.is-modal.sd-ck-modal { max-height: 92dvh !important; }
  .sd-ckm-head { padding: 9px 14px !important; }
  .sd-ckm-head h3 { font-size: 15px !important; }
  .sd-ckm-head small { display: none !important; }
  .sd-ck-modal .ck-foot { padding: 8px 12px !important; }
  .sd-ck-modal .ck-order { height: 42px !important; }
}


/* === Enterprise Safari/Apple Silicon 120Hz Compositor & Reduced-Motion Optimization === */
body.kb-lock .hdr,
body.kb-lock .bnav,
body.kb-lock .ftr-trust,
body.kb-lock .sticky-buy,
html.is-scrolling .ftr-trust {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.pcard, .drawer, .ck-box, .vp-box, .qco-card { contain: layout style; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  .drawer, .overlay, .ck-modal, .vp-modal { transition-duration: 0.01ms !important; }
}
