/* Shared storefront rhythm. Keep this after the page and component styles. */
:root {
  --store-card-radius: 16px;
  --store-control-radius: 12px;
  --store-ink: #242238;
  --store-muted: #6e687d;
  --store-accent: #6856c9;
}
/* Decorative overflow must not create a second, horizontal page scrollbar. */
html { overflow-x: clip; }

/* Equal image, title and collection slots keep every row's prices aligned. */
.product-grid, .gift-grid { align-items: stretch; gap: 28px 20px; }
.product-grid .product-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  padding: 0 0 4px;
  margin: 0;
  border-radius: var(--store-card-radius);
}
.product-grid .product-card:hover, .product-grid .product-card:focus-within {
  transform: none;
  box-shadow: none;
}
.product-grid .product-visual.real-product, .gift-card .gift-photo {
  display: block;
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border: 1px solid #eeebf2;
  border-radius: var(--store-card-radius);
  overflow: hidden;
  background: #f5f4f7;
}
.product-grid .product-visual.real-product img, .gift-card .gift-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.product-grid .product-meta { display: block; margin: 12px 2px 0; min-height: 0; }
.product-grid .product-title, .gift-card .gift-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  height: 2.8em;
  min-height: 2.8em;
  max-height: 2.8em;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}
.product-grid .product-title { color: var(--store-ink); }
.product-grid .product-byline, .gift-card .gift-collection {
  display: block;
  height: 1.5em;
  min-height: 1.5em;
  max-height: 1.5em;
  margin: 5px 2px 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 1.5;
}
.product-grid .product-byline { color: var(--store-muted); }
.product-grid .product-bottom, .gift-card .gift-price {
  display: flex;
  align-items: baseline;
  min-height: 24px;
  margin: 8px 2px 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.product-grid .product-bottom strong { font-size: inherit; color: var(--store-ink); }
.gift-card > button { height: 100%; text-align: left; border-radius: var(--store-card-radius); }
.gift-card .gift-name { margin: 12px 2px 0; }
.gift-card .gift-price { color: #d4cbff; }
.product-grid .product-card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
}
.product-grid .product-card-actions :is(.favorite, .product-quick-view) {
  position: static;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #e7e2ee;
  border-radius: var(--store-control-radius);
  background: #ffffffed;
  color: var(--store-accent);
  box-shadow: 0 2px 8px #2422380d;
  opacity: 1;
  transform: none;
}
.product-grid .product-card-actions .product-quick-view { display: none; }
.product-grid .favorite svg { width: 19px; height: 19px; }
/* Follow the same rounded outline on both halves of the header search. */
.site-header .search-form { border-radius: 24px; }
.site-header .search-form input { padding-left: 18px; }
.site-header .search-form button { border-radius: 0 22px 22px 0; }
.product-grid .product-visual::after { border-radius: 0; }
:is(.hero-mosaic, .creator-strip, .gift-footer, .catalog-pagination) .button,
.shop-button, .product-add-button { border-radius: var(--store-control-radius); }
.product-grid a:focus-visible, .gift-card button:focus-visible {
  outline: 3px solid #8d7be0;
  outline-offset: 3px;
}

@media (min-width: 851px) and (hover: hover) and (pointer: fine) {
  .product-grid .product-card-actions .product-quick-view { display: grid; }
  .product-grid .product-visual:hover { box-shadow: 0 6px 20px #24223812; }
}

@media (max-width: 620px) {
  .product-grid, .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .product-grid .product-title, .gift-card .gift-name { font-size: 13px; }
  .product-grid .product-byline, .gift-card .gift-collection { font-size: 11px; }
  .product-grid .product-bottom, .gift-card .gift-price { font-size: 15px; }
  .product-grid .product-meta, .gift-card .gift-name { margin-top: 10px; }
  .product-grid .product-card-actions { top: 6px; right: 6px; }
  .catalog-section .section-heading { gap: 12px; margin-bottom: 20px; }
  .catalog-section .section-heading h2 { font-size: clamp(24px, 6.7vw, 30px); line-height: 1.2; }
  .catalog-toolbar { gap: 14px; padding: 12px; border-radius: var(--store-card-radius); }
  .catalog-toolbar .filters { gap: 6px; }
  .catalog-toolbar .filters button { min-height: 44px; padding: 10px 14px; font-size: 13px; }
  .custom-select .select-trigger, .custom-select .select-option { min-height: 44px; }
  .catalog-section .active-search { gap: 8px; align-items: center; margin-bottom: 18px; }
  .catalog-section .active-search button { min-height: 44px; }

  /* Preserve the complete campaign artwork; put copy below it on small screens. */
  body:not(.shop-page) .hero-mosaic { grid-template-rows: auto 220px !important; gap: 16px !important; }
  body:not(.shop-page) .hero-mosaic > .hero-main.campaign-card {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    height: auto !important;
    min-height: 0 !important;
    padding: 0;
    border-radius: var(--store-card-radius);
    background: #252538;
  }
  .hero-main.campaign-card > picture { position: static !important; display: block; width: 100%; height: auto; flex: none; }
  .hero-main.campaign-card .campaign-image {
    position: static !important;
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto;
    object-fit: contain !important;
    transform: none;
  }
  .hero-main.campaign-card::after { display: none; }
  .hero-main.campaign-card .hero-copy {
    position: relative !important;
    inset: auto !important;
    display: block;
    padding: 16px 20px;
    width: 100% !important;
    max-width: none;
    background: none;
  }
  .hero-main.campaign-card .hero-copy h1 { font-size: clamp(25px, 7vw, 30px); line-height: 1.12; margin: 0 0 8px; max-width: none; }
  .hero-main.campaign-card .hero-copy p { font-size: 13px; line-height: 1.45; margin: 0 0 12px; max-width: none; }
  .hero-main.campaign-card .hero-copy .button { min-height: 44px; padding: 10px 16px; font-size: 13px; }
  .campaign-carousel-track, .campaign-carousel-track > .hero-side.campaign-card { height: 220px !important; }
  .campaign-carousel-track .side-copy button { min-height: 44px; border-radius: var(--store-control-radius); }
  .studio-art { contain: paint; }

  /* Visible headers and comfortable controls in the existing modal layouts. */
  :is(#account-dialog, #favorites-dialog, #drafts, #designer, #product-detail) {
    border-radius: 20px;
    overscroll-behavior: contain;
    scroll-padding-block: 72px 20px;
  }
  :is(#account-dialog, #favorites-dialog, #drafts, #designer, #product-detail) .dialog-header {
    top: -18px;
    min-height: 60px;
    padding-block: 8px;
    gap: 12px;
    border-bottom: 1px solid #eeebf2;
  }
  :is(#account-dialog, #favorites-dialog, #drafts, #designer, #product-detail) .close-button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: var(--store-control-radius);
    background: #f5f3f9;
  }
  #favorites-dialog .saved-favorite { grid-template-columns: 64px minmax(0, 1fr) 44px; padding: 10px 0; gap: 10px; }
  #favorites-dialog .saved-favorite-image { width: 64px; height: 80px; border-radius: 12px; }
  #favorites-dialog .saved-favorite-info strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: 2.8em; line-height: 1.4; white-space: normal; overflow: hidden; }
  #favorites-dialog .saved-favorite-remove { width: 44px; height: 44px; min-width: 44px; border-radius: 12px; }
  #favorites-dialog .saved-favorite-info > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
  #designer :is(input, select, textarea), #drafts .draft-option-row select { font-size: 16px; }
  #drafts .draft-option-row select { min-height: 44px; }
  #drafts .draft-card { grid-template-rows: minmax(132px, auto) auto; }
  #drafts .draft-details { grid-template-rows: auto auto auto; gap: 6px; }
  #drafts .draft-title-row { white-space: normal; }
  #drafts .draft-color-options { flex-wrap: wrap; gap: 4px; }
  #drafts .draft-color { width: 28px; height: 28px; flex-basis: 28px; }
  #drafts .draft-buy-button { width: 44px; height: 44px; }
  #drafts .draft-card { grid-template-columns: 60px minmax(0, 1fr) 44px; }
  body[data-shop-page="product"] .product-color-option { width: 44px; height: 44px; }
  body[data-shop-page="product"] .product-color-swatch { width: 30px; height: 30px; }
  body[data-shop-page="product"] .product-quantity-control button { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-grid .product-card, .product-grid .product-visual, .product-grid .product-card-actions > * { transition: none; }
}

/* Quiet, near-white merchandising surface with navy type and violet accents. */
.catalog-section {
  --catalog-surface: #f7f7fa;
  --catalog-control: #ffffff;
  --catalog-border: #dedee8;
  background: var(--catalog-surface) !important;
  border-radius: 0 !important;
  color: #202137;
  color-scheme: light;
}
.catalog-section .section-heading h2,
.catalog-section .product-grid .product-title,
.catalog-section .product-grid .product-bottom strong { color: #202137; }
.catalog-section .section-heading p,
.catalog-section .product-grid .product-byline,
.catalog-section .sample-note,
.catalog-section .catalog-pagination p,
.catalog-section .active-search,
.catalog-section .catalog-series,
.catalog-section .catalog-series label,
.catalog-section .catalog-sort,
.catalog-section .catalog-sort > label { color: #68697d; }
.catalog-section .eyebrow,
.catalog-section .all-link { color: #6252b5; }
.catalog-section .product-card:hover,
.catalog-section .product-card:focus-within { background: transparent; }
.catalog-section .product-visual::after { color: #242238; }
.catalog-section .catalog-toolbar { border-color: #e3e3eb; background: transparent; }
.catalog-section .filters button,
.catalog-section .active-search button,
.catalog-section .custom-select .select-trigger,
.catalog-section .catalog-series select,
.catalog-section .catalog-sort select {
  border-color: var(--catalog-border);
  background: var(--catalog-control);
  color: #34354c;
  box-shadow: none;
}
.catalog-section .filters button.active,
.catalog-section .filters button[aria-pressed="true"] {
  border-color: #25263f;
  background: #25263f;
  color: #ffffff;
}
.catalog-section .filters button:hover,
.catalog-section .active-search button:hover,
.catalog-section .custom-select .select-trigger:hover,
.catalog-section .custom-select.is-open .select-trigger {
  border-color: #a99ae3;
}
.catalog-section .select-chevron { border-color: #74708c; }
.catalog-section .custom-select .select-menu {
  border-color: var(--catalog-border);
  background: #ffffff;
  box-shadow: 0 12px 32px #25263b1a;
}
.catalog-section .custom-select .select-option { color: #34354c; }
.catalog-section .custom-select .select-option:hover,
.catalog-section .custom-select .select-option.is-active,
.catalog-section .custom-select .select-option[aria-selected="true"] {
  background: #efecf9;
  color: #514295;
}
.catalog-section .catalog-empty { background: var(--catalog-control); }
.catalog-section .catalog-empty h3 { color: #202137; }
.catalog-section .catalog-empty p { color: #68697d; }
.catalog-section .catalog-empty > span { color: #6252b5; }
.catalog-section .catalog-pagination .button { background: #6252b5; color: #ffffff; }
@media (max-width: 620px) {
  .catalog-section .catalog-toolbar { background: #ffffff; }
}

/* Compact studio cards in the existing white, navy and violet palette. */
body:not(.shop-page) main > .how-section {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  padding-block: 36px;
  background: #ffffff;
  color: #171829;
  border: 0;
  scroll-margin-top: 110px;
}
body:not(.shop-page) main > .how-section > .how-intro {
  display: block;
  grid-column: auto;
  padding: 4px 16px 4px 0;
  background: transparent;
}
.how-section .how-intro .eyebrow { color: #6252b5; font-size: 10px; letter-spacing: 1.1px; }
.how-section .how-intro h2 { margin: 12px 0 18px; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.14; }
.how-section .how-intro h2 br { display: block; }
.how-section .how-intro .all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 12px;
  background: #6252b5;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}
.how-section .how-intro .all-link:hover { background: #514295; }
.how-section .how-intro .all-link:focus-visible { outline: 3px solid #8d7be0; outline-offset: 4px; }
body:not(.shop-page) main > .how-section article.how-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 22px;
  border: 1px solid #e6e3ee;
  border-radius: 20px;
  background: #f7f7fa;
  box-shadow: none;
}
.how-section .how-card-top { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; }
.how-section .how-card-top svg { width: 24px; height: 24px; color: #6252b5; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.how-section .how-card-top span { font-size: 11px; font-weight: 600; color: #81769b; font-variant-numeric: tabular-nums; }
body:not(.shop-page) main > .how-section article.how-card h3 { margin: 24px 0 8px; font-size: 17px; line-height: 1.3; }
body:not(.shop-page) main > .how-section article.how-card p { margin: 0; max-width: 24ch; color: #68697d; font-size: 13px; line-height: 1.55; }
@media (max-width: 1000px) {
  body:not(.shop-page) main > .how-section { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body:not(.shop-page) main > .how-section > .how-intro { grid-column: 1 / -1; padding: 0 0 6px; }
}
@media (max-width: 620px) {
  body:not(.shop-page) main > .how-section { padding-block: 26px; gap: 9px; }
  .how-section .how-intro h2 { font-size: 27px; margin: 10px 0 16px; }
  body:not(.shop-page) main > .how-section > .how-intro { padding-bottom: 12px; }
  body:not(.shop-page) main > .how-section article.how-card { padding: 14px 10px; border-radius: 17px; }
  .how-section .how-card-top svg { width: 21px; height: 21px; }
  .how-section .how-card-top span { font-size: 10px; }
  body:not(.shop-page) main > .how-section article.how-card h3 { margin: 18px 0 8px; font-size: 13px; line-height: 1.35; min-height: 2.7em; }
  body:not(.shop-page) main > .how-section article.how-card p { font-size: 12px; line-height: 1.5; }
}
