/* Shared public storefront typography and card layout. */
@media (min-width:900px){
  body:not([data-page="admin"]) > .header .desktop-main-nav > a[data-nav-page]{
    font-size:clamp(15px,1.3vw,18px)!important;font-weight:650!important;
  }
  body:not([data-page="admin"]) > .header .desktop-main-nav > a[data-nav-page]::after{
    left:50%!important;right:auto!important;width:4.2em!important;margin-left:-2.1em!important;
  }
  body > .header .right-group :is(.dcr-cart-header,.dcr-favorites-header) svg{width:26px;height:26px}
}
body > .header .right-group .currency-toggle{background:#f5f4f6!important;border-color:#edecef!important;box-shadow:none!important}
body > .header .right-group .currency-toggle button{box-shadow:none!important;font-weight:600!important}
body #viewHeader{display:flex!important;flex-flow:row wrap;align-items:baseline;gap:6px 12px}
body #viewHeader.hidden{display:none!important}
#viewHeader .meta{display:contents!important}
#viewHeader .meta-chip{min-height:0!important;height:auto!important;border:0!important;background:none!important;box-shadow:none!important;padding:0!important}
#viewHeader span.meta-chip{font-size:13px;color:#716c75;order:1}
#viewHeader .meta-chip-back{order:2;font-size:13px!important}
#viewHeader #viewHeaderBackBtn{display:none}
#viewHeader a.meta-chip{margin-inline-start:auto}
body .pd-gallery .pd-stage{border:0;box-shadow:none}
body .pd-summary dl{border:0;border-radius:0}
body .pd-summary dl>div:nth-child(even){background:transparent}
body .pd-summary dl>div{padding-inline:0}
#homeHeroCarousel .home-hero-slide-shade{background:linear-gradient(90deg,rgba(18,15,20,.55),rgba(18,15,20,.22) 40%,transparent 76%)!important}
body #homeGallerySection{background:white!important;box-shadow:none!important;border:0!important;padding-inline:0!important}
body #homeGallerySection h2{color:#28232b!important}
body #homeGallerySection .home-text-link{color:#6726ab!important}
body #homeGalleryGrid .home-gallery-card{border:0!important;background:transparent!important;box-shadow:none!important;color:#28232b!important}
body #homeGalleryGrid .home-gallery-card img{border-radius:12px}
body #homeGalleryGrid .home-gallery-card>span{background:transparent!important;color:#28232b!important;padding:7px 0!important}
#homeHeroMosaic .home-mosaic-icon{display:grid;place-items:center;width:100%;aspect-ratio:1;background:#f3eff5;color:#715f79;border-radius:14px}
#homeHeroMosaic .home-mosaic-icon svg{width:48%;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

:is(#homeNewProducts,#catalogGrid,#productsGrid,body [id] .products-grid,body .products-grid,body .product-grid) .product-card{display:flex!important;flex-direction:column!important}
:is(#homeNewProducts,#catalogGrid,#productsGrid,body [id] .products-grid,body .products-grid,body .product-grid) .product-card .info{display:flex!important;flex-direction:column!important;flex:1 1 auto!important}
:is(#homeNewProducts,#catalogGrid,#productsGrid,body [id] .products-grid,body .products-grid,body .product-grid) .product-card .info>.product-price-block{margin-top:auto!important;min-height:34px!important;box-sizing:border-box}
:is(#homeNewProducts,#catalogGrid,#productsGrid,body [id] .products-grid,body .products-grid,body .product-grid) .product-card>.cart-controls{margin-top:0!important}
:is(#homeNewProducts,#catalogGrid,#productsGrid,body [id] .products-grid,body .products-grid,body .product-grid) .product-card .info .name{font-size:16px!important;font-weight:650!important}
:is(#homeNewProducts,#catalogGrid,#productsGrid,body [id] .products-grid,body .products-grid,body .product-grid) .product-card .info .description{font-size:13px!important;line-height:1.45!important;font-weight:400!important}
:is(#homeNewProducts,#catalogGrid,#productsGrid,body [id] .products-grid,body .products-grid,body .product-grid) .product-price-block .product-price-caption,:is(#homeNewProducts,#catalogGrid,#productsGrid,body [id] .products-grid,body .products-grid,body .product-grid) .product-price-caption span{font-size:12px!important;font-weight:400!important}
:is(#homeNewProducts,#catalogGrid,#productsGrid,body [id] .products-grid,body .products-grid,body .product-grid) .product-price-block .product-price-values .price{font-size:18px!important;font-weight:700!important}
:is(#homeNewProducts,#catalogGrid,#productsGrid,body [id] .products-grid,body .products-grid,body .product-grid) .product-price-block .product-price-values .price-unknown{font-size:13px!important;font-weight:500!important}
:is(#homeNewProducts,#catalogGrid,#productsGrid,body [id] .products-grid,body .products-grid,body .product-grid) .product-card .image-wrap>.badge:not(.badge-preorder):not(.out){background:rgba(255,255,255,.94)!important;color:#30664e!important;text-transform:none!important;font-size:12px!important;font-weight:600!important;box-shadow:none!important}
:is(#homeNewProducts,#catalogGrid,#productsGrid,body [id] .products-grid,body .products-grid,body .product-grid) .product-card .image-wrap>.badge:not(.badge-preorder):not(.out)::before{content:'•';margin-right:4px}
:is(#homeNewProducts,#catalogGrid,#productsGrid,body [id] .products-grid,body .products-grid,body .product-grid) .product-card .slider-dots{background:rgba(255,255,255,.85)!important;box-shadow:none!important}
:is(#homeNewProducts,#catalogGrid,#productsGrid,body [id] .products-grid,body .products-grid,body .product-grid) .slider-dots button{background:#ab9faf!important}
:is(#homeNewProducts,#catalogGrid,#productsGrid,body [id] .products-grid,body .products-grid,body .product-grid) .slider-dots button.active{background:#65566a!important}

/* Individual cart items are cards, including the last item in the list. */
body[data-page="cart"] #cartSheet #cartItemsList .cart-item:last-child {
  border-bottom: 1px solid rgba(78,59,88,.08) !important;
}
body[data-page="cart"] #cartSheet {
  width: min(1376px, calc(100% - 2 * clamp(16px, 2.4vw, 32px))) !important;
  margin-inline: auto !important;
}
body[data-page="cart"] #cartSheet .phone-row { align-items: stretch; }
body[data-page="cart"] #cartSheet :is(.phone-code-wrap, #userPhone) {
  min-width: 0; min-height: 44px; height: 44px !important; box-sizing: border-box;
}
@media (min-width:900px) and (max-width:1120px) {
  body[data-page="cart"] #cartSheet #cartItemsList .cart-item {
    grid-template-columns: 56px minmax(0,1fr) auto !important;
    grid-template-areas: "image main remove" "image qty price" !important;
  }
}
html[data-cart-restoring] #cartItemsList > .empty-cart[data-cart-initial],
html[data-cart-restoring] #cartSheet:has(.empty-cart[data-cart-initial]) #cartTotalPrice { visibility: hidden; }

.gc-table-scroll { position: relative; }

body[data-page="catalog"] #appContainer { min-height: calc(100svh - 72px); }
html[data-catalog-root] #appContainer:has(#productList > .loading-placeholder) #viewHeader:empty { display:none !important; }
html[data-catalog-root] #appContainer:has(#productList > .loading-placeholder) #catalogRootTools[hidden] { display:grid !important; visibility:hidden; }
html:not([data-catalog-root]) body[data-page="catalog"] #viewHeader:not(.hidden) { min-height:37px; box-sizing:border-box; }
#catalogSearchSummary { min-height:1lh; }
@media (max-width:640px) {
  html:not([data-catalog-root]) body[data-page="catalog"] #viewHeader:not(.hidden) { min-height:49px; }
}
body[data-page="cart"] #cartSheet:has(#cartItemsList > .empty-cart:not([data-cart-initial])) .cart-checkout-column,
html:not([data-cart-restoring]) body[data-page="cart"] #cartSheet:has(.empty-cart[data-cart-initial]) .cart-checkout-column { display:none !important; }
#productList .catalog-retry { display:block; margin:12px auto; padding:8px 14px; color:#6726ab; font:inherit; cursor:pointer; }

/* Keep purchase amounts readable in both the product grid and the order summary. */
:is(.product-price-values, .pd-price-row, .cart-unit-current, .item-price, #cartTotalPrice) {
  font-variant-numeric: tabular-nums;
}
:is(.product-price-values, .pd-price-row) :is(.price, .base-price, strong, del) {
  white-space: nowrap;
}
.product-price-values { flex-wrap: wrap; }

@media (max-width: 760px) {
  /* The dock sits directly above the site navigation. Its backing must end at the dock. */
  body[data-page="product"] #pdCartControls::before { content: none; }
  body[data-page="product"] #pdTitle {
    display: block;
    padding-block: 6px;
    overflow-wrap: anywhere;
  }
  .pd-gallery:has(#pdThumbs > .pd-thumb:only-child) #pdPhotoCount { display: none; }
  body[data-page="product"] .pd-variant-heading { order: -1; }
}

@media (max-width: 640px) {
  body[data-page="home"].has-hero-carousel .home-hero-wrap,
  body[data-page="home"] #homeHeroCarousel,
  #homeHeroCarousel :is(.home-hero-carousel-track, .home-hero-slide) {
    height: clamp(210px, 65vw, 310px) !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }
  body[data-page="home"] #homeHeroCarousel .home-hero-slide-shade {
    background: linear-gradient(0deg, rgba(24,18,29,.72), rgba(24,18,29,.28) 52%, transparent 85%) !important;
  }
  body[data-page="catalog"] #catalogRootTools {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 12px;
  }
  #catalogRootTools .catalog-view-switch { grid-area: 1 / 1; }
  #catalogRootTools .catalog-view-switch-btn { flex: none; min-height: 38px; }
  #catalogRootTools .catalog-search-box { grid-area: 2 / 1 / auto / -1; min-width: 0; }
  #catalogRootTools #catalogSearchSummary { grid-area: 1 / 2; text-align: right; }
}

@media (min-width: 761px) and (max-width: 1199px) {
  .pd-shell .pd-side { grid-row: 1; }
  .pd-shell .pd-info { grid-row: 2; }
}

@media (min-width: 761px) {
  .pd-gallery:has(#pdThumbs > .pd-thumb:only-child) #pdThumbs { display: none; }
  .pd-gallery:has(#pdThumbs > .pd-thumb:only-child) #pdStage {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(100% - 64px);
  }
}

body[data-page="cart"] #cartItemsList .item-unit {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 6px;
}
body[data-page="cart"] #cartTotalPrice {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 3px 8px;
  min-width: 0;
  text-align: right;
}

/* Leave enough room to reach variant controls on short landscape screens. */
@media (max-width: 760px) and (max-height: 480px) {
  body[data-page="product"] .pd-heading { position: static; }
  body[data-page="product"] #pdCartControls {
    position: static;
    min-height: 0;
    margin-top: 8px;
    padding: 0;
    border: 0;
  }
}

/* Retail destinations are available in the mobile header menu. */
@media (max-width: 899px) {
  html[data-storefront-ui]:not([data-opt-access="yes"]) body:not([data-page="admin"]) > nav.bottom-nav { display: none !important; }
  html[data-storefront-ui]:not([data-opt-access="yes"]) body:has(> nav.bottom-nav) {
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }
  html[data-storefront-ui]:not([data-opt-access="yes"]) .cookie-notice {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
@media (max-width: 760px) {
  html[data-storefront-ui]:not([data-opt-access="yes"]) body[data-page="product"] {
    --pd-dock-bottom: 0px;
  }
  html[data-storefront-ui]:not([data-opt-access="yes"]) #pdCartControls {
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }
  #pdVariantList .pd-variant { align-self: stretch; }
  #pdVariantList .pd-variant-price { margin-top: auto; }
  #pdVariantList .pd-variant-price.is-quote { color: var(--pd-muted); font-weight: 400; }
}
@media (max-width: 760px) and (min-height: 481px) {
  html[data-storefront-ui]:not([data-opt-access="yes"]) body[data-page="product"]:has(#pdCartControls) {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width:760px) {
  body[data-page=product] .pd-heading { min-height: 44px; }
  body[data-page=product] #pdPurchase {
    display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; align-items: center;
  }
  #pdPurchase .pd-price-row { grid-column: 1; grid-row: 1; min-height: 32px; }
  #pdPurchase #pdStock { grid-column: 2; grid-row: 1; margin: 0; font-size: 12px; font-weight: 500; }
  #pdPurchase .pd-price-meta { grid-column: 1 / -1; grid-row: 2; min-height: 0; }
  #pdPurchase .pd-price-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #pdPurchase .pd-price-meta:has(#pdTerms.is-empty) { display: none; }
  #pdPurchase #pdTerms { margin: 0; font-size: 12px; }
  #pdPurchase .pd-price-row strong { font-size: 24px; }
  #pdPurchase.pd-multiple #pdPrice::after { content: attr(data-quantity); display: inline-block; margin-left: 5px; font-size: 13px; font-weight: 500; color: #675e6c; }
  #pdPurchase #pdCartControls, #pdPurchase #pdCheck, #pdPurchase #pdRetry { grid-column: 1 / -1; }

}
.dcr-inquiry { width: min(410px,calc(100% - 24px)); box-sizing: border-box; padding: 20px; border: 0; border-radius: 16px; color: #28232b; }
.dcr-inquiry::backdrop { background: rgba(34,29,38,.44); }
.dcr-inquiry header,.dcr-inquiry > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dcr-inquiry h2 { margin: 0; font-size: 19px; }
.dcr-inquiry textarea { width: 100%; box-sizing: border-box; min-height: 90px; margin: 12px 0; padding: 9px; resize: vertical; font: inherit; font-size: 14px; background: #faf9fb; color: inherit; border: 1px solid #dedbe0; border-radius: 8px; }
.dcr-inquiry button,.dcr-inquiry a { display: inline-grid; place-content: center; min-height: 42px; padding: 0 10px; border: 0; border-radius: 8px; background: #f4f1f5; font: inherit; font-size: 14px; color: #332b38; cursor: pointer; text-decoration: none; }
.dcr-inquiry header button { min-width: 42px; background: transparent; font-size: 25px; }
.dcr-inquiry a { background: #6726ab; color: #fff; }
.dcr-inquiry p { margin: 8px 0 0; font-size: 13px; }
.dcr-inquiry p:empty { display: none; }

@media (max-width: 760px) {
  .pd-shell .pd-section-nav { display: none; }
  .pd-shell .pd-details { min-width: 0; gap: 0; padding: 0; border-top: 1px solid var(--pd-border); }
  .pd-details > section, .pd-shell .pd-related {
    margin: 0; padding: 20px 0; border: 0;
  }
  .pd-details > section + section, .pd-shell .pd-related { border-top: 1px solid var(--pd-border); }
  .pd-shell :is(.pd-details, .pd-section-title) h2 {
    font-size: 18px; line-height: 1.3; font-weight: 650; margin: 0 0 10px;
  }
  .pd-details .pd-specs { margin: 0; }
  .pd-specs > div {
    grid-template-columns: minmax(80px,.75fr) minmax(0,1.25fr);
    align-items: baseline; gap: 12px; padding: 8px 0;
  }
  .pd-specs > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .pd-details .pd-description { margin: 0; font-size: 14px; line-height: 1.55; color: var(--pd-text); }
  .pd-details .product-guide-link { margin: 8px 0 0; font-size: 13px; }
  .pd-details .product-guide-link a { color: var(--pd-accent); }
  .pd-shell .pd-service {
    min-height: 48px; align-items: center; padding: 8px 4px 8px 0; gap: 10px;
  }
  .pd-service span > span { display: none; }
  .pd-service .pd-service-chevron { font-size: 18px; }
  .pd-shell .pd-seller { padding: 14px 0 18px; gap: 2px; }
  .pd-shell .pd-section-title { flex-wrap: wrap; row-gap: 2px; margin-bottom: 10px; }
  .pd-shell .pd-section-title h2 { margin: 0; }
  .pd-section-title > a { font-size: 13px; }
  #pdRelatedGrid .pd-retail-related .cart-controls { display: none !important; }
  #pdRelatedGrid .pd-retail-related .product-price-caption { display: none !important; }
}

.pd-photo-strip, .pd-photo-dots { display: none; }
@media (max-width:760px) {
  #pdPurchase #pdPrice.is-quote { font-size: 17px; font-weight: 550; }
  #pdZoom { position: relative; overflow: hidden; }
  #pdZoom .pd-photo-strip:not(:empty) {
    position: absolute; inset: 0; display: flex; pointer-events: none; background: white;
  }
  #pdZoom .pd-photo-strip img {
    flex: 0 0 100%; min-width: 0; height: 100%; object-fit: contain; background: white;
  }
  .pd-photo-strip.is-moving { transition: transform 210ms cubic-bezier(.22,.72,.22,1); }
  #pdStage:has(.pd-photo-dots:not(:empty)) #pdPhotoCount { clip-path: inset(50%); }
  .pd-photo-dots:not(:empty) {
    position: absolute; left: 50%; bottom: 9px; transform: translateX(-50%);
    display: flex; align-items: center; gap: 5px; padding: 4px 7px;
    height: 18px; box-sizing: border-box; border-radius: 99px; background: rgb(255 255 255 / 85%);
    pointer-events: none;
  }
  .pd-photo-dots i { width: 6px; height: 6px; border-radius: 99px; background: #ab9faf; transition: width .2s ease, background-color .2s ease; }
  .pd-photo-dots i.active { width: 18px; background: #65566a; }
}
@media (prefers-reduced-motion:reduce) {
  .pd-photo-strip.is-moving, .pd-photo-dots i { transition-duration: .001ms; }
}


@media (max-width: 760px) {
  :is(#homeNewProducts, #productList, #favoritesGrid, #pdRelatedGrid) .product-card .info .description,
  :is(#homeNewProducts, #productList, #favoritesGrid, #pdRelatedGrid) .product-card .info .product-price-caption {
    display: none !important;
  }
  :is(#homeNewProducts, #productList, #favoritesGrid, #pdRelatedGrid) .product-card .info {
    gap: 3px !important;
    padding: 8px 8px 0 !important;
  }
  :is(#homeNewProducts, #productList, #favoritesGrid, #pdRelatedGrid) .product-card .info .name {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
  }
  :is(#homeNewProducts, #productList, #favoritesGrid, #pdRelatedGrid) .product-card .dcr-card-sku {
    margin: 0;
    font-size: 12px;
    line-height: 1.25;
  }
  :is(#homeNewProducts, #productList, #favoritesGrid, #pdRelatedGrid) .product-card .info > .product-price-block {
    display: block !important;
    min-height: 0 !important;
    margin: auto 0 0 !important;
    padding: 6px 0 0 !important;
    border: 0 !important;
  }
  :is(#homeNewProducts, #productList, #favoritesGrid, #pdRelatedGrid) .product-card .info .product-price-values {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: baseline !important;
    margin: 0 !important;
    gap: 2px 4px !important;
  }
  :is(#homeNewProducts, #productList, #favoritesGrid, #pdRelatedGrid) .product-card .product-price-values .price:not(.price-unknown) {
    font-size: 17px !important;
    line-height: 1.2 !important;
  }
  :is(#homeNewProducts, #productList, #favoritesGrid, #pdRelatedGrid) .product-card > .cart-controls {
    padding: 6px 8px 9px !important;
  }
}

#accountSheet .account-catalog-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 10px;
  color: #6525ad;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
}
#accountSheet:has(#authGuestView[hidden]) .account-catalog-link {
  display: none;
}

/* Catalog tiles keep one price row above the purchase controls. */
body[data-page] :is(#productList,#homeNewProducts,#pdRelatedGrid,#favoritesGrid) .product-card {
  align-self: stretch;
  padding-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0;
}
body[data-page] :is(#productList,#homeNewProducts,#pdRelatedGrid,#favoritesGrid) .product-card > .info {
  flex: 1 1 auto !important;
  min-width: 0;
}
body[data-page] :is(#productList,#homeNewProducts,#pdRelatedGrid,#favoritesGrid) .product-card .info > .product-price-block {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: baseline !important;
  gap: 4px !important;
  width: 100%;
  margin: auto 0 0 !important;
  padding: 7px 0 0 !important;
  min-height: 0 !important;
  border-top: 1px solid #e9e6ec !important;
}
body[data-page] :is(#productList,#homeNewProducts,#pdRelatedGrid,#favoritesGrid) .product-card .info .product-price-caption {
  display: block !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  text-align: left !important;
  white-space: normal !important;
  min-width: 0;
}
body[data-page] :is(#productList,#homeNewProducts,#pdRelatedGrid,#favoritesGrid) .product-card .info .product-price-caption span { display: inline; }
body[data-page] :is(#productList,#homeNewProducts,#pdRelatedGrid,#favoritesGrid) .product-card .info .product-price-values {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-self: end;
  gap: 1px !important;
  margin: 0 !important;
  text-align: right;
}
body[data-page] :is(#productList,#homeNewProducts,#pdRelatedGrid,#favoritesGrid) .product-card .product-price-unit { display: none !important; }
body[data-page] :is(#productList,#homeNewProducts,#pdRelatedGrid,#favoritesGrid) .product-card .product-price-unknown .product-price-values {
  grid-column: 1 / -1 !important;
}
body[data-page] :is(#productList,#homeNewProducts,#pdRelatedGrid,#favoritesGrid) .product-card > .cart-controls {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 7px 8px 8px !important;
  box-sizing: border-box;
  width: 100%;
}
body[data-page] :is(#productList,#homeNewProducts,#pdRelatedGrid,#favoritesGrid) .product-card > .cart-controls > .add-btn {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px !important;
}
@media (max-width: 360px) {
  body[data-page] :is(#productList,#homeNewProducts,#pdRelatedGrid,#favoritesGrid) .product-card .product-price-caption .product-price-caption-prefix { display: none; }
  body[data-page] :is(#productList,#homeNewProducts,#pdRelatedGrid,#favoritesGrid) .product-card .product-price-caption .product-price-join { text-transform: capitalize; }
}
