/* ==========================================================================
   SELA Studio 07 — Production Quality Design & Usability Enhancements
   Strict 1150px Container, Architectural Aesthetics, Zoom Modal, Cart Drawer,
   Catalogue Facets, Customer Portal, and Responsive Refinements
   ========================================================================== */

:root {
  --container: 1150px !important;
  --space-section: clamp(5.25rem, 10vw, 9.5rem);
}

/* Strict Container Max Width */
.container,
.site-header .container,
.hero .container,
.section .container,
.section-sm .container,
.site-footer .container,
.cart-layout.container,
.checkout-layout.container,
.account-layout.container {
  max-width: var(--container, 1150px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1rem, 3vw, 2rem) !important;
  padding-right: clamp(1rem, 3vw, 2rem) !important;
  box-sizing: border-box !important;
}

/* Consistent Section Vertical Spacing */
.section {
  padding-block: var(--space-section, 64px) !important;
}

.section-sm {
  padding-block: 3rem !important;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header.is-sticky {
  box-shadow: 0 4px 20px rgba(8, 36, 43, 0.08);
}

/* Logo Dark/Light Mode Adaptability */
.logo img {
  display: block;
  height: auto;
  object-fit: contain;
}
html[data-theme="dark"] .logo .logo-dark {
  display: none !important;
}
html[data-theme="dark"] .logo .logo-light {
  display: block !important;
}

/* Header Action Layout & Language Switcher */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--radius-sm, 2px);
  padding: 2px;
  margin-right: 0.4rem;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm, 2px);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active,
.lang-switcher a.lang-btn.active {
  background: var(--text) !important;
  color: var(--surface) !important;
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: var(--sela-btt-bottom, 2rem);
  right: var(--sela-btt-right, 2rem);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--text);
  background: var(--surface);
  color: var(--text);
  box-shadow: 4px 4px 0 var(--accent);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease, bottom 0.2s ease;
}

/* Keep Back to Top clear above floating Reward (Loyalty) / Chat launchers on bottom-right */
body:has(#jualify-loyalty-container:not(.jualify-loyalty-pos-bottom-left)),
body:has(#jualify-whatsapp-button-container),
body:has(#jualify-convia-chat-widget),
body:has(#jualify-convia-widget),
body:has([data-convia-widget]),
body:has(.convia-launcher) {
  --sela-btt-bottom: 5.75rem;
  --sela-btt-right: 1.5rem;
}
body:has(#jualify-loyalty-container:not(.jualify-loyalty-pos-bottom-left)):has(#jualify-whatsapp-button-container, #jualify-convia-chat-widget, #jualify-convia-widget, [data-convia-widget], .convia-launcher) {
  --sela-btt-bottom: 9.75rem;
}
@media (max-width: 480px) {
  body:has(#jualify-loyalty-container:not(.jualify-loyalty-pos-bottom-left)),
  body:has(#jualify-whatsapp-button-container),
  body:has(#jualify-convia-chat-widget),
  body:has(#jualify-convia-widget),
  body:has([data-convia-widget]),
  body:has(.convia-launcher) {
    --sela-btt-bottom: 5.25rem;
    --sela-btt-right: 1rem;
  }
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: var(--accent-contrast);
}

/* Modern Image Gallery & Zoom Modal */
.product-main {
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  border: 1px solid var(--text);
  background: var(--surface);
}

.product-main img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--product-aspect-ratio, 4 / 5);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.zoom-hint {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  background: rgba(8, 36, 43, 0.8);
  color: #fff;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm, 2px);
  pointer-events: none;
}

/* Fullscreen Gallery Zoom Modal Dialog */
.gallery-zoom-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 36, 43, 0.92);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border: none;
}

.gallery-zoom-dialog.is-active {
  display: flex;
}

.gallery-zoom-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-zoom-container img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  cursor: zoom-out;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-zoom-close {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--accent-contrast);
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.gallery-zoom-close:hover {
  transform: scale(1.1);
}

/* Product Tabs for Extra Descriptions */
.product-extra-tabs {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--text);
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 0.75rem 1.25rem;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  background: color-mix(in srgb, var(--surface-2) 40%, transparent);
}

.tab-pane {
  display: none;
  padding-block: 1.5rem;
  line-height: 1.7;
}

.tab-pane.active {
  display: block;
}

/* Category Catalog & Custom Filter Facets */
.collection-tools-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--text);
}

.filter-facets-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.facet-chip {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}

.facet-chip:hover {
  border-color: var(--text);
}

.facet-chip.active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

.catalog-toolbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.catalog-pagination-size {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.price-range-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.price-range-filter input {
  width: 90px;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--line);
  font-size: 0.8rem;
}

/* Cart Page Notes & Line Quantity Updates */
.cart-note-container {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.cart-note-container label {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.cart-note-container textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.65rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.9rem;
  box-sizing: border-box;
}

/* Cart Drawer Free Shipping Progress Meter */
.drawer-shipping {
  padding: 0.9rem 1.4rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.drawer-shipping-copy {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--text);
}

.drawer-progress {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.drawer-progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sun) 0%, var(--accent) 100%);
  transition: width 0.3s ease;
}

/* Article Discovery Sidebar */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.article-sidebar {
  display: grid;
  gap: 2.25rem;
  padding-left: clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--line);
}

.article-sidebar-widget h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--text);
  padding-bottom: 0.5rem;
}

.article-sidebar-search form {
  position: relative;
  display: flex;
}

.article-sidebar-search input {
  width: 100%;
  padding: 0.6rem 2.4rem 0.6rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.88rem;
}

.article-sidebar-search button {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: var(--muted);
}

.recent-articles-list {
  display: grid;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent-article-item {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.recent-article-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.recent-article-info a {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-article-info a:hover {
  color: var(--accent);
}

.article-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.article-tag-chip {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.72rem;
  color: var(--muted);
  border-radius: var(--radius-sm, 2px);
  text-decoration: none;
  transition: all 0.15s ease;
}

.article-tag-chip:hover {
  background: var(--text);
  color: var(--surface);
}

/* Professional Storefront Error Page */
.error-page-wrapper {
  padding-block: clamp(4rem, 8vw, 8rem);
  text-align: center;
}

.error-page-box {
  max-width: 580px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--text);
  background: var(--surface);
  box-shadow: 12px 12px 0 var(--accent);
}

.error-page-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Customer Portal Unbroken Layout */
.customer-dashboard-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--text);
}

.customer-dashboard-header h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.customer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.customer-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.15s ease;
  text-decoration: none;
}

.customer-nav a:hover,
.customer-nav a.active,
.customer-nav a[aria-current="page"] {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

/* Wishlist Grid */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-top: 2rem;
  }
}

@media (max-width: 640px) {
  .collection-tools-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .catalog-toolbar-right {
    justify-content: space-between;
  }
}
/* Preserve reference treatments while making controls accessible and responsive. */
[hidden]{display:none!important}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
html:not(.js-ready) .reveal,.reveal.visible,.reveal.is-visible{opacity:1;transform:none}
html:not(.js-ready) .tab-pane{display:block}
[data-site-header]{position:sticky;top:0;z-index:80}body[data-sticky="false"] [data-site-header]{position:static}
.logo-light{display:none}html[data-theme="dark"] .logo-dark:only-child{display:block!important}
.quick-add{position:absolute;text-align:center}.product-media form{margin:0}.product-media>a>img{width:100%;height:100%;object-fit:cover}
.product-media img,.product-media>svg{aspect-ratio:var(--product-aspect-ratio,1);object-fit:cover}
.catalog-grid{display:grid;grid-template-columns:repeat(var(--products-per-row,3),minmax(0,1fr));gap:1.25rem}
.product-grid{grid-template-columns:repeat(var(--products-per-row,3),minmax(0,1fr))}.product-grid .cta-tile{grid-column:1/-1}
.value-panel:first-child h3{color:#f8faf9}.site-footer h2,.site-footer h3{color:inherit}
.gallery-zoom-dialog[open]{display:flex;max-width:100vw;max-height:100dvh;width:100vw;height:100dvh;margin:0}.gallery-zoom-dialog::backdrop{background:#08242be8}.gallery-zoom-container{overflow:auto}.gallery-zoom-img{transition:transform .2s}.zoom-hint{pointer-events:auto;cursor:zoom-in}
.drawer-backdrop.open{opacity:1;visibility:visible;pointer-events:auto}.cart-drawer.open{transform:translateX(0);visibility:visible}.drawer-items{min-height:0}.drawer-item{display:flex;gap:1rem;padding:1rem;border-bottom:1px solid var(--line)}.drawer-item img{object-fit:cover}.drawer-item>div{flex:1;min-width:0}.drawer-item-controls{display:flex;align-items:center;gap:.5rem}.drawer-item-controls button{min-height:36px;min-width:36px;border:1px solid var(--line);background:var(--surface);color:var(--text)}.empty-state{padding:2rem;text-align:center}
.cart-item{display:flex;gap:1rem;padding:1.25rem 0;border-bottom:1px solid var(--line)}.cart-item h2{font-size:1rem}.cart-item img{object-fit:cover}.cart-item .quantity input{max-width:70px}.cart-summary{background:var(--surface);padding:1.5rem;border:1px solid var(--line)}
.catalog-toolbar-right{flex-wrap:wrap;justify-content:flex-end;margin-left:auto}.catalogue-facet{display:flex;flex-direction:column;gap:.3rem}.catalogue-facet select{max-width:170px;padding:.5rem;background:var(--surface);color:var(--text);border:1px solid var(--line)}
.sela-sidebar{display:grid;gap:1.5rem;padding-left:1.5rem;border-left:1px solid var(--line)}.sela-sidebar-title{font-size:1rem}.sela-sidebar-search{display:flex;gap:.25rem}.sela-sidebar-search input{min-width:0;width:100%}.sela-related,.sela-cat-list{padding-left:1rem}.sela-related__item{margin-bottom:.75rem}.sela-related time{display:block;font-size:.8rem;color:var(--muted)}.sela-cat-list li a{display:flex;justify-content:space-between}.sela-tag-cloud{display:flex;flex-wrap:wrap;gap:.5rem}.sela-tag{border:1px solid var(--line);padding:.3rem .5rem}
.toast.show{opacity:1;visibility:visible;transform:translateY(0)}
input,textarea,select{max-width:100%;min-width:0}button:disabled{opacity:.55;cursor:not-allowed}img{max-width:100%}.article-content{overflow-wrap:anywhere}.table-responsive{overflow:auto}
@media(max-width:900px){.product-grid,.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.header-actions{gap:.25rem}.header-inner{gap:1rem}.lang-btn{padding:.25rem}.sela-sidebar{padding-left:0;border-left:0}.customer-addresses-section>.container,.customer-profile-section>.container,.customer-account-section>.container,.customer-orders-section>.container,.customer-order-section>.container,.customer-change-password-section>.container{grid-template-columns:1fr!important}.account-content{min-width:0}}
@media(max-width:540px){.catalog-grid,.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.cart-layout{grid-template-columns:1fr}.header-inner{gap:.3rem}.logo{font-size:1.75rem}.header-actions .icon-button{width:34px;height:36px}.header-actions .account-link{display:none}.header-actions .lang-switcher{margin-right:0}.container{padding-left:1rem!important;padding-right:1rem!important}.price-range-filter{flex-wrap:wrap}.catalog-toolbar-right{gap:.75rem}.cart-item{gap:.75rem}.cart-item img{width:76px;height:92px}.auth-card{padding:1.5rem!important}.search-main-section form{flex-wrap:wrap}.article-layout{grid-template-columns:minmax(0,1fr)}}
.nav-entry{position:relative}.main-nav .nav-submenu{position:absolute;top:100%;left:0;min-width:190px;padding:.75rem;background:var(--surface);border:1px solid var(--text);box-shadow:4px 4px 0 var(--text);display:none;z-index:90}.main-nav .nav-entry:hover>.nav-submenu,.main-nav .nav-entry:focus-within>.nav-submenu{display:grid;gap:.65rem}.main-nav .nav-submenu .nav-submenu{left:100%;top:0}.mobile-nav .nav-submenu{padding-left:1rem}.mobile-nav .nav-entry>a{display:flex;align-items:center;justify-content:space-between}.site-footer .nav-submenu{padding-left:.5rem}.site-footer .nav-entry a{display:block}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.product-grid>.product-card,.catalog-grid>.product-card{grid-column:auto}.product-grid .product-card:nth-child(2),.catalog-grid .product-card:nth-child(2),.product-carousel-track .product-card:nth-child(2){margin-top:0}.newsletter h2{color:inherit}.story-grid.flip .story-media{order:2}.product-media{aspect-ratio:var(--product-aspect-ratio,4/5)}
.cart-drawer:not(.open){display:none}.product-grid .product-media>a{display:block;max-width:100%;height:100%}.product-media>svg,.product-media>a>svg{width:100%;height:100%}.product-detail>*{min-width:0}.product-purchase select{width:100%;padding:.6rem;background:var(--surface);color:var(--text)}.product-purchase .option-group{display:block}.product-gallery{min-width:0}.cart-layout>*{min-width:0}.cta-tile h3{color:inherit}.hero-stamp{color:var(--deep)}.newsletter-note{color:#c5d4d6}.post-meta{color:var(--text)}.logo sup{color:var(--deep);background:var(--sun)}.cart-count{color:var(--deep)}
@media(max-width:900px){.product-detail{grid-template-columns:minmax(0,1fr)}.product-purchase{position:static}.cart-layout{grid-template-columns:minmax(0,1fr)}.customer-order-section>.container>.account-content>div[style*="grid"]{grid-template-columns:minmax(0,1fr)!important}.customer-wishlist-section>.container{grid-template-columns:minmax(0,1fr)!important}.customer-wishlist-section .catalog-grid{grid-template-columns:minmax(0,1fr)!important}.customer-addresses-section .account-content>div:first-child{flex-wrap:wrap}}
.cart-item>div{min-width:0;flex:1}.cart-item>.quantity,.cart-item .quantity{max-width:160px}.cart-item>a{flex:0 0 auto}.cart-item .quantity input{width:56px}.cart-layout{width:100%;grid-template-columns:minmax(0,1fr) minmax(0,340px)}
@media(max-width:900px){.cart-layout{grid-template-columns:minmax(0,1fr)}.customer-dashboard-header>div{max-width:100%}.customer-order-section .account-content>div{padding:1rem!important}}
html[data-theme="dark"]{--heading:var(--text);--color-link:var(--text)}html[data-theme="dark"] .main-nav a{color:var(--text)}
@media(max-width:900px){.customer-order-detail-section>.container{grid-template-columns:minmax(0,1fr)!important}.customer-order-detail-section .account-content>div[style*="grid"]{grid-template-columns:minmax(0,1fr)!important}.customer-order-detail-section .account-content>div{padding:1rem!important}}
:root{--accent-ink:color-mix(in srgb,var(--accent) 76%,var(--deep))}
.order-success-card .eyebrow,.error-page-badge{color:var(--accent-ink)}.auth-card a[style*="var(--accent)"],.account-content [style*="color: var(--accent)"],.contact-info a[style*="var(--accent)"]{color:var(--accent-ink)!important}
@media(max-width:900px){.hero-grid{grid-template-columns:minmax(0,1fr)}.hero-copy{min-width:0}.hero-media{min-width:0}.story-grid{grid-template-columns:minmax(0,1fr)}.story-grid>*{min-width:0}.product-purchase .purchase-row{flex-wrap:wrap}.product-purchase .purchase-row .btn{width:100%;min-width:0}.product-purchase .quantity{flex:0 0 auto}}
@media(max-width:360px){.contact-form-box{padding:1rem!important}.contact-grid{grid-template-columns:minmax(0,1fr)!important}.product-extra-tabs{min-width:0}}

/* Nexora extension surfaces use its configured tokens. */
body[data-theme-handle=sela] .jualify-wl-badge-link{display:flex;align-items:center;gap:4px;min-height:44px;color:var(--text)}
body[data-theme-handle=sela] .jualify-wl-count-badge{font-size:11px}
body[data-theme-handle=sela] .jualify-wl-count-badge[hidden]{display:none}
body[data-theme-handle=sela] .jualify-cross-sell-modal__panel,body[data-theme-handle=sela] .jualify-cross-sell,body[data-theme-handle=sela] .jualify-cross-sell__offer,body[data-theme-handle=sela] .jualify-pr-form-container{background:var(--bg);color:var(--text);border-color:var(--line)}
body[data-theme-handle=sela] .jualify-cross-sell__heading p,body[data-theme-handle=sela] .jualify-cross-sell__target small{color:var(--muted)}
body[data-theme-handle=sela] #jualify-product-reviews{color:var(--text)}
body[data-theme-handle=sela][class*=drawer-open] :is(#jualify-loyalty-container,#jualify-whatsapp-button-container,[data-jualify-sales-pop],#jualify-convia-widget,[data-convia-widget],.convia-launcher,#convia-widget-container),body[data-theme-handle=sela]:has(.mobile-nav.open,.search-overlay.open,[data-cross-sell-modal],#quick-dialog[open]) :is(#jualify-loyalty-container,#jualify-whatsapp-button-container,[data-jualify-sales-pop],#jualify-convia-widget,[data-convia-widget],.convia-launcher,#convia-widget-container){visibility:hidden;pointer-events:none}
body[data-theme-handle=sela] :is(.jualify-pr-card,.jualify-pr-form-control){background:var(--bg);color:var(--text);border-color:var(--line)}
body[data-theme-handle=sela] :is(.jualify-pr-title,.jualify-pr-score,.jualify-pr-author,.jualify-pr-comment,.jualify-pr-form-group label,.jualify-cross-sell__mode){color:var(--text)}
body[data-theme-handle=sela] :is(.jualify-pr-count,.jualify-pr-date,.jualify-cross-sell__offer-price s){color:var(--muted)}
body[data-theme-handle=sela] .jualify-social-separator span{color:var(--muted)}
body[data-theme-handle=sela][data-embed-controls-covered] :is(#jualify-loyalty-container,#jualify-whatsapp-button-container,[data-jualify-sales-pop],#jualify-convia-widget,[data-convia-widget],.convia-launcher,#convia-widget-container){visibility:hidden;pointer-events:none}


body[data-theme-handle=sela]:has(.cart-drawer.open,.search-overlay.open,.mobile-nav.open,#quick-dialog[open]) :is(#jualify-loyalty-container,#jualify-whatsapp-button-container,[data-jualify-sales-pop],#jualify-convia-widget,[data-convia-widget],.convia-launcher,#convia-widget-container){visibility:hidden;pointer-events:none}
body[data-theme-handle=sela] :is(.jualify-pr-btn-write,#jualify-pr-submit-btn,.jualify-loyalty-redeem-btn){color:#fff}
#jualify-loyalty-modal .jualify-loyalty-nav-btn:not(.active){color:#0f172a}
#jualify-loyalty-modal .btn-success{background:#166534;color:#fff}
/* Keep content readable when JavaScript is disabled or view timelines are unavailable. */
html:not(.js-ready) .reveal,.reveal.visible,.reveal.is-visible{animation:none!important;opacity:1!important;transform:none!important}
.logo>span{color:inherit}.logo sup{background:var(--accent)}.announcement{white-space:normal;overflow-wrap:anywhere;overflow:hidden}.announcement span{white-space:normal}
.pagination{flex-wrap:wrap}.pagination .active{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:38px;border:1px solid var(--text);background:var(--text);color:var(--surface)}
h1,h2,h3{overflow-wrap:anywhere}.section-heading h1,.page-head h1{font-size:clamp(2rem,4vw,3rem);max-width:100%}.cart-summary h2{font-size:1.35rem}
.btn{max-width:100%;white-space:normal}.story-media{max-width:100%}
@media(max-width:900px){.story-media{width:100%;min-height:440px}.testimonial-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.testimonial-card{min-width:0;max-width:100%}}
@media(max-width:640px){.testimonial-grid{grid-template-columns:minmax(0,1fr)}}
body,button,input,select,textarea{font-family:var(--font-body,"Space Grotesk",system-ui,sans-serif)}body{font-size:var(--font-base,16px)}h1,h2,h3,h4,h5,h6,.logo{font-family:var(--font-heading,"Space Grotesk",system-ui,sans-serif)}
.gallery-zoom-close{position:fixed;top:1rem;right:1rem;z-index:2}
@media(max-width:900px){.contact-main-section>.container>div[style*="grid"]{grid-template-columns:minmax(0,1fr)!important}.contact-main-section .contact-info{min-width:0}.contact-main-section .contact-info>div>div>div:last-child{min-width:0;overflow-wrap:anywhere}}
html[data-theme="dark"] .main-nav a{color:var(--dark-menu-color,var(--text))}html[data-theme="dark"] .btn-secondary{color:var(--dark-secondary-text,var(--text));background:#214f57;border-color:#214f57}

/* Global payment assets form one utility row between footer navigation and legal details. */
.site-footer .footer-payments { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px 24px; padding-block: 24px; border-top: 1px solid currentColor; }
.site-footer .footer-payments > span { font-size: 12px; }
.site-footer .payment-methods-grid { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.site-footer .payment-methods-grid li { display: flex; }
.site-footer .payment-method-badge { display: block; width: 64px; height: 40px; padding: 4px; border: 1px solid #b7c5c8; border-radius: 2px; background: #fff; object-fit: contain; }
@media(max-width:540px){.site-footer .footer-payments{align-items:start;flex-direction:column}.site-footer .payment-method-badge{width:56px;height:35px}}


/* ---- Sela Custom Content Page & Rich Text ---- */
.page-main-section .page-header h1 { font-size: clamp(2.1rem, 4vw, 3rem) !important; letter-spacing: -0.025em; line-height: 1.15; color: var(--text); }
.page-content, .page-content.rte, .page-content.prose, .rte, .prose { max-width: 760px; margin-inline: auto; font-size: 16.5px; line-height: 1.85; color: var(--text); word-break: break-word; }
.page-content > *:first-child, .rte > *:first-child, .prose > *:first-child { margin-top: 0 !important; padding-top: 0 !important; }
.page-content > *:last-child, .rte > *:last-child, .prose > *:last-child { margin-bottom: 0 !important; }
.page-content h1, .rte h1, .prose h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin-top: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; color: var(--text); }
.page-content h2, .rte h2, .prose h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; margin-top: clamp(2rem, 3.8vw, 2.75rem); margin-bottom: 0.95rem; color: var(--text); }
.page-content h3, .rte h3, .prose h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; margin-top: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 0.75rem; color: var(--text); }
.page-content h4, .rte h4, .prose h4 { font-size: 1.05rem; line-height: 1.4; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 1.35rem; margin-bottom: 0.5rem; color: var(--text); }
.page-content p, .rte p, .prose p { margin-top: 0; margin-bottom: 1.5rem; line-height: 1.85; }
.page-content ul, .page-content ol, .rte ul, .rte ol, .prose ul, .prose ol { margin-top: 0; margin-bottom: 1.65rem; padding-left: 1.75rem; }
.page-content li, .rte li, .prose li { margin-bottom: 0.6rem; line-height: 1.8; }
.page-content li:last-child, .rte li:last-child, .prose li:last-child { margin-bottom: 0; }
.page-content blockquote, .rte blockquote, .prose blockquote { margin: 1.85rem 0; padding: 1.1rem 1.6rem; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 4px 4px 0; font-size: 1.05rem; line-height: 1.65; color: var(--text); }
.page-content blockquote p:last-child, .rte blockquote p:last-child, .prose blockquote p:last-child { margin-bottom: 0; }
.page-content img, .rte img, .prose img { max-width: 100%; height: auto; border-radius: 6px; margin-block: 1.75rem; display: block; }
.page-content hr, .rte hr, .prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5rem 0; }
.page-content a, .rte a, .prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.page-content a:hover, .rte a:hover, .prose a:hover { color: var(--accent-hover); }
.page-content table, .rte table, .prose table { width: 100%; border-collapse: collapse; margin-block: 2rem; font-size: 0.95rem; }
.page-content th, .page-content td, .rte th, .rte td, .prose th, .prose td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.page-content th, .rte th, .prose th { font-weight: 700; color: var(--text); border-bottom: 2px solid var(--text); }



.page-main-section .page-header { text-align: center; }
.page-main-section .page-header h1 { text-align: center; margin-inline: auto; }
.page-main-section .breadcrumbs, .page-main-section .breadcrumb { display: flex; justify-content: center; align-items: center; text-align: center; margin-inline: auto; }



/* ==========================================================================
   SELA v1.3.0 — Alignment, Carousel, Quick View, Mobile Drawer & Standard Parity
   ========================================================================== */

.sela-inline-icon {
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* Header Nav Dropdown Chevron */
.main-nav .nav-entry > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-chevron {
  transition: transform 0.2s ease;
  opacity: 0.72;
}
.main-nav .nav-entry.has-children:hover > a .nav-chevron,
.main-nav .nav-entry.has-children:focus-within > a .nav-chevron {
  transform: rotate(180deg);
}

/* Mobile Slide-Over Drawer (replaces brittle fixed top:106px dropdown) */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 109;
  border: 0;
  background: rgba(8, 36, 43, 0.56);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav {
  position: fixed !important;
  inset: 0 0 0 auto !important;
  width: min(360px, 88vw) !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  z-index: 110 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  border-left: 1px solid var(--text) !important;
  border-bottom: 0 !important;
  transform: translateX(100%) !important;
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s ease !important;
  overflow: hidden !important;
}
.mobile-nav.open {
  transform: translateX(0) !important;
  visibility: visible !important;
}
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--text);
  background: var(--surface);
  flex-shrink: 0;
}
.mobile-nav-label {
  margin: 0 !important;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-nav-links {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
}
.mobile-nav-links .nav-submenu {
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}
.mobile-nav-links .nav-submenu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.55rem 0;
}
.mobile-nav-utilities {
  flex-shrink: 0;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--text);
  background: var(--surface-2);
  display: grid;
  gap: 0.75rem;
}
.mobile-utility-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.mobile-nav-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.mobile-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--text);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

/* Breadcrumbs (single-container, clean spacing) */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 1.35rem;
  padding-bottom: 0.5rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}
.breadcrumbs-sep {
  opacity: 0.5;
}

/* Homepage Product Carousel & Aligned Product Grid */
.section-heading.row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.section-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.carousel-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.carousel-btn:hover:not(:disabled) {
  background: var(--text);
  color: var(--surface);
}
.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.product-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--carousel-cols, 3) - 1) * 1.25rem) / var(--carousel-cols, 3));
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
  padding-bottom: 0.35rem;
}
.product-carousel-track::-webkit-scrollbar {
  display: none;
}
.product-carousel-slide {
  scroll-snap-align: start;
  min-width: 0;
  display: flex;
}
.product-carousel-slide > .product-card {
  width: 100%;
}
.product-grid-cta-wrap {
  margin-top: 2rem;
}
.campaign-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  align-items: stretch;
}
@media (max-width: 900px) {
  .product-carousel-track {
    grid-auto-columns: calc((100% - 1rem) / 2);
    gap: 1rem;
  }
  .campaign-meta-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 540px) {
  .product-carousel-track {
    grid-auto-columns: calc((100% - 0.85rem) / 2);
    gap: 0.85rem;
  }
}

/* Aligned Product Cards (Uniform Height, Overlay Quick View, Price Stack) */
.product-grid--aligned,
.catalog-grid {
  align-items: stretch;
}
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
.product-card .product-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--product-aspect-ratio, 4 / 5);
  border: 1px solid var(--text);
  background: var(--surface-2);
}
.product-card .product-media-link {
  display: block;
  width: 100%;
  height: 100%;
}
.product-card .product-media-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card .card-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}
.product-card .card-badge.badge-deep {
  background: var(--deep);
  color: #f8faf9;
}
.product-card .card-badge.badge-sun {
  background: var(--sun);
  color: var(--deep);
}
.quick-view-trigger {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--text);
  background: var(--surface);
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease, color 0.15s ease;
}
.product-card:hover .quick-view-trigger,
.product-card:focus-within .quick-view-trigger,
.quick-view-trigger:focus-visible {
  opacity: 1;
  transform: translateY(0);
}
.quick-view-trigger svg {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px;
}
.quick-view-trigger:hover {
  background: var(--text);
  color: var(--surface);
}
@media (hover: none), (max-width: 767px) {
  .quick-view-trigger {
    opacity: 1;
    transform: none;
    left: 0.45rem;
    right: 0.45rem;
    bottom: 0.45rem;
    min-height: 34px;
    font-size: 0.66rem;
    padding: 0.35rem 0.5rem;
  }
}
.product-card .product-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 3px solid var(--text);
  min-width: 0;
}
.product-info-main {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}
.product-card-category {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-card .product-info h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .product-info h3 a {
  text-decoration: none;
  color: var(--heading);
}
.product-card .product-info h3 a:hover {
  color: var(--accent);
}
.card-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.card-rating .stars {
  color: #d97706;
}
.card-rating strong {
  color: var(--text);
}
.product-price-stack {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}
.product-price-stack .price {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text);
}
.product-price-stack .price.is-sale {
  color: var(--accent-ink, var(--accent));
}
.old-price {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: line-through;
}

/* Dedicated Quick View Modal (#quick-dialog — Architectural Sela Aesthetic) */
.quick-dialog {
  width: min(860px, calc(100vw - 2rem));
  max-height: 90dvh;
  padding: 0;
  border: 1px solid var(--text);
  background: var(--surface);
  color: var(--text);
  box-shadow: 10px 10px 0 var(--text);
  overflow: auto;
}
.quick-dialog::backdrop {
  background: rgba(8, 36, 43, 0.74);
  backdrop-filter: blur(4px);
}
.quick-dialog-shell {
  position: relative;
}
.quick-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.quick-close:hover {
  background: var(--text);
  color: var(--surface);
}
.quick-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
}
.quick-media {
  position: relative;
  background: var(--surface-2);
  border-right: 1px solid var(--text);
  min-height: 320px;
}
.quick-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--product-aspect-ratio, 4 / 5);
  object-fit: cover;
}
.quick-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.quick-badge.badge-deep {
  background: var(--deep);
  color: #f8faf9;
}
.quick-info {
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.quick-info h2 {
  margin: 0;
  padding-right: 2.5rem;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.2;
}
.quick-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}
.quick-price {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.quick-description {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}
.quick-options {
  display: grid;
  gap: 0.85rem;
}
.quick-option-group {
  display: grid;
  gap: 0.4rem;
}
.quick-option-label {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.quick-option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.quick-opt-pill {
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.quick-opt-pill:hover {
  border-color: var(--text);
}
.quick-opt-pill.is-active {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
}
.quick-opt-pill.is-sold-out {
  opacity: 0.5;
  text-decoration: line-through;
}
.quick-option-select {
  width: 100%;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--text);
  background: var(--surface);
  color: var(--text);
}
.quick-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
}
.quick-purchase-row {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
}
.quick-qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--text);
  background: var(--surface);
  flex-shrink: 0;
}
.quick-qty-box button {
  width: 38px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}
.quick-qty-box input {
  width: 50px;
  height: 44px;
  border: 0;
  border-inline: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: center;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-weight: 700;
}
.quick-add-btn {
  flex: 1;
  min-height: 44px;
  justify-content: center;
}
.quick-detail-link {
  width: 100%;
  justify-content: center;
}
.quick-status {
  margin: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.84rem;
  font-weight: 600;
}
.quick-status[data-state="error"] {
  border-color: var(--accent);
  color: var(--accent-ink, var(--accent));
}
.quick-footnote {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
@media (max-width: 720px) {
  .quick-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .quick-media {
    border-right: 0;
    border-bottom: 1px solid var(--text);
    max-height: 300px;
    min-height: 220px;
  }
  .quick-media img {
    max-height: 300px;
  }
  .quick-purchase-row {
    flex-wrap: wrap;
  }
  .quick-add-btn {
    width: 100%;
  }
}

/* Unified Cart Drawer & Cart Page */
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--text);
}
.drawer-head-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.drawer-head-title h2 {
  margin: 0;
  font-size: 1.15rem;
}
.drawer-head-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.drawer-head-link:hover {
  color: var(--accent);
}
.drawer-shipping.is-achieved {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}
.drawer-shipping-copy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.drawer-items {
  flex: 1;
  overflow-y: auto;
}
.drawer-item {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.drawer-item-thumb {
  width: 76px;
  height: 92px;
  flex: 0 0 76px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
  display: block;
}
.drawer-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.drawer-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.drawer-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.drawer-item-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--heading);
  text-decoration: none;
}
.drawer-item-variant {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.drawer-remove {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.drawer-remove:hover {
  border-color: var(--line);
  color: var(--accent);
}
.drawer-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.drawer-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
}
.drawer-qty button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.drawer-item-price {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
  color: var(--text);
}
.drawer-foot {
  padding: 1.25rem 1.4rem;
  border-top: 1px solid var(--text);
  background: var(--surface);
}
.drawer-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
}
.drawer-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.45;
}

/* Cart Page Alignment */
.cart-shipping-banner {
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--text);
  background: var(--surface);
}
.cart-shipping-banner.is-achieved {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.cart-lines-col {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}
.cart-items-list {
  border-top: 1px solid var(--text);
}
.cart-item {
  display: flex;
  gap: 1.15rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.cart-item-media {
  width: 104px;
  height: 128px;
  flex: 0 0 104px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
  display: block;
}
.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
}
.cart-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.cart-item-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}
.cart-item-head h2 a {
  text-decoration: none;
}
.cart-item-variant,
.cart-item-unit {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.cart-item-line-total {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 1rem;
  white-space: nowrap;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cart-item-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
}
.cart-item-remove:hover {
  color: var(--accent);
}
.cart-summary {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  border: 1px solid var(--text);
  background: var(--surface);
  padding: 1.5rem;
  display: grid;
  gap: 0.85rem;
}
.cart-summary-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.cart-summary-total-row h2 {
  margin: 0;
  font-size: 1.05rem;
}
.cart-summary-amount {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 1.35rem;
}
.cart-summary-note,
.cart-status-msg {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

/* PDP Scrollable Thumbs & Fullwidth Tabs */
.thumbs-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.product-gallery.has-thumb-nav .thumbs {
  max-height: 460px;
  overflow-y: auto;
  scrollbar-width: none;
}
.product-gallery.has-thumb-nav .thumbs::-webkit-scrollbar {
  display: none;
}
.thumb-scroll-btn {
  width: 100%;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.thumb-scroll-btn:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
}
@media (max-width: 900px) {
  .thumbs-shell {
    flex-direction: row;
  }
  .product-gallery.has-thumb-nav .thumbs {
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
  }
  .thumb-scroll-btn {
    width: 32px;
    height: 64px;
    flex: 0 0 32px;
  }
  .thumb-scroll-btn svg {
    transform: rotate(-90deg);
  }
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.25rem 0 0.75rem;
  font-size: 0.86rem;
}
.product-rating .stars {
  color: #d97706;
}
.product-rating a {
  color: var(--muted);
  text-decoration: underline;
}
.product-summary {
  margin: 0 0 1.15rem;
  line-height: 1.65;
  color: var(--muted);
}
.product-share-row {
  margin-top: 1.15rem;
}
.product-tabs-section .product-extra-tabs {
  margin-top: 0;
}
.product-tabs-section .rte {
  max-width: none;
  margin-inline: 0;
}
.product-cross-sell-slot {
  margin-top: 2.5rem;
}

/* Catalog Page — Left Filter Sidebar, Top-Right Sorting Bar & Numbered Pagination (SELA Studio 07) */
.catalog-page-section {
  padding-top: 1.5rem;
}
.catalog-page-heading {
  margin-bottom: 1.75rem;
}
.catalog-main {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  width: 100%;
}
.catalog-sidebar-backdrop {
  display: none;
}
.catalog-sidebar {
  grid-column: 1;
  width: 100%;
  position: sticky;
  top: 96px;
  z-index: 5;
}
.catalog-filter-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
}
.catalog-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.catalog-filter-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.catalog-filter-title svg {
  color: var(--accent);
}
.catalog-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding-inline: 0.3rem;
  background: var(--accent);
  color: #fff;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
}
.catalog-filter-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.catalog-reset-link {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-ink, var(--accent));
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.catalog-reset-link:hover {
  opacity: 0.78;
}
.catalog-filter-close {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.catalog-sidebar-group {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.catalog-filter-card > .catalog-sidebar-group:last-of-type {
  border-bottom: 0;
  margin-bottom: 0.85rem;
  padding-bottom: 0;
}
.facet-group-label {
  display: block;
  margin-bottom: 0.55rem;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.catalog-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.catalog-category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  border-left: 2px solid transparent;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.catalog-category-list a:hover {
  background: var(--surface-2);
  color: var(--accent-ink, var(--accent));
}
.catalog-category-list a.active {
  background: var(--surface-2);
  border-left-color: var(--accent);
  color: var(--text);
  font-weight: 700;
}
.catalog-facets .catalogue-facet {
  display: flex;
  flex-direction: column;
}
.catalog-facets .catalogue-select {
  width: 100%;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  box-sizing: border-box;
}
.catalog-facets .catalogue-select:focus {
  border-color: var(--text);
  outline: none;
}
.price-range-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 0.45rem;
}
.price-input-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.price-input-caption {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-input-field input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 0.84rem;
  box-sizing: border-box;
}
.price-input-field input:focus {
  border-color: var(--text);
  outline: none;
}
.price-sep {
  padding-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.price-slider-box {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.price-slider-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
}
.price-slider-label {
  color: var(--muted);
}
.price-slider-value {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  color: var(--text);
}
.price-slider-range {
  width: 100%;
  height: 5px;
  margin: 0.25rem 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.price-slider-ticks {
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  color: var(--muted);
}
.catalog-sidebar-actions {
  margin-top: 0.25rem;
}
.catalog-apply-btn {
  min-height: 42px;
  font-size: 0.84rem;
}
.catalog-apply-btn::after {
  content: none !important;
  display: none !important;
}

/* Right Column: Top Sorting Bar, Active Chips & Product Grid */
.catalog-results {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.catalog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.catalog-topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.catalog-mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
}
.catalog-mobile-filter-btn::after {
  content: none !important;
  display: none !important;
}
.catalog-result-count {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.catalog-result-count strong {
  color: var(--text);
}
.catalog-toolbar-right {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-left: auto;
}
.catalog-control-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.catalog-control-inline label {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.catalog-control-inline select {
  height: 38px;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  box-sizing: border-box;
}
.catalog-control-inline select:focus {
  border-color: var(--text);
  outline: none;
}
.catalog-active-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}
.catalog-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  color: var(--muted);
}
.catalog-active-chip strong {
  color: var(--text);
}
.catalog-chips-clear {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-ink, var(--accent));
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 0.25rem;
}
.catalog-results .catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.catalog-empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  background: var(--surface);
}

/* Numbered Pagination Bar */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.pagination-summary {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.pagination-summary strong {
  color: var(--text);
}
.pagination-summary-sep {
  margin-inline: 0.35rem;
}
.pagination-bar .pagination {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.pagination-pages {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.pagination-btn,
.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 36px;
  height: 36px;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.pagination-page {
  padding: 0 0.45rem;
}
a.pagination-btn:hover,
a.pagination-page:hover {
  border-color: var(--text);
  background: var(--surface-2);
}
.pagination-page.active,
.pagination-page.is-active {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
}
.pagination-btn.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 36px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
}

/* Dark Mode Catalog Polish */
[data-theme="dark"] .catalog-filter-card,
[data-theme="dark"] .catalog-topbar {
  border-color: rgba(243, 241, 234, 0.16);
}
[data-theme="dark"] .catalog-category-list a.active {
  background: rgba(243, 241, 234, 0.08);
}

/* Responsive Catalog Sidebar -> Slide-Over Left Drawer (<= 900px) */
@media (max-width: 1080px) {
  .catalog-results .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .catalog-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  .catalog-mobile-filter-btn {
    display: inline-flex;
  }
  .catalog-filter-close {
    display: inline-flex;
  }
  .catalog-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 36, 43, 0.52);
    backdrop-filter: blur(2px);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .catalog-sidebar-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .catalog-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(330px, 88vw);
    max-width: 330px;
    z-index: 1205;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    overflow-y: auto;
    background: var(--surface);
    border-right: 1px solid var(--text);
  }
  .catalog-sidebar.is-open {
    transform: translateX(0);
  }
  .catalog-sidebar .catalog-filter-card {
    border: 0;
    min-height: 100%;
    box-sizing: border-box;
  }
  body.catalog-filter-open {
    overflow: hidden;
  }
}
@media (max-width: 640px) {
  .catalog-topbar {
    padding: 0.7rem 0.8rem;
  }
  .catalog-topbar-left {
    width: 100%;
    justify-content: space-between;
  }
  .catalog-toolbar-right {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 0.55rem;
  }
  .catalog-control-inline {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .catalog-control-inline select {
    width: 100%;
  }
  .catalog-results .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
  .pagination-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .pagination-btn span {
    display: none;
  }
}

/* Search Page */
.search-main-section {
  padding-block: clamp(2rem, 5vw, 4rem);
}
.search-main-header {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}
.search-main-header h1 {
  margin: 0.5rem 0 1.25rem;
}
.search-main-form {
  display: flex;
  gap: 0.5rem;
}
.search-main-form input {
  flex: 1;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--text);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
}
.search-results-meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.article-search-card {
  border: 1px solid var(--text);
  background: var(--surface);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.article-search-card h3 {
  margin: 0;
  font-size: 1.08rem;
}
.article-search-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
}
.search-empty-state {
  border: 1px dashed var(--line);
  background: var(--surface);
  padding: 3.5rem 1.5rem;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}
.search-empty-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--text);
  background: var(--surface-2);
  color: var(--text);
}
.search-pagination-wrap,
.blog-pagination-wrap {
  margin-top: 3rem;
}

/* Uniform Blog Grid & Article Actions */
.blog-grid--uniform {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
}
.blog-grid--uniform .post-card,
.blog-grid--uniform .post-card:nth-child(n) {
  grid-column: auto !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-category-card {
  padding: 1.5rem;
  border: 1px solid var(--text);
  background: var(--surface);
  text-decoration: none;
  gap: 0.45rem;
}
.blog-category-card:hover {
  border-color: var(--accent);
}
@media (max-width: 900px) {
  .blog-grid--uniform {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px) {
  .blog-grid--uniform {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
.article-header {
  margin-bottom: 1.75rem;
}
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.84rem;
}
.article-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
}
.article-author-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.article-author-row strong {
  color: var(--text);
}
.article-featured-image {
  margin-bottom: 2rem;
  border: 1px solid var(--text);
  overflow: hidden;
}
.article-featured-image img {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: cover;
}
.article-content {
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--text);
}
.article-footer-tags {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.article-tags-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}
.article-actions-bar {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.article-share-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.article-share-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin-right: 0.25rem;
}
.article-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.article-share-btn:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
}

/* Contact Page Alignment */
.contact-main-section {
  padding-block: clamp(2rem, 5vw, 4.5rem);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.25rem);
  align-items: start;
}
.contact-info h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1rem;
}
.contact-lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 2rem;
}
.contact-media-frame {
  margin: 0 0 2rem;
  border: 1px solid var(--text);
  overflow: hidden;
  background: var(--surface-2);
}
.contact-media-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.contact-details-list {
  display: grid;
  gap: 1.5rem;
}
.contact-detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--text);
  background: var(--surface);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.contact-detail-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.contact-detail-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.contact-accent-link {
  color: var(--accent-ink, var(--accent));
  font-weight: 700;
  font-size: 0.92rem;
}
.contact-hours {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.contact-form-box {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--text);
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--text);
}
.contact-form-box h2 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
.contact-form {
  display: grid;
  gap: 1.15rem;
}
.contact-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.contact-field {
  display: grid;
  gap: 0.4rem;
}
.contact-field label {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}
.contact-field .form-control {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 0.94rem;
  box-sizing: border-box;
}
.contact-field .form-control:focus {
  border-color: var(--text);
  outline: none;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 540px) {
  .contact-field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Order Detail Toolbar Print Action */
.account-order-toolbar-right {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.order-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
}


/* ==========================================================================
   SELA v1.3.1 — Header Wishlist Uniformity, Compact Cart Drawer & Quick View UI
   ========================================================================== */

/* 1. Header Wishlist Button — Identical Monochrome Geometry to Search/Account/Cart */
.header-actions .wishlist-link {
  color: var(--text);
}
.header-actions .wishlist-link:hover {
  color: var(--deep);
}
.header-actions .wishlist-count {
  background: var(--accent);
  color: #fff;
}

/* 2. Compact Cart Drawer with Generous Line-Item Space */
.cart-drawer {
  width: min(400px, 100vw) !important;
}
.cart-drawer .drawer-head {
  padding: 0.7rem 1.15rem !important;
  min-height: 52px;
  gap: 0.5rem;
}
.cart-drawer .drawer-head-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  min-width: 0;
}
.cart-drawer .drawer-head-title h2 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cart-drawer .drawer-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding-inline: 0.35rem;
  background: var(--text);
  color: var(--surface);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
}
.cart-drawer .drawer-head-right {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.cart-drawer .drawer-head-link {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cart-drawer .drawer-close {
  width: 34px;
  height: 34px;
}
.cart-drawer .drawer-shipping {
  padding: 0.55rem 1.15rem !important;
  gap: 0.35rem !important;
}
.cart-drawer .drawer-shipping-copy {
  margin: 0 !important;
  font-size: 0.7rem;
  line-height: 1.35;
}
.cart-drawer .drawer-progress {
  height: 4px;
}
/* Eliminate double horizontal padding so line items have generous space */
.cart-drawer .drawer-items {
  padding: 0.25rem 0 !important;
}
.cart-drawer .drawer-item {
  display: flex !important;
  align-items: flex-start;
  gap: 0.9rem !important;
  padding: 0.9rem 1.15rem !important;
}
.cart-drawer .drawer-item:last-child {
  border-bottom: 0;
}
.cart-drawer .drawer-item-thumb {
  width: 64px;
  height: 78px;
  flex: 0 0 64px;
}
.cart-drawer .drawer-item-body {
  gap: 0.6rem;
}
.cart-drawer .drawer-item-meta {
  min-width: 0;
  flex: 1;
}
.cart-drawer .drawer-item-title {
  font-size: 0.88rem;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-drawer .drawer-item-variant {
  font-size: 0.75rem;
  margin-top: 0.15rem;
}
.cart-drawer .drawer-remove {
  width: 28px;
  height: 28px;
  margin-top: -2px;
}
.cart-drawer .drawer-qty {
  width: auto !important;
  min-height: 30px !important;
}
.cart-drawer .drawer-qty button {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  font-size: 0.92rem;
}
.cart-drawer .drawer-qty input[data-cart-quantity-entry] {
  width: 40px !important;
  min-width: 40px !important;
  flex: 0 0 40px !important;
  height: 30px !important;
  border: 0 !important;
  border-inline: 1px solid var(--line) !important;
  font-size: 0.82rem !important;
  background: transparent !important;
}
.cart-drawer .drawer-item-price {
  font-size: 0.86rem;
  white-space: nowrap;
}
.cart-drawer .drawer-foot {
  padding: 0.85rem 1.15rem 1rem !important;
  gap: 0.45rem !important;
}
.cart-drawer .drawer-summary-row {
  font-size: 0.96rem;
  margin-bottom: 0;
}
.cart-drawer .drawer-note {
  font-size: 0.74rem;
  margin: 0 0 0.35rem;
}
.cart-drawer .drawer-checkout-btn {
  min-height: 44px !important;
  padding-block: 0.65rem !important;
  font-size: 0.86rem;
}
.cart-drawer .drawer-checkout-btn::after {
  content: none !important;
  display: none !important;
}
.cart-drawer .drawer-view-cart-link {
  align-self: center;
  margin-top: 0.2rem;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-drawer .drawer-view-cart-link:hover {
  color: var(--text);
}
/* Keep toast clear of Checkout CTA when drawer is open on desktop */
@media (min-width: 640px) {
  body.drawer-open .toast {
    right: calc(min(400px, 100vw) + 1rem);
  }
}

/* 3. Upgraded Quick View Modal UI (SELA Studio 07 Light & Dark Polish) */
.quick-dialog {
  width: min(900px, calc(100vw - 2rem));
  max-height: min(88dvh, 760px);
  border: 1px solid var(--text);
  background: var(--surface);
  color: var(--text);
  box-shadow: 12px 12px 0 var(--text);
  overflow: hidden;
}
[data-theme="dark"] .quick-dialog {
  border-color: rgba(243, 241, 234, 0.24);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.6), 8px 8px 0 rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .quick-media-col {
  border-right-color: rgba(243, 241, 234, 0.16);
}
.quick-dialog[open] {
  animation: selaQuickIn 0.18s ease-out;
}
@keyframes selaQuickIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.quick-dialog-shell {
  max-height: min(88dvh, 760px);
  display: flex;
  flex-direction: column;
}
.quick-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  min-height: 0;
  max-height: min(88dvh, 760px);
}
.quick-media-col {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border-right: 1px solid var(--text);
  min-height: 0;
}
.quick-media {
  position: relative;
  flex: 1;
  min-height: 280px;
  border-right: 0;
  overflow: hidden;
  background: var(--surface-2);
}
.quick-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: var(--product-aspect-ratio, 4 / 5);
  object-fit: cover;
  display: block;
}
.quick-thumbs {
  display: flex;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.quick-thumbs::-webkit-scrollbar {
  display: none;
}
.quick-thumb {
  width: 52px;
  height: 64px;
  flex: 0 0 52px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.quick-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.quick-thumb:hover,
.quick-thumb.is-active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.quick-info {
  padding: 1.35rem 1.65rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  min-height: 0;
}
.quick-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.quick-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}
.quick-icon-btn {
  position: static !important;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.quick-icon-btn:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
}
.quick-wishlist-btn.active,
.quick-wishlist-btn[aria-pressed="true"] {
  border-color: var(--grid-wishlist-accent, var(--accent));
  color: var(--grid-wishlist-accent, var(--accent)) !important;
}
.quick-wishlist-btn.active .quick-heart-svg,
.quick-wishlist-btn[aria-pressed="true"] .quick-heart-svg {
  fill: var(--grid-wishlist-accent, var(--accent));
  stroke: var(--grid-wishlist-accent, var(--accent));
}
.quick-info h2 {
  margin: 0;
  padding-right: 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.quick-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.quick-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.quick-rating .stars {
  color: #d97706;
  letter-spacing: 0.02em;
}
.quick-rating strong {
  color: var(--text);
}
.quick-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.quick-stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
}
.quick-stock-pill[data-state="low"] .quick-stock-dot {
  background: #d97706;
}
.quick-stock-pill[data-state="sold-out"] {
  border-color: var(--accent);
  color: var(--accent-ink, var(--accent));
}
.quick-stock-pill[data-state="sold-out"] .quick-stock-dot {
  background: var(--accent);
}
.quick-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.quick-price {
  font-size: 1.25rem;
}
.quick-discount-tag {
  padding: 0.14rem 0.42rem;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-ink, var(--accent));
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
}
.quick-description {
  font-size: 0.87rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.quick-divider {
  height: 1px;
  background: var(--line);
  margin-block: 0.1rem;
}
.quick-option-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.quick-option-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}
.quick-opt-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 36px;
  padding: 0.32rem 0.72rem;
}
.quick-swatch-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 1px solid rgba(18, 51, 59, 0.35);
}
.quick-opt-pill.is-active .quick-swatch-dot {
  border-color: rgba(255, 255, 255, 0.75);
}
.quick-add-btn {
  min-height: 44px !important;
  padding-inline: 1.15rem !important;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.quick-add-btn::after {
  content: none !important;
  display: none !important;
}
.quick-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text) !important;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.quick-detail-link:hover {
  border-color: var(--text);
  background: var(--surface-2);
}
@media (max-width: 740px) {
  .quick-dialog {
    width: calc(100vw - 1rem);
    max-height: 92dvh;
    overflow: auto;
  }
  .quick-dialog-shell,
  .quick-layout {
    max-height: none;
  }
  .quick-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .quick-media-col {
    border-right: 0;
    border-bottom: 1px solid var(--text);
  }
  .quick-media {
    min-height: 190px;
    max-height: 230px;
  }
  .quick-media img {
    max-height: 230px;
  }
  .quick-thumbs {
    padding: 0.45rem 0.75rem;
  }
  .quick-thumb {
    width: 44px;
    height: 52px;
    flex-basis: 44px;
  }
  .quick-info {
    padding: 0.9rem 1rem 1.1rem;
    gap: 0.55rem;
    overflow: visible;
  }
  .quick-purchase-row {
    flex-wrap: nowrap;
  }
  .quick-add-btn {
    width: auto;
    flex: 1;
  }
}

/* ==========================================================================
   SELA v1.3.2 — Cart Quantity Box, Shipping Motivation Meter, Contact Map & PDP Share
   ========================================================================== */

/* 1. Refined Quantity Stepper Component (Cart Page, Cart Drawer & PDP) */
.cart-item .quantity.cart-qty-stepper,
.cart-qty-stepper {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  min-height: 38px !important;
  margin-top: 0 !important;
  border: 1px solid var(--line) !important;
  background: var(--bg) !important;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.cart-qty-stepper:hover,
.cart-qty-stepper:focus-within {
  border-color: var(--text) !important;
}
.cart-qty-stepper button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0;
  border: 0 !important;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}
.cart-qty-stepper button:hover {
  background: var(--surface-2);
  color: var(--text);
}
.cart-qty-stepper button:active {
  background: var(--text);
  color: var(--surface);
}
.cart-qty-stepper input[type="number"] {
  width: 46px !important;
  min-width: 46px !important;
  flex: 0 0 46px !important;
  height: 36px !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-inline: 1px solid var(--line) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.86rem !important;
  font-weight: 700;
  text-align: center !important;
  -moz-appearance: textfield;
  appearance: textfield;
}
.cart-qty-stepper input[type="number"]::-webkit-inner-spin-button,
.cart-qty-stepper input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-qty-stepper input[type="number"]:focus {
  outline: none !important;
  background: var(--bg) !important;
}
/* Compact variant inside Cart Drawer (overrides cart-quantity.js injected #CCC border) */
[data-cart-drawer] .drawer-qty.cart-qty-stepper {
  min-height: 32px !important;
}
[data-cart-drawer] .drawer-qty.cart-qty-stepper button {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  font-size: 0.94rem;
}
[data-cart-drawer] .drawer-qty.cart-qty-stepper input[data-cart-quantity-entry] {
  width: 42px !important;
  min-width: 42px !important;
  flex: 0 0 42px !important;
  height: 32px !important;
  border: 0 !important;
  border-inline: 1px solid var(--line) !important;
  background: var(--surface) !important;
  font-size: 0.82rem !important;
}
[data-cart-drawer] .drawer-qty.cart-qty-stepper input[data-cart-quantity-entry]:focus-visible {
  outline: none !important;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cart-item-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.cart-item-remove:hover {
  color: var(--accent);
}

/* 2. Upgraded Shipping Discount Motivation Progress Meter (Cart Page & Drawer) */
.shipping-meter {
  display: flex !important;
  flex-direction: column;
  gap: 0.6rem !important;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.cart-shipping-banner.shipping-meter {
  padding: 1rem 1.2rem;
  margin-bottom: 1.75rem;
  border-left: 3px solid var(--accent);
}
.cart-drawer .drawer-shipping.shipping-meter {
  padding: 0.7rem 1.15rem !important;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.shipping-meter.is-achieved {
  border-color: color-mix(in srgb, var(--success, #19734a) 35%, var(--line));
  border-left-color: var(--success, #19734a);
  background: color-mix(in srgb, var(--success, #19734a) 10%, var(--surface)) !important;
}
.shipping-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.shipping-meter-lead {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex: 1;
}
.shipping-meter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-ink, var(--accent));
  font-size: 0.95rem;
}
.cart-drawer .shipping-meter-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  font-size: 0.84rem;
}
.shipping-meter.is-achieved .shipping-meter-icon {
  background: color-mix(in srgb, var(--success, #19734a) 18%, transparent);
  color: var(--success, #19734a);
}
.shipping-meter .drawer-shipping-copy {
  margin: 0 !important;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.38;
  color: var(--text);
}
.cart-drawer .shipping-meter .drawer-shipping-copy {
  font-size: 0.76rem;
}
.shipping-meter .drawer-shipping-copy strong {
  color: var(--heading);
  font-weight: 700;
}
.shipping-meter.is-achieved .drawer-shipping-copy strong {
  color: var(--success, #19734a);
}
.shipping-meter-pct {
  flex-shrink: 0;
  padding: 0.16rem 0.45rem;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
}
.shipping-meter.is-achieved .shipping-meter-pct {
  border-color: color-mix(in srgb, var(--success, #19734a) 45%, transparent);
  background: var(--success, #19734a);
  color: #ffffff;
}
.shipping-meter-track {
  position: relative;
  width: 100%;
  height: 7px !important;
  background: var(--surface-2);
  overflow: hidden;
}
.cart-drawer .shipping-meter-track {
  height: 6px !important;
}
.shipping-meter-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 82%, var(--sun)) 100%);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease;
}
.shipping-meter.is-achieved .shipping-meter-fill {
  background: var(--success, #19734a);
}

/* 3. Contact Page Google Map Iframe Embed Box */
.contact-map-frame {
  margin-top: 1.75rem;
  border: 1px solid var(--text);
  background: var(--surface-2);
  overflow: hidden;
}
.contact-map-frame iframe {
  display: block;
  width: 100%;
  height: var(--contact-map-height, 280px);
  border: 0;
}

/* 4. PDP Multi-Channel Product Share Row */
.product-share-row {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.product-share-label {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-share-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.product-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 36px;
  padding: 0.35rem 0.72rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text) !important;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.product-share-btn:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface) !important;
}
.product-share-copy.is-copied {
  border-color: var(--success, #19734a);
  background: var(--success, #19734a);
  color: #ffffff !important;
}

.cart-summary [data-checkout]::after,
.contact-form button[type="submit"]::after {
  content: none !important;
  display: none !important;
}

/* 7. PDP Multi-Option Variant Pills & Price Discount Row (Quick View Parity) */
.pdp-options {
  margin: 0 0 1.25rem;
}
.purchase-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.purchase-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
}
.purchase-row .quantity.cart-qty-stepper {
  min-height: 48px !important;
  flex-shrink: 0;
}
.purchase-row .quantity.cart-qty-stepper button {
  width: 42px !important;
  height: 46px !important;
  min-width: 42px !important;
  min-height: 46px !important;
}
.purchase-row .quantity.cart-qty-stepper input[type="number"] {
  width: 52px !important;
  min-width: 52px !important;
  flex: 0 0 52px !important;
  height: 46px !important;
}
@media (max-width: 520px) {
  .purchase-row {
    grid-template-columns: 1fr;
  }
  .purchase-row .quantity.cart-qty-stepper {
    justify-self: start;
  }
}

/* 6. Secondary Button: Same Chamfered Shape & Border Style as Primary Button, Distinct Background Color */
.btn.btn-secondary,
.btn-secondary {
  border: 1px solid var(--btn-secondary-bg, #c7d5d9);
  border-radius: 0;
  background: var(--btn-secondary-bg, #c7d5d9);
  color: var(--btn-secondary-text, var(--text));
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.btn.btn-secondary:hover,
.btn-secondary:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}
html[data-theme="dark"] .btn.btn-secondary,
html[data-theme="dark"] .btn-secondary {
  border-color: #214f57;
  background: #214f57;
  color: var(--dark-secondary-text, var(--text));
}
html[data-theme="dark"] .btn.btn-secondary:hover,
html[data-theme="dark"] .btn-secondary:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

/* 5. Dynamic Block-Based Trust Strip Grid */
.trust-strip .trust-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
@media (max-width: 640px) {
  .trust-strip .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
