/* Blue Sky Scent — Commerce Atelier, 2026
   Final public-commerce layer. Loaded after the shared level-up stylesheet. */

:root {
  --commerce-blue: #2f6fed;
  --commerce-violet: #7a45e0;
  --commerce-cyan: #7dd3fc;
  --commerce-ink: #10151f;
  --commerce-muted: #647084;
  --commerce-canvas: #f6f8fc;
  --commerce-surface: rgba(255, 255, 255, .9);
  --commerce-surface-solid: #fff;
  --commerce-line: rgba(32, 49, 78, .12);
  --commerce-line-strong: rgba(47, 111, 237, .24);
  --commerce-shadow: 0 28px 80px rgba(31, 57, 105, .14);
  --commerce-shadow-soft: 0 14px 42px rgba(31, 57, 105, .09);
  --commerce-radius-xl: clamp(28px, 3vw, 44px);
  --commerce-radius-lg: 26px;
}

html[data-theme="dark"] {
  --commerce-ink: #f4f6fb;
  --commerce-muted: #9aa5b6;
  --commerce-canvas: #0a0b0e;
  --commerce-surface: rgba(21, 24, 29, .88);
  --commerce-surface-solid: #15181d;
  --commerce-line: rgba(255, 255, 255, .105);
  --commerce-line-strong: rgba(111, 157, 255, .3);
  --commerce-shadow: 0 34px 95px rgba(0, 0, 0, .48);
  --commerce-shadow-soft: 0 18px 50px rgba(0, 0, 0, .3);
}

body.commerce-page:not(.commerce-home) {
  color: var(--commerce-ink);
  background:
    radial-gradient(circle at 4% 22%, rgba(47, 111, 237, .09), transparent 31rem),
    radial-gradient(circle at 96% 62%, rgba(122, 69, 224, .07), transparent 35rem),
    var(--commerce-canvas) !important;
}

body.commerce-page:not(.commerce-home) .shop-container {
  width: min(100% - 40px, 1380px);
}

body.commerce-page:not(.commerce-home) :where(button, a, input, select, summary):focus-visible {
  outline: 3px solid rgba(47, 111, 237, .42) !important;
  outline-offset: 3px;
}

/* Production release layers include a compact-density preset. Keep every
   interactive public control safely tappable after that preset is applied. */
body.commerce-page .shop-header-luxury .shop-nav > :where(a, button),
body.commerce-page .shop-header-luxury .shop-category-nav > button,
body.commerce-page .shop-footer-col button {
  min-height: 50px !important;
}

body.commerce-page .shop-header-luxury :where(.shop-icon-button, .theme-trigger),
:where(.theme-trigger, .password-toggle, .auth-password-toggle) {
  min-width: 50px !important;
  min-height: 50px !important;
}

body.commerce-page .shop-header-luxury .shop-icon-button {
  width: 50px !important;
  height: 50px !important;
}

/* Public access is customer-first. Visitor access stays deliberately
   secondary at the very bottom of the customer footer column. */
body.commerce-page .shop-footer a[href^="/admin/"] {
  display: none !important;
}

body.commerce-page .shop-footer-col .shop-footer-visitor-access {
  position: relative;
  min-height: 56px !important;
  box-sizing: border-box;
  margin-top: 10px;
  padding-top: 14px;
  color: color-mix(in srgb, var(--commerce-blue) 76%, var(--commerce-muted));
}

body.commerce-page .shop-footer-col .shop-footer-visitor-access::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--commerce-line), transparent);
}

/* Unified public shell ------------------------------------------------ */
body.commerce-page:not(.commerce-home) .shop-announcement {
  min-height: 38px;
  border: 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .09), transparent 22%, transparent 78%, rgba(255, 255, 255, .09)),
    linear-gradient(100deg, #245fe0, #5368ee 50%, #7943df) !important;
}

body.commerce-page:not(.commerce-home) .shop-announcement .shop-container {
  min-height: 38px;
}

body.commerce-page:not(.commerce-home) .shop-announcement :where(p, a, a:hover, a:visited) {
  color: #fff !important;
}

body.commerce-page:not(.commerce-home) .shop-header.shop-header-luxury {
  min-height: 94px;
  padding-block: 10px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.commerce-page:not(.commerce-home) .shop-header.shop-header-luxury::before {
  content: "";
  position: absolute;
  inset: 8px max(14px, calc((100vw - 1420px) / 2));
  z-index: -1;
  border: 1px solid rgba(171, 199, 244, .15);
  border-radius: 26px;
  background:
    radial-gradient(circle at 77% -60%, rgba(72, 126, 244, .24), transparent 43%),
    linear-gradient(102deg, rgba(6, 12, 22, .94), rgba(12, 22, 40, .92) 52%, rgba(13, 29, 56, .93));
  box-shadow: 0 16px 50px rgba(2, 8, 20, .24), inset 0 1px rgba(255, 255, 255, .07);
  backdrop-filter: blur(24px) saturate(155%);
}

body.commerce-page:not(.commerce-home) .shop-header-luxury .shop-header-row {
  min-height: 72px;
}

body.commerce-page:not(.commerce-home) .shop-header-luxury .shop-nav > .active {
  color: #fff !important;
  background: rgba(79, 126, 246, .12) !important;
  box-shadow: inset 0 0 0 1px rgba(127, 169, 255, .1) !important;
}

body.commerce-page:not(.commerce-home) .shop-header-luxury :where(
  .shop-brand,
  .shop-brand strong,
  .shop-nav > a,
  .shop-nav > button,
  .shop-category-nav > button,
  .shop-account-link,
  .shop-icon-button,
  .theme-trigger
) {
  color: #eef5ff !important;
}

body.commerce-page:not(.commerce-home) .shop-header-luxury .shop-brand small {
  color: #91a4bf !important;
}

body.commerce-page:not(.commerce-home) .shop-header-luxury :where(.shop-icon-button, .shop-account-link, .theme-trigger) {
  border-color: rgba(169, 197, 239, .14) !important;
  background: rgba(255, 255, 255, .045) !important;
}

/* Catalog hero -------------------------------------------------------- */
.commerce-catalog .shop-catalog-intro-v4 {
  position: relative;
  min-height: 485px;
  display: grid;
  align-items: center;
  padding: 48px 0 66px;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(255,255,255,.045) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 0 49.8%, rgba(255,255,255,.035) 50%, transparent 50.2%),
    radial-gradient(circle at 16% 20%, rgba(125, 211, 252, .24), transparent 23rem),
    radial-gradient(circle at 82% 58%, rgba(122, 69, 224, .34), transparent 28rem),
    linear-gradient(125deg, #07101f 0%, #102345 52%, #18275b 100%) !important;
  background-size: 82px 82px, 82px 82px, auto, auto, auto !important;
  color: #f7fbff !important;
}

.commerce-catalog .shop-catalog-intro-v4::before {
  content: "CATALOG";
  position: absolute;
  inset-inline-start: -1.5vw;
  bottom: -4.8vw;
  z-index: -1;
  direction: ltr;
  color: rgba(255, 255, 255, .035);
  font: 900 clamp(110px, 17vw, 260px)/.8 Manrope, sans-serif;
  letter-spacing: -.08em;
  white-space: nowrap;
  pointer-events: none;
}

.commerce-catalog .shop-catalog-intro-v4::after {
  content: "";
  position: absolute;
  width: clamp(170px, 22vw, 330px);
  aspect-ratio: .69;
  inset-inline-start: clamp(4%, 8vw, 13%);
  top: 22%;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 35% 35% 25% 25% / 19% 19% 14% 14%;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255,255,255,.18) 50%, transparent 53%),
    linear-gradient(155deg, rgba(255,255,255,.2), rgba(94,145,255,.12) 45%, rgba(25,47,95,.36));
  box-shadow:
    inset 0 0 60px rgba(255, 255, 255, .09),
    0 35px 90px rgba(0, 0, 0, .28),
    0 0 0 30px rgba(255,255,255,.018);
  transform: rotate(-7deg);
}

.commerce-catalog .shop-catalog-intro-v4 > .shop-container {
  position: relative;
  z-index: 2;
}

.commerce-catalog .shop-catalog-intro-v4 .shop-breadcrumb {
  margin-bottom: 34px;
  color: rgba(224, 236, 255, .68) !important;
}

.commerce-catalog .shop-catalog-intro-v4 .shop-breadcrumb :where(a, strong) {
  color: #fff !important;
}

.commerce-catalog .shop-catalog-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .72fr);
  align-items: end;
  gap: clamp(40px, 8vw, 130px);
}

.commerce-catalog .shop-catalog-intro-grid > div:first-child {
  max-width: 720px;
}

.commerce-catalog .shop-catalog-intro-v4 .shop-overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9ad8ff !important;
  font: 800 10px/1 Manrope, sans-serif;
  letter-spacing: .22em;
}

.commerce-catalog .shop-catalog-intro-v4 .shop-overline::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.commerce-catalog .shop-catalog-intro-v4 h1 {
  max-width: 720px;
  margin: 18px 0 15px;
  color: #fff !important;
  font-size: clamp(45px, 6.2vw, 84px);
  line-height: 1.08;
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 14px 42px rgba(0, 0, 0, .28);
}

.commerce-catalog .shop-catalog-intro-v4 [data-catalog-description] {
  max-width: 650px;
  margin: 0;
  color: #cbdaf1 !important;
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 2;
}

.commerce-catalog .shop-catalog-intro-search {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .17) !important;
  border-radius: 28px 10px 28px 10px !important;
  background: rgba(255, 255, 255, .09) !important;
  box-shadow: 0 25px 65px rgba(1, 7, 20, .25), inset 0 1px rgba(255,255,255,.08) !important;
  backdrop-filter: blur(22px) saturate(150%);
}

.commerce-catalog .shop-catalog-intro-search::before {
  content: "SCENT SEARCH";
  display: block;
  margin: 2px 4px 10px;
  color: rgba(202, 222, 255, .62);
  font: 800 8px/1 Manrope, sans-serif;
  letter-spacing: .2em;
}

.commerce-catalog .shop-catalog-intro-search label {
  min-height: 64px;
  padding-inline: 17px;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 18px 7px 18px 7px !important;
  background: rgba(255, 255, 255, .1) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .1) !important;
}

.commerce-catalog .shop-catalog-intro-search label:focus-within {
  border-color: rgba(154, 216, 255, .72) !important;
  box-shadow: 0 0 0 4px rgba(90, 155, 255, .13) !important;
}

.commerce-catalog .shop-catalog-intro-search label svg {
  width: 23px;
  color: #9ad8ff !important;
}

.commerce-catalog .shop-catalog-intro-search input {
  min-width: 0;
  min-height: 50px !important;
  color: #fff !important;
  font-size: 13px;
}

.commerce-catalog .shop-catalog-intro-search input::placeholder {
  color: rgba(226, 238, 255, .7) !important;
}

.commerce-catalog .shop-catalog-intro-search > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.commerce-catalog .shop-catalog-intro-search > div > span {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px 6px 14px 6px;
  color: #dce9ff !important;
  background: rgba(5, 13, 28, .2);
  font-size: 10px;
}

.commerce-catalog .shop-catalog-intro-search > div strong {
  color: #fff !important;
  font-size: 16px;
}

/* Catalog sections and category bento -------------------------------- */
.commerce-catalog .shop-catalog-section-v4 {
  position: relative;
  padding: 56px 0 120px;
}

.commerce-catalog .shop-category-showcase {
  position: relative;
  margin: 0 0 18px;
  padding: clamp(24px, 3.2vw, 42px) !important;
  overflow: hidden;
  border: 1px solid var(--commerce-line) !important;
  border-radius: var(--commerce-radius-xl) 13px var(--commerce-radius-xl) 13px !important;
  background:
    radial-gradient(circle at 8% 18%, rgba(47,111,237,.13), transparent 18rem),
    var(--commerce-surface) !important;
  box-shadow: var(--commerce-shadow-soft) !important;
  backdrop-filter: blur(20px);
}

.commerce-catalog .shop-category-showcase::after {
  content: "DISCOVER";
  position: absolute;
  inset-inline-end: 26px;
  top: -9px;
  color: rgba(47,111,237,.055);
  font: 900 clamp(62px, 9vw, 130px)/1 Manrope, sans-serif;
  letter-spacing: -.08em;
  pointer-events: none;
}

.commerce-catalog .shop-category-showcase > header {
  position: relative;
  z-index: 2;
  margin-bottom: 25px;
}

.commerce-catalog .shop-category-showcase > header span {
  color: var(--commerce-blue);
  font: 850 10px/1.2 Manrope, sans-serif;
  letter-spacing: .14em;
}

.commerce-catalog .shop-category-showcase > header h2 {
  margin: 9px 0 0;
  font-size: clamp(25px, 3.4vw, 42px);
  letter-spacing: -.035em;
}

.commerce-catalog .shop-category-showcase > header button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--commerce-line-strong);
  border-radius: 999px;
  color: var(--commerce-blue);
  background: rgba(47, 111, 237, .07);
  font-weight: 850;
}

.commerce-catalog .shop-category-showcase-grid {
  position: relative;
  z-index: 2;
  gap: 12px !important;
}

.commerce-catalog .shop-category-rail-v4 .shop-catalog-category-card {
  min-height: 178px !important;
  max-width: none !important;
  padding: 22px !important;
  border: 1px solid var(--commerce-line) !important;
  border-radius: 25px 8px 25px 8px !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.62), transparent 31%),
    linear-gradient(145deg, color-mix(in srgb, var(--category-color, #dbeafe) 28%, var(--commerce-surface-solid)), var(--commerce-surface-solid)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.3);
}

.commerce-catalog .shop-category-rail-v4 .shop-catalog-category-card:nth-child(even) {
  border-radius: 8px 25px 8px 25px !important;
}

.commerce-catalog .shop-category-rail-v4 .shop-catalog-category-card::after {
  content: "";
  position: absolute;
  width: 100px;
  aspect-ratio: 1;
  inset-inline-start: -25px;
  bottom: -35px;
  border: 1px solid rgba(47,111,237,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(47,111,237,.025), 0 0 0 40px rgba(47,111,237,.018);
}

.commerce-catalog .shop-category-card-copy {
  position: relative;
  z-index: 2;
}

.commerce-catalog .shop-category-chips-v4 {
  gap: 9px;
  padding: 14px 3px 22px;
}

.commerce-catalog .shop-category-chips-v4 button {
  min-height: 52px !important;
  padding-inline: 18px;
  border: 1px solid var(--commerce-line) !important;
  border-radius: 16px 6px 16px 6px !important;
  color: var(--commerce-muted);
  background: var(--commerce-surface) !important;
  box-shadow: 0 7px 22px rgba(31,57,105,.055) !important;
}

.commerce-catalog .shop-category-chips-v4 button:hover,
.commerce-catalog .shop-category-chips-v4 button.active {
  border-color: transparent !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--commerce-blue), var(--commerce-violet)) !important;
  box-shadow: 0 12px 28px rgba(47,111,237,.24) !important;
}

/* Toolbar and filter concierge --------------------------------------- */
.commerce-catalog .shop-catalog-toolbar-v4 {
  position: sticky;
  top: 106px;
  z-index: 30;
  min-height: 78px;
  margin-bottom: 22px;
  padding: 12px 18px;
  border: 1px solid var(--commerce-line) !important;
  border-radius: 22px 8px 22px 8px !important;
  background: color-mix(in srgb, var(--commerce-surface-solid) 86%, transparent) !important;
  box-shadow: var(--commerce-shadow-soft) !important;
  backdrop-filter: blur(22px) saturate(150%);
}

.commerce-catalog .shop-catalog-summary {
  position: relative;
  padding-inline-start: 15px;
}

.commerce-catalog .shop-catalog-summary::before {
  content: "";
  position: absolute;
  inset-block: 4px;
  inset-inline-start: 0;
  width: 4px;
  border-radius: 9px;
  background: linear-gradient(var(--commerce-blue), var(--commerce-violet));
}

.commerce-catalog .shop-catalog-summary strong {
  font-size: 14px !important;
}

.commerce-catalog .shop-catalog-summary span {
  margin-top: 3px;
  font-size: 10px !important;
}

.commerce-catalog .shop-sort {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr);
  align-items: center;
  gap: 9px;
  color: var(--commerce-muted);
  font-size: 10px;
}

.commerce-catalog .shop-sort select {
  min-height: 48px;
  padding-inline: 14px 34px;
  border: 1px solid var(--commerce-line) !important;
  border-radius: 15px 6px 15px 6px !important;
  background-color: var(--commerce-surface-solid) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.2);
}

.commerce-catalog .shop-catalog-layout-v4 {
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 24px;
}

.commerce-catalog .shop-filter-panel-v4 {
  top: 200px;
  max-height: calc(100dvh - 220px);
  padding: 0 20px 20px !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--commerce-line) !important;
  border-radius: 30px 10px 30px 10px !important;
  background:
    linear-gradient(135deg, rgba(47,111,237,.055), transparent 27%),
    var(--commerce-surface) !important;
  box-shadow: var(--commerce-shadow-soft) !important;
  backdrop-filter: blur(20px);
  scrollbar-width: thin;
}

.commerce-catalog .shop-filter-panel-v4 > header {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 78px;
  margin-inline: -20px;
  padding-inline: 20px;
  background: color-mix(in srgb, var(--commerce-surface-solid) 90%, transparent);
  backdrop-filter: blur(18px);
}

.commerce-catalog .shop-filter-panel-v4 > header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--commerce-blue), var(--commerce-violet));
}

.commerce-catalog .shop-filter-panel-v4 > header small {
  color: var(--commerce-blue);
  font: 800 7px/1 Manrope, sans-serif;
  letter-spacing: .17em;
}

.commerce-catalog .shop-filter-panel-v4 > header h2 {
  margin-top: 5px;
}

.commerce-catalog .shop-filter-panel-v4 > header button {
  min-width: 50px;
  min-height: 50px;
}

.commerce-catalog .shop-filter-panel-v4 fieldset {
  padding-block: 19px;
  border-color: var(--commerce-line);
}

.commerce-catalog .shop-filter-panel-v4 legend {
  color: var(--commerce-ink);
  font-size: 12px;
}

.commerce-catalog .shop-check {
  min-height: 46px;
  padding: 4px 8px;
  border-radius: 12px;
}

.commerce-catalog .shop-check:hover {
  color: var(--commerce-ink);
  background: rgba(47,111,237,.055);
}

.commerce-catalog .shop-check span {
  width: 20px;
  height: 20px;
  border-radius: 7px;
}

.commerce-catalog .shop-price-fields input {
  min-height: 48px;
  border-color: var(--commerce-line);
  border-radius: 13px 5px 13px 5px;
  background: var(--commerce-surface-solid);
}

.commerce-catalog .shop-note-filter button {
  min-width: 50px;
  min-height: 50px;
  border-color: var(--commerce-line);
  border-radius: 14px 5px 14px 5px;
  background: var(--commerce-surface-solid);
}

.commerce-catalog .shop-note-filter button.active {
  border-color: var(--commerce-blue);
  color: var(--commerce-blue);
  background: rgba(47,111,237,.1);
}

.commerce-catalog .shop-active-filters button {
  border-radius: 13px 5px 13px 5px;
}

/* Premium product cards ---------------------------------------------- */
.commerce-catalog .shop-catalog-grid-v4 {
  gap: 18px;
}

.commerce-catalog .shop-catalog-grid-v4 .shop-product-card,
.commerce-catalog .shop-catalog-grid-v4 .shop-product-card-v2 {
  overflow: hidden;
  border: 1px solid var(--commerce-line) !important;
  border-radius: 29px 10px 29px 10px !important;
  background: var(--commerce-surface-solid) !important;
  box-shadow: 0 15px 42px rgba(31,57,105,.085) !important;
}

.commerce-catalog .shop-catalog-grid-v4 :where(.shop-product-card, .shop-product-card-v2):nth-child(3n + 2) {
  border-radius: 10px 29px 10px 29px !important;
}

@media (hover: hover) and (pointer: fine) {
  .commerce-catalog .shop-catalog-grid-v4 :where(.shop-product-card, .shop-product-card-v2):hover {
    transform: translateY(-9px) !important;
    border-color: rgba(47,111,237,.34) !important;
    box-shadow: 0 26px 70px rgba(31,57,105,.17) !important;
  }
}

.commerce-catalog .shop-catalog-grid-v4 :where(.shop-product-media, .shop-product-media-wrap) {
  min-height: 340px;
  margin: 8px;
  overflow: hidden;
  border-radius: 22px 6px 22px 6px;
  background:
    radial-gradient(circle at 50% 26%, rgba(89,157,255,.22), transparent 38%),
    linear-gradient(145deg, #edf4ff, #dfe9fb) !important;
}

html[data-theme="dark"] .commerce-catalog .shop-catalog-grid-v4 :where(.shop-product-media, .shop-product-media-wrap) {
  background:
    radial-gradient(circle at 50% 26%, rgba(89,157,255,.19), transparent 38%),
    linear-gradient(145deg, #1a2332, #11151d) !important;
}

.commerce-catalog .shop-product-info {
  padding: 15px 21px 22px;
}

.commerce-catalog .shop-product-info h3 {
  margin-top: 9px;
  font-size: 22px;
}

.commerce-catalog .shop-product-notes span {
  border-color: var(--commerce-line);
  background: rgba(47,111,237,.045);
}

.commerce-catalog .shop-product-add {
  border: 0;
  background: linear-gradient(135deg, var(--commerce-blue), var(--commerce-violet));
  color: #fff;
  box-shadow: 0 10px 24px rgba(47,111,237,.25);
}

/* Empty catalog becomes a visual concierge --------------------------- */
.commerce-catalog .shop-catalog-results > .shop-empty-state {
  position: relative;
  min-height: 470px;
  align-items: flex-start;
  padding: clamp(34px, 5vw, 70px) clamp(28px, 5vw, 70px);
  padding-inline-end: min(46%, 510px);
  overflow: hidden;
  border: 1px solid var(--commerce-line) !important;
  border-radius: 35px 11px 35px 11px !important;
  background:
    radial-gradient(circle at 12% 30%, rgba(47,111,237,.17), transparent 22rem),
    linear-gradient(140deg, var(--commerce-surface-solid), color-mix(in srgb, var(--commerce-surface-solid) 88%, #dbeafe)) !important;
  box-shadow: var(--commerce-shadow-soft);
  text-align: start;
}

.commerce-catalog .shop-catalog-results > .shop-empty-state::before {
  content: "";
  position: absolute;
  width: 165px;
  aspect-ratio: .68;
  inset-inline-start: clamp(13%, 18vw, 25%);
  top: 26%;
  border: 1px solid rgba(80,126,216,.24);
  border-radius: 38% 38% 24% 24% / 17% 17% 13% 13%;
  background:
    linear-gradient(90deg, transparent 46%, rgba(255,255,255,.55) 50%, transparent 54%),
    linear-gradient(155deg, rgba(255,255,255,.7), rgba(102,153,244,.17) 58%, rgba(93,66,185,.2));
  box-shadow: inset 0 0 45px rgba(255,255,255,.28), 0 34px 60px rgba(31,57,105,.17);
  transform: rotate(-7deg);
}

.commerce-catalog .shop-catalog-results > .shop-empty-state::after {
  content: "RESET / REDISCOVER";
  position: absolute;
  inset-inline-start: 8%;
  bottom: 35px;
  color: rgba(47,111,237,.48);
  font: 800 9px/1 Manrope, sans-serif;
  letter-spacing: .18em;
}

.commerce-catalog .shop-catalog-results > .shop-empty-state > svg {
  width: 52px;
  height: 52px;
  padding: 14px;
  border-radius: 16px 5px 16px 5px;
  color: var(--commerce-blue);
  background: rgba(47,111,237,.1);
}

.commerce-catalog .shop-catalog-results > .shop-empty-state h2 {
  max-width: 510px;
  margin: 20px 0 8px;
  font-size: clamp(25px, 3vw, 39px);
  line-height: 1.35;
}

.commerce-catalog .shop-catalog-results > .shop-empty-state p {
  max-width: 530px;
  margin-bottom: 24px;
  color: var(--commerce-muted);
  font-size: 13px;
  line-height: 2;
}

.commerce-catalog .shop-catalog-results > .shop-empty-state .shop-button-primary {
  min-height: 50px;
  padding-inline: 20px;
  border: 0;
  border-radius: 17px 6px 17px 6px;
  background: linear-gradient(135deg, var(--commerce-blue), var(--commerce-violet));
  box-shadow: 0 14px 32px rgba(47,111,237,.24);
}

/* Product detail and product fallback -------------------------------- */
.commerce-product .shop-product-page {
  position: relative;
  min-height: 680px;
  padding: 64px 0 100px !important;
  overflow: hidden;
}

.commerce-product .shop-product-page::before {
  width: min(62vw, 820px) !important;
  inset: -22% auto auto -22% !important;
  background: radial-gradient(circle, rgba(47,111,237,.18), transparent 68%) !important;
}

.commerce-product .shop-product-detail-v3 {
  padding: clamp(18px, 2.2vw, 30px);
  border: 1px solid var(--commerce-line) !important;
  border-radius: 40px 13px 40px 13px !important;
  background: var(--commerce-surface) !important;
  box-shadow: var(--commerce-shadow) !important;
  backdrop-filter: blur(18px);
}

.commerce-product .shop-product-main-media {
  border-color: var(--commerce-line) !important;
  border-radius: 31px 9px 31px 9px !important;
  background:
    radial-gradient(circle at 50% 39%, rgba(82,150,255,.25), transparent 36%),
    linear-gradient(145deg, #edf4ff, #dce7f8) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.6);
}

html[data-theme="dark"] .commerce-product .shop-product-main-media {
  background:
    radial-gradient(circle at 50% 39%, rgba(82,150,255,.2), transparent 36%),
    linear-gradient(145deg, #1b2432, #10141b) !important;
}

.commerce-product .shop-product-summary-panel {
  padding: clamp(12px, 2.5vw, 32px);
}

.commerce-product .shop-detail-label {
  color: #fff;
  background: linear-gradient(135deg, var(--commerce-blue), var(--commerce-violet));
}

.commerce-product .shop-detail-note-pyramid > div,
.commerce-product .shop-detail-purchase {
  border-color: var(--commerce-line) !important;
  border-radius: 20px 7px 20px 7px !important;
  background: var(--commerce-surface-solid) !important;
}

.commerce-product .shop-detail-purchase {
  box-shadow: var(--commerce-shadow-soft) !important;
}

.commerce-product .shop-detail-actions .shop-button-primary {
  border: 0;
  background: linear-gradient(135deg, var(--commerce-blue), var(--commerce-violet));
  box-shadow: 0 14px 32px rgba(47,111,237,.23);
}

.commerce-product :where(.shop-product-story, .shop-product-accords, .shop-product-faq, .shop-product-usage, .shop-product-highlights, .shop-product-complementary) {
  border-color: var(--commerce-line) !important;
  border-radius: 34px 11px 34px 11px !important;
  background: var(--commerce-surface-solid) !important;
  box-shadow: var(--commerce-shadow-soft) !important;
}

.commerce-product .shop-product-story {
  background:
    radial-gradient(circle at 8% 18%, rgba(47,111,237,.13), transparent 22rem),
    var(--commerce-surface-solid) !important;
}

.commerce-product .shop-product-highlights article,
.commerce-product .shop-product-usage article {
  border-color: var(--commerce-line) !important;
}

.commerce-product .shop-product-usage article {
  border-radius: 21px 7px 21px 7px;
  background: color-mix(in srgb, var(--commerce-surface-solid) 94%, #dbeafe) !important;
}

.commerce-product .shop-product-usage article > span {
  background: linear-gradient(135deg, var(--commerce-blue), var(--commerce-violet));
}

.commerce-product .shop-empty-state {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--commerce-line) !important;
  border-radius: 40px 13px 40px 13px !important;
  background:
    radial-gradient(circle at 18% 28%, rgba(47,111,237,.18), transparent 22rem),
    var(--commerce-surface) !important;
  box-shadow: var(--commerce-shadow);
}

.commerce-product .shop-empty-state::before,
.commerce-product .shop-empty-state::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.commerce-product .shop-empty-state::before {
  width: 280px;
  height: 280px;
  inset-inline-start: -80px;
  bottom: -110px;
  border: 1px solid rgba(47,111,237,.22);
  box-shadow: 0 0 0 45px rgba(47,111,237,.035), 0 0 0 90px rgba(122,69,224,.02);
}

.commerce-product .shop-empty-state::after {
  width: 140px;
  height: 140px;
  inset-inline-end: -36px;
  top: -42px;
  background: rgba(122,69,224,.1);
  filter: blur(4px);
}

.commerce-product .shop-empty-state > * {
  position: relative;
  z-index: 2;
}

.commerce-product .shop-empty-state h2 {
  font-size: clamp(26px, 3.6vw, 44px);
}

/* Saved scents, comparison and other discovery pages ----------------- */
.commerce-discovery-page .shop-discovery-main {
  min-height: 72vh;
  padding: 58px 0 110px;
}

.commerce-discovery-page .shop-discovery-page-hero {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 26px;
  padding: clamp(32px, 5vw, 70px) !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 39px 12px 39px 12px !important;
  color: #f7fbff !important;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(255,255,255,.04) 50%, transparent 50.2%),
    radial-gradient(circle at 15% 26%, rgba(125,211,252,.2), transparent 20rem),
    radial-gradient(circle at 86% 42%, rgba(122,69,224,.32), transparent 26rem),
    linear-gradient(125deg, #08111f, #122747 60%, #1b2452) !important;
  background-size: 82px 82px, auto, auto, auto !important;
  box-shadow: var(--commerce-shadow) !important;
}

.commerce-discovery-page .shop-discovery-page-hero::before {
  content: "SAVED / COMPARE";
  position: absolute;
  inset-inline-start: -10px;
  bottom: -20px;
  color: rgba(255,255,255,.04);
  font: 900 clamp(58px, 10vw, 145px)/1 Manrope, sans-serif;
  letter-spacing: -.07em;
  white-space: nowrap;
}

.commerce-discovery-page .shop-discovery-page-hero::after {
  width: 280px;
  height: 280px;
  inset-inline-end: -80px;
  top: -110px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(91,144,255,.11);
  box-shadow: 0 0 0 45px rgba(255,255,255,.02);
}

.commerce-discovery-page .shop-discovery-page-hero > * {
  position: relative;
  z-index: 2;
}

.commerce-discovery-page .shop-discovery-page-hero > span {
  color: #9ad8ff !important;
}

.commerce-discovery-page .shop-discovery-page-hero h1 {
  max-width: 820px;
  margin: 16px 0 10px;
  color: #fff !important;
  font-size: clamp(41px, 6vw, 76px);
  line-height: 1.1;
  letter-spacing: -.05em;
}

.commerce-discovery-page .shop-discovery-page-hero p {
  color: #cbdaf1 !important;
  font-size: 14px;
  line-height: 2;
}

.commerce-discovery-page .shop-discovery-page-hero > div {
  color: #fff;
  background: rgba(255,255,255,.09);
}

.commerce-discovery-page .shop-discovery-empty {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 24px;
  overflow: hidden;
  border: 1px solid var(--commerce-line) !important;
  border-radius: 35px 11px 35px 11px !important;
  background:
    radial-gradient(circle at 15% 25%, rgba(47,111,237,.15), transparent 21rem),
    var(--commerce-surface) !important;
  box-shadow: var(--commerce-shadow-soft);
}

.commerce-discovery-page .shop-discovery-empty::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  inset-inline-start: -90px;
  bottom: -120px;
  border: 1px solid rgba(47,111,237,.2);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(47,111,237,.035), 0 0 0 84px rgba(122,69,224,.018);
}

.commerce-discovery-page .shop-discovery-empty > * {
  position: relative;
  z-index: 2;
}

.commerce-discovery-page .shop-discovery-empty > svg {
  width: 56px;
  height: 56px;
  padding: 15px;
  border-radius: 18px 6px 18px 6px;
  color: var(--commerce-blue);
  background: rgba(47,111,237,.1);
}

.commerce-discovery-page .shop-discovery-empty h2 {
  margin-top: 19px;
  font-size: clamp(24px, 3.2vw, 37px);
}

.commerce-discovery-page .shop-discovery-empty p {
  max-width: 620px;
  color: var(--commerce-muted);
  line-height: 2;
}

.commerce-discovery-page .shop-discovery-empty a,
.commerce-discovery-page .shop-discovery-empty button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 19px;
  border: 0;
  border-radius: 16px 6px 16px 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--commerce-blue), var(--commerce-violet));
  box-shadow: 0 13px 29px rgba(47,111,237,.22);
}

.commerce-discovery-page .shop-discovery-product-card {
  border-color: var(--commerce-line);
  border-radius: 27px 9px 27px 9px;
  background: var(--commerce-surface-solid);
  box-shadow: var(--commerce-shadow-soft);
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s;
}

.commerce-discovery-page .shop-discovery-product-card:nth-child(even) {
  border-radius: 9px 27px 9px 27px;
}

@media (hover: hover) and (pointer: fine) {
  .commerce-discovery-page .shop-discovery-product-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--commerce-shadow);
  }
}

.commerce-discovery-page .shop-discovery-card-media {
  margin: 8px;
  border-radius: 20px 6px 20px 6px;
  background:
    radial-gradient(circle at 50% 25%, rgba(89,157,255,.18), transparent 37%),
    color-mix(in srgb, var(--commerce-surface-solid) 82%, #dbeafe);
}

.commerce-discovery-page .shop-compare-table-wrap {
  border-color: var(--commerce-line);
  border-radius: 31px 10px 31px 10px;
  background: var(--commerce-surface-solid);
  box-shadow: var(--commerce-shadow);
}

.commerce-discovery-page .shop-compare-table :where(th, td) {
  border-color: var(--commerce-line);
}

.commerce-discovery-page .shop-compare-table tr > :first-child {
  background: color-mix(in srgb, var(--commerce-surface-solid) 92%, #dbeafe);
}

/* Content pages ------------------------------------------------------- */
.commerce-content .shop-content-page {
  position: relative;
  min-height: 72vh;
  padding-bottom: 110px;
  overflow: hidden;
}

.commerce-content .shop-content-article.template-standard > :is(.shop-breadcrumb, .shop-content-page-header) {
  width: min(calc(100% - 40px), 1120px);
}

.commerce-content .shop-content-article {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.commerce-content .shop-content-article .shop-breadcrumb {
  padding-top: 58px;
}

.commerce-content .shop-content-page-header {
  position: relative;
  min-height: 300px;
  align-content: center;
  padding: clamp(38px, 6vw, 80px) !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 40px 13px 40px 13px;
  color: #f7fbff;
  background:
    radial-gradient(circle at 14% 24%, rgba(125,211,252,.2), transparent 22rem),
    radial-gradient(circle at 90% 50%, rgba(122,69,224,.3), transparent 27rem),
    linear-gradient(125deg, #08111f, #122747 58%, #1b2452);
  box-shadow: var(--commerce-shadow);
}

.commerce-content .shop-content-page-header::after {
  content: "BLUE SKY / STORY";
  position: absolute;
  inset-inline-start: -10px;
  bottom: -14px;
  color: rgba(255,255,255,.04);
  font: 900 clamp(54px, 9vw, 130px)/1 Manrope, sans-serif;
  white-space: nowrap;
  pointer-events: none;
}

.commerce-content .shop-content-page-header > * {
  position: relative;
  z-index: 2;
}

.commerce-content .shop-content-page-header h1 {
  max-width: 850px;
  color: #fff;
  font-size: clamp(43px, 7vw, 84px);
  letter-spacing: -.055em;
}

.commerce-content .shop-content-page-header p {
  color: #cbdaf1;
}

.commerce-content .shop-content-body {
  width: min(calc(100% - 40px), 980px);
  margin: 30px auto 0;
  padding: clamp(32px, 5vw, 68px) !important;
  border: 1px solid var(--commerce-line);
  border-radius: 34px 11px 34px 11px;
  color: var(--commerce-ink);
  background: var(--commerce-surface);
  box-shadow: var(--commerce-shadow-soft);
  backdrop-filter: blur(18px);
}

.commerce-content .shop-content-body :where(h2, h3) {
  color: var(--commerce-ink);
  letter-spacing: -.025em;
}

.commerce-content .shop-content-body h2 {
  position: relative;
  margin-top: 42px;
  padding-inline-start: 16px;
  font-size: clamp(24px, 3vw, 36px);
}

.commerce-content .shop-content-body h2::before {
  content: "";
  position: absolute;
  inset: 5px 0 5px auto;
  width: 4px;
  border-radius: 9px;
  background: linear-gradient(var(--commerce-blue), var(--commerce-violet));
}

.commerce-content .shop-content-body :where(p, li) {
  color: var(--commerce-muted);
  font-size: 14px;
  line-height: 2.15;
}

.commerce-content .shop-content-body blockquote {
  margin: 30px 0;
  padding: 24px;
  border: 0;
  border-inline-start: 4px solid var(--commerce-blue);
  border-radius: 20px 7px 20px 7px;
  background: rgba(47,111,237,.07);
}

/* Footer, cart and modal finish -------------------------------------- */
body.commerce-page:not(.commerce-home) .shop-footer {
  position: relative;
  overflow: hidden;
  border-color: var(--commerce-line);
  background:
    radial-gradient(circle at 9% 10%, rgba(47,111,237,.09), transparent 25rem),
    var(--commerce-surface-solid);
}

body.commerce-page:not(.commerce-home) .shop-footer::before {
  content: "BLUE SKY";
  position: absolute;
  inset-inline-start: -14px;
  bottom: 23px;
  color: rgba(47,111,237,.035);
  font: 900 clamp(80px, 14vw, 210px)/.8 Manrope, sans-serif;
  pointer-events: none;
}

body.commerce-page:not(.commerce-home) .shop-footer > * {
  position: relative;
  z-index: 2;
}

.shop-overlay {
  background: rgba(4, 8, 16, .58) !important;
  backdrop-filter: blur(10px) saturate(115%) !important;
}

.shop-cart-drawer {
  border-inline-start: 1px solid var(--commerce-line) !important;
  border-radius: 34px 0 0 34px;
  background: var(--commerce-surface-solid) !important;
  box-shadow: -30px 0 90px rgba(0,0,0,.28) !important;
}

.shop-drawer-head,
.shop-modal-head {
  border-color: var(--commerce-line) !important;
  background: color-mix(in srgb, var(--commerce-surface-solid) 88%, transparent) !important;
  backdrop-filter: blur(22px) saturate(150%) !important;
}

.shop-modal-backdrop {
  background: rgba(4,8,16,.66) !important;
  backdrop-filter: blur(12px) saturate(115%) !important;
}

.shop-modal {
  border-color: var(--commerce-line) !important;
  border-radius: 34px 11px 34px 11px !important;
  background: var(--commerce-surface-solid) !important;
  box-shadow: 0 40px 120px rgba(0,0,0,.4) !important;
}

.shop-smart-search-field,
.shop-finder-options button,
.shop-finder-results article {
  border-color: var(--commerce-line) !important;
  border-radius: 20px 7px 20px 7px !important;
  background: color-mix(in srgb, var(--commerce-surface-solid) 94%, #dbeafe) !important;
}

.shop-compare-bar {
  border-color: var(--commerce-line) !important;
  border-radius: 22px 8px 22px 8px !important;
  background: color-mix(in srgb, var(--commerce-surface-solid) 88%, transparent) !important;
  box-shadow: var(--commerce-shadow) !important;
}

/* Responsive --------------------------------------------------------- */
@media (max-width: 1180px) {
  .commerce-catalog .shop-catalog-intro-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr);
    gap: 46px;
  }

  .commerce-catalog .shop-catalog-layout-v4 {
    grid-template-columns: 248px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .commerce-catalog .shop-catalog-intro-v4 {
    min-height: 560px;
  }

  .commerce-catalog .shop-catalog-intro-v4::after {
    opacity: .42;
    inset-inline-start: 3%;
  }

  .commerce-catalog .shop-catalog-intro-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px;
  }

  .commerce-catalog .shop-catalog-intro-grid > div:first-child {
    max-width: 760px;
  }

  .commerce-catalog .shop-catalog-intro-search {
    width: min(100%, 720px);
  }

  .commerce-catalog .shop-catalog-layout-v4 {
    grid-template-columns: 1fr;
  }

  .commerce-catalog .shop-filter-toggle {
    display: inline-flex;
    min-height: 54px !important;
  }

  .commerce-catalog .shop-filter-panel-v4 {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1250;
    width: 100%;
    max-width: none;
    max-height: 88dvh;
    border-width: 1px 0 0 !important;
    border-radius: 30px 30px 0 0 !important;
    box-shadow: 0 -30px 90px rgba(0,0,0,.3) !important;
  }

  .commerce-catalog .shop-filter-panel-v4 > header {
    border-radius: 30px 30px 0 0;
  }

  .commerce-catalog .shop-catalog-results > .shop-empty-state {
    padding-inline-end: 45%;
  }
}

@media (max-width: 760px) {
  body.commerce-page .shop-header-luxury .shop-icon-button,
  body.commerce-page .shop-header-luxury .theme-trigger,
  :where(.theme-trigger, .password-toggle, .auth-password-toggle) {
    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;
    min-height: 54px !important;
  }

  body.commerce-page:not(.commerce-home) .shop-container {
    width: min(100% - 28px, 1380px);
  }

  body.commerce-page:not(.commerce-home) .shop-announcement {
    display: none;
  }

  body.commerce-page:not(.commerce-home) .shop-header.shop-header-luxury {
    min-height: 78px;
    padding-block: 6px;
  }

  body.commerce-page:not(.commerce-home) .shop-header.shop-header-luxury::before {
    inset: 5px 8px;
    border-radius: 21px;
  }

  body.commerce-page:not(.commerce-home) .shop-header-luxury .shop-header-row {
    min-height: 66px;
  }

  body.commerce-page:not(.commerce-home) .shop-header-luxury .shop-theme-slot,
  body.commerce-page:not(.commerce-home) .shop-header-luxury .shop-theme-slot .theme-control {
    display: block !important;
  }

  body.commerce-page:not(.commerce-home) .shop-header-luxury .shop-theme-slot .theme-trigger {
    width: 54px;
    min-width: 54px;
    height: 54px;
    padding: 0;
  }

  body.commerce-page:not(.commerce-home) .shop-header-luxury .theme-current-label,
  body.commerce-page:not(.commerce-home) .shop-header-luxury .theme-chevron {
    display: none !important;
  }

  .commerce-catalog .shop-catalog-intro-v4 {
    min-height: auto;
    padding: 38px 0 48px;
  }

  .commerce-catalog .shop-catalog-intro-v4::before {
    bottom: -15px;
    font-size: 92px;
  }

  .commerce-catalog .shop-catalog-intro-v4::after {
    width: 135px;
    top: 21%;
    opacity: .25;
  }

  .commerce-catalog .shop-catalog-intro-v4 .shop-breadcrumb {
    margin-bottom: 26px;
  }

  .commerce-catalog .shop-catalog-intro-v4 h1 {
    margin-block: 14px 12px;
    font-size: clamp(39px, 12vw, 58px);
  }

  .commerce-catalog .shop-catalog-intro-search {
    padding: 10px;
    border-radius: 22px 8px 22px 8px !important;
  }

  .commerce-catalog .shop-catalog-intro-search label {
    min-height: 56px;
  }

  .commerce-catalog .shop-catalog-section-v4 {
    padding: 30px 0 78px;
  }

  .commerce-catalog .shop-category-showcase {
    padding: 24px 18px !important;
    border-radius: 27px 9px 27px 9px !important;
  }

  .commerce-catalog .shop-category-showcase > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .commerce-catalog .shop-category-showcase-grid {
    margin-inline: -18px !important;
    padding-inline: 18px !important;
  }

  .commerce-catalog .shop-category-rail-v4 .shop-catalog-category-card {
    flex-basis: 220px !important;
    min-height: 160px !important;
  }

  .commerce-catalog .shop-catalog-toolbar-v4 {
    top: 78px;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .commerce-catalog .shop-catalog-tools {
    width: 100%;
  }

  .commerce-catalog .shop-sort {
    min-width: 0;
    flex: 1;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .commerce-catalog .shop-sort select {
    width: 100%;
  }

  .commerce-catalog .shop-filter-toggle {
    align-self: end;
    min-height: 54px;
  }

  .commerce-catalog .shop-catalog-results > .shop-empty-state {
    min-height: 500px;
    align-items: center;
    justify-content: flex-start;
    padding: 38px 22px 250px;
    text-align: center;
  }

  .commerce-catalog .shop-catalog-results > .shop-empty-state::before {
    width: 118px;
    inset-inline-start: 50%;
    top: auto;
    bottom: 58px;
    transform: translateX(50%) rotate(-7deg);
  }

  .commerce-catalog .shop-catalog-results > .shop-empty-state::after {
    inset-inline-start: 50%;
    bottom: 22px;
    transform: translateX(50%);
  }

  .commerce-product .shop-product-page {
    padding: 34px 0 78px !important;
  }

  .commerce-product .shop-product-detail-v3 {
    padding: 12px;
    border-radius: 29px 9px 29px 9px !important;
  }

  .commerce-product .shop-product-summary-panel {
    padding: 18px 9px 10px;
  }

  .commerce-discovery-page .shop-discovery-main {
    padding: 28px 0 78px;
  }

  .commerce-discovery-page .shop-discovery-page-hero {
    min-height: 300px;
    padding: 34px 24px !important;
    border-radius: 29px 9px 29px 9px !important;
  }

  .commerce-discovery-page .shop-discovery-page-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .commerce-content .shop-content-article .shop-breadcrumb {
    padding-top: 32px;
  }

  .commerce-content .shop-content-page-header {
    min-height: 270px;
    padding: 34px 24px !important;
    border-radius: 29px 9px 29px 9px;
  }

  .commerce-content .shop-content-body {
    width: min(calc(100% - 28px), 980px);
    padding: 28px 20px !important;
    border-radius: 27px 9px 27px 9px;
  }

  .shop-cart-drawer,
  .shop-modal {
    border-radius: 26px 26px 0 0 !important;
  }
}

@media (max-width: 480px) {
  body.commerce-page:not(.commerce-home) .shop-header-luxury .shop-header-actions {
    gap: 2px;
  }

  body.commerce-page:not(.commerce-home) .shop-header-luxury :where(.shop-icon-button, .theme-trigger) {
    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;
  }

  .commerce-catalog .shop-catalog-intro-search > div {
    grid-template-columns: 1fr;
  }

  .commerce-catalog .shop-catalog-toolbar-v4 {
    position: relative;
    top: auto;
  }

  .commerce-catalog .shop-catalog-tools {
    align-items: end;
  }

  .commerce-catalog .shop-catalog-grid-v4 {
    grid-template-columns: 1fr !important;
  }

  .commerce-discovery-page .shop-discovery-product-grid {
    grid-template-columns: 1fr;
  }

  .commerce-discovery-page .shop-discovery-empty {
    min-height: 410px;
  }

  .commerce-content .shop-content-page-header h1 {
    font-size: clamp(39px, 13vw, 56px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .commerce-catalog .shop-catalog-intro-v4::after,
  .commerce-catalog .shop-catalog-grid-v4 :where(.shop-product-card, .shop-product-card-v2),
  .commerce-discovery-page .shop-discovery-product-card {
    transition: none !important;
    transform: none !important;
  }
}

/* Dense catalog navigation ------------------------------------------ */
.commerce-catalog .shop-category-chips-v4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  overflow: visible;
}

.commerce-catalog .shop-category-chips-v4 > [hidden],
.commerce-catalog .shop-filter-panel-v4 .shop-check[hidden] {
  display: none !important;
}

.commerce-catalog .shop-category-chips-v4 .commerce-category-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-color: color-mix(in srgb, var(--commerce-blue) 44%, var(--commerce-line)) !important;
  color: var(--commerce-blue);
  background: color-mix(in srgb, var(--commerce-surface-solid) 87%, #dbeafe) !important;
}

.commerce-catalog .shop-category-chips-v4 .commerce-category-more b {
  min-width: 26px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--commerce-blue), var(--commerce-violet));
  font-size: 10px;
}

.commerce-category-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1490;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(4, 8, 16, .66);
  backdrop-filter: blur(12px) saturate(115%);
}

.commerce-category-backdrop[hidden],
.commerce-category-directory[hidden] {
  display: none !important;
}

.commerce-category-directory {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 1500;
  width: min(920px, calc(100% - 38px));
  max-height: min(760px, calc(100dvh - 48px));
  padding: clamp(20px, 3vw, 34px);
  overflow: auto;
  border: 1px solid var(--commerce-line);
  border-radius: 34px 12px 34px 12px;
  color: var(--commerce-ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(47,111,237,.13), transparent 24rem),
    var(--commerce-surface-solid);
  box-shadow: 0 44px 130px rgba(0,0,0,.42);
  transform: translate(-50%, -50%);
}

.commerce-category-directory > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.commerce-category-directory > header small {
  color: var(--commerce-blue);
  font: 800 9px/1 Manrope, sans-serif;
  letter-spacing: .15em;
}

.commerce-category-directory > header h2 {
  margin: 8px 0 5px;
  color: var(--commerce-ink);
  font-size: clamp(25px, 4vw, 40px);
  letter-spacing: -.035em;
}

.commerce-category-directory > header p {
  margin: 0;
  color: var(--commerce-muted);
  font-size: 12px;
}

.commerce-category-directory-close {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border: 1px solid var(--commerce-line);
  border-radius: 16px 6px 16px 6px;
  color: var(--commerce-ink);
  background: var(--commerce-surface);
}

.commerce-category-directory-close svg,
.commerce-category-directory-search svg,
.commerce-filter-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.commerce-category-directory-search {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-inline: 16px;
  border: 1px solid var(--commerce-line);
  border-radius: 20px 7px 20px 7px;
  color: var(--commerce-blue);
  background: color-mix(in srgb, var(--commerce-surface-solid) 92%, #dbeafe);
}

.commerce-category-directory-search input {
  min-width: 0;
  flex: 1;
  min-height: 54px;
  border: 0 !important;
  outline: 0;
  color: var(--commerce-ink);
  background: transparent !important;
}

.commerce-category-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.commerce-category-directory-grid button {
  min-width: 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--commerce-line);
  border-radius: 18px 7px 18px 7px;
  color: var(--commerce-ink);
  background: var(--commerce-surface);
  text-align: start;
}

.commerce-category-directory-grid button:hover,
.commerce-category-directory-grid button.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--commerce-blue), var(--commerce-violet));
  box-shadow: 0 13px 30px rgba(47,111,237,.2);
}

.commerce-category-directory-grid button small {
  opacity: .58;
  font: 700 9px/1 Manrope, sans-serif;
}

.commerce-category-directory-grid button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.commerce-category-directory-empty {
  margin: 22px 0 0;
  padding: 28px;
  border: 1px dashed var(--commerce-line);
  border-radius: 18px;
  color: var(--commerce-muted);
  text-align: center;
}

body.commerce-category-directory-open {
  overflow: hidden;
}

.commerce-catalog .commerce-filter-search {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 8px;
  padding-inline: 11px;
  border: 1px solid var(--commerce-line);
  border-radius: 14px 5px 14px 5px;
  color: var(--commerce-blue);
  background: color-mix(in srgb, var(--commerce-surface-solid) 92%, #dbeafe);
}

.commerce-catalog .commerce-filter-search input {
  min-width: 0;
  width: 100%;
  min-height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 11px;
}

.commerce-catalog .commerce-filter-more {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  border: 1px dashed color-mix(in srgb, var(--commerce-blue) 34%, var(--commerce-line));
  border-radius: 13px 5px 13px 5px;
  color: var(--commerce-blue);
  background: rgba(47,111,237,.045);
  font-size: 10px;
  font-weight: 850;
}

.commerce-catalog [data-category-filters] .shop-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 8px;
}

.commerce-catalog [data-commerce-category-count] {
  min-width: 28px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--commerce-muted);
  background: color-mix(in srgb, var(--commerce-muted) 9%, transparent);
  font: 750 9px/1 Manrope, sans-serif;
  text-align: center;
}

/* Visitor application clarity --------------------------------------- */
body.visitor-register-page .register-shell {
  width: min(1240px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 18px;
  margin-inline: auto;
  padding: 34px 0 70px;
}

body.visitor-register-page .register-side {
  position: sticky;
  top: 24px;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(172, 204, 255, .16) !important;
  border-radius: 42px 13px 42px 13px !important;
  color: #fff;
  background:
    radial-gradient(circle at 14% 12%, rgba(125,211,252,.24), transparent 20rem),
    radial-gradient(circle at 92% 88%, rgba(122,69,224,.35), transparent 24rem),
    linear-gradient(145deg, #081326, #153c7d 54%, #43288a) !important;
  box-shadow: 0 30px 90px rgba(12, 31, 68, .3);
}

body.visitor-register-page .register-side :where(h1, p, small, strong, span) {
  color: #fff !important;
}

body.visitor-register-page .register-card {
  padding: clamp(24px, 4vw, 48px) !important;
  border-radius: 13px 42px 13px 42px !important;
}

body.visitor-register-page .register-card > header {
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}

body.visitor-register-page .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 14px;
}

body.visitor-register-page .form-grid > .wide {
  grid-column: 1 / -1;
}

body.visitor-register-page .visitor-form-section-head {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "step title" "step hint";
  align-items: center;
  column-gap: 12px;
  margin-top: 12px;
  padding: 17px 0 11px;
  border-top: 1px solid var(--commerce-line);
}

body.visitor-register-page .visitor-form-section-head:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

body.visitor-register-page .visitor-form-section-head::before {
  content: attr(data-step);
  grid-area: step;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px 5px 13px 5px;
  color: #fff;
  background: linear-gradient(135deg, var(--commerce-blue), var(--commerce-violet));
  box-shadow: 0 9px 24px rgba(47,111,237,.2);
  font-weight: 900;
}

body.visitor-register-page .visitor-form-section-head > span {
  grid-area: title;
  color: var(--commerce-ink);
  font-size: 14px;
  font-weight: 900;
}

body.visitor-register-page .visitor-form-section-head > small {
  grid-area: hint;
  margin-top: 3px;
  color: var(--commerce-muted);
  font-size: 10px;
}

body.visitor-register-page .visitor-form-summary {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(220, 38, 38, .24);
  border-radius: 18px 7px 18px 7px;
  color: #991b1b;
  background: rgba(254, 226, 226, .68);
}

html[data-theme="dark"] body.visitor-register-page .visitor-form-summary {
  color: #fecaca;
  background: rgba(127, 29, 29, .22);
}

body.visitor-register-page .visitor-form-summary[hidden],
body.visitor-register-page .visitor-field-error[hidden] {
  display: none !important;
}

body.visitor-register-page .visitor-form-summary strong {
  display: block;
  margin-bottom: 6px;
}

body.visitor-register-page .visitor-form-summary p {
  margin: 0;
}

body.visitor-register-page .visitor-form-summary ul {
  margin: 0;
  padding-inline-start: 20px;
}

body.visitor-register-page .visitor-form-summary a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.visitor-register-page .field {
  min-width: 0;
}

body.visitor-register-page .field > label {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--commerce-ink);
  font-weight: 800;
}

body.visitor-register-page :where(input, textarea) {
  min-height: 50px;
}

body.visitor-register-page textarea {
  min-height: 105px;
  resize: vertical;
}

body.visitor-register-page :where(input, textarea)[aria-invalid="true"] {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220,38,38,.11) !important;
}

body.visitor-register-page .visitor-field-error {
  display: block;
  margin-top: 6px;
  color: #b91c1c;
  font-size: 10px;
  line-height: 1.7;
}

html[data-theme="dark"] body.visitor-register-page .visitor-field-error {
  color: #fca5a5;
}

body.visitor-register-page .check-line + .visitor-field-error {
  grid-column: 1 / -1;
  margin-top: -10px;
}

body.visitor-register-page .visitor-password-control {
  position: relative;
  display: block;
}

body.visitor-register-page .visitor-password-control input {
  width: 100%;
  padding-inline-end: 68px !important;
}

body.visitor-register-page .visitor-password-toggle {
  position: absolute;
  inset-inline-end: 2px;
  top: 1px;
  width: 56px !important;
  min-width: 56px !important;
  height: 50px !important;
  min-height: 50px !important;
  border: 0;
  border-radius: 12px;
  color: var(--commerce-muted);
  background: transparent;
}

body.visitor-register-page .visitor-password-toggle:hover {
  color: var(--commerce-blue);
  background: rgba(47,111,237,.08);
}

body.visitor-register-page .visitor-password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

body.visitor-register-page .check-line {
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--commerce-line);
  border-radius: 16px 6px 16px 6px;
  background: color-mix(in srgb, var(--commerce-surface-solid) 88%, #dbeafe);
}

body.visitor-register-page .register-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--commerce-line);
}

body.visitor-register-page .register-actions .btn {
  min-height: 54px;
  padding-inline: 28px;
}

@media (max-width: 860px) {
  .commerce-category-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.visitor-register-page .register-shell {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 740px);
  }

  body.visitor-register-page .register-side {
    position: relative;
    top: auto;
    min-height: 460px;
  }
}

@media (max-width: 620px) {
  .commerce-catalog .shop-category-chips-v4 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-block: 10px 16px;
  }

  .commerce-catalog .shop-category-chips-v4 > button[data-commerce-category-button]:not(:first-child):not(.active) {
    display: none !important;
  }

  .commerce-catalog .shop-category-chips-v4 > button {
    width: 100%;
    min-width: 0;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .commerce-catalog .shop-category-chips-v4 > button.active:not(:first-child) {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .commerce-category-directory {
    inset: auto 0 0;
    width: 100%;
    max-height: 88dvh;
    padding: 22px 16px max(22px, env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: 30px 30px 0 0;
    transform: none;
  }

  .commerce-category-directory-grid {
    grid-template-columns: 1fr;
  }

  body.visitor-register-page .register-shell {
    width: min(100% - 16px, 740px);
    padding-top: 14px;
  }

  body.visitor-register-page .register-side {
    min-height: 410px;
    padding: 25px 20px;
    border-radius: 28px 9px 28px 9px !important;
  }

  body.visitor-register-page .register-card {
    padding: 25px 17px !important;
    border-radius: 9px 28px 9px 28px !important;
  }

  body.visitor-register-page .register-card > header {
    flex-direction: column;
  }

  body.visitor-register-page .form-grid {
    grid-template-columns: 1fr;
  }

  body.visitor-register-page .form-grid > .wide,
  body.visitor-register-page .check-line + .visitor-field-error {
    grid-column: 1;
  }

  body.visitor-register-page .visitor-form-section-head {
    grid-column: 1;
  }

  body.visitor-register-page .register-actions .btn {
    width: 100%;
  }
}

/* =====================================================================
   Blue Sky 0.13.37 — Shop PLP clarity redesign
   Research direction: category navigation is kept separate from faceted
   filtering; product discovery is compact, scannable, and mobile-first.
   ===================================================================== */

.commerce-catalog-v5 {
  --shop-plp-line: color-mix(in srgb, var(--commerce-line, #dce4ef) 86%, transparent);
  --shop-plp-surface: color-mix(in srgb, var(--commerce-surface-solid, #fff) 95%, transparent);
  --shop-plp-soft: color-mix(in srgb, var(--commerce-surface, #f8fafc) 90%, transparent);
  --shop-plp-blue-soft: color-mix(in srgb, var(--commerce-blue, #2f6fed) 9%, transparent);
  --shop-plp-violet-soft: color-mix(in srgb, var(--commerce-violet, #7a45e0) 8%, transparent);
}

/* Quiet category-page hero: hierarchy first, decoration second. */
.commerce-catalog-v5 .shop-catalog-intro-v5 {
  min-height: 0 !important;
  padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 52px) !important;
  border-bottom: 1px solid var(--shop-plp-line);
  background:
    radial-gradient(circle at 84% 18%, var(--shop-plp-violet-soft), transparent 31rem),
    radial-gradient(circle at 14% 2%, var(--shop-plp-blue-soft), transparent 28rem),
    var(--commerce-canvas, var(--shop-bg, #f8fafc)) !important;
  overflow: hidden;
}

.commerce-catalog-v5 .shop-catalog-intro-v5::before {
  opacity: .42 !important;
}

.commerce-catalog-v5 .shop-catalog-intro-v5::after {
  content: none !important;
}

.commerce-catalog-v5 .shop-catalog-intro-v5 > .shop-container {
  position: relative;
  z-index: 1;
}

.commerce-catalog-v5 .shop-catalog-intro-v5 .shop-breadcrumb {
  margin-bottom: clamp(26px, 3vw, 38px);
  color: var(--commerce-muted, var(--shop-text-muted));
  font-size: 11px;
}

.commerce-catalog-v5 .shop-catalog-intro-v5 .shop-breadcrumb a {
  color: inherit;
}

.commerce-catalog-v5 .shop-catalog-intro-v5 .shop-breadcrumb strong {
  color: var(--commerce-ink, var(--shop-text));
}

.commerce-catalog-v5 .shop-catalog-intro-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: clamp(26px, 5vw, 80px) !important;
}

.commerce-catalog-v5 .shop-catalog-intro-grid > div:first-child {
  max-width: 790px !important;
}

.commerce-catalog-v5 .shop-catalog-intro-v5 .shop-overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--commerce-blue, #2f6fed) !important;
  font: 800 9px/1.2 Manrope, Vazirmatn, sans-serif;
  letter-spacing: .16em;
}

.commerce-catalog-v5 .shop-catalog-intro-v5 h1 {
  max-width: 760px;
  margin: 0;
  color: var(--commerce-ink, var(--shop-text)) !important;
  font-size: clamp(34px, 5vw, 62px) !important;
  line-height: 1.16 !important;
  letter-spacing: -.035em;
}

.commerce-catalog-v5 .shop-catalog-intro-v5 [data-catalog-description] {
  max-width: 700px;
  margin: 16px 0 0 !important;
  color: var(--commerce-muted, var(--shop-text-soft)) !important;
  font-size: clamp(13px, 1.2vw, 15px) !important;
  line-height: 2 !important;
}

.commerce-catalog-v5 .shop-catalog-finder {
  min-width: 248px;
  min-height: 78px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--shop-plp-line);
  border-radius: 22px;
  background: var(--shop-plp-surface);
  color: var(--commerce-ink, var(--shop-text));
  text-align: right;
  box-shadow: 0 12px 34px rgba(15,23,42,.06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.commerce-catalog-v5 .shop-catalog-finder:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--commerce-blue, #2f6fed) 36%, var(--shop-plp-line));
  box-shadow: 0 18px 42px rgba(15,23,42,.09);
}

.commerce-catalog-v5 .shop-catalog-finder-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--commerce-blue, #2f6fed), var(--commerce-violet, #7a45e0));
  color: #fff;
  font-size: 17px;
}

.commerce-catalog-v5 .shop-catalog-finder small,
.commerce-catalog-v5 .shop-catalog-finder strong {
  display: block;
}

.commerce-catalog-v5 .shop-catalog-finder small {
  margin-bottom: 4px;
  color: var(--commerce-muted, var(--shop-text-muted));
  font-size: 9px;
}

.commerce-catalog-v5 .shop-catalog-finder strong {
  font-size: 12px;
}

.commerce-catalog-v5 .shop-catalog-finder svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

/* Category is navigation, not a repeated filter facet. */
.commerce-catalog-v5 .shop-catalog-section-v5 {
  padding: clamp(28px, 4vw, 50px) 0 110px !important;
}

.commerce-catalog-v5 .shop-category-rail-v5 {
  margin: 0 0 30px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.commerce-catalog-v5 .shop-category-rail-v5::after {
  content: none !important;
}

.commerce-catalog-v5 .shop-category-rail-v5 > header {
  min-height: 58px;
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 20px;
  margin-bottom: 14px !important;
}

.commerce-catalog-v5 .shop-category-rail-v5 > header span {
  color: var(--commerce-blue, #2f6fed) !important;
  font: 800 8px/1 Manrope, Vazirmatn, sans-serif;
  letter-spacing: .14em;
}

.commerce-catalog-v5 .shop-category-rail-v5 > header h2 {
  margin: 6px 0 0 !important;
  color: var(--commerce-ink, var(--shop-text));
  font-size: clamp(19px, 2vw, 26px) !important;
}

.commerce-catalog-v5 .shop-category-rail-v5 > header p {
  max-width: 620px;
  margin: 7px 0 0;
  color: var(--commerce-muted, var(--shop-text-muted));
  font-size: 10px;
  line-height: 1.8;
}

.commerce-catalog-v5 .shop-category-rail-v5 > header button {
  min-height: 42px;
  padding: 0 15px !important;
  border: 1px solid var(--shop-plp-line) !important;
  border-radius: 14px !important;
  background: var(--shop-plp-surface) !important;
  color: var(--commerce-ink, var(--shop-text)) !important;
  font-size: 10px !important;
  font-weight: 800;
}

.commerce-catalog-v5 .shop-category-rail-v5 .shop-category-showcase-grid {
  display: grid !important;
  grid-template-columns: repeat(var(--shop-category-columns, 4), minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.commerce-catalog-v5 .shop-category-rail-v5 .shop-catalog-category-card {
  min-height: clamp(142px, 14vw, 184px) !important;
  border: 1px solid var(--shop-plp-line) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  transform: none !important;
}

.commerce-catalog-v5 .shop-category-rail-v5 .shop-catalog-category-card:hover {
  border-color: color-mix(in srgb, var(--commerce-blue, #2f6fed) 35%, var(--shop-plp-line)) !important;
  box-shadow: 0 15px 34px rgba(15,23,42,.09) !important;
  transform: translateY(-2px) !important;
}

.commerce-catalog-v5 .shop-category-rail-v5 .shop-category-card-copy {
  padding: 16px !important;
}

.commerce-catalog-v5 .shop-category-rail-v5 .shop-category-card-copy strong {
  font-size: 15px !important;
}

.commerce-catalog-v5 .shop-category-rail-v5 .shop-category-card-copy em,
.commerce-catalog-v5 .shop-category-rail-v5 .shop-category-child-list {
  display: none !important;
}

/* One product-finding bar: count + in-list search + sort + filters. */
.commerce-catalog-v5 .shop-catalog-toolbar-v5 {
  position: sticky;
  top: 86px;
  z-index: 24;
  min-height: 72px !important;
  display: grid !important;
  grid-template-columns: minmax(150px, auto) minmax(240px, 1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0 0 20px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--shop-plp-line) !important;
  border-radius: 20px !important;
  background: color-mix(in srgb, var(--commerce-surface-solid, #fff) 88%, transparent) !important;
  box-shadow: 0 12px 32px rgba(15,23,42,.06) !important;
  backdrop-filter: blur(20px);
}

.commerce-catalog-v5 .shop-catalog-summary {
  min-width: 0;
  padding-inline: 6px 12px;
}

.commerce-catalog-v5 .shop-catalog-summary::before {
  display: none !important;
}

.commerce-catalog-v5 .shop-catalog-summary strong {
  display: block;
  color: var(--commerce-ink, var(--shop-text));
  font-size: 12px !important;
}

.commerce-catalog-v5 .shop-catalog-summary span {
  display: block;
  margin-top: 2px;
  color: var(--commerce-muted, var(--shop-text-muted));
  font-size: 9px !important;
  white-space: nowrap;
}

.commerce-catalog-v5 .shop-catalog-inline-search {
  min-height: 48px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--shop-plp-line);
  border-radius: 15px;
  background: var(--shop-plp-soft);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.commerce-catalog-v5 .shop-catalog-inline-search:focus-within {
  border-color: color-mix(in srgb, var(--commerce-blue, #2f6fed) 48%, var(--shop-plp-line));
  background: var(--shop-plp-surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--commerce-blue, #2f6fed) 10%, transparent);
}

.commerce-catalog-v5 .shop-catalog-inline-search svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--commerce-muted, var(--shop-text-muted));
  stroke-width: 1.7;
}

.commerce-catalog-v5 .shop-catalog-inline-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--commerce-ink, var(--shop-text));
  font: inherit;
  font-size: 11px;
}

.commerce-catalog-v5 .shop-catalog-inline-search input::placeholder {
  color: var(--commerce-muted, var(--shop-text-muted));
}

.commerce-catalog-v5 .shop-catalog-inline-search kbd {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--shop-plp-line);
  border-radius: 7px;
  background: var(--shop-plp-surface);
  color: var(--commerce-muted, var(--shop-text-muted));
  font: 700 10px/1 Manrope, monospace;
}

.commerce-catalog-v5 .shop-catalog-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.commerce-catalog-v5 .shop-sort {
  min-width: 184px;
}

.commerce-catalog-v5 .shop-sort > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.commerce-catalog-v5 .shop-sort select {
  width: 100%;
  min-height: 48px !important;
  border-radius: 15px !important;
  background-color: var(--shop-plp-surface) !important;
}

.commerce-catalog-v5 .shop-filter-toggle {
  min-height: 48px !important;
  border-radius: 15px !important;
}

/* Cleaner filter surface. Category is intentionally absent. */
.commerce-catalog-v5 .shop-catalog-layout-v5 {
  grid-template-columns: 264px minmax(0, 1fr) !important;
  gap: clamp(20px, 2.5vw, 34px) !important;
}

.commerce-catalog-v5 .shop-filter-panel-v5 {
  top: 174px !important;
  max-height: calc(100dvh - 194px) !important;
  padding: 0 16px 14px !important;
  border: 1px solid var(--shop-plp-line) !important;
  border-radius: 20px !important;
  background: var(--shop-plp-surface) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.commerce-catalog-v5 .shop-filter-panel-v5 > header {
  min-height: 86px !important;
  margin-inline: -16px !important;
  padding: 13px 16px !important;
  border-bottom: 1px solid var(--shop-plp-line);
  background: color-mix(in srgb, var(--commerce-surface-solid, #fff) 96%, transparent) !important;
}

.commerce-catalog-v5 .shop-filter-panel-v5 > header::before {
  content: none !important;
}

.commerce-catalog-v5 .shop-filter-panel-v5 > header h2 {
  margin: 4px 0 0 !important;
  font-size: 15px !important;
}

.commerce-catalog-v5 .shop-filter-panel-v5 > header p {
  max-width: 150px;
  margin: 5px 0 0;
  color: var(--commerce-muted, var(--shop-text-muted));
  font-size: 8px;
  line-height: 1.6;
}

.commerce-catalog-v5 .shop-filter-panel-v5 > header > div:last-child {
  display: flex;
  align-items: center;
  gap: 4px;
}

.commerce-catalog-v5 .shop-filter-panel-v5 > header button {
  min-width: 36px !important;
  min-height: 36px !important;
  color: var(--commerce-blue, #2f6fed) !important;
  font-size: 8px !important;
}

.commerce-catalog-v5 .shop-filter-panel-v5 .shop-filter-close {
  display: none;
  font-size: 22px !important;
}

.commerce-catalog-v5 .shop-filter-group {
  margin: 0;
  border-bottom: 1px solid var(--shop-plp-line);
}

.commerce-catalog-v5 .shop-filter-group[hidden] {
  display: none !important;
}

.commerce-catalog-v5 .shop-filter-group > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
  color: var(--commerce-ink, var(--shop-text));
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 850;
}

.commerce-catalog-v5 .shop-filter-group > summary::-webkit-details-marker {
  display: none;
}

.commerce-catalog-v5 .shop-filter-group > summary span {
  color: var(--commerce-muted, var(--shop-text-muted));
  transition: transform .2s ease;
}

.commerce-catalog-v5 .shop-filter-group[open] > summary span {
  transform: rotate(180deg);
}

.commerce-catalog-v5 .shop-filter-group-body {
  display: grid;
  gap: 5px;
  padding: 0 0 14px;
}

.commerce-catalog-v5 .shop-check {
  min-height: 38px !important;
  padding: 3px 5px !important;
  border-radius: 10px !important;
  font-size: 10px;
}

.commerce-catalog-v5 .shop-check b {
  font-weight: 650;
}

.commerce-catalog-v5 .shop-check span {
  width: 18px !important;
  height: 18px !important;
  border-radius: 6px !important;
}

.commerce-catalog-v5 .shop-price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.commerce-catalog-v5 .shop-price-fields label {
  color: var(--commerce-muted, var(--shop-text-muted));
  font-size: 8px;
}

.commerce-catalog-v5 .shop-price-fields input {
  width: 100%;
  min-height: 42px !important;
  margin-top: 4px;
  padding-inline: 9px;
  border-radius: 11px !important;
  font-size: 9px;
}

.commerce-catalog-v5 .shop-note-filter {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px !important;
}

.commerce-catalog-v5 .shop-note-filter button {
  min-width: 0 !important;
  min-height: 34px !important;
  padding-inline: 10px;
  border-radius: 999px !important;
  font-size: 9px;
}

/* Active refinements live above results and never repeat category. */
.commerce-catalog-v5 .shop-results-control {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.commerce-catalog-v5 .shop-active-filters:empty + [data-clear-visible] {
  display: none !important;
}

.commerce-catalog-v5 .shop-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.commerce-catalog-v5 .shop-active-filters button {
  min-height: 32px;
  padding: 0 10px !important;
  border: 1px solid var(--shop-plp-line) !important;
  border-radius: 999px !important;
  background: var(--shop-plp-soft) !important;
  color: var(--commerce-ink, var(--shop-text)) !important;
  font-size: 9px !important;
}

/* Product cards optimized for scanning: visual, name, 2 useful facts, price, CTA. */
.commerce-catalog-v5 .shop-catalog-grid-v5 {
  gap: clamp(12px, 1.8vw, 22px) !important;
}

.commerce-catalog-v5 .shop-catalog-product-card {
  border: 0 !important;
  border-radius: 18px !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  transform: none !important;
}

.commerce-catalog-v5 .shop-catalog-product-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

.commerce-catalog-v5 .shop-catalog-product-card .shop-product-media-wrap {
  position: relative;
  aspect-ratio: 4 / 4.6;
  min-height: 0 !important;
  overflow: hidden;
  border: 1px solid var(--shop-plp-line) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--commerce-blue, #2f6fed) 8%, transparent), transparent 44%),
    var(--shop-plp-soft) !important;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.commerce-catalog-v5 .shop-catalog-product-card:hover .shop-product-media-wrap {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--commerce-blue, #2f6fed) 28%, var(--shop-plp-line)) !important;
  box-shadow: 0 16px 38px rgba(15,23,42,.08);
}

.commerce-catalog-v5 .shop-catalog-product-card .shop-product-media {
  height: 100% !important;
  min-height: 0 !important;
  display: grid;
  place-items: center;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
}

.commerce-catalog-v5 .shop-catalog-product-card .shop-product-media > img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  transition: transform .28s ease;
}

.commerce-catalog-v5 .shop-catalog-product-card:hover .shop-product-media > img {
  transform: scale(1.025);
}

.commerce-catalog-v5 .shop-catalog-product-card .shop-product-labels {
  top: 11px;
  right: 11px;
}

.commerce-catalog-v5 .shop-catalog-product-card .shop-product-label {
  border-radius: 999px !important;
  background: var(--commerce-ink, #111827) !important;
  color: var(--commerce-canvas, #fff) !important;
  font-size: 8px !important;
}

.commerce-catalog-v5 .shop-catalog-product-card .shop-product-label.is-muted {
  background: color-mix(in srgb, var(--commerce-muted, #64748b) 84%, transparent) !important;
}

.commerce-catalog-v5 .shop-catalog-product-card .shop-favorite-button {
  top: 10px !important;
  left: 10px !important;
  width: 38px !important;
  height: 38px !important;
  border: 1px solid var(--shop-plp-line) !important;
  background: color-mix(in srgb, var(--commerce-surface-solid, #fff) 90%, transparent) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}

.commerce-catalog-v5 .shop-catalog-product-card .shop-product-info {
  display: block !important;
  padding: 13px 3px 0 !important;
}

.commerce-catalog-v5 .shop-catalog-card-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--commerce-muted, var(--shop-text-muted));
  font-size: 8px;
  font-weight: 700;
}

.commerce-catalog-v5 .shop-catalog-card-eyebrow i {
  color: var(--commerce-blue, #2f6fed);
  font-style: normal;
  font-size: 8px;
}

.commerce-catalog-v5 .shop-catalog-product-card h3 {
  min-height: 0 !important;
  margin: 0 !important;
  color: var(--commerce-ink, var(--shop-text));
  font-size: clamp(13px, 1.15vw, 16px) !important;
  line-height: 1.6 !important;
}

.commerce-catalog-v5 .shop-catalog-card-en {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--commerce-muted, var(--shop-text-muted));
  font: 650 8px/1.5 Manrope, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.commerce-catalog-v5 .shop-catalog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.commerce-catalog-v5 .shop-catalog-card-meta span,
.commerce-catalog-v5 .shop-catalog-card-notes span {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--shop-plp-line);
  border-radius: 999px;
  background: var(--shop-plp-soft);
  color: var(--commerce-muted, var(--shop-text-soft));
  font-size: 8px;
}

.commerce-catalog-v5 .shop-catalog-card-notes {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px !important;
  margin-top: 5px !important;
}

.commerce-catalog-v5 .shop-catalog-card-bottom {
  min-height: 48px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--shop-plp-line);
}

.commerce-catalog-v5 .shop-catalog-card-bottom .shop-product-price strong {
  font-size: clamp(15px, 1.35vw, 19px) !important;
}

.commerce-catalog-v5 .shop-catalog-card-bottom .shop-product-price small {
  margin-inline-start: 4px;
  color: var(--commerce-muted, var(--shop-text-muted));
  font-size: 8px;
}

.commerce-catalog-v5 .shop-catalog-card-bottom .shop-product-add {
  width: auto !important;
  min-width: 88px;
  min-height: 38px !important;
  padding: 0 11px !important;
  border-radius: 12px !important;
  background: var(--commerce-ink, #111827) !important;
  color: var(--commerce-canvas, #fff) !important;
  font-size: 9px !important;
}

html[data-theme="dark"] .commerce-catalog-v5 .shop-catalog-card-bottom .shop-product-add {
  background: linear-gradient(135deg, var(--commerce-blue, #2f6fed), var(--commerce-violet, #7a45e0)) !important;
  color: #fff !important;
}

.commerce-catalog-v5 .shop-catalog-card-bottom .shop-product-add:disabled {
  opacity: .5;
}

/* Tablet / mobile */
@media (max-width: 1100px) {
  .commerce-catalog-v5 .shop-catalog-intro-grid {
    grid-template-columns: minmax(0, 1fr) 240px !important;
    gap: 28px !important;
  }

  .commerce-catalog-v5 .shop-category-rail-v5 .shop-category-showcase-grid {
    grid-template-columns: repeat(var(--shop-category-columns-tablet, 3), minmax(0, 1fr)) !important;
  }

  .commerce-catalog-v5 .shop-catalog-layout-v5 {
    grid-template-columns: 234px minmax(0, 1fr) !important;
  }
}

@media (max-width: 980px) {
  .commerce-catalog-v5 .shop-catalog-intro-v5 {
    min-height: 0 !important;
  }

  .commerce-catalog-v5 .shop-catalog-intro-grid {
    grid-template-columns: 1fr !important;
  }

  .commerce-catalog-v5 .shop-catalog-finder {
    width: min(100%, 420px);
  }

  .commerce-catalog-v5 .shop-catalog-toolbar-v5 {
    top: 74px;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .commerce-catalog-v5 .shop-catalog-summary {
    grid-column: 1 / -1;
    padding: 0 4px 2px;
  }

  .commerce-catalog-v5 .shop-catalog-layout-v5 {
    grid-template-columns: 1fr !important;
  }

  .commerce-catalog-v5 .shop-filter-panel-v5 {
    position: fixed !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1250 !important;
    width: 100% !important;
    max-height: 88dvh !important;
    padding: 0 18px max(18px, env(safe-area-inset-bottom)) !important;
    border-width: 1px 0 0 !important;
    border-radius: 26px 26px 0 0 !important;
    box-shadow: 0 -28px 80px rgba(2,6,23,.3) !important;
  }

  .commerce-catalog-v5 .shop-filter-panel-v5 > header {
    margin-inline: -18px !important;
    padding-inline: 18px !important;
    border-radius: 26px 26px 0 0;
  }

  .commerce-catalog-v5 .shop-filter-panel-v5 .shop-filter-close {
    display: inline-grid !important;
    place-items: center;
  }
}

@media (max-width: 720px) {
  .commerce-catalog-v5 .shop-catalog-intro-v5 {
    padding: 24px 0 28px !important;
  }

  .commerce-catalog-v5 .shop-catalog-intro-v5 .shop-breadcrumb {
    margin-bottom: 22px;
  }

  .commerce-catalog-v5 .shop-catalog-intro-v5 h1 {
    font-size: clamp(30px, 10vw, 42px) !important;
  }

  .commerce-catalog-v5 .shop-catalog-finder {
    min-width: 0;
    min-height: 68px;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
  }

  .commerce-catalog-v5 .shop-catalog-finder-icon {
    width: 38px;
    height: 38px;
  }

  .commerce-catalog-v5 .shop-category-rail-v5 > header {
    align-items: start !important;
  }

  .commerce-catalog-v5 .shop-category-rail-v5 > header p {
    display: none;
  }

  .commerce-catalog-v5 .shop-category-rail-v5 .shop-category-showcase-grid {
    display: flex !important;
    gap: 9px !important;
    margin-inline: -16px;
    padding-inline: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .commerce-catalog-v5 .shop-category-rail-v5 .shop-category-showcase-grid::-webkit-scrollbar {
    display: none;
  }

  .commerce-catalog-v5 .shop-category-rail-v5 .shop-catalog-category-card {
    flex: 0 0 min(72vw, 240px);
    min-height: 132px !important;
    scroll-snap-align: start;
  }

  .commerce-catalog-v5 .shop-catalog-toolbar-v5 {
    top: 66px;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    padding: 8px !important;
    border-radius: 16px !important;
  }

  .commerce-catalog-v5 .shop-catalog-inline-search {
    min-height: 44px;
    padding-inline: 10px;
  }

  .commerce-catalog-v5 .shop-catalog-inline-search kbd {
    display: none;
  }

  .commerce-catalog-v5 .shop-catalog-tools {
    gap: 6px;
  }

  .commerce-catalog-v5 .shop-sort {
    min-width: 0;
  }

  .commerce-catalog-v5 .shop-sort select {
    width: 112px;
    min-width: 112px;
    min-height: 44px !important;
    padding-inline: 9px 28px !important;
    font-size: 9px !important;
  }

  .commerce-catalog-v5 .shop-filter-toggle {
    width: 44px;
    min-width: 44px;
    min-height: 44px !important;
    padding: 0 !important;
    justify-content: center;
  }

  .commerce-catalog-v5 .shop-filter-toggle > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .commerce-catalog-v5 .shop-filter-toggle b {
    position: absolute;
    top: -5px;
    left: -4px;
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--commerce-blue, #2f6fed);
    color: #fff;
    font-size: 8px;
  }

  .commerce-catalog-v5 .shop-catalog-grid-v5 {
    grid-template-columns: repeat(var(--shop-catalog-cols-mobile, 2), minmax(0, 1fr)) !important;
    gap: 16px 10px !important;
  }

  .commerce-catalog-v5 .shop-catalog-product-card .shop-product-media-wrap {
    border-radius: 14px !important;
  }

  .commerce-catalog-v5 .shop-catalog-product-card .shop-product-info {
    padding-top: 9px !important;
  }

  .commerce-catalog-v5 .shop-catalog-card-eyebrow i,
  .commerce-catalog-v5 .shop-catalog-card-en,
  .commerce-catalog-v5 .shop-catalog-card-notes {
    display: none !important;
  }

  .commerce-catalog-v5 .shop-catalog-card-meta {
    margin-top: 6px;
  }

  .commerce-catalog-v5 .shop-catalog-card-meta span:nth-child(n+2) {
    display: none;
  }

  .commerce-catalog-v5 .shop-catalog-card-bottom {
    grid-template-columns: 1fr auto;
    gap: 5px;
    margin-top: 8px;
    padding-top: 8px;
  }

  .commerce-catalog-v5 .shop-catalog-card-bottom .shop-product-add {
    min-width: 38px;
    width: 38px !important;
    height: 38px;
    padding: 0 !important;
  }

  .commerce-catalog-v5 .shop-catalog-card-bottom .shop-product-add span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

@media (max-width: 460px) {
  .commerce-catalog-v5 .shop-catalog-section-v5 {
    padding-bottom: 76px !important;
  }

  .commerce-catalog-v5 .shop-category-rail-v5 > header button {
    min-height: 38px;
    padding-inline: 10px !important;
    font-size: 9px !important;
  }

  .commerce-catalog-v5 .shop-catalog-product-card h3 {
    font-size: 12px !important;
  }

  .commerce-catalog-v5 .shop-catalog-card-meta span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ==========================================================================
   Home surface refinement
   Scoped to body.commerce-home and loaded after every legacy home layer
   (storefront-2026, storefront-home-stability, public-redesign, bss-levelup),
   so these declarations resolve last without touching those files.
   ========================================================================== */

body.commerce-home .shop-section {
  padding-block: clamp(68px, 7.5vw, 124px) !important;
}

body.commerce-home .premium-section-head > div > span,
body.commerce-home .premium-section-head > div > span[data-setting] {
  display: inline-block;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .26em !important;
  color: var(--bss-primary) !important;
}

body.commerce-home .premium-section-head h2 {
  font-size: clamp(28px, 3.6vw, 46px) !important;
  line-height: 1.24 !important;
  margin-block: 14px 0 !important;
}

body.commerce-home .premium-section-head p {
  font-size: clamp(13.5px, 1.15vw, 15.5px) !important;
  line-height: 1.85 !important;
  max-width: 58ch;
}

/* Trust strip: four flat hairline boxes become tactile cards. */
body.commerce-home .premium-hero-trust {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)) !important;
  gap: 14px !important;
}

body.commerce-home .premium-hero-trust > span {
  display: flex !important;
  align-items: center;
  gap: 13px;
  padding: 17px 19px !important;
  border: 1px solid var(--bss-border) !important;
  border-radius: var(--bss-radius-lg) !important;
  background: var(--bss-surface-raised) !important;
  box-shadow: var(--bss-shadow-sm) !important;
  transition: transform .2s cubic-bezier(.22, .8, .24, 1), box-shadow .2s ease, border-color .2s ease;
}

body.commerce-home .premium-hero-trust > span:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--bss-primary) 42%, var(--bss-border)) !important;
  box-shadow: var(--bss-shadow-md) !important;
}

body.commerce-home .premium-hero-trust svg {
  flex: none;
  width: 36px !important;
  height: 36px !important;
  padding: 8px;
  border-radius: 12px;
  color: var(--bss-primary) !important;
  background: var(--bss-primary-subtle);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.commerce-home .premium-hero-trust b {
  font-size: 13.5px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}

/* Empty sections used to collapse into full-height voids. Keep them compact
   and deliberately unfinished-looking rather than broken-looking. */
body.commerce-home .shop-home-state {
  display: flex !important;
  align-items: center;
  gap: 18px;
  min-height: 0 !important;
  padding: 24px 26px !important;
  border: 1px dashed color-mix(in oklab, var(--bss-primary) 32%, var(--bss-border)) !important;
  border-radius: var(--bss-radius-xl) !important;
  background: linear-gradient(135deg, var(--bss-primary-subtle), transparent 72%) !important;
  box-shadow: none !important;
  text-align: start;
}

body.commerce-home .shop-home-state > div {
  flex: 1 1 auto;
  min-width: 0;
}

body.commerce-home .shop-home-state h3 {
  margin: 0 0 5px !important;
  font-size: 16.5px !important;
  line-height: 1.5 !important;
}

body.commerce-home .shop-home-state p {
  margin: 0 !important;
  font-size: 13.5px !important;
  line-height: 1.8 !important;
  color: var(--bss-text-soft) !important;
}

body.commerce-home .shop-home-state-icon {
  display: grid !important;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--bss-primary);
  background: var(--bss-primary-subtle);
}

body.commerce-home .shop-home-state-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

body.commerce-home .shop-home-state-action {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding-inline: 17px;
  border-radius: var(--bss-radius-pill);
  border: 1px solid var(--bss-border);
  background: var(--bss-surface);
  font-size: 12.5px;
  font-weight: 650;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

body.commerce-home .shop-home-state-action:hover {
  transform: translateY(-2px);
  border-color: var(--bss-primary);
  background: var(--bss-primary-subtle);
}

/* Discovery pathway cards: interior was cramped against the card edge. */
body.commerce-home .premium-discovery-grid > a,
body.commerce-home .premium-discovery-grid > button {
  padding: 26px 24px !important;
  border-radius: var(--bss-radius-xl) !important;
  transition: transform .22s cubic-bezier(.22, .8, .24, 1), box-shadow .22s ease;
}

body.commerce-home .premium-discovery-grid > a:hover,
body.commerce-home .premium-discovery-grid > button:hover {
  transform: translateY(-4px);
  box-shadow: var(--bss-shadow-lg);
}

body.commerce-home .premium-discovery-grid h3 {
  font-size: clamp(17px, 1.5vw, 21px) !important;
  line-height: 1.4 !important;
}

body.commerce-home .premium-discovery-grid p {
  font-size: 13px !important;
  line-height: 1.8 !important;
}

body.commerce-home .premium-discovery-grid small {
  letter-spacing: .2em !important;
  font-size: 10px !important;
}

/* Manifesto figures read as body copy today; give them display weight. */
body.commerce-home .premium-story-facts b {
  font-size: clamp(28px, 3vw, 40px) !important;
  line-height: 1.1 !important;
  background: linear-gradient(135deg, var(--bss-primary), var(--bss-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.commerce-home .premium-story-facts small {
  font-size: 12.5px !important;
  line-height: 1.6 !important;
}

@media (prefers-reduced-motion: reduce) {
  body.commerce-home .premium-hero-trust > span,
  body.commerce-home .premium-discovery-grid > a,
  body.commerce-home .premium-discovery-grid > button,
  body.commerce-home .shop-home-state-action {
    transition: none;
    transform: none;
  }
}

/* ==========================================================================
   Mobile OS polish — loads last on commerce / auth / pay pages
   Breakpoints: 820 (tablet), 560 (phone), 390 (narrow)
   Safe-area aware. No horizontal scroll. Touch targets ≥44px.
   ========================================================================== */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.commerce-page,
body.customer-auth-page,
body.register-page,
body.payment-page,
body.login-page {
  overflow-x: clip;
  max-width: 100vw;
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

body.commerce-page .shop-home-hero-v12,
body.commerce-page .shop-section,
body.commerce-page .premium-marquee {
  overflow-x: clip;
  max-width: 100vw;
}

body.commerce-page .premium-hero-halo,
body.commerce-page .home-selected-visual-halo,
body.commerce-page .premium-guide-orb {
  max-width: 100%;
  pointer-events: none;
}

body.commerce-page .shop-container,
body.commerce-page .premium-hero-shell {
  max-width: min(100%, 100vw) !important;
  box-sizing: border-box;
}

body.commerce-page .shop-hero-stage,
body.commerce-page .shop-hero-product-card,
body.commerce-page .premium-product-sculpture {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

@media (max-width: 820px) {
  body.commerce-home .shop-section {
    padding-block: clamp(44px, 9vw, 72px) !important;
  }

  body.commerce-home .premium-section-head h2 {
    font-size: clamp(24px, 7vw, 34px) !important;
  }

  body.commerce-home .premium-hero-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.commerce-home .premium-hero-trust > span {
    padding: 14px 14px !important;
    gap: 10px;
  }

  body.commerce-home .shop-home-state {
    flex-wrap: wrap !important;
    gap: 14px !important;
    padding: 18px 16px !important;
  }

  body.commerce-home .shop-home-state-action {
    width: 100%;
    justify-content: center;
  }

  body.commerce-home .premium-discovery-grid {
    grid-template-columns: 1fr !important;
  }

  body.commerce-home .premium-discovery-grid > a,
  body.commerce-home .premium-discovery-grid > button {
    padding: 22px 18px !important;
  }

  body.commerce-home .premium-story-facts {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.commerce-home .premium-story-facts b {
    font-size: clamp(22px, 6.5vw, 30px) !important;
  }

  /* Header: denser chrome, larger tap targets */
  .shop-header-row {
    gap: 8px !important;
  }

  .shop-icon-button,
  .shop-cart-button,
  .shop-mobile-menu {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .shop-button {
    min-height: 48px !important;
  }

  .shop-home-hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100%;
  }

  .shop-home-hero-actions .shop-button {
    width: 100%;
  }

  .shop-product-grid,
  .premium-product-grid,
  .shop-home-product-grid-v4 {
    grid-template-columns: 1fr !important;
  }

  .shop-category-grid,
  .shop-category-grid-v4,
  .premium-category-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  /* Auth / register: full-bleed comfort */
  .customer-auth-shell,
  .register-shell {
    width: min(100%, calc(100vw - 16px)) !important;
    border-radius: 22px !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .auth-otp-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .auth-otp-cell {
    min-height: 48px !important;
    font-size: 18px !important;
  }

  /* Payment */
  .payment-layout,
  .payment-shell {
    grid-template-columns: 1fr !important;
    padding-inline: 12px !important;
  }

  .payment-button {
    min-height: 48px !important;
    width: 100%;
  }

  /* Cart drawer full-screen feel */
  .shop-cart-drawer {
    width: min(100vw, 100%) !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }

  /* Tables: keep scroll contained, never blow page width */
  .table-wrap,
  .shop-table-wrap,
  .customer-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 560px) {
  body.commerce-home .premium-hero-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.commerce-home .premium-hero-trust > span {
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
    min-height: 92px;
  }

  body.commerce-home .premium-hero-trust svg {
    width: 32px !important;
    height: 32px !important;
  }

  body.commerce-home .premium-hero-trust b {
    font-size: 12.5px !important;
  }

  body.commerce-home .premium-section-head {
    display: grid !important;
    gap: 10px !important;
  }

  body.commerce-home .premium-section-head a {
    justify-self: start;
  }

  body.commerce-home .premium-story-facts {
    grid-template-columns: 1fr !important;
  }

  .shop-category-grid,
  .shop-category-grid-v4,
  .premium-category-grid {
    grid-template-columns: 1fr !important;
  }

  .shop-announcement .shop-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
  }

  .shop-brand span small {
    display: none;
  }

  .shop-brand strong {
    font-size: 12px !important;
    letter-spacing: .04em;
  }

  .shop-header-luxury .shop-container {
    padding-inline: 10px !important;
  }

  .shop-container {
    width: min(calc(100% - 20px), 100%) !important;
  }

  h1, .shop-home-hero-copy h1, #homeHeroTitle {
    font-size: clamp(26px, 8.2vw, 34px) !important;
    line-height: 1.28 !important;
  }

  .shop-product-title,
  .commerce-product h1 {
    font-size: clamp(22px, 7vw, 30px) !important;
  }

  .home-selected-card {
    grid-template-columns: 1fr !important;
  }

  .home-selected-actions,
  .shop-home-hero-actions {
    grid-template-columns: 1fr !important;
  }

  .premium-marquee {
    font-size: 11px !important;
  }

  /* Sticky bottom CTA comfort for PDP / checkout-ish */
  .shop-pdp-buybar,
  .product-sticky-bar {
    padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }

  .btn,
  .shop-button,
  .customer-button,
  .payment-button {
    min-height: 48px !important;
  }

  .input,
  .select,
  .textarea,
  .customer-input,
  .customer-select {
    min-height: 48px !important;
    font-size: 16px !important; /* prevent iOS zoom */
  }
}

@media (max-width: 390px) {
  .shop-container {
    width: min(calc(100% - 16px), 100%) !important;
  }

  body.commerce-home .premium-hero-trust > span,
  body.commerce-home .shop-home-state {
    padding: 12px !important;
  }

  .shop-icon-button {
    width: 42px !important;
    height: 42px !important;
  }

  .auth-otp-grid {
    gap: 4px !important;
  }

  .auth-otp-cell {
    min-height: 44px !important;
    font-size: 16px !important;
    padding: 0 !important;
  }
}
