/*
 * HappyOnam 4.1 — premium multi-category commerce.
 * FastAPI + HTMX underneath; polished consumer app on the surface.
 */

:root {
  --premium-ink: #202027;
  --premium-copy: #62636f;
  --premium-cloud: #f6f7fb;
  --premium-white: #ffffff;
  --premium-line: #e8e9f0;
  --premium-coral: #ff4f6d;
  --premium-orange: #ff8a34;
  --premium-plum: #4d2d62;
  --premium-mint: #dff5e9;
  --premium-display: "Outfit", sans-serif;
  --premium-body: "Manrope", sans-serif;
  --premium-beam: linear-gradient(135deg, #ff4f6d 0%, #ff684d 48%, #ff9638 100%);
  --premium-shadow: 0 18px 55px rgba(34, 28, 45, .09);
  --premium-shadow-hover: 0 24px 65px rgba(34, 28, 45, .14);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 10rem;
}

body.storefront-body {
  --ink: var(--premium-ink);
  --muted: var(--premium-copy);
  --bg: var(--premium-cloud);
  --border: var(--premium-line);
  --relay: var(--premium-coral);
  --relay-dark: #e83c5b;
  --indigo: var(--premium-ink);
  --indigo-soft: #34343d;
  --pista: #ffd9ab;
  min-width: 0;
  overflow-x: clip;
  background: var(--premium-white);
  color: var(--premium-ink);
  font-family: var(--premium-body);
}

.storefront-body h1,
.storefront-body h2,
.storefront-body h3 {
  font-family: var(--premium-display);
  font-variation-settings: normal;
  font-weight: 700;
  letter-spacing: -.04em;
}

.page-shell,
.storefront-body .container {
  width: min(100%, 1440px);
  padding-inline: clamp(1rem, 4vw, 4rem);
}

.storefront-body :focus-visible {
  outline: 3px solid rgba(255, 79, 109, .55);
  outline-offset: 3px;
}

.store-eyebrow {
  color: var(--premium-coral);
  font-family: var(--premium-body);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.announcement-bar {
  background: #1f1f25;
  color: #fff;
}
.announcement-inner {
  min-height: 2.15rem;
  font-family: var(--premium-body);
  font-size: .58rem;
  letter-spacing: .01em;
}
.market-status i {
  background: #60d394;
  box-shadow: 0 0 0 .25rem rgba(96, 211, 148, .14);
}
.announcement-inner > a b { color: #ff9a55; }

.site-header {
  border-bottom: 1px solid rgba(232, 233, 240, .9);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 30px rgba(32, 32, 39, .055);
  backdrop-filter: blur(20px);
}
.site-header-inner {
  grid-template-columns: auto minmax(18rem, 1fr) auto;
  min-height: 5rem;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.logo { gap: .72rem; }
.logo-mark {
  width: 2.7rem;
  height: 2.7rem;
  overflow: hidden;
  border: 0;
  border-radius: .85rem;
  background: var(--premium-beam);
  color: #fff;
  font-family: var(--premium-display);
  box-shadow: 0 10px 25px rgba(255, 79, 109, .22);
}
.logo-mark::before {
  top: -.45rem;
  right: -.45rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
}
.logo-mark i {
  right: .28rem;
  bottom: .28rem;
  border-radius: 50%;
  background: #fff;
}
.logo strong {
  font-family: var(--premium-display);
  font-size: 1.16rem;
  letter-spacing: -.045em;
}
.logo small {
  color: #8a8994;
  font-family: var(--premium-body);
  font-size: .48rem;
  font-weight: 700;
  letter-spacing: .025em;
  text-transform: none;
}

.header-search {
  max-width: 48rem;
  border: 1px solid transparent;
  border-radius: .9rem;
  background: #f4f5f8;
}
.header-search:focus-within {
  border-color: rgba(255,79,109,.34);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,79,109,.08);
}
.header-search input {
  min-height: 3rem;
  color: var(--premium-ink);
  font-family: var(--premium-body);
  font-size: .78rem;
}
.header-search button {
  min-height: 2.25rem;
  border-radius: .65rem;
  background: #27272f;
  font-family: var(--premium-body);
}
.header-search button:hover { background: var(--premium-plum); }

.header-icon-link,
.account-menu summary {
  border-radius: .75rem;
}
.header-icon-link:hover,
.account-menu summary:hover { background: #f5f4f8; }
.cart-btn {
  min-height: 2.75rem;
  border: 0;
  border-radius: .75rem;
  background: var(--premium-beam);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255,79,109,.2);
}
.cart-btn:hover {
  background: var(--premium-beam);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255,79,109,.28);
}
.cart-btn .badge {
  background: #fff;
  color: var(--premium-coral);
}

.category-nav {
  border-top: 1px solid #f0f0f4;
  background: #fff;
}
.category-nav > div { min-height: 2.7rem; }
.dock-label {
  border: 0;
  border-radius: .55rem;
  background: #fff1f3;
  color: var(--premium-coral);
  font-family: var(--premium-body);
}
.dock-label i { background: var(--premium-coral); }
.category-nav a {
  position: relative;
  color: #5f5e68;
  font-size: .64rem;
  font-weight: 700;
}
.category-nav a::after {
  position: absolute;
  right: .7rem;
  bottom: 0;
  left: .7rem;
  height: 2px;
  border-radius: 999px;
  background: var(--premium-beam);
  content: "";
  opacity: 0;
  transform: scaleX(.5);
  transition: opacity .18s ease, transform .18s ease;
}
.category-nav a:hover { color: var(--premium-ink); }
.category-nav a:hover::after { opacity: 1; transform: scaleX(1); }
.category-nav .category-sale { color: var(--premium-coral); }

/* Hero: clean marketplace confidence with one expressive surface. */
.market-hero {
  grid-template-columns: minmax(0, 1.03fr) minmax(28rem, .97fr);
  min-height: 40rem;
  padding-top: clamp(2.2rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  gap: clamp(2rem, 6vw, 6rem);
}
.market-hero-copy {
  align-self: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.market-hero-copy::before { display: none; }
.hero-index {
  display: flex;
  justify-content: space-between;
  max-width: 38rem;
  margin-bottom: 1.25rem;
  color: #9795a0;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-chip {
  padding: .42rem .65rem;
  border: 0;
  border-radius: 999px;
  background: #fff0f3;
  color: #9d2843;
  font-family: var(--premium-body);
  font-size: .58rem;
}
.hero-chip span {
  border-radius: 999px;
  background: var(--premium-beam);
}
.market-hero h1 {
  display: block;
  max-width: 13ch;
  margin: 1.15rem 0 1.45rem;
  font-size: clamp(3.25rem, 6vw, 6.7rem);
  line-height: .92;
}
.market-hero h1 span,
.market-hero h1 em { display: inline; }
.market-hero h1 em {
  color: transparent;
  font-style: normal;
  background: var(--premium-beam);
  background-clip: text;
  -webkit-background-clip: text;
}
.market-hero .hero-lede {
  max-width: 39rem;
  color: var(--premium-copy);
  font-size: clamp(.92rem, 1.15vw, 1.04rem);
  line-height: 1.75;
}
.hero-actions { margin-top: 1.8rem; }
.store-btn {
  min-height: 3.25rem;
  border-radius: .85rem;
  font-family: var(--premium-body);
}
.store-btn-primary,
.market-hero .store-btn-primary {
  border: 0;
  background: var(--premium-beam);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255,79,109,.22);
}
.store-btn-primary:hover,
.market-hero .store-btn-primary:hover {
  background: var(--premium-beam);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255,79,109,.3);
}
.text-link { color: var(--premium-ink); }
.text-link span { color: var(--premium-coral); }
.hero-proof {
  margin-top: clamp(2.7rem, 5vw, 4.5rem);
  padding-top: 1.15rem;
  border-top: 1px solid var(--premium-line);
}
.hero-proof div { border-right: 1px solid var(--premium-line); }
.hero-proof strong { font-size: .67rem; }
.hero-proof span { font-size: .52rem; }

.market-hero-visual {
  align-self: center;
  min-height: 34rem;
  overflow: hidden;
  border: 0;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 80% 8%, rgba(255,255,255,.8), transparent 28%),
    linear-gradient(145deg, #f2d9f7 0%, #fee4dd 47%, #fff0cf 100%);
  box-shadow: var(--premium-shadow);
}
.market-hero-visual::before {
  top: 3.15rem;
  right: 1.4rem;
  left: 1.4rem;
  height: 1px;
  background: rgba(67,43,77,.12);
}
.hero-board-head {
  color: #5c4663;
  font-family: var(--premium-body);
  font-size: .56rem;
}
.hero-board-head b { color: var(--premium-coral); }
.hero-product { border-radius: 1.15rem; }
.hero-product-main {
  top: 4.5rem;
  right: 7.2rem;
  bottom: 2.8rem;
  left: 1.45rem;
  box-shadow: 0 22px 50px rgba(70,42,72,.16);
}
.hero-product-side {
  top: 5.6rem;
  right: -1rem;
  width: 8.7rem;
  height: 11.5rem;
  border: 5px solid rgba(255,255,255,.8);
  box-shadow: 0 18px 36px rgba(70,42,72,.16);
  transform: rotate(4deg);
}
.hero-product-float {
  right: -.5rem;
  bottom: 4.5rem;
  width: 10.2rem;
  height: 11.5rem;
  border: 5px solid rgba(255,255,255,.8);
  box-shadow: 0 18px 36px rgba(70,42,72,.18);
  transform: rotate(-3deg);
}
.hero-product-caption {
  border-radius: .8rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
}
.hero-sticker {
  right: auto;
  bottom: 1rem;
  left: 1rem;
  border-radius: 1rem;
  background: var(--premium-plum);
  color: #fff;
  box-shadow: 0 10px 25px rgba(77,45,98,.2);
  transform: rotate(-2deg);
}
.hero-market-ribbon { display: none; }

.perks-strip {
  border: 0;
  background: #232229;
  color: #fff;
}
.perks-strip .page-shell {
  min-height: 3.5rem;
  font-size: .58rem;
}
.perks-strip b { color: #ff9a55; }

/* Categories: consistent image-led browsing like a mature commerce app. */
.category-section { padding-block: clamp(4.5rem, 8vw, 8rem); }
.section-heading { align-items: end; }
.section-heading h2 {
  max-width: 44rem;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: 1.02;
}
.market-category-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.market-category-card,
.market-category-card:nth-child(n) {
  grid-column: auto;
  min-height: 21.5rem;
  padding: .65rem;
  overflow: hidden;
  border: 1px solid var(--premium-line);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 8px 30px rgba(32,32,39,.045);
}
.market-category-card:hover {
  border-color: rgba(255,79,109,.22);
  box-shadow: 0 18px 44px rgba(32,32,39,.11);
  transform: translateY(-5px);
}
.category-kicker {
  padding: .3rem .35rem;
  color: #8a8994;
  font-family: var(--premium-body);
  font-size: .5rem;
}
.category-image {
  inset: 2.6rem .65rem 4rem;
  border-radius: .9rem;
}
.category-image::after {
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, rgba(24,22,28,.14));
  content: "";
}
.market-category-card:hover .category-image img { transform: scale(1.045); }
.category-card-foot { padding-inline: .3rem; }
.category-card-foot strong { font-size: .8rem; }
.category-card-foot small { color: #888793; }
.category-card-foot b {
  border-radius: .65rem;
  background: #f4f3f7;
  color: var(--premium-coral);
}

.campaign {
  overflow: hidden;
  border: 0;
  border-radius: 2rem;
  background: #272331;
  box-shadow: var(--premium-shadow);
}
.campaign-copy {
  background:
    radial-gradient(circle at 0 100%, rgba(255,138,52,.18), transparent 40%),
    #272331;
  color: #fff;
}
.campaign-copy .store-eyebrow { color: #ffab6f; }
.campaign-copy h2 {
  font-size: clamp(2.4rem, 5vw, 5.1rem);
}
.campaign-art {
  border-left: 0;
  background: var(--premium-beam);
}
.campaign-word {
  color: #fff;
  font-family: var(--premium-display);
  opacity: .95;
}
.campaign-label {
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(30,20,35,.14);
}
.campaign-btn {
  border: 0;
  border-radius: .8rem;
  background: #fff;
  color: var(--premium-ink);
}

/* Product discovery. */
.collection-section { padding-top: clamp(5rem, 9vw, 9rem); }
.shop-filter {
  position: sticky;
  top: 7.8rem;
  z-index: 20;
  gap: .65rem;
  padding: .65rem;
  border: 1px solid var(--premium-line);
  border-radius: 1rem;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 35px rgba(32,32,39,.07);
  backdrop-filter: blur(16px);
}
.shop-filter > * {
  border: 1px solid #ececf1;
  border-radius: .7rem;
  background: #f7f7f9;
}
.shop-filter input,
.shop-filter summary { font-family: var(--premium-body); }
.shop-filter > *:focus-within {
  border-color: rgba(255,79,109,.28);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,79,109,.07);
}
.price-filter > div {
  border: 1px solid var(--premium-line);
  border-radius: .85rem;
  box-shadow: var(--premium-shadow);
}
.quick-occasions {
  gap: .5rem;
  margin-top: 1.2rem;
}
.quick-occasions a {
  border: 1px solid var(--premium-line);
  border-radius: 999px;
  background: #fff;
  color: #6d6b76;
  font-family: var(--premium-body);
  font-size: .55rem;
}
.quick-occasions a:hover,
.quick-occasions a[aria-current="page"] {
  border-color: transparent;
  background: #292830;
  color: #fff;
}
.collection-count {
  margin-top: 2rem;
  color: #8a8994;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  overflow: visible;
  border: 0;
  background: transparent;
}
.product-grid > .product-card:nth-child(n) { grid-column: auto; }
.product-card {
  overflow: hidden;
  border: 1px solid var(--premium-line);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 8px 28px rgba(32,32,39,.045);
}
.product-card::before { display: none; }
.product-card:hover {
  border-color: rgba(255,79,109,.2);
  box-shadow: var(--premium-shadow-hover);
  transform: translateY(-6px);
}
.product-card-media {
  margin: .55rem;
  overflow: hidden;
  border-radius: .85rem;
  background: #f0eff3;
}
.product-image img,
.product-card:nth-child(n) .product-image img {
  aspect-ratio: 1 / 1.08;
  filter: saturate(.94);
}
.product-card:hover .product-image img { transform: scale(1.045); }
.product-ribbon {
  border: 0;
  border-radius: .5rem;
  background: rgba(255,255,255,.92);
  color: #44434c;
  font-family: var(--premium-body);
  box-shadow: 0 6px 18px rgba(28,25,32,.09);
  backdrop-filter: blur(8px);
}
.new-ribbon { background: rgba(255,255,255,.92); }
.wish-button {
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 6px 18px rgba(28,25,32,.09);
}
.product-media-actions {
  border-radius: .7rem;
  background: rgba(255,255,255,.94);
}
.availability { color: #2e7652; }
.quick-add {
  border-radius: .55rem;
  background: #27272f;
  font-family: var(--premium-body);
}
.quick-add:hover { background: var(--premium-coral); }
.product-body {
  min-height: 10rem;
  padding: .75rem 1rem 1rem;
}
.product-kicker {
  color: #938f9b;
  font-family: var(--premium-body);
}
.product-title-row h3 {
  font-family: var(--premium-body);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: -.025em;
}
.product-title-row .price { color: var(--premium-ink); }
.product-seller { border-top-color: #f0eff3; }

/* Inner shopping pages. */
.main-image-wrap,
.detail-tags,
.purchase-panel,
.detail-assurances > div,
.care-details,
.cart-list,
.cart-summary,
.store-empty {
  border-radius: 1.15rem !important;
}
.main-image-wrap {
  border: 0;
  box-shadow: var(--premium-shadow);
}
.detail-info h1 {
  font-size: clamp(2.3rem, 4.8vw, 4.9rem);
  line-height: .98;
}
.purchase-panel {
  border-color: rgba(255,79,109,.16);
  background: #fff8f9;
}
.detail-tags { border-color: var(--premium-line); }
.care-details { border-color: var(--premium-line); }
.reviews-section { border-top-color: var(--premium-line); }

#cart-drawer {
  border-left: 1px solid var(--premium-line);
  background: #fff;
  box-shadow: -18px 0 60px rgba(25,22,31,.15);
}
.drawer-head { border-bottom-color: var(--premium-line); }
.drawer-close {
  border: 0;
  border-radius: .65rem;
  background: #f3f2f6;
}
.promise-band,
.site-footer { background: #232229; }
.promise-band .page-shell > div { border-radius: .9rem; }
.promise-band span {
  border-radius: .65rem;
  background: rgba(255,255,255,.09);
}
.site-footer { border-top: 0; }

.storefront-body.is-ready .market-hero-copy > *,
.storefront-body.is-ready .market-hero-visual {
  animation: premiumArrive .55s cubic-bezier(.2,.75,.2,1) both;
}
.storefront-body.is-ready .market-hero-copy > *:nth-child(2) { animation-delay: .04s; }
.storefront-body.is-ready .market-hero-copy > *:nth-child(3) { animation-delay: .08s; }
.storefront-body.is-ready .market-hero-visual { animation-delay: .12s; }
@keyframes premiumArrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
  .site-header-inner { gap: 1.2rem; }
  .logo small { display: none; }
  .market-hero {
    grid-template-columns: minmax(0, 1fr) minmax(23rem, .86fr);
    gap: 2rem;
  }
  .market-hero h1 { font-size: clamp(3.2rem, 6vw, 5.4rem); }
  .market-category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 7rem; }
  body.storefront-body { padding-bottom: 4.8rem; }
  .announcement-inner { grid-template-columns: 1fr auto; }
  .announcement-inner > p { display: none; }
  .site-header-inner {
    grid-template-columns: 1fr auto;
    min-height: 4.35rem;
  }
  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin-bottom: .7rem;
  }
  .header-actions .optional-action,
  .header-actions .login-link span,
  .account-menu summary span,
  .cart-label { display: none; }
  .category-nav { display: none; }
  .market-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 2.2rem;
  }
  .hero-index { margin-bottom: 1rem; }
  .market-hero h1 { font-size: clamp(2.9rem, 11vw, 5rem); }
  .market-hero-visual {
    width: 100%;
    min-height: 30rem;
  }
  .market-category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .campaign {
    width: calc(100% - 2rem);
    margin-inline: 1rem;
  }
  .shop-filter { top: .5rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mobile-app-nav {
    border: 1px solid rgba(232,233,240,.92);
    border-bottom: 0;
    border-radius: 1.2rem 1.2rem 0 0;
    background: rgba(255,255,255,.96);
    box-shadow: 0 -10px 35px rgba(32,32,39,.08);
    backdrop-filter: blur(18px);
  }
  .mobile-app-nav a[aria-current="page"],
  .mobile-app-nav button:active { color: var(--premium-coral); }
}

@media (max-width: 560px) {
  .announcement-inner > a { display: none; }
  .announcement-inner { grid-template-columns: 1fr; }
  .site-header-inner { padding-inline: .9rem; }
  .header-search button { display: none; }
  .market-hero { padding-inline: 1rem; }
  .hero-index span:last-child { display: none; }
  .market-hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof div {
    padding-bottom: .7rem;
    border-right: 0;
    border-bottom: 1px solid var(--premium-line);
  }
  .market-hero-visual { min-height: 25rem; border-radius: 1.35rem; }
  .hero-product-main { right: 4.6rem; }
  .hero-product-side { width: 6.4rem; height: 8.7rem; }
  .hero-product-float { width: 7rem; height: 8.8rem; }
  .market-category-grid { gap: .7rem; }
  .market-category-card,
  .market-category-card:nth-child(n) {
    min-height: 15rem;
    border-radius: 1rem;
  }
  .category-image { bottom: 3.75rem; }
  .campaign { border-radius: 1.35rem; }
  .shop-filter {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
  }
  .product-grid { grid-template-columns: 1fr; }
  .product-image img,
  .product-card:nth-child(n) .product-image img { aspect-ratio: 1.2 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* 4.2 marketplace architecture: curated home, departments, then catalogue. */
.category-nav .dock-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .68rem;
}
.category-nav .dock-label::after { display: none; }
.category-nav .category-more {
  color: var(--premium-plum);
  font-weight: 800;
}
.category-nav .category-more b { color: var(--premium-coral); }

.mobile-category-cta { display: none; }
.home-edit {
  padding-top: clamp(5rem, 9vw, 9rem);
  padding-bottom: clamp(5rem, 8vw, 8rem);
}
.home-edit .product-grid { margin-top: 2.2rem; }

.shop-page-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  padding-top: clamp(4rem, 7vw, 7rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
  background:
    radial-gradient(circle at 87% 20%, rgba(255, 138, 52, .13), transparent 25%),
    radial-gradient(circle at 72% 90%, rgba(255, 79, 109, .1), transparent 28%);
}
.shop-page-hero h1 {
  max-width: 13ch;
  margin-top: .75rem;
  font-size: clamp(3rem, 6.4vw, 6.8rem);
  line-height: .91;
}
.shop-page-meta {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 0 1rem;
  min-width: 17rem;
  padding: 1.2rem 0 0 1.4rem;
  border-left: 1px solid var(--premium-line);
}
.shop-page-meta > strong {
  grid-row: span 2;
  color: var(--premium-coral);
  font-family: var(--premium-display);
  font-size: 4rem;
  line-height: .8;
}
.shop-page-meta > span {
  color: var(--premium-copy);
  font-size: .67rem;
  font-weight: 700;
  line-height: 1.55;
}
.shop-page-meta a {
  margin-top: .8rem;
  color: var(--premium-ink);
  font-size: .65rem;
  font-weight: 800;
}
.shop-page-meta a b { color: var(--premium-coral); }
.collection-section.shop-catalogue {
  padding-top: 2rem;
  border-top: 1px solid var(--premium-line);
}

.departments-hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(32rem, 1.2fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  min-height: 43rem;
  padding-top: clamp(3.5rem, 7vw, 7rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
  background:
    radial-gradient(circle at 8% 15%, rgba(255, 79, 109, .1), transparent 24%),
    radial-gradient(circle at 39% 84%, rgba(255, 138, 52, .1), transparent 24%);
}
.departments-hero-copy h1 {
  max-width: 11ch;
  margin: .8rem 0 1.4rem;
  font-size: clamp(3.2rem, 6.5vw, 6.8rem);
  line-height: .9;
}
.departments-hero-copy > p:not(.store-eyebrow) {
  max-width: 35rem;
  color: var(--premium-copy);
  font-size: .95rem;
  line-height: 1.75;
}
.department-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--premium-line);
  color: #85838e;
  font-size: .62rem;
  font-weight: 700;
}
.department-stats strong {
  margin-right: .35rem;
  color: var(--premium-ink);
  font-family: var(--premium-display);
  font-size: 1.2rem;
}

.department-switchboard {
  overflow: hidden;
  border-radius: 1.8rem;
  background: #25222d;
  color: #fff;
  box-shadow: 0 28px 70px rgba(37, 34, 45, .2);
  transform: rotate(.8deg);
}
.switchboard-head {
  display: flex;
  justify-content: space-between;
  padding: 1.15rem 1.3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #aaa5b3;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.switchboard-head b { color: #ff9f5d; }
.department-switchboard > a {
  display: grid;
  grid-template-columns: 2.2rem 3.8rem minmax(0,1fr) auto;
  align-items: center;
  gap: .85rem;
  min-height: 4.8rem;
  padding: .65rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
  transition: background .2s ease, padding .2s ease;
}
.department-switchboard > a:last-child { border-bottom: 0; }
.department-switchboard > a:hover {
  padding-left: 1.55rem;
  background: linear-gradient(90deg, rgba(255,79,109,.22), rgba(255,138,52,.07));
}
.switchboard-number {
  color: #77717f;
  font-size: .55rem;
  font-weight: 800;
}
.switchboard-image {
  width: 3.4rem;
  height: 3.4rem;
  overflow: hidden;
  border-radius: .7rem;
  background: #3b3742;
}
.switchboard-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.department-switchboard > a > span:nth-child(3) {
  display: grid;
  gap: .15rem;
}
.department-switchboard strong {
  font-family: var(--premium-display);
  font-size: .92rem;
}
.department-switchboard small {
  color: #98929f;
  font-size: .53rem;
}
.department-switchboard > a > b {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .6rem;
  background: rgba(255,255,255,.08);
  color: #ff9f5d;
}

.department-directory {
  padding-top: clamp(5rem, 8vw, 8rem);
  padding-bottom: clamp(5rem, 8vw, 8rem);
  border-top: 1px solid var(--premium-line);
}
.department-directory .section-heading > p {
  max-width: 26rem;
  color: var(--premium-copy);
  font-size: .75rem;
  line-height: 1.7;
}
.department-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 2.5rem;
}
.department-card {
  display: grid;
  min-width: 0;
  padding: .65rem;
  overflow: hidden;
  border: 1px solid var(--premium-line);
  border-radius: 1.25rem;
  background: #fff;
  color: var(--premium-ink);
  box-shadow: 0 8px 30px rgba(32,32,39,.045);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.department-card:hover {
  border-color: rgba(255,79,109,.22);
  box-shadow: var(--premium-shadow-hover);
  transform: translateY(-5px);
}
.department-card-media {
  position: relative;
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  border-radius: .9rem;
  background: #f0eff3;
}
.department-card-media::after {
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, rgba(25,23,29,.35));
  content: "";
}
.department-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.department-card:hover .department-card-media img { transform: scale(1.045); }
.department-card-media i {
  position: absolute;
  right: .7rem;
  bottom: .6rem;
  z-index: 1;
  color: #fff;
  font-family: var(--premium-display);
  font-size: 1.5rem;
  font-style: normal;
}
.department-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem .35rem .55rem;
}
.department-card-body > span { display: grid; gap: .18rem; }
.department-card-body strong {
  font-family: var(--premium-display);
  font-size: 1.02rem;
}
.department-card-body small {
  color: #8b8994;
  font-size: .55rem;
}
.department-card-body > b {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: .65rem;
  background: #f4f3f7;
  color: var(--premium-coral);
}
.department-examples {
  min-height: 2.4rem;
  padding: 0 .35rem .55rem;
  overflow: hidden;
  color: #93919b;
  font-size: .55rem;
  line-height: 1.5;
  text-overflow: ellipsis;
}
.category-exit {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  align-items: center;
  gap: 3rem;
  margin-bottom: clamp(5rem, 8vw, 8rem);
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-radius: 1.5rem;
  background: #fff3f5;
}
.category-exit h2 {
  margin-top: .25rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
}
.category-exit form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  padding: .45rem;
  border: 1px solid rgba(255,79,109,.12);
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 12px 35px rgba(94,45,62,.08);
}
.category-exit input {
  min-width: 0;
  padding: .8rem;
  border: 0;
  outline: 0;
  font: 600 .75rem var(--premium-body);
}
.category-exit button {
  padding: .8rem 1rem;
  border: 0;
  border-radius: .65rem;
  background: #292830;
  color: #fff;
  font: 800 .68rem var(--premium-body);
}
.category-exit button span { color: #ff9f5d; }

@media (max-width: 1120px) {
  .departments-hero {
    grid-template-columns: minmax(0,.8fr) minmax(27rem,1.2fr);
    gap: 3rem;
  }
  .department-directory-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .home-category-preview > :nth-child(n+5) { display: none; }
  .mobile-category-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: .9rem;
    background: #292830;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
  }
  .mobile-category-cta span { color: #ff9f5d; }
  .home-edit .section-heading,
  .department-directory .section-heading { align-items: start; }
  .shop-page-hero {
    align-items: start;
    flex-direction: column;
  }
  .shop-page-meta {
    width: 100%;
    max-width: 25rem;
  }
  .departments-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .department-switchboard {
    width: min(100%, 36rem);
    transform: none;
  }
  .department-directory .section-heading {
    gap: 1rem;
    flex-direction: column;
  }
  .category-exit {
    grid-template-columns: 1fr;
    gap: 1.3rem;
    width: calc(100% - 2rem);
    margin-inline: 1rem;
  }
}

@media (max-width: 580px) {
  .shop-page-hero h1,
  .departments-hero-copy h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .shop-page-meta > strong { font-size: 3.3rem; }
  .department-switchboard > a {
    grid-template-columns: 1.8rem 3.2rem minmax(0,1fr) auto;
    gap: .6rem;
    padding-inline: .8rem;
  }
  .switchboard-image { width: 3rem; height: 3rem; }
  .department-directory-grid { grid-template-columns: 1fr; }
  .category-exit form { grid-template-columns: 1fr; }
  .category-exit button { min-height: 2.8rem; }
}

/* 4.3 restraint pass: quicker discovery, less editorial furniture. */
.market-hero {
  min-height: 34rem;
  padding-top: clamp(2.5rem, 4vw, 4rem);
  padding-bottom: clamp(3rem, 4.5vw, 4.5rem);
}
.market-hero-copy > .store-eyebrow { margin-bottom: 1rem; }
.market-hero h1 {
  max-width: 10ch;
  margin: 0 0 1.25rem;
  font-size: clamp(3.5rem, 5.8vw, 6.1rem);
  line-height: .9;
}
.market-hero .hero-lede { max-width: 33rem; }
.hero-actions { margin-top: 1.5rem; }
.market-hero-visual {
  min-height: 29rem;
  border-radius: 1.6rem;
}
.hero-product-main {
  top: 4.25rem;
  right: 6.5rem;
  bottom: 2rem;
}
.hero-product-side {
  top: 5.2rem;
  width: 7.7rem;
  height: 10rem;
}
.hero-product-float {
  bottom: 3.4rem;
  width: 8.8rem;
  height: 10rem;
}

.category-section {
  padding-top: clamp(4rem, 6vw, 6rem);
  padding-bottom: clamp(4rem, 6vw, 6rem);
}
.section-heading h2 { font-size: clamp(2rem, 3.4vw, 3.4rem); }
.market-category-card,
.market-category-card:nth-child(n) { min-height: 16rem; }
.market-category-card .category-image { inset: .65rem .65rem 4rem; }
.home-edit {
  padding-top: clamp(4rem, 6vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
  border-top: 1px solid var(--premium-line);
}
.home-edit .product-grid { margin-top: 1.7rem; }

.product-body {
  min-height: 7.1rem;
  padding: .7rem .9rem .9rem;
}
.product-kicker { margin-bottom: .45rem; }
.product-seller {
  margin-top: .75rem;
  padding-top: .55rem;
}

.departments-hero.departments-hero-compact {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 3rem;
  min-height: 0;
  padding-top: clamp(3.5rem, 6vw, 6rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid var(--premium-line);
  background:
    radial-gradient(circle at 12% 10%, rgba(255,79,109,.09), transparent 28%),
    radial-gradient(circle at 90% 80%, rgba(255,138,52,.08), transparent 25%);
}
.departments-hero-compact .departments-hero-copy h1 {
  max-width: none;
  margin: .55rem 0 .7rem;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: .94;
}
.departments-hero-compact .departments-hero-copy > p:not(.store-eyebrow) {
  font-size: .85rem;
}
.departments-hero-compact .department-stats {
  align-items: center;
  justify-content: end;
  margin: 0;
  padding: .7rem 0 .7rem 1.5rem;
  border-top: 0;
  border-left: 1px solid var(--premium-line);
}
.departments-hero-compact .department-stats a {
  margin-left: .5rem;
  color: var(--premium-ink);
  font-size: .65rem;
  font-weight: 800;
}
.departments-hero-compact .department-stats a b { color: var(--premium-coral); }
.department-directory {
  padding-top: clamp(3.5rem, 5vw, 5rem);
  padding-bottom: clamp(5rem, 7vw, 7rem);
  border-top: 0;
}
.department-directory-grid {
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}
.department-card-media { aspect-ratio: 1.25 / 1; }
.department-card-body { padding-top: .8rem; }
.department-examples {
  min-height: 2.2rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.collection-section.shop-catalogue {
  padding-top: clamp(3.5rem, 5vw, 5rem);
  padding-bottom: clamp(5rem, 7vw, 7rem);
  border-top: 0;
}
.shop-catalogue .collection-intro h1 {
  margin-top: .25rem;
  font-family: var(--premium-display);
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.catalogue-heading-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #8a8994;
  font-size: .6rem;
  font-weight: 700;
}
.catalogue-heading-meta strong {
  color: var(--premium-coral);
  font-family: var(--premium-display);
  font-size: 1.4rem;
}
.catalogue-heading-meta a {
  margin-left: .6rem;
  padding-left: 1rem;
  border-left: 1px solid var(--premium-line);
  color: var(--premium-ink);
  font-weight: 800;
}
.catalogue-heading-meta a b { color: var(--premium-coral); }

@media (max-width: 1120px) {
  .department-directory-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .market-hero {
    padding-top: 2.6rem;
    padding-bottom: 3rem;
  }
  .market-hero h1 { font-size: clamp(3rem, 12vw, 4.8rem); }
  .market-hero-visual { min-height: 25rem; }
  .departments-hero.departments-hero-compact {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .departments-hero-compact .department-stats {
    justify-content: start;
    padding: .9rem 0 0;
    border-top: 1px solid var(--premium-line);
    border-left: 0;
  }
  .department-directory-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .shop-catalogue .collection-intro {
    align-items: start;
    gap: 1rem;
  }
}

.india-phone-input > span,
.india-phone-input > b {
  flex: 0 0 auto;
  padding-inline: .8rem;
  border-right: 1px solid var(--premium-line);
  color: var(--premium-ink);
  font-size: .75rem;
  font-weight: 800;
}
.india-phone-input > input { min-width: 0; }
.store-field .india-phone-input > input {
  border: 0;
  outline: 0;
  box-shadow: none;
}

@media (max-width: 580px) {
  .market-hero h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .market-hero-visual { min-height: 22rem; }
  .hero-product-main { right: 4rem; }
  .hero-product-side { width: 5.8rem; height: 7.7rem; }
  .hero-product-float { width: 6.3rem; height: 7.8rem; }
  .market-category-card,
  .market-category-card:nth-child(n) { min-height: 13rem; }
  .department-directory-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .65rem;
  }
  .department-card { padding: .42rem; border-radius: .9rem; }
  .department-card-media { aspect-ratio: 1 / 1; border-radius: .7rem; }
  .department-card-body {
    align-items: start;
    padding: .7rem .2rem .35rem;
  }
  .department-card-body strong { font-size: .76rem; line-height: 1.15; }
  .department-card-body > b {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: .5rem;
  }
  .department-examples { display: none; }
  .product-grid,
  .related-section .product-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .6rem;
  }
  .product-body { min-height: 6.6rem; }
  .catalogue-heading-meta {
    align-items: start;
    flex-wrap: wrap;
  }
}
