/**
 * Storefront — tighter match to optimize.com.bd (teal #007a6d, serif/sans hero, square categories, brown sale badges).
 * Reference: https://optimize.com.bd/
 */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=DM+Serif+Display:ital@0;1&family=Great+Vibes&display=swap");

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #5f6b7a;
  --navy: #142032;
  --primary: var(--navy);
  /* Teal — screenshot-adjacent */
  --teal: #007a6d;
  --teal-dark: #006158;
  --teal-strip: #005f54;
  --teal-soft: #e8f5f3;
  --sale-badge: #7a5c3e;
  --sale-badge-dark: #5c432c;
  --danger: #c41e1e;
  --border: #e2e4e8;
  --shadow: 0 14px 36px rgba(0, 90, 80, 0.12);
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-script: "Great Vibes", cursive;
  --font: var(--font-sans);
  --store-nav-dropdown-width: 320px;
  --store-nav-dropdown-speed: 170ms;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  padding-bottom: 76px;
  line-height: 1.5;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Sticky header: white meta + teal nav stay visible on scroll */
.store-header--sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

/* ---- Top meta bar (white) — logo / search / utilities ---- */
.store-meta {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.store-meta__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
}

/* Hamburger + mobile search — shown only in mobile breakpoint below */
.store-mobile-menu-btn,
.store-mobile-search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--teal);
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.28rem;
  cursor: pointer;
  border-radius: 0.35rem;
  flex-shrink: 0;
}

.store-mobile-menu-btn:active,
.store-mobile-search-btn:active {
  background: var(--teal-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy);
  text-transform: uppercase;
  font-size: 1.02rem;
  line-height: 1.15;
  text-decoration: none !important;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 122, 109, 0.35);
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: none;
}

.store-meta__search form {
  display: flex;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #f9fafb;
}

.store-meta__search input {
  flex: 1;
  border: 0;
  padding: 0.55rem 0.75rem;
  font: inherit;
  background: transparent;
  min-width: 0;
}

.store-meta__search button {
  border: 0;
  background: var(--teal);
  color: #fff;
  padding: 0 0.95rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.header-util {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: flex-end;
  font-size: 0.78rem;
  color: var(--muted);
  align-items: center;
}

.header-util strong {
  color: var(--primary);
}

.header-util a {
  font-weight: 700;
  color: var(--primary);
}

/* ---- Teal category nav (optimize-style strip + horizontal dropdown) ---- */
.store-nav {
  position: relative;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}

.store-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.35rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.15rem;
  align-items: stretch;
  justify-content: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Admin → Store menu: main nav strip alignment */
.store-nav__inner--center {
  justify-content: center;
}

.store-nav__inner--right {
  justify-content: flex-end;
}

.store-nav__inner--density-compact {
  font-size: 0.72rem;
}

.store-nav__inner--density-compact .store-nav__trigger,
.store-nav__inner--density-compact > a {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.store-nav__inner--density-spacious {
  font-size: 0.84rem;
}

.store-nav__inner--density-spacious .store-nav__trigger,
.store-nav__inner--density-spacious > a {
  padding-top: 0.54rem;
  padding-bottom: 0.54rem;
}

.store-nav__inner--spacing-tight {
  gap: 0.18rem 0.08rem;
}

.store-nav__inner--spacing-tight .store-nav__item:not(:last-child) {
  padding-right: 0.35rem;
  margin-right: 0.2rem;
}

.store-nav__inner--spacing-wide {
  gap: 0.42rem 0.34rem;
}

.store-nav__inner--spacing-wide .store-nav__item:not(:last-child) {
  padding-right: 0.7rem;
  margin-right: 0.55rem;
}

.store-nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.store-nav__item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  padding-right: 0.5rem;
  margin-right: 0.35rem;
}

.store-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: rgba(255, 255, 255, 0.95) !important;
  padding: 0.45rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  text-transform: uppercase;
}

.store-nav__caret {
  font-size: 0.62rem;
  opacity: 0.85;
}

.store-nav__trigger:hover,
.store-nav__inner > a:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.store-nav__inner > a {
  color: rgba(255, 255, 255, 0.92);
  padding: 0.45rem 0.55rem;
  border-radius: 4px;
  align-self: center;
  text-transform: uppercase;
}

.store-nav__empty {
  color: rgba(255, 255, 255, 0.88);
  padding: 0.45rem 0.55rem;
  border-radius: 4px;
  align-self: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Vertical flyout — optimize.com.bd style: white panel, dark caps text, hover gray + bronze text */
.store-nav__dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 12.5rem;
  width: min(100vw - 2rem, var(--store-nav-dropdown-width));
  max-width: min(100vw - 2rem, var(--store-nav-dropdown-width));
  background: #fff;
  padding: 0.35rem 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
  border: 1px solid var(--border);
  border-top: 0;
  z-index: 1100;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--store-nav-dropdown-speed) ease, transform var(--store-nav-dropdown-speed) ease;
}

.store-nav__item:hover .store-nav__dropdown,
.store-nav__item:focus-within .store-nav__dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.store-nav__subrow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.store-nav__sublink,
.store-nav__childmenu a {
  display: block;
  padding: 0.55rem 1rem;
  border-radius: 0;
  background: transparent;
  color: var(--text) !important;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
}

.store-nav__subitem + .store-nav__subitem {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.store-nav__sublink:hover,
.store-nav__sublink:focus-visible,
.store-nav__childmenu a:hover,
.store-nav__childmenu a:focus-visible {
  background: #eceff1;
  color: var(--sale-badge) !important;
  outline: none;
}

.store-nav__subitem {
  position: relative;
}

.store-nav__sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.store-nav__arrow {
  color: rgba(15, 23, 42, 0.7);
  font-size: 1rem;
  line-height: 1;
}

.store-nav__childmenu {
  display: none;
  position: absolute;
  left: 100%;
  top: -1px;
  min-width: 12.5rem;
  max-width: min(100vw - 2rem, 320px);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
  z-index: 1200;
}

.store-nav__subitem:hover .store-nav__childmenu,
.store-nav__subitem:focus-within .store-nav__childmenu {
  display: block;
}

.store-nav__sep {
  opacity: 0.35;
  user-select: none;
}

/* Category page taxonomy strip — distinct look from header nav */
.taxonomy-bar {
  max-width: 1200px;
  margin: 0 auto 0.95rem;
  padding: 0 1rem;
}

.taxonomy-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.7rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 48%),
    linear-gradient(120deg, #f5fbfc 0%, #eaf5f7 55%, #e6f0f2 100%);
  border: 1px solid #d3e4e8;
  box-shadow:
    0 8px 22px rgba(20, 63, 72, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(3px);
  position: relative;
  overflow: hidden;
}

.taxonomy-bar__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 78%);
  transform: translateX(-130%);
  animation: taxonomy-sheen 6.5s ease-in-out infinite;
  pointer-events: none;
}

.taxonomy-bar--child .taxonomy-bar__inner {
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 48%),
    linear-gradient(120deg, #eef4fd 0%, #e7eef8 55%, #e4eaf4 100%);
  border-color: #d4deef;
  box-shadow: 0 8px 22px rgba(39, 62, 104, 0.08);
}

.taxonomy-bar--clean .taxonomy-bar__inner,
.taxonomy-bar--clean.taxonomy-bar--child .taxonomy-bar__inner {
  background: #f8fafc;
  border-color: #e3e8ef;
  box-shadow: 0 3px 12px rgba(22, 34, 51, 0.06);
}

.taxonomy-bar--clean .taxonomy-chip {
  background: #fff;
  border-color: #dfe7f0;
  color: #2d3d52 !important;
  box-shadow: none;
}

.taxonomy-bar--bold .taxonomy-bar__inner {
  background: linear-gradient(120deg, #163f52 0%, #23566f 55%, #1e4f65 100%);
  border-color: #113646;
  box-shadow: 0 10px 24px rgba(16, 42, 54, 0.24);
}

.taxonomy-bar--bold.taxonomy-bar--child .taxonomy-bar__inner {
  background: linear-gradient(120deg, #2c3f67 0%, #3a4f7e 55%, #344a76 100%);
  border-color: #25365a;
}

.taxonomy-bar--bold .taxonomy-chip {
  background: rgba(255, 255, 255, 0.96);
}

.taxonomy-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.44rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #c7dfe4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 251, 252, 0.95) 100%);
  color: #22454c !important;
  text-decoration: none !important;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 2px 4px rgba(19, 60, 69, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
  animation: taxonomy-chip-in 0.4s cubic-bezier(.22,.61,.36,1) both;
  position: relative;
  z-index: 1;
}

.taxonomy-chip:hover,
.taxonomy-chip:focus-visible {
  transform: translateY(-2px) scale(1.015);
  background: linear-gradient(180deg, #fff 0%, #f4fbfd 100%);
  border-color: #94bcc7;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 16px rgba(23, 71, 82, 0.16);
  outline: none;
}

.taxonomy-chip--child {
  border-color: #c7d4ea;
  color: #2e3e63 !important;
}

.taxonomy-chip--child:hover,
.taxonomy-chip--child:focus-visible {
  border-color: #a8b8da;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 16px rgba(40, 60, 104, 0.17);
}

.taxonomy-chip.is-active {
  color: #fff !important;
  border-color: #2f7f8e;
  background: linear-gradient(135deg, #2d8292 0%, #236773 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 18px rgba(26, 88, 99, 0.28);
}

.taxonomy-chip--child.is-active {
  border-color: #4d6496;
  background: linear-gradient(135deg, #627ab0 0%, #445a89 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 18px rgba(49, 69, 116, 0.3);
}

.ui-chip-radius-square .taxonomy-chip {
  border-radius: 6px;
}

.ui-chip-radius-rounded .taxonomy-chip {
  border-radius: 12px;
}

.ui-chip-case-title .taxonomy-chip {
  text-transform: none;
  letter-spacing: 0.02em;
}

.taxonomy-bar__inner .taxonomy-chip:nth-child(2) { animation-delay: 0.03s; }
.taxonomy-bar__inner .taxonomy-chip:nth-child(3) { animation-delay: 0.06s; }
.taxonomy-bar__inner .taxonomy-chip:nth-child(4) { animation-delay: 0.09s; }
.taxonomy-bar__inner .taxonomy-chip:nth-child(5) { animation-delay: 0.12s; }
.taxonomy-bar__inner .taxonomy-chip:nth-child(6) { animation-delay: 0.15s; }
.taxonomy-bar__inner .taxonomy-chip:nth-child(7) { animation-delay: 0.18s; }
.taxonomy-bar__inner .taxonomy-chip:nth-child(8) { animation-delay: 0.21s; }
.taxonomy-bar__inner .taxonomy-chip:nth-child(9) { animation-delay: 0.24s; }
.taxonomy-bar__inner .taxonomy-chip:nth-child(10) { animation-delay: 0.27s; }

.taxonomy-bar--motion-none .taxonomy-bar__inner::before,
.taxonomy-bar--motion-none .taxonomy-chip {
  animation: none;
}

.taxonomy-bar--motion-subtle .taxonomy-bar__inner::before {
  animation-duration: 9s;
  opacity: 0.6;
}

.taxonomy-bar--motion-subtle .taxonomy-chip {
  animation-duration: 0.24s;
}

@keyframes taxonomy-chip-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes taxonomy-sheen {
  0%, 68%, 100% {
    transform: translateX(-130%);
  }
  82% {
    transform: translateX(130%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .taxonomy-bar__inner::before,
  .taxonomy-chip {
    animation: none;
  }
}

@media (max-width: 768px) {
  .taxonomy-bar {
    padding: 0 0.75rem;
  }

  .taxonomy-bar__inner {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 0.6rem;
    -webkit-overflow-scrolling: touch;
  }

  .taxonomy-chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .taxonomy-bar--mobile-wrap .taxonomy-bar__inner {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .taxonomy-bar--mobile-wrap .taxonomy-chip {
    flex: 0 1 auto;
    white-space: normal;
  }
}

/* ---- Hero slider (full-width, admin controlled) ---- */
.hero-optimize {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0.5rem;
  overflow: hidden;
}

.hero-optimize__viewport {
  position: relative;
  min-height: clamp(220px, 38vw, 468px);
  touch-action: pan-y;
  outline: none;
}

.hero-optimize__track {
  position: relative;
  min-height: inherit;
  overflow: hidden;
}

.hero-optimize__slide {
  position: relative;
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: inherit;
  text-decoration: none;
  color: inherit;
  background: #edf2f7;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(0);
  transition: opacity var(--hero-anim-ms, .42s) var(--hero-anim-ease, ease), transform var(--hero-anim-ms, .48s) var(--hero-anim-ease, ease);
  font-family: var(--hero-font-family, "DM Sans", sans-serif);
}

.hero-optimize__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-optimize__viewport--slide .hero-optimize__slide {
  transform: translateX(var(--hero-slide-offset, 80px));
}

.hero-optimize__viewport--slide .hero-optimize__slide.is-prev {
  transform: translateX(calc(var(--hero-slide-offset, 80px) * -1));
}

.hero-optimize__viewport--slide .hero-optimize__slide.is-active {
  transform: translateX(0);
}

.hero-optimize__viewport--zoom .hero-optimize__slide {
  transform: scale(var(--hero-zoom-scale, 1.07));
}

.hero-optimize__viewport--zoom .hero-optimize__slide.is-active {
  transform: scale(1);
}

.hero-optimize__slide img {
  width: 100%;
  height: clamp(220px, 38vw, 468px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-optimize__overlay {
  position: absolute;
  left: var(--hero-overlay-left, 6%);
  top: var(--hero-overlay-top, 50%);
  transform: translateY(-50%);
  z-index: 2;
  width: min(48vw, 560px);
  max-width: calc(100% - 1.5rem);
  padding: clamp(0.8rem, 2.3vw, 1.4rem) clamp(0.75rem, 2.5vw, 1.2rem);
  border-radius: 12px;
  --hero-overlay-alpha: 0.84;
  background: color-mix(in srgb, var(--hero-overlay-bg, #ffffff) calc(var(--hero-overlay-alpha, 0.84) * 100%), transparent);
  color: #12263a;
}

.hero-optimize__script {
  display: block;
  margin: 0 0 0.25rem;
  font-family: var(--font-script);
  font-size: clamp(1rem, calc(var(--hero-eyebrow-size, 46) * 1px), 5.5rem);
  line-height: 1;
  color: var(--hero-eyebrow-color, #1b3b63);
}

.hero-optimize__headline {
  display: block;
  margin: 0 0 0.42rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, calc(var(--hero-headline-size, 72) * 1px), 7rem);
  line-height: 1.08;
  color: var(--hero-headline-color, #0f2c53);
  font-weight: 600;
}

.hero-optimize__lede {
  display: block;
  margin: 0;
  font-size: clamp(0.72rem, calc(var(--hero-desc-size, 24) * 1px), 2.4rem);
  line-height: 1.42;
  color: var(--hero-desc-color, #303f52);
  max-width: 40ch;
}

.hero-optimize__badges {
  display: inline-flex;
  margin-top: 0.85rem;
  border: 1px solid rgba(101, 67, 33, 0.45);
  border-radius: 4px;
  overflow: hidden;
}

.hero-optimize__badge {
  padding: 0.38rem 0.72rem;
  font-weight: 800;
  font-size: clamp(0.6rem, calc(var(--hero-badge-size, 15) * 1px), 1.9rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero-optimize__badge--light {
  background: var(--hero-badge-primary-bg, #fff);
  color: var(--hero-badge-text, #1f2937);
}

.hero-optimize__badge--brown {
  background: var(--hero-badge-secondary-bg, #7d5a3a);
  color: var(--hero-cta-text, #fff);
}

.hero-optimize__cta {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.56rem 1.25rem;
  border-radius: 999px;
  background: var(--hero-cta-bg, #11335f);
  color: var(--hero-cta-text, #fff);
  font-size: clamp(0.68rem, calc(var(--hero-cta-size, 17) * 1px), 2.1rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero-optimize__strip {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 2;
  width: min(94vw, 860px);
  background: color-mix(in srgb, var(--hero-strip-bg, #fbf6ec) 90%, transparent);
  border: 2px solid rgba(176, 63, 63, 0.5);
  border-bottom: 0;
  text-align: center;
  color: var(--hero-strip-text, #13273f);
  font-size: clamp(0.66rem, calc(var(--hero-strip-size, 18) * 1px), 2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.34rem 0.8rem;
  border-radius: 8px 8px 0 0;
}

.hero-optimize__caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: min(86vw, 560px);
  background: rgba(7, 18, 33, 0.58);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 8px;
  padding: 0.42rem 0.65rem;
}

.hero-optimize__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.5);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.hero-optimize__nav:hover {
  background: rgba(17, 24, 39, 0.68);
}

.hero-optimize__nav--prev {
  left: 0.65rem;
}

.hero-optimize__nav--next {
  right: 0.65rem;
}

.hero-optimize__nav--toggle {
  right: 3.35rem;
  font-size: 1rem;
}

.hero-optimize__dots {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 0.35rem;
  z-index: 3;
}

.hero-optimize__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  padding: 0;
}

.hero-optimize__dot.is-active {
  background: #fff;
  width: 22px;
}

.hero-optimize__empty {
  min-height: clamp(220px, 38vw, 468px);
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: #334155;
  font-weight: 600;
  padding: 1rem;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-optimize__overlay {
    left: 0.65rem;
    right: 0.65rem;
    top: auto;
    bottom: 2.2rem;
    transform: none;
    width: auto;
    max-width: none;
    padding: 0.65rem 0.72rem;
  }

  .hero-optimize__strip {
    width: calc(100% - 1rem);
    font-size: 0.72rem;
    padding: 0.28rem 0.5rem;
  }

  .hero-optimize__dots {
    bottom: 2.05rem;
  }

  .hero-optimize__nav {
    width: 34px;
    height: 34px;
  }

  .hero-optimize__nav--toggle {
    right: 3.05rem;
  }
}

/* Breadcrumbs (category / detail) */
.breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1rem 0;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumbs a {
  font-weight: 600;
  color: var(--teal);
}

.breadcrumbs__sep {
  opacity: 0.5;
  user-select: none;
}

/* optimize.com.bd style: [home icon] CAT / SUB / CHILD — slashes, uppercase, dark text */
.breadcrumbs--optimize {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  gap: 0.45rem;
}

.breadcrumbs--optimize .breadcrumbs__home {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.breadcrumbs--optimize .breadcrumbs__home:hover,
.breadcrumbs--optimize .breadcrumbs__home:focus-visible {
  color: var(--teal);
  outline: none;
}

.breadcrumbs--optimize .breadcrumbs__home-icon {
  display: block;
  flex-shrink: 0;
}

.breadcrumbs--optimize a:not(.breadcrumbs__home) {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.breadcrumbs--optimize a:not(.breadcrumbs__home):hover,
.breadcrumbs--optimize a:not(.breadcrumbs__home):focus-visible {
  color: var(--teal);
  outline: none;
}

.breadcrumbs--optimize .breadcrumbs__current {
  color: var(--text);
  font-weight: 700;
}

.breadcrumbs--optimize .breadcrumbs__sep {
  opacity: 0.55;
  color: var(--text);
  font-weight: 600;
}

.breadcrumbs--divider-slash .breadcrumbs__sep::before { content: "/"; }
.breadcrumbs--divider-chevron .breadcrumbs__sep::before { content: "›"; }
.breadcrumbs--divider-dot .breadcrumbs__sep::before { content: "•"; }
.breadcrumbs .breadcrumbs__sep { font-size: 0; }
.breadcrumbs .breadcrumbs__sep::before { font-size: 0.82rem; }

.breadcrumbs--minimal {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #607487;
  gap: 0.3rem;
}

.breadcrumbs--minimal .breadcrumbs__home,
.breadcrumbs--minimal a:not(.breadcrumbs__home) {
  color: #4f6985;
}

.breadcrumbs--minimal .breadcrumbs__sep {
  opacity: 0.45;
  color: #7d92a4;
}

.breadcrumbs--minimal .breadcrumbs__current {
  color: #2f465c;
  font-weight: 600;
}

.breadcrumbs--premium {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1f3245;
  gap: 0.42rem;
}

.breadcrumbs--premium .breadcrumbs__home,
.breadcrumbs--premium a:not(.breadcrumbs__home),
.breadcrumbs--premium .breadcrumbs__current {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.12rem 0.52rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid #d8e3ee;
  background: linear-gradient(180deg, #fff 0%, #f4f8fc 100%);
  color: #2f485f;
}

.breadcrumbs--premium .breadcrumbs__home:hover,
.breadcrumbs--premium a:not(.breadcrumbs__home):hover,
.breadcrumbs--premium .breadcrumbs__home:focus-visible,
.breadcrumbs--premium a:not(.breadcrumbs__home):focus-visible {
  border-color: #bfd0e2;
  color: #1f4f71;
  box-shadow: 0 4px 12px rgba(33, 79, 113, 0.14);
  outline: none;
}

.breadcrumbs--premium .breadcrumbs__current {
  border-color: #3d8ca2;
  background: linear-gradient(135deg, #3d8ca2 0%, #2f6f81 100%);
  color: #fff;
}

.breadcrumbs--premium .breadcrumbs__sep {
  color: #8ba1b5;
  opacity: 0.75;
}

.ui-dd-shadow-soft .store-nav__dropdown,
.ui-dd-shadow-soft .store-nav__childmenu {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.11);
}

.ui-dd-shadow-medium .store-nav__dropdown,
.ui-dd-shadow-medium .store-nav__childmenu {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.ui-dd-shadow-strong .store-nav__dropdown,
.ui-dd-shadow-strong .store-nav__childmenu {
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.23);
}

.pager-wrap {
  margin-top: 1.25rem;
  text-align: center;
}

.pager-wrap .pagination {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pager-wrap .pagination a,
.pager-wrap .pagination span {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #fff;
  color: var(--text);
}

.pager-wrap .pagination .active a,
.pager-wrap .pagination .active span {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* ---- Sections with side rules (optimize “Categories” title) ---- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.35rem 1rem 2rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.section h2::before,
.section h2::after {
  content: "";
  flex: 1;
  max-width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section__empty {
  text-align: center;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

/* ---- Category tiles (square thumb + label band — ~6 columns desktop) ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 860px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
  }
}

@media (min-width: 1100px) {
  .cat-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.cat-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 122, 109, 0.14);
  border-color: #c5ebe4;
}

.cat-card__media {
  aspect-ratio: 1 / 1;
  width: 100%;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.35) 0%, transparent 48%),
    linear-gradient(145deg, hsl(var(--cat-hue, 160), 42%, 88%), hsl(var(--cat-hue, 160), 38%, 72%));
}

.cat-card__label {
  display: block;
  padding: 0.65rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  background: #fff;
  border-top: 1px solid var(--border);
}

/* ---- Home: Categories gallery (per-category product rows, optimize-style) ---- */
.section--home-categories .home-cat-block {
  margin-bottom: 2rem;
}

.section--home-categories .home-cat-block:last-child {
  margin-bottom: 0;
}

.home-cat-block__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .home-cat-block__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .home-cat-block__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (min-width: 1100px) {
  .home-cat-block__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* ---- PWA shell mobile density: html.pwa-shell set in layout (standalone / minimal-ui / fullscreen / iOS navigator.standalone) ----
   CSS-only (display-mode: standalone) misses Firefox PWAs, minimal-ui, and some iOS cases. */
@media (max-width: 520px) {
  html.pwa-shell .section--home-categories .home-cat-block__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  html.pwa-shell .section--category-products .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  html.pwa-shell .section--child-category-products .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.home-gallery-tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  text-align: center;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-gallery-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 122, 109, 0.12);
  border-color: #c5ebe4;
}

.home-gallery-tile__media {
  aspect-ratio: 3 / 4;
  background: #f1f5f9;
  overflow: hidden;
}

.home-gallery-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-gallery-tile__label {
  display: block;
  padding: 0.55rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  border-top: 1px solid var(--border);
  background: #fff;
}

/* ---- Sliders ---- */
.slider-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.slider-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.slider-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* ---- Product grid (optimize-style card: badge + prices + twin CTAs) ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.product-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card__link {
  display: block;
  padding: 0.65rem 0.75rem 0.5rem;
  color: inherit;
}

.product-card__link:hover {
  text-decoration: none;
}

.product-card__media {
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, #f3f4f6, #e8f7f5);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  background: linear-gradient(180deg, var(--sale-badge) 0%, var(--sale-badge-dark) 100%);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(90, 60, 40, 0.35);
}

.product-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #111;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.price-now {
  font-weight: 800;
  font-size: 1rem;
  color: #111;
}

.price-was {
  font-size: 0.85rem;
  color: var(--danger);
  text-decoration: line-through;
  font-weight: 600;
}

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.product-card__action-form {
  margin: 0;
  display: flex;
  align-items: stretch;
}

.product-card__action-form .btn-cart,
.product-card__action-form .btn-order {
  width: 100%;
}

.btn-cart,
.btn-order {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.btn-cart {
  background: var(--teal-soft);
  color: #0f172a;
}

.btn-order {
  background: var(--teal);
  color: #fff;
}

.btn-cart:hover,
.btn-order:hover {
  filter: brightness(0.97);
  text-decoration: none;
}

/* ---- Bottom nav (mobile — optimize PWA: outline icons + teal labels + cart badge) ---- */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #e8eaed;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 0.35rem 0.15rem calc(0.35rem + env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.04), 0 -8px 24px rgba(15, 23, 42, 0.06);
}

.bottom-nav__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.2rem 0.1rem;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav__link:active {
  opacity: 0.85;
}

.bottom-nav__icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
}

.bottom-nav__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.bottom-nav__label {
  display: block;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav__link.is-active {
  color: var(--teal);
  font-weight: 800;
}

.bottom-nav__link.is-active .bottom-nav__icon {
  stroke-width: 2;
}

.bottom-nav__badge {
  position: absolute;
  top: -2px;
  right: -6px;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: var(--teal);
  color: #fff !important;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ---- Footer (optimize teal block) ---- */
.store-footer {
  background: var(--teal-dark);
  color: rgba(255, 255, 255, 0.92);
  margin-top: 2rem;
  padding: 2rem 1rem 0;
  font-size: 0.85rem;
}

.store-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .store-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .store-footer__inner {
    grid-template-columns: 1fr;
  }
}

.store-footer h4 {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

.store-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-footer li {
  margin: 0.35rem 0;
}

.store-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.store-footer a:hover {
  color: #fff;
}

.store-footer__brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
}

.store-footer__pay {
  max-width: 1200px;
  margin: 1.25rem auto 0;
  padding: 0.65rem 1rem;
  background: #fff;
  border-radius: 8px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}

.store-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.store-footer__social a {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--teal-dark) !important;
  font-weight: 800;
  font-size: 0.78rem;
  border-radius: 4px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.store-footer__social a:hover {
  color: var(--navy) !important;
  filter: brightness(0.98);
}

.store-footer__legal {
  background: #031a18;
  margin: 1.25rem -1rem 0;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0));
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.58);
}

.store-footer__legal-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Floating contact strip + dismiss (optimize FABs) */
.store-fab {
  position: fixed;
  right: 0.65rem;
  bottom: 88px;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.store-fab.is-hidden {
  display: none;
}

.store-fab__dismiss {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  padding: 0;
  margin-bottom: 0.15rem;
  background: #e11d48;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4);
}

.store-fab__dismiss:hover {
  filter: brightness(1.08);
}

.store-fab a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.store-fab .messenger {
  background: #0866ff;
}

.store-fab .phone {
  background: var(--teal);
}

.store-fab .wa {
  background: #25d366;
}

@media (min-width: 900px) {
  .store-fab {
    bottom: 1.25rem;
  }
}

/* ---- Product detail page (PDP) ---- */
.is-hidden {
  display: none !important;
}

.pdp-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .pdp-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
  }
}

.pdp-gallery__main {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #f8fafc, #eef7f5);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: min(72vh, 640px);
}

.pdp-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.pdp-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  line-height: 0;
  opacity: 0.82;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.pdp-thumb:hover,
.pdp-thumb.is-active {
  opacity: 1;
  border-color: rgba(15, 118, 110, 0.55);
}

.pdp-thumb img {
  width: 4.25rem;
  height: 5.35rem;
  object-fit: cover;
  display: block;
}

.pdp-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pdp-sku {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.pdp-sku span {
  font-weight: 700;
  color: #334155;
}

.pdp-short {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pdp-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.pdp-price-now {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
}

.pdp-price-was {
  font-size: 1rem;
  font-weight: 700;
  color: var(--danger);
  text-decoration: line-through;
}

.pdp-stock-line {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.pdp-stock-line--ok {
  color: #15803d;
}

.pdp-stock-line--bad {
  color: #b91c1c;
}

.pdp-stock-ico {
  margin-right: 0.25rem;
}

.pdp-fieldset {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}

.pdp-legend {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.5rem;
  padding: 0;
}

.pdp-variant-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pdp-variant-chip {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.pdp-variant-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.pdp-variant-chip__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 4.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pdp-variant-chip:hover .pdp-variant-chip__body {
  border-color: rgba(15, 118, 110, 0.35);
}

.pdp-variant-chip:has(.pdp-variant-input:focus-visible) .pdp-variant-chip__body {
  outline: 2px solid rgba(15, 118, 110, 0.45);
  outline-offset: 2px;
}

.pdp-variant-chip.is-selected .pdp-variant-chip__body {
  border-color: rgba(15, 118, 110, 0.85);
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.2);
  background: rgba(15, 118, 110, 0.06);
}

.pdp-variant-chip--oos .pdp-variant-chip__body {
  opacity: 0.48;
  cursor: not-allowed;
}

.pdp-variant-chip__label {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
}

.pdp-variant-chip__meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.pdp-qty-label {
  display: block;
  margin-top: 0.25rem;
}

.pdp-qty-text {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.pdp-qty-input {
  width: 5.5rem;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
  font-weight: 700;
}

.pdp-page .product-actions {
  margin-top: 1rem;
}

.pdp-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.pdp-contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--teal-soft);
  color: #0f172a;
}

.pdp-contact__btn--wa {
  background: #25d366;
  color: #fff;
  border-color: #1fa855;
}

.pdp-aside {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.pdp-aside__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #334155;
}

.pdp-panels {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}

.pdp-details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.pdp-details__summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 800;
  font-size: 0.95rem;
  list-style: none;
  background: linear-gradient(180deg, #f1f5f9, #fff);
  color: #0f172a;
}

.pdp-details__summary::-webkit-details-marker {
  display: none;
}

.pdp-details__body {
  padding: 1rem 1.1rem 1.15rem;
  border-top: 1px solid var(--border);
}

.pdp-prose {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #334155;
}

.pdp-muted {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pdp-related {
  margin-top: 2.25rem;
}

.pdp-related__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

/* ---- Auth / misc ---- */
.page-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.form-grid label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font: inherit;
}

.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.product-actions .btn-primary {
  margin-top: 0;
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.btn-primary--cart {
  background: var(--teal-soft);
  color: var(--navy);
}

.btn-primary--order {
  background: var(--navy);
  color: #fff;
}

.btn-primary--cart:hover,
.btn-primary--order:hover {
  filter: brightness(0.97);
}

.btn-ghost {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--teal-soft);
  color: var(--primary);
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.flash {
  max-width: 1200px;
  margin: 0.65rem auto 0;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
}

.flash.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.flash.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1rem 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumb a {
  font-weight: 700;
  color: var(--teal-dark);
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

  .bottom-nav {
    display: none;
  }
}

/* ---- Mobile premium polish (optimize-style: minimal top bar + drawer nav) ---- */
@media (max-width: 899px) {
  .store-nav--desktop {
    display: none !important;
  }

  .store-mobile-menu-btn,
  .store-mobile-search-btn {
    display: inline-flex;
  }

  .store-meta__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.45rem 0.55rem;
    padding: 0.45rem 0.65rem 0.5rem;
    align-items: center;
  }

  .store-mobile-menu-btn {
    grid-column: 1;
    grid-row: 1;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    text-align: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.58rem;
    line-height: 1.2;
  }

  .header-util {
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-end;
    gap: 0.25rem 0.45rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .header-util > span {
    display: none;
  }

  .header-util > a[href*="auth/login"] {
    display: none;
  }

  .header-account {
    display: none;
  }

  .store-meta__search {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.2s ease, margin 0.2s ease;
    margin-top: 0;
  }

  #storeHeader.is-search-open .store-meta__search {
    max-height: 120px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 0.1rem;
  }

  .store-meta__search form {
    max-width: none;
    border-radius: 8px;
  }

  .store-meta__search input {
    padding: 0.56rem 0.68rem;
  }

  .store-meta__search button {
    padding: 0 0.8rem;
    min-width: 50px;
  }

  .store-mobile-search-btn.is-active {
    background: var(--teal-soft);
    color: var(--teal-dark);
  }

  .store-fab {
    right: 0.48rem;
    bottom: calc(78px + env(safe-area-inset-bottom));
    gap: 0.36rem;
  }

  .store-fab a {
    width: 38px;
    height: 38px;
    font-size: 0.98rem;
  }

  .store-fab__dismiss {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
  }

  .hero-optimize__strip-url {
    display: none;
  }
}

/* ---- Mobile drawer (categories — replaces teal strip) ---- */
.store-mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1280;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.store-mobile-menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.store-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  height: 100dvh;
  width: min(90vw, 360px);
  max-width: 100%;
  background: #fff;
  z-index: 1290;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.18);
  transform: translateX(-105%);
  transition: transform 0.26s ease;
  display: flex;
  flex-direction: column;
}

.store-mobile-menu.is-open {
  transform: translateX(0);
}

.store-mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--teal);
  color: #fff;
  flex-shrink: 0;
}

.store-mobile-menu__title {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.store-mobile-menu__close {
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 6px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.store-mobile-menu__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.store-mobile-menu__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 0 1.25rem;
}

.store-mobile-menu__empty {
  margin: 1rem 1rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Accordion list (optimize.com.bd) */
.store-mm {
  list-style: none;
  margin: 0;
  padding: 0;
}

.store-mm__item {
  border-bottom: 1px solid #eceef1;
}

.store-mm__leaf {
  display: block;
  padding: 1rem 1rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111 !important;
  text-decoration: none !important;
}

.store-mm__leaf:active {
  background: #f6f7f9;
}

.store-mm__details > summary {
  list-style: none;
}

.store-mm__details > summary::-webkit-details-marker {
  display: none;
}

.store-mm__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  -webkit-tap-highlight-color: transparent;
}

.store-mm__summary:active {
  background: #f6f7f9;
}

.store-mm__label {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.store-mm__chev {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  margin-top: -0.25rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.store-mm__details[open] > .store-mm__summary .store-mm__chev {
  transform: rotate(225deg);
  margin-top: 0.15rem;
}

.store-mm__sub-item .store-mm__details[open] > .store-mm__summary .store-mm__chev--nested {
  transform: rotate(225deg);
  margin-top: 0.12rem;
}

.store-mm__summary--nested {
  padding: 0.65rem 1rem 0.65rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0.02em;
}

.store-mm__chev--nested {
  width: 0.38rem;
  height: 0.38rem;
  border-width: 1.5px;
}

.store-mm__panel {
  padding: 0 0 0.5rem;
  background: #fafbfc;
  border-top: 1px solid #eceef1;
}

.store-mm__panel--nested {
  padding: 0 0 0.35rem 0.85rem;
  background: #fff;
  border-top: 0;
}

.store-mm__view-all {
  display: block;
  padding: 0.55rem 1rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal) !important;
}

.store-mm__view-all--nested {
  padding-left: 0.5rem;
  font-size: 0.7rem;
}

.store-mm__subs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.store-mm__sub-link {
  display: block;
  padding: 0.5rem 1rem 0.5rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text) !important;
  text-decoration: none !important;
}

.store-mm__sub-link:active {
  background: rgba(0, 122, 109, 0.06);
}

.store-mm__children {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem 0.5rem;
}

.store-mm__children a {
  display: block;
  padding: 0.38rem 0.5rem;
  font-size: 0.8rem;
  color: var(--muted) !important;
  text-decoration: none !important;
}

.store-mm__children a:active {
  color: var(--teal) !important;
}

body.has-mobile-menu {
  overflow: hidden;
}

@media (min-width: 900px) {
  .store-mobile-menu-backdrop,
  .store-mobile-menu {
    display: none !important;
  }
}

/* ---- Header cart + side drawer (optimize-style mini cart) ---- */
.header-cart-trig {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.header-cart-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.55rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: var(--teal);
  color: #fff !important;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.has-cart-drawer {
  overflow: hidden;
}

.cart-drawer__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cart-drawer__backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(100%, 400px);
  max-width: 100vw;
  background: #fff;
  z-index: 1210;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--teal);
  color: #fff;
}

.cart-drawer__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-drawer__close {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.cart-drawer__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.cart-drawer__empty {
  margin: 1rem 1rem 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-drawer__link {
  margin: 0 1rem 1rem;
  font-weight: 700;
}

.cart-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  flex: 1;
  overflow-y: auto;
}

.cart-drawer__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  gap: 0.4rem 0.5rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.cart-drawer__thumb {
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
  align-self: start;
}

.cart-drawer__thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  display: block;
}

.cart-drawer__item-main {
  min-width: 0;
}

.cart-drawer__name {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none !important;
}

a.cart-drawer__name:hover {
  color: var(--teal-dark);
}

.cart-drawer__meta {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.cart-drawer__prices {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.cart-drawer__prices strong {
  color: var(--text);
  font-size: 0.88rem;
}

.cart-drawer__qty select {
  font: inherit;
  padding: 0.25rem 0.35rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.cart-drawer__remove {
  margin: 0;
}

.cart-drawer__remove button {
  border: none;
  background: transparent;
  color: var(--danger);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
}

.cart-drawer__footer {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

.cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
  margin-bottom: 0.65rem;
}

.cart-drawer__subtotal strong {
  font-size: 1.05rem;
}

.cart-drawer__cta {
  display: block;
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  margin-bottom: 0.45rem;
}

.cart-drawer__cta--primary {
  background: var(--navy);
  color: #fff !important;
}

.cart-drawer__cta--ghost {
  background: var(--teal-soft);
  color: var(--navy) !important;
}

/* Account area */
.header-account {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-account__logout {
  display: inline;
  margin: 0;
}

.header-account__logout-btn {
  background: transparent;
  border: none;
  color: var(--teal);
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.account-shell .account-nav {
  display: grid;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  max-width: 420px;
}

.account-nav__link {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  text-decoration: none !important;
}

.account-nav__link:hover {
  border-color: var(--teal);
}

.account-nav__link--ghost {
  background: var(--teal-soft);
  border-color: transparent;
}

.account-order-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.account-order-list__item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.account-order-list__item .meta {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.account-order-list__item .pill {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: var(--teal-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .account-order-list__item {
    grid-template-columns: 1fr;
  }
}

/* ---- Cart page + checkout (full-width store flow, matches header/footer language) ---- */
.store-flow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem 2.5rem;
}

.store-flow__breadcrumb {
  padding-left: 0;
  padding-right: 0;
}

.store-flow__head {
  margin: 0.5rem 0 1.25rem;
}

.store-flow__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.store-flow__lede {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.55;
}

.store-panel--empty {
  text-align: center;
  padding: 2.5rem 1.25rem;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fafcfb 0%, #fff 100%);
}

.store-panel__empty-text {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.25rem 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cart-table thead th {
  text-align: left;
  padding: 0.65rem 0.85rem;
  background: var(--teal-soft);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.cart-table__row td {
  padding: 0.85rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.cart-table__row:last-child td {
  border-bottom: none;
}

.cart-table__product-inner {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  min-width: 0;
}

.cart-table__thumb {
  flex-shrink: 0;
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
}

.cart-table__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-table__product-text {
  min-width: 0;
}

.cart-table__name {
  display: block;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none !important;
  font-size: 0.95rem;
  line-height: 1.35;
}

.cart-table__name:hover {
  color: var(--teal-dark);
}

.cart-table__name--plain {
  font-weight: 800;
}

.cart-table__variant {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.cart-table__unit {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.cart-table__qty-select {
  font: inherit;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  min-width: 3.5rem;
}

.cart-table__price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cart-table__remove-btn {
  border: none;
  background: transparent;
  color: var(--danger);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}

.cart-table__remove-btn:hover {
  background: #fef2f2;
}

.cart-summary-card {
  position: sticky;
  top: calc(0.5rem + 80px);
  padding: 1.1rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(165deg, #fff 0%, var(--teal-soft) 120%);
  box-shadow: var(--shadow);
}

.cart-summary-card__title {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.cart-summary-card__lines {
  margin: 0;
}

.cart-summary-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.95rem;
}

.cart-summary-card__row dd {
  margin: 0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.cart-summary-card__hint {
  margin: 0.65rem 0 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.cart-summary-card__cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0 !important;
  padding: 0.65rem 1rem;
  box-sizing: border-box;
}

.cart-summary-card__link {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem 2rem;
  align-items: start;
}

@media (max-width: 960px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary-card {
    position: static;
  }
}

.checkout-fieldset {
  margin: 0 0 1.15rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.checkout-fieldset__legend {
  padding: 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.checkout-fieldset__hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-label {
  display: block;
  margin-top: 0.75rem;
}

.checkout-label:first-of-type {
  margin-top: 0.35rem;
}

.checkout-label__text {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.checkout-label input,
.checkout-label select {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font: inherit;
}

.checkout-charges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.35rem 0.75rem;
}

.checkout-quote-row {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.checkout-quote-msg {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
  min-width: 140px;
}

.checkout-quote-msg.is-ok {
  color: #065f46;
  font-weight: 600;
}

.checkout-quote-msg.is-error {
  color: var(--danger);
  font-weight: 600;
}

.checkout-quote-msg.is-muted {
  color: #64748b;
  font-weight: 600;
}

.checkout-quote-disabled {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.checkout-actions__submit {
  margin-top: 0 !important;
}

.checkout-summary-card {
  position: sticky;
  top: calc(0.5rem + 80px);
  padding: 1.1rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.checkout-summary-card__title {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.checkout-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: min(40vh, 320px);
  overflow-y: auto;
}

.checkout-summary-list__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 0.5rem 0.65rem;
  align-items: start;
  font-size: 0.85rem;
}

.checkout-summary-list__meta {
  min-width: 0;
}

.checkout-summary-list__thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.checkout-summary-list__name {
  display: block;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.checkout-summary-list__var {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.checkout-summary-list__swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.25);
  flex: 0 0 auto;
}

.checkout-summary-list__swatch.is-empty {
  background: linear-gradient(135deg, #edf2f7, #d7dfea);
}

.checkout-summary-list__qty {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.checkout-summary-list__price {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.checkout-summary-totals {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.checkout-summary-totals__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.checkout-summary-totals__row dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.checkout-summary-totals__row--grand {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
  font-size: 1rem;
}

.checkout-summary-totals__row--grand dt {
  font-weight: 800;
}

.checkout-summary-totals__note {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.2rem;
}

.checkout-summary-card__foot {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.btn-secondary {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 2px solid var(--teal);
  background: #fff;
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

.btn-secondary:hover {
  background: var(--teal-soft);
}

@media (max-width: 720px) {
  .cart-table thead {
    display: none;
  }

  .cart-table tbody,
  .cart-table__row,
  .cart-table__row td {
    display: block;
    width: 100%;
  }

  .cart-table__row {
    margin-bottom: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
  }

  .cart-table__row td {
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0.75rem;
  }

  .cart-table__row td:last-child {
    border-bottom: none;
  }

  .cart-table__row td.cart-table__remove {
    text-align: right;
  }

  .cart-table-wrap {
    box-shadow: none;
    border: none;
    background: transparent;
  }
}

.variant-modal-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(74, 124, 255, 0.22) 0, rgba(74, 124, 255, 0) 45%),
    radial-gradient(circle at 82% 82%, rgba(22, 184, 145, 0.18) 0, rgba(22, 184, 145, 0) 48%),
    rgba(9, 13, 24, 0.58);
  backdrop-filter: blur(9px) saturate(120%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 1098;
}

.variant-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) scale(0.97);
  width: min(460px, calc(100vw - 18px));
  height: min(86vh, 640px);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(133, 156, 196, 0.35);
  border-radius: 18px;
  box-shadow:
    0 14px 40px rgba(16, 25, 48, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 240ms ease;
  z-index: 1099;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.variant-modal > form {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.variant-modal.is-open,
.variant-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.variant-modal.is-open {
  transform: translate(-50%, -50%) scale(1);
}

.variant-modal__head,
.variant-modal__foot {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(192, 205, 228, 0.5);
}

.variant-modal__foot {
  border-top: 1px solid rgba(192, 205, 228, 0.5);
  border-bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
}

.variant-modal__eyebrow {
  margin: 0 0 3px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5f6d88;
  font-weight: 800;
}

.variant-modal__head h3 {
  margin: 0 0 2px;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #0f172a;
}

.variant-modal__subtext {
  margin: 0;
  font-size: 11px;
  color: #60708c;
  font-weight: 600;
}

.variant-modal__close {
  border: 1px solid rgba(174, 190, 216, 0.8);
  background: linear-gradient(180deg, #ffffff 0%, #ecf2ff 100%);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 17px;
  color: #1a2944;
  cursor: pointer;
  transition: all 160ms ease;
}

.variant-modal__close:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e4ecff 100%);
  border-color: rgba(125, 151, 199, 0.95);
}

.variant-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(249, 251, 255, 0.78) 100%);
}

.variant-modal__body {
  padding: 10px 12px 12px;
  overflow: auto;
  min-height: 0;
}

.variant-modal__hint {
  margin: 0 0 8px;
  font-size: 11px;
  color: #6a7892;
}

.variant-modal__error {
  margin: 0 0 10px;
  color: #b42318;
  background: #fff2f1;
  border: 1px solid #ffd6d2;
  border-radius: 8px;
  padding: 0;
  font-size: 11px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 160ms ease;
}

.variant-modal__error.is-visible {
  max-height: 60px;
  opacity: 1;
  padding: 8px 10px;
}

.variant-modal__list {
  display: grid;
  gap: 9px;
}

.variant-modal__item {
  border: 1px solid rgba(193, 205, 225, 0.85);
  border-radius: 12px;
  padding: 9px 10px;
  display: grid;
  gap: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.variant-modal__item.is-selected {
  border-color: #1f77d8;
  box-shadow: 0 8px 18px rgba(22, 103, 200, 0.18);
  transform: translateY(-1px);
}

.variant-modal__item.is-disabled {
  opacity: 0.56;
}

.variant-modal__top,
.variant-modal__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.variant-modal__top {
  justify-content: flex-start;
}

.variant-modal__check {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #1c74d6;
}

.variant-modal__label {
  font-size: 12px;
  font-weight: 700;
  color: #0f1f39;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.variant-modal__swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 26, 48, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  flex: 0 0 auto;
}

.variant-modal__swatch.is-empty {
  background: linear-gradient(135deg, #f1f5f9 0%, #dce3ee 100%);
}

.variant-modal__stock {
  margin-left: auto;
  font-size: 10px;
  color: #435777;
  font-weight: 700;
  background: #edf3ff;
  padding: 3px 7px;
  border-radius: 999px;
}

.variant-modal__price {
  font-size: 12px;
  font-weight: 800;
  color: #0d3f83;
}

.variant-modal__qty-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f4f7ff;
  border: 1px solid #cfdaf0;
  border-radius: 8px;
  padding: 2px;
}

.variant-modal__qty-btn {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1b2e4f;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: background 140ms ease, color 140ms ease;
}

.variant-modal__qty-btn:hover:not(:disabled) {
  background: #e7efff;
  color: #0f3a79;
}

.variant-modal__qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.variant-modal__qty {
  width: 40px;
  border: 0;
  background: transparent;
  padding: 2px 0;
  font-weight: 700;
  text-align: center;
  color: #11233f;
  appearance: textfield;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.variant-modal__qty::-webkit-outer-spin-button,
.variant-modal__qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.variant-modal__ghost,
.variant-modal__submit {
  border: 0;
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.variant-modal__ghost {
  background: #ebf1fb;
  color: #223755;
}

.variant-modal__submit {
  background: linear-gradient(135deg, #135fc0 0%, #0c4aa2 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(12, 74, 162, 0.34);
  min-width: 156px;
}

.variant-modal__submit:hover {
  background: linear-gradient(135deg, #0f56ae 0%, #0a418f 100%);
}

.variant-modal__submit:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

body.has-variant-modal {
  overflow: hidden;
}

@media (max-width: 640px) {
  .variant-modal {
    width: calc(100vw - 12px);
    height: min(88vh, 680px);
    border-radius: 14px;
  }

  .variant-modal__head,
  .variant-modal__body,
  .variant-modal__foot {
    padding-left: 10px;
    padding-right: 10px;
  }
}
