/* Shared accessibility and storefront refinements. */
:root { --accent-strong: #b82d48; --muted: #74434d; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #174c67; outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 10000; padding: 14px 20px; background: #fff; color: #4f1720; border: 2px solid #4f1720; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.button-primary { background: linear-gradient(120deg, #bd304a, #a5233d); color: #fff; }
.button, button, input, select, textarea { touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
.checkout-paused-banner { margin: 0; padding: 11px 20px; background: #4f1720; color: #fff; text-align: center; font-size: .9rem; line-height: 1.5; }
.checkout-paused-banner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.privacy-banner { position: fixed; z-index: 1100; bottom: 18px; left: 18px; width: min(600px, calc(100% - 36px)); padding: 20px; border: 1px solid #dfbac3; border-radius: 18px; background: #fff; box-shadow: 0 8px 40px #4f172033; color: #4f1720; }
.privacy-banner p { margin: 7px 0 14px; line-height: 1.5; font-size: .9rem; }
.privacy-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.privacy-actions .button { min-height: 44px; flex: 1; padding: 10px 16px; border: 1px solid #86505a; color: #4f1720; background: #fff6f7; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-top: 24px; margin-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }
.footer-legal button { background: none; border: 0; padding: 8px 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.policy-content { max-width: 840px; margin: 0 auto; padding: clamp(24px, 5vw, 55px); background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.policy-content h2 { margin-top: 30px; font-size: 1.35rem; }
.policy-content p, .policy-content li { line-height: 1.75; }
.policy-content a, .form-privacy-note a { text-decoration: underline; }
.form-privacy-note { font-size: .9rem; line-height: 1.6; }
.newsletter-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; line-height: 1.5; }
.newsletter-consent input { width: 20px; height: 20px; flex: 0 0 20px; }
.form-consent { grid-column: 1 / -1; display: block; font-size: .85rem; line-height: 1.6; }
.form-consent input { width: 18px !important; height: 18px; margin-right: 8px; }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.product-card-media { aspect-ratio: 1; }
.product-card-media img { width: 100%; height: 100%; object-fit: contain; }
.product-shop-card { transition: box-shadow .18s ease, transform .18s ease; }
.product-shop-card:hover { box-shadow: 0 12px 30px #4f172018; }
.product-color-picker { grid-column:1 / -1; border:0; padding:0; margin:0 0 18px; min-width:0; }
.product-color-picker legend { font-weight:700; margin-bottom:10px; }
.product-color-note { font-size:.9rem; color:var(--muted); margin:10px 0 0; }
.product-color-options { display:flex; flex-wrap:wrap; gap:8px; }
.product-color-option { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 12px; border:2px solid var(--line); border-radius:12px; background:#fff; color:var(--text); text-decoration:none; }
.product-color-option[aria-current="true"] { border-color:var(--text); background:#fff3f5; }
.product-color-option:focus-visible { outline:3px solid var(--text); outline-offset:3px; }
.product-color-swatch { display:inline-block; width:18px; height:18px; border-radius:50%; border:1px solid #0003; flex-shrink:0; background:var(--swatch); }
.product-color-option[data-color="purple"] { --swatch:#794ca3; }
.product-color-option[data-color="red"] { --swatch:#d93c48; }
.product-color-option[data-color="green"] { --swatch:#36965c; }
.product-color-option[data-color="teal"] { --swatch:#57bcb1; }
.product-color-option[data-color="yellow"] { --swatch:#f4d440; }
.product-color-option[data-color="pink"] { --swatch:#ed8eaf; }
.product-color-option[data-color="royal"] { --swatch:#314a9b; }
.product-color-option[data-color="blue"] { --swatch:#53acd5; }
.product-color-option[data-color="white"] { --swatch:#fff; }
.product-color-option[data-color="black"] { --swatch:#242424; }
.product-color-option[data-color="ruby"] { --swatch:#b82345; }
.product-color-option[data-color="amber"] { --swatch:#e8a02e; }
.product-color-option[data-color="emerald"] { --swatch:#238556; }
.product-color-option[data-color="sapphire"] { --swatch:#315dac; }
.product-color-option[data-color="amethyst"] { --swatch:#9665b2; }
.product-color-option[data-color="rose-quartz"] { --swatch:#efbfd2; }
.product-color-option[data-color="crystal"] { --swatch:linear-gradient(135deg,#fff,#dce4ec,#fff); }
.product-color-option[data-color="onyx"] { --swatch:#3b3b43; }
.product-card-media img { position:absolute; inset:12px; width:calc(100% - 24px); height:calc(100% - 24px); max-height:none; object-fit:contain; }
.cart-drawer, .mobile-nav-drawer { height:100dvh; max-height:100dvh; }
.cart-drawer-foot { padding-bottom:max(18px, env(safe-area-inset-bottom)); }
.cart-drawer-body, .mobile-nav-list { min-height:0; }
.cart-item-copy, .checkout-item-copy, .cart-item-head > div { min-width:0; overflow-wrap:anywhere; }
.cart-item-controls, .checkout-item-meta { flex-wrap:wrap; }
.cart-item-head { flex-wrap:wrap; gap:4px 10px; }
.cart-item-head > div { flex:1 1 120px; }
.cart-item-head > strong, .checkout-item-meta > strong { white-space:nowrap; flex-shrink:0; }
.product-view-gallery, .product-view-copy { min-width:0; }
.product-view-media-main { position:relative; width:100%; min-height:0; }
.product-view-media-main img { position:absolute; inset:18px; width:calc(100% - 36px); height:calc(100% - 36px); max-width:none; max-height:none; object-fit:contain; }
.quantity-stepper button:disabled { opacity:.4; cursor:not-allowed; }
.file-selection-summary { display:block; margin-top:8px; color:var(--muted); }
.stream-footer { padding:22px; }
.stream-footer nav { display:flex; flex-wrap:wrap; gap:12px 20px; }
.stream-footer nav a { margin:0; }
.stream-footer button { background:none; border:0; padding:0; color:inherit; font:inherit; text-decoration:underline; cursor:pointer; }
.site-nav .nav-submenu-panel { display:none; }
.site-nav .nav-submenu:hover > .nav-submenu-panel,
.site-nav .nav-submenu:focus-within > .nav-submenu-panel { display:grid; }
.shop-results-count, [data-products-count] { font-variant-numeric: tabular-nums; }
.shop-main { min-width: 0; }
.shop-results-head { display: grid; grid-template-columns: 1fr; gap: 18px; }
.shop-toolbar { flex-wrap: wrap; min-width: 0; }
.shop-availability { flex-wrap: wrap; }
.shop-sort select { max-width: 100%; }
@media (min-width:721px) and (max-width:980px) {
  .shop-layout { grid-template-columns:210px minmax(0,1fr); align-items:start; gap:18px; }
  .shop-sidebar { position:sticky; top:18px; }
  .shop-filter-card { padding:14px; }
  .shop-filter-option { min-height:44px; align-items:center; }
}
/* Full-width header without viewport-width overflow or widening page content. */
.page-shell:has(> .site-header .site-nav) {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(12px, 1fr) minmax(0, 1380px) minmax(12px, 1fr);
}
.page-shell:has(> .site-header .site-nav) > * { grid-column: 2; min-width: 0; }
.page-shell > .site-header:has(.site-nav) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header:has(.site-nav) .brand-lockup {
  grid-column: 1; grid-row: 1; order: 0;
  align-self: stretch; justify-content: flex-start;
  width: auto; min-width: 0;
  padding: 10px clamp(16px, 2.5vw, 40px);
  border-right: 1px solid var(--line);
}
.site-header:has(.site-nav) .brand-logo { width: 44px; height: 44px; box-shadow: none; flex-shrink: 0; }
.site-header:has(.site-nav) .brand { font-size: 1.7rem; }
.site-header:has(.site-nav) .site-search-wrap {
  grid-column: 2; grid-row: 1; order: 0;
  display: flex; align-items: stretch;
  min-width: 0; max-width: none;
}
.site-header:has(.site-nav) .site-search-form { align-items: stretch; }
.site-header:has(.site-nav) .site-search-input,
.site-header:has(.site-nav) .site-search-button {
  border: 0; border-radius: 0; box-shadow: none;
  min-height: 44px; padding-block: 10px;
}
.site-header:has(.site-nav) .site-search-input { min-width: 0; background: transparent; }
.site-header:has(.site-nav) .cart-launcher {
  position: static; grid-column: 3; grid-row: 1; order: 0;
  align-self: stretch; justify-self: stretch; justify-content: center;
  padding: 10px 20px;
  border: 0; border-left: 1px solid var(--line);
  border-radius: 0; box-shadow: none; background: #fff6f7;
}
.site-header:has(.site-nav) .site-nav {
  grid-column: 1 / -1; grid-row: 2; order: 0;
  gap: 0; padding: 0 12px; margin: 0;
  border: 0; border-top: 1px solid var(--line);
  border-radius: 0; box-shadow: none; background: #fff6f7;
  flex-wrap: wrap; overflow: visible;
}
.site-header .site-nav > a,
.site-header .site-nav > .nav-dropdown > .nav-dropdown-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 16px; border-radius: 0;
}
.site-header .site-nav > a.active { box-shadow: inset 0 -3px var(--accent-strong); background: #ffe8ee; color: var(--accent-strong); }
.site-nav > .nav-dropdown { display: flex; align-items: stretch; }
.site-nav .nav-category-link {
  display: inline-flex; align-items: center; min-height: 52px;
  padding: 12px 4px 12px 16px; border-radius: 0;
  font-size: .92rem; font-weight: 500; text-decoration: none;
}
.site-header .site-nav > .nav-dropdown > .nav-dropdown-toggle { min-width: 32px; padding: 12px 8px; }
.site-nav .nav-dropdown:is(.is-open, .is-active) > .nav-category-link,
.site-nav .nav-category-link:hover { background: #ffe8ee; color: var(--accent-strong); }
.mobile-nav-list > .nav-dropdown { display: grid; grid-template-columns: minmax(0, 1fr) 48px; }
.mobile-nav-list .nav-category-link {
  display: flex; align-items: center; min-height: 52px; padding: 14px 16px;
  border-radius: 18px 0 0 18px; background: #fff6f7; color: var(--text); text-decoration: none;
}
.mobile-nav-list > .nav-dropdown > .nav-dropdown-toggle {
  justify-content: center; padding: 12px; border-radius: 0 18px 18px 0; border-left: 1px solid var(--line);
}
.mobile-nav-list > .nav-dropdown > .nav-dropdown-menu { grid-column: 1 / -1; transform: none; }
.site-header :is(.brand-lockup, .site-search-input, .site-search-button, .cart-launcher, .mobile-menu-toggle):focus-visible {
  outline: 3px solid #174c67; outline-offset: -4px;
}
@media (max-width: 820px) {
  .page-shell:has(> .site-header .site-nav) { grid-template-columns: minmax(8px, 1fr) minmax(0, 1380px) minmax(8px, 1fr); }
  .site-header:has(.site-nav) .mobile-menu-toggle {
    grid-column: 1; grid-row: 1;
    align-self: stretch; width: 56px; height: auto; min-height: 60px;
    border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none;
  }
  .site-header:has(.site-nav) .brand-lockup {
    grid-column: 2; justify-content: center; gap: 10px;
    padding: 8px 10px; border: 0;
  }
  .site-header:has(.site-nav) .brand { font-size: clamp(1.1rem, 3.8vw, 1.55rem); overflow-wrap: anywhere; }
  .site-header:has(.site-nav) .brand-logo { width: 44px; height: 44px; border-radius: 12px; }
  .site-header:has(.site-nav) .cart-launcher { gap: 6px; padding: 12px; }
  .site-header:has(.site-nav) .site-search-wrap { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--line); }
  .site-header:has(.site-nav) .site-search-input,
  .site-header:has(.site-nav) .site-search-button { min-height: 44px; }
}
.shop-filter-option:has(input:disabled) { opacity: .5; }
.cart-drawer-shell[inert], .mobile-nav-shell[inert] { visibility: hidden; }
.cart-drawer, .mobile-nav-drawer { overscroll-behavior: contain; }
.reveal { opacity: 1; transform: none; }
.promo-item:not(.active) { visibility: hidden; }
.review-public-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 20px 0; }
.catalog-directory { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 12px; list-style: none; padding: 0; }
.catalog-directory a { display: block; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 820px) {
  .product-view-card { grid-template-columns:minmax(0,1fr); }
  .shop-mobile-sort, .shop-mobile-sort-select { min-width: 0; width: 100%; max-width: 100%; }
  .shop-mobile-toolbar { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .shop-filter-overlay { visibility: hidden; }
  .shop-filters-open .shop-filter-overlay { visibility: visible; }
  input, select, textarea { font-size: 16px; }
  .button, .cart-close, .mobile-nav-close, .quantity-stepper button { min-height: 44px; }
  .privacy-banner { bottom: 10px; left: 10px; width: calc(100% - 20px); padding: 16px; }
  .shop-main { min-width: 0; }
  .product-shop-card h3 { overflow-wrap: anywhere; }
  .product-shop-card .product-card-actions .button { padding-inline: 8px; }
  .checkout-paused-banner { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (max-width:720px) {
  .product-view-carousel { padding:0 0 54px; }
  .product-carousel-button { top:auto; bottom:0; width:44px; height:44px; transform:none; }
  .product-carousel-button-prev { left:calc(50% - 50px); }
  .product-carousel-button-next { right:calc(50% - 50px); }
  .product-carousel-button:hover, .product-carousel-button:focus-visible { transform:none; }
  .shop-sidebar { max-height:100dvh; padding-bottom:max(22px, env(safe-area-inset-bottom)); }
  .shop-sidebar-close, .mobile-nav-close, .cart-close { min-width:44px; min-height:44px; }
  .shop-filter-option { min-height:44px; align-items:center; }
  .checkout-item-meta { gap:10px; }
  .privacy-banner { max-height:60dvh; overflow-y:auto; bottom:max(10px, env(safe-area-inset-bottom)); }
}

.homepage-scroll-hint { text-align: center; margin: 0 0 12px; }
.homepage-product-controls { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.homepage-product-controls .button { min-width: 48px; min-height: 44px; padding: 8px 16px; }
[data-featured-products-grid].homepage-featured-track {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  justify-content: start;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 8px 4px 20px;
  scrollbar-width: thin;
}
.homepage-featured-track > * { scroll-snap-align: start; }
.homepage-featured-track:focus-visible { outline: 3px solid #b6344d; outline-offset: 4px; }
@media (max-width: 600px) {
  [data-featured-products-grid].homepage-featured-track { grid-auto-columns: min(78vw, 280px); }
}
