/* Presentation layer adapted from tcare-shop.html. Existing Rails controls,
   feature flags and configured content remain the source of truth. */

.storefront-redesign {
  --shop-brand: var(--theme-primary);
  --shop-hover: var(--theme-primary-hover);
  --shop-soft: color-mix(in srgb, var(--shop-brand) 12%, var(--shop-surface));
  --shop-bg: #fff;
  --shop-alt: #f5f5f5;
  --shop-surface: #fff;
  --shop-text: var(--theme-secondary);
  --shop-muted: #6c757d;
  --shop-line: #eee;
  --shop-shadow: 0 6px 24px rgba(0, 0, 0, .08);
  background: var(--shop-bg);
  color: var(--shop-text);
  font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  line-height: 1.6;
}
[data-storefront-theme="dark"] .storefront-redesign {
  --shop-soft: color-mix(in srgb, var(--shop-brand) 20%, var(--shop-surface));
  --shop-bg: #141013;
  --shop-alt: #1c171b;
  --shop-surface: #221c21;
  --shop-text: #f3eaf0;
  --shop-muted: #b3a2ad;
  --shop-line: #352c33;
  --shop-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
.storefront-redesign :focus-visible { outline: 2px solid var(--shop-brand); outline-offset: 3px; }
.storefront-redesign a { color: inherit; text-decoration: none; }
.storefront-redesign a:hover { color: var(--shop-brand); }
.storefront-redesign .container { max-width: 1280px; }
.storefront-redesign .nav-item,
.storefront-redesign footer,
.storefront-redesign .sec-title,
.storefront-redesign .product_name,
.storefront-redesign .menu-product-name { font-family: inherit; }
.storefront-redesign .main-navbar,
.storefront-redesign .mobile-main-header,
.storefront-redesign .dropdown-mobile-menu,
.storefront-redesign .mobile-offcanvas { background: var(--shop-surface); color: var(--shop-text); }
.storefront-redesign #featured_desktop_navbar,
.storefront-redesign #featured_desktop_navbar.featured-desktop-navbar.featured-desktop-navbar--fixed {
  height: auto;
  min-height: 79px;
  border-color: var(--shop-line) !important;
  padding: 0 20px;
}
.storefront-redesign #featured_desktop_navbar a,
.storefront-redesign #featured_desktop_navbar .fa-solid,
.storefront-redesign #featured_desktop_navbar .fa,
.storefront-redesign #featured_desktop_navbar .featured-desktop-navbar__icon-button,
.storefront-redesign .mobile-main-header a,
.storefront-redesign .mobile-main-header .fa-solid,
.storefront-redesign .mobile-main-header .fa-shopping-cart { color: var(--theme-header-text) !important; }
.storefront-redesign .featured-desktop-navbar__inner { max-width: 1280px; margin: auto; min-height: 64px; }
.storefront-redesign #featured_desktop_navbar { position: sticky; top: 0; z-index: 1030; box-shadow: var(--shop-shadow); }
.storefront-redesign .mobile-navbar-main-row { grid-template-columns: 62px 42px 42px minmax(0, 1fr) 42px max-content; }
.storefront-redesign .site-logo { height: 64px; width: auto; max-width: 180px; object-fit: contain; }
.storefront-redesign .featured-desktop-navbar__icon-link,
.storefront-redesign .mobile-navbar-icon { border-radius: 12px; min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.storefront-redesign .featured-desktop-navbar__icon-link:hover,
.storefront-redesign .mobile-navbar-icon:hover { background: var(--shop-soft); }
.storefront-redesign #main_menu { height: auto; min-height: 56px; background: var(--shop-surface); border-bottom: 1px solid var(--shop-line); padding-block: 6px; }
.storefront-redesign #main_menu .nav-link { color: var(--shop-text); font-size: 14px; font-weight: 600; border-radius: 999px; padding: 8px 16px; }
.storefront-redesign #main_menu .nav-link:hover { background: var(--shop-soft); color: #fff; }
.storefront-redesign .coupon-top-nav { background: var(--shop-brand); min-height: 36px; display: flex; justify-content: center; align-items: center; }
.storefront-redesign .coupon-top-nav .coupons_top_nav_text { color: #fff !important; }
.storefront-redesign .cart-bubble { background: #dc3545; color: #fff; border: 2px solid var(--shop-surface); border-radius: 999px; }
.storefront-redesign .search-input { border: 1px solid var(--shop-line); background: var(--shop-alt); color: var(--shop-text); border-radius: 999px; min-height: 42px; }
.storefront-redesign .search-input::placeholder { color: var(--shop-muted); }
.storefront-redesign .search-btn { color: var(--shop-brand); }
.storefront-redesign .dropdown-menu,
.storefront-redesign .offcanvas,
.storefront-redesign .modal-content { background: var(--shop-surface); color: var(--shop-text); border: 1px solid var(--shop-line); border-radius: 14px; box-shadow: var(--shop-shadow); }
.storefront-redesign .dropdown-item { color: var(--shop-text); }
.storefront-redesign .dropdown-item:hover { background: var(--shop-soft); color: var(--shop-brand); }
.storefront-theme-toggle { position: relative; display: inline-flex; align-items: center; justify-content: space-between; flex-shrink: 0; width: 62px; height: 32px; padding: 0 8px; border: 1px solid var(--shop-line); border-radius: 999px; background: var(--shop-alt); color: var(--shop-muted); cursor: pointer; direction: ltr; }
.storefront-theme-toggle::before { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--shop-brand); transition: transform .2s; }
.storefront-theme-toggle svg { position: relative; width: 15px; height: 15px; flex-shrink: 0; }
.storefront-theme-toggle .sun { color: var(--theme-primary-text); }
[data-storefront-theme="dark"] .storefront-theme-toggle::before { transform: translateX(30px); }
[data-storefront-theme="dark"] .storefront-theme-toggle .moon { color: var(--theme-primary-text); }
[data-storefront-theme="dark"] .storefront-theme-toggle .sun { color: var(--shop-muted); }
.storefront-redesign #carouselControls { background: var(--shop-alt); overflow: hidden; }
.storefront-redesign #carouselControls .main-banner-image { width: 100%; height: auto; aspect-ratio: 9 / 4; max-height: 640px; object-fit: cover; }
.storefront-redesign .carousel-control-prev,
.storefront-redesign .carousel-control-next { width: 42px; height: 42px; top: 50%; transform: translateY(-50%); border-radius: 50%; background: rgba(255, 255, 255, .85); margin-inline: 14px; opacity: 1; }
.storefront-redesign .carousel-control-prev-icon,
.storefront-redesign .carousel-control-next-icon { width: 20px; height: 20px; filter: invert(1); }
.storefront-redesign .sec-title { background: transparent; color: var(--shop-text); text-align: start !important; margin: 48px 0 18px; padding: 0; border: 0; }
.storefront-redesign .sec-title :is(h1,h2,h3) { font-size: 24px; font-weight: 700; margin: 0; }
.storefront-redesign .storefront-band { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: stretch; margin-block: 48px; }
.storefront-redesign .storefront-band-heading { border-radius: 22px; background: var(--shop-brand); color: var(--theme-primary-text); padding: 26px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; overflow: hidden; }
.storefront-redesign .storefront-band-heading h2 { font-size: 26px; font-weight: 700; line-height: 1.4; }
.storefront-redesign .storefront-band-heading a { color: var(--theme-primary-text); font-size: 14px; }
.storefront-redesign .storefront-band > div { min-width: 0; }
.storefront-redesign .storefront-band .main-page-full-width-section { width: auto; margin: 0; position: static; transform: none; }
.storefront-redesign .categories-slider { gap: 16px; padding: 6px 0; }
.storefront-redesign .categories-slider-item,
.storefront-redesign .categories-slider-item.is-slider-center,
.storefront-redesign .categories-slider-item.is-near-center { flex: 0 0 168px; transform: none; opacity: 1; margin: 0; }
.storefront-redesign .category-card { margin: 0; background: transparent; border-radius: 0 !important; box-shadow: none !important; }
.storefront-redesign .category-card .main-category-img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 28px; background: var(--shop-soft); }
.storefront-redesign .category-card .card-body { padding: 10px 4px; text-align: start; }
.storefront-redesign .category-card .text-dark { color: var(--shop-text) !important; font-size: 15px; }
.storefront-redesign .brands-showcase { padding: 6px 0; background: transparent; }
.storefront-redesign .brands-slider { gap: 16px; }
.storefront-redesign .brands-slider-item { flex: 0 0 170px; }
.storefront-redesign .brands-showcase .brand-item { height: 110px; border: 1px solid var(--shop-line); border-radius: 20px; background: #fff; padding: 18px; box-shadow: none; }
.storefront-redesign .brand-item img { max-height: 70px; object-fit: contain; }
.storefront-redesign .main-product-tabs { margin-block: 48px !important; }
.storefront-redesign .main-product-tabs__nav { display: flex; flex-wrap: wrap; gap: 6px; background: var(--shop-alt); padding: 4px; border: 0; border-radius: 24px; width: fit-content; max-width: 100%; margin-bottom: 22px; }
.storefront-redesign .main-product-tabs__button { padding: 8px 22px; font-size: 14px; font-weight: 600; border-radius: 999px; color: var(--shop-muted); background: transparent; }
.storefront-redesign .main-product-tabs__button.active { color: var(--theme-primary-text); background: var(--shop-brand); box-shadow: none; }
.storefront-redesign .product-in-list { height: 100%; display: flex; flex-direction: column; background: var(--shop-surface); border: 1px solid var(--shop-line); border-radius: 14px; overflow: hidden; padding: 0; transition: box-shadow .2s, border-color .2s; }
.storefront-redesign .product-in-list:hover { box-shadow: var(--shop-shadow); border-color: var(--shop-soft); }
.storefront-redesign .product-in-list .product-img { background: #fff; aspect-ratio: 1; overflow: hidden; }
.storefront-redesign .product-list-img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; padding: 12px; }
.storefront-redesign .product-info { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 14px; text-align: start; }
.storefront-redesign .product-list-title { font-size: 14px; line-height: 1.5; font-weight: 500; min-height: 42px; margin: 0; }
.storefront-redesign .product-list-title a { color: var(--theme-product-name); }
.storefront-redesign .product-list-title a:hover { color: var(--theme-product-name-hover); }
.storefront-redesign .product-list-price { font-size: 18px; font-weight: 700; color: var(--theme-price); margin: 0; }
.storefront-redesign .product-list-discount-price { font-size: 13px; font-weight: 500; color: var(--theme-discount-price); }
.storefront-redesign .product-list-actions { margin-top: auto !important; grid-template-columns: minmax(0, 1fr) 2.25rem; gap: 8px; }
.storefront-redesign .product-info > div:last-child { margin-top: auto !important; }
.storefront-redesign .product-list-actions-spacer { display: none; }
.storefront-redesign .product-list-add-to-cart { flex: 1; margin-inline: 0 !important; }
.storefront-redesign .product-in-list .btn { border-radius: 999px; min-height: 40px; font-size: 13px; }
.storefront-redesign .text-image-top-right,
.storefront-redesign .new-badge { border-radius: 999px; font-size: 12px; padding: 3px 10px; }
.storefront-redesign .text-image-top-right { background: #dc3545; color: #fff; }
.storefront-redesign .new-badge { background: #ffae00; color: #fff !important; }
.storefront-redesign .btn-primary { --bs-btn-bg: var(--shop-brand); --bs-btn-border-color: var(--shop-brand); --bs-btn-hover-bg: var(--shop-hover); --bs-btn-hover-border-color: var(--shop-hover); background: var(--shop-brand); border-color: var(--shop-brand); color: var(--theme-primary-text); border-radius: 999px; padding: 9px 20px; }
.storefront-redesign .btn-primary:hover { background: var(--shop-hover); border-color: var(--shop-hover); color: var(--theme-primary-text); }
.storefront-redesign .main-page-video-card,
.storefront-redesign .main-page-video-card.is-slider-center,
.storefront-redesign .main-page-video-card.is-near-center { flex: 0 0 250px; transform: none; opacity: 1; border-radius: 24px; overflow: hidden; background: var(--shop-surface); }
.storefront-redesign .main-page-video-media { aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; }
.storefront-redesign .main-page-video-media video { width: 100%; height: 100%; object-fit: cover; }
.storefront-redesign .main-page-video-link { background: var(--shop-brand); color: var(--theme-primary-text); border-radius: 999px; }
.storefront-redesign .manual-review { border: 1px solid var(--shop-line); border-radius: 14px; background: var(--shop-surface); padding: 22px; }
.storefront-redesign .information-bar { border: 0; border-radius: 14px; background: var(--shop-alt); padding: 26px; }
.storefront-redesign .information-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.storefront-redesign .information-item { display: flex; gap: 14px; align-items: flex-start; text-align: start; }
.storefront-redesign .information-icon { flex: 0 0 50px; height: 50px; border-radius: 14px; background: var(--shop-brand); color: var(--theme-primary-text); display: flex; align-items: center; justify-content: center; }
.storefront-redesign .information-icon svg { width: 24px; height: 24px; }
.storefront-redesign .information-content { min-width: 0; color: var(--shop-muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.storefront-redesign .information-content :is(h1,h2,h3,h4,h5,h6,strong,b) { display: block; font-size: 16px; font-weight: 700; color: var(--shop-text); margin: 0 0 4px; }
.storefront-redesign .information-content p { margin: 0; }
@media (max-width: 760px) {
  .storefront-redesign .information-grid { grid-template-columns: minmax(0, 1fr); }
}
.storefront-redesign footer { background: var(--theme-footer); color: var(--theme-footer-text); border-color: var(--shop-line) !important; padding-top: 28px; }
.storefront-redesign footer :is(a,h5,h6,p,.nav-link,.fa-solid) { color: var(--theme-footer-text); }
.storefront-redesign .text-muted { color: var(--shop-muted) !important; }
.storefront-redesign .breadcrumb { background: var(--shop-alt); border-bottom: 1px solid var(--shop-line); padding-block: 14px; color: var(--shop-muted); }
.storefront-redesign .breadcrumb-item { color: var(--shop-muted); }
.storefront-redesign .breadcrumb-item.active { color: var(--shop-brand); }
.storefront-redesign .form-control,
.storefront-redesign .form-select { border: 1px solid var(--shop-line); background-color: var(--shop-alt); color: var(--shop-text); border-radius: 10px; }
.storefront-redesign .form-control:focus,
.storefront-redesign .form-select:focus { border-color: var(--shop-brand); box-shadow: 0 0 0 3px var(--shop-soft); }
.storefront-redesign .auth-card { background: var(--shop-surface); border: 1px solid var(--shop-line); border-radius: 20px; box-shadow: var(--shop-shadow); }
.storefront-redesign :is(.auth-title,.auth-form label,.details-title,.details-section-title,#product_name) { color: var(--shop-text); }
.storefront-redesign :is(.auth-alt-link,.auth-brand-name) { color: var(--shop-brand); }
.storefront-redesign .table { --bs-table-bg: var(--shop-surface); --bs-table-color: var(--shop-text); --bs-table-border-color: var(--shop-line); --bs-table-striped-bg: var(--shop-alt); --bs-table-striped-color: var(--shop-text); }
.storefront-redesign .page-link { background: var(--shop-surface); border-color: var(--shop-line); color: var(--shop-brand); }
.storefront-redesign .page-item.active .page-link { background: var(--shop-brand); border-color: var(--shop-brand); }
.storefront-redesign .mobile-bottom-nav { background: var(--shop-surface); border-top: 1px solid var(--shop-line); box-shadow: 0 -4px 20px rgba(0, 0, 0, .05); padding-bottom: env(safe-area-inset-bottom, 0px); }
.storefront-redesign .mobile-bottom-nav__item { color: var(--shop-muted); }
.storefront-redesign .mobile-bottom-nav__item.is-active { color: var(--shop-brand); }
@media (max-width: 767.98px) {
  .storefront-redesign .site-logo { height: 48px; max-width: 130px; }
  .storefront-redesign .mobile-navbar-main-row { gap: 3px; grid-template-columns: 42px 34px 34px minmax(0, 1fr) 34px max-content; }
  .storefront-redesign .mobile-navbar-icon { min-width: 34px; width: 34px; }
  .storefront-redesign .mobile-navbar-brand { padding-inline: 0; }
  .storefront-redesign .mobile-navbar-main-row .storefront-theme-toggle { width: 42px; height: 28px; padding: 0 4px; }
  .storefront-redesign .mobile-navbar-main-row .storefront-theme-toggle::before { width: 20px; height: 20px; }
  [data-storefront-theme="dark"] .mobile-navbar-main-row .storefront-theme-toggle::before { transform: translateX(14px); }
  .storefront-redesign .mobile-navbar-main-row .storefront-theme-toggle svg { width: 12px; height: 12px; }
  .storefront-redesign .storefront-band { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-block: 30px; }
  .storefront-redesign .storefront-band-heading { flex-direction: row; align-items: center; padding: 18px; border-radius: 16px; }
  .storefront-redesign .storefront-band-heading h2 { font-size: 20px; margin: 0; }
  .storefront-redesign .categories-slider-item { flex-basis: 136px; }
  .storefront-redesign .category-card .main-category-img { border-radius: 22px; }
  .storefront-redesign .sec-title { margin-top: 30px; }
  .storefront-redesign .sec-title :is(h1,h2,h3) { font-size: 20px; }
  .storefront-redesign .product-info { padding: 10px; gap: 8px; }
  .storefront-redesign .product-list-title { font-size: 13px; min-height: 39px; }
  .storefront-redesign .product-list-price { font-size: 16px; }
  .storefront-redesign .product-in-list .btn { padding-inline: 8px; font-size: 12px; }
  .storefront-redesign .main-product-tabs__button { padding: 7px 14px; font-size: 13px; }
  .storefront-redesign .main-page-video-card { flex-basis: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .storefront-redesign *, .storefront-redesign *::before { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.storefront-redesign .storefront-band .sec-title { display: none; }

/* Keep configured header colors in both layout variants. */
.storefront-redesign #featured_desktop_navbar,
.storefront-redesign .main-navbar,
.storefront-redesign #main_menu { background: var(--theme-desktop-header); color: var(--theme-header-text); }
.storefront-redesign #main_menu .nav-link { color: var(--theme-header-text); }
.storefront-redesign .mobile-main-header,
.storefront-redesign .dropdown-mobile-menu,
.storefront-redesign .mobile-offcanvas { background: var(--theme-mobile-header); color: var(--theme-header-text); }
.storefront-redesign .mobile-main-header .fa-bars { color: var(--theme-header-text); }
.storefront-redesign .dropdown-mobile-menu .dropdown-menu,
.storefront-redesign .mobile-offcanvas .dropdown-menu { background: var(--shop-surface); color: var(--shop-text); }
.storefront-redesign .dropdown-mobile-menu .dropdown-menu .dropdown-item,
.storefront-redesign .mobile-offcanvas .dropdown-menu .dropdown-item { color: var(--shop-text) !important; white-space: normal; }
.storefront-redesign .dropdown-mobile-menu .dropdown-menu .dropdown-item:hover,
.storefront-redesign .dropdown-mobile-menu .dropdown-menu .dropdown-item:focus,
.storefront-redesign .dropdown-mobile-menu .dropdown-menu .dropdown-item:active,
.storefront-redesign .mobile-offcanvas .dropdown-menu .dropdown-item:hover,
.storefront-redesign .mobile-offcanvas .dropdown-menu .dropdown-item:focus,
.storefront-redesign .mobile-offcanvas .dropdown-menu .dropdown-item:active { background: var(--shop-alt); color: var(--shop-text) !important; }
.storefront-redesign #product_name,
.storefront-redesign .product_name,
.storefront-redesign .menu-product-name a { color: var(--theme-product-name); }
.storefront-redesign .product_name:hover,
.storefront-redesign .menu-product-name a:hover { color: var(--theme-product-name-hover); }
.storefront-redesign footer .text-muted { color: var(--theme-footer-text) !important; }
.storefront-redesign .btn-primary {
  --bs-btn-color: var(--theme-primary-text);
  --bs-btn-hover-color: var(--theme-primary-text);
  --bs-btn-active-bg: var(--theme-secondary);
  --bs-btn-active-border-color: var(--theme-secondary);
  --bs-btn-active-color: var(--theme-secondary-text);
}

/* Desktop category panels follow the reference's multi-column mega menu. */
@media (min-width: 992px) {
  .storefront-redesign #main_menu { position: relative; overflow: visible; }
  .storefront-redesign #main_menu > .navbar-nav > .dropdown {
    position: static;
    /* Extend the hover target through the navbar's bottom padding. */
    padding-block: 6px;
    margin-block: -6px;
  }
  .storefront-redesign #main_menu > .navbar-nav > .dropdown > .dropdown-menu {
    position: absolute;
    inset: calc(100% - 4px) 20px auto !important;
    width: 60%;
    min-width: 0;
    margin: 0 auto;
    padding: 26px 28px;
    border: 1px solid var(--shop-line);
    border-radius: 22px;
    background: var(--shop-surface);
    color: var(--shop-text);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .12);
    display: grid;
    opacity: 0;
    visibility: hidden;
    /* Visibility disables interaction once closed. Keep pointer events during
       the closing transition so moving into the panel restores its hover. */
    pointer-events: auto;
    transform: translateY(8px) !important;
    transition: opacity .2s, transform .2s, visibility 0s .2s;
    max-height: min(70vh, 640px);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1060;
    grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
    gap: 18px 30px;
  }
  .storefront-redesign #main_menu > .navbar-nav > .dropdown:hover > .dropdown-menu,
  .storefront-redesign #main_menu > .navbar-nav > .dropdown:focus-within > .dropdown-menu,
  .storefront-redesign #main_menu > .navbar-nav > .dropdown > .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) !important;
    transition-delay: .08s, .08s, 0s;
  }
  .storefront-redesign #main_menu > .navbar-nav > .dropdown > .dropdown-menu > li:first-child {
    grid-column: 1 / -1;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--shop-line);
  }
  .storefront-redesign #main_menu .dropdown-menu li { position: static; min-width: 0; }
  .storefront-redesign #main_menu .dropdown-menu .dropdown-menu {
    display: grid !important;
    position: static;
    inset: auto;
    transform: none !important;
    min-width: 0;
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: 2px;
  }
  .storefront-redesign #main_menu .dropdown-item {
    display: block;
    padding: 4px 0;
    white-space: normal;
    color: var(--theme-secondary) !important;
    font-size: 14px;
    line-height: 1.7;
    background: transparent;
    transition: color .15s;
  }
  .storefront-redesign #main_menu .dropdown-item.dropdown-toggle,
  .storefront-redesign #main_menu .dropdown-item.fw-bold {
    color: var(--theme-secondary) !important;
    font-weight: 700;
  }
  .storefront-redesign #main_menu .dropdown-item:hover,
  .storefront-redesign #main_menu .dropdown-item:focus-visible {
    color: var(--shop-brand);
    font-weight: 700;
    background: transparent;
  }
  .storefront-redesign #main_menu .dropdown-menu .dropdown-toggle::after { display: none; }
  .storefront-redesign #main_menu > .navbar-nav > li > .nav-link {
    position: relative;
    background: transparent;
    transition: color .15s;
  }
  .storefront-redesign #main_menu > .navbar-nav > li:hover > .nav-link,
  .storefront-redesign #main_menu > .navbar-nav > li:focus-within > .nav-link { color: #fff; }
  .storefront-redesign #main_menu > .navbar-nav > li > .dropdown-toggle::after {
    opacity: .55;
    transition: transform .2s;
  }
  .storefront-redesign #main_menu > .navbar-nav > li:hover > .dropdown-toggle::after,
  .storefront-redesign #main_menu > .navbar-nav > li:focus-within > .dropdown-toggle::after { transform: rotate(180deg); }
  .storefront-redesign #main_menu > .navbar-nav > li > .nav-link::before {
    content: '';
    position: absolute;
    inset: auto 12px 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--shop-brand);
    transform: scaleX(0);
    transition: transform .25s;
  }
  .storefront-redesign #main_menu > .navbar-nav > li:hover > .nav-link::before,
  .storefront-redesign #main_menu > .navbar-nav > li:focus-within > .nav-link::before { transform: scaleX(1); }
}

@media (min-width: 992px) {
  .storefront-redesign #main_menu > .navbar-nav > .dropdown > .dropdown-menu { align-items: start; }
  .storefront-redesign #main_menu .storefront-menu-group {
    padding: 8px 0;
    align-self: start;
  }
  .storefront-redesign #main_menu .storefront-menu-layout {
    grid-column: 1 / -1;
    display: grid;
    gap: 24px;
    align-items: start;
  }
  .storefront-redesign #main_menu .storefront-menu-layout--with-children {
    grid-template-columns: minmax(170px, 1fr) minmax(0, 2fr);
  }
  .storefront-redesign #main_menu .storefront-menu-layout--parents-only { grid-template-columns: 1fr; }
  .storefront-redesign #main_menu .storefront-menu-parent-groups,
  .storefront-redesign #main_menu .storefront-menu-leaf-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    align-content: start;
  }
  .storefront-redesign #main_menu .storefront-menu-sidebar {
    padding-inline-end: 24px;
    border-inline-end: 1px solid var(--shop-line);
  }
  .storefront-redesign #main_menu .storefront-menu-layout--parents-only .storefront-menu-sidebar {
    border: 0;
    padding: 0;
  }
  .storefront-redesign #main_menu .storefront-menu-leaf-links {
    grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
    gap: 12px 20px;
    padding-block: 8px;
  }
  .storefront-redesign #main_menu .storefront-menu-category .storefront-menu-layout--with-children {
    grid-template-columns: minmax(0, 1fr);
  }
  .storefront-redesign #main_menu .storefront-menu-category .storefront-menu-sidebar {
    border: 0;
    padding: 0;
  }
  .storefront-redesign #main_menu .storefront-menu-category { padding: 8px 0; }
  .storefront-redesign #main_menu .dropdown-item.storefront-menu-category-title {
    font-size: 17px;
    font-weight: 800;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--shop-soft);
  }
  .storefront-redesign #main_menu .storefront-menu-subcategories {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 14px;
  }
  .storefront-redesign #main_menu .storefront-menu-heading .dropdown-item {
    font-size: 17px;
    font-weight: 800;
  }
  .storefront-redesign #main_menu .dropdown-item.storefront-menu-group-title {
    font-size: 15px;
    font-weight: 700;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--shop-line);
  }
  .storefront-redesign #main_menu .storefront-menu-children {
    display: grid;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-inline-start: 12px;
    border-inline-start: 2px solid var(--shop-brand);
  }
  .storefront-redesign #main_menu .storefront-menu-children .dropdown-item {
    font-size: 13px;
    font-weight: 400;
    padding: 5px 8px;
    border-radius: 6px;
    line-height: 1.7;
  }
  .storefront-redesign #main_menu .storefront-menu-children .dropdown-item:hover,
  .storefront-redesign #main_menu .storefront-menu-children .dropdown-item:focus-visible {
    background: var(--shop-soft);
  }
  .storefront-redesign #main_menu .dropdown-item:hover,
  .storefront-redesign #main_menu .dropdown-item:focus-visible { color: var(--shop-brand) !important; font-weight: 700; }
  /* In the all-products menu, keep each category's descendants together. */
  .storefront-redesign #main_menu .sub_categories_menu > li > .dropdown-item { font-weight: 700; }
  .storefront-redesign #main_menu .sub_categories_menu .submenu > li:first-child { display: none; }
  .storefront-redesign #main_menu .sub_categories_menu .submenu .dropdown-menu {
    margin-block: 6px 14px;
    padding-inline-start: 12px;
    border-inline-start: 2px solid var(--shop-soft);
  }
}

/* Categories: final illustrated carousel from tcare-shop.html. */
.storefront-redesign .storefront-categories { margin-block: 52px; }
.storefront-redesign .storefront-categories-heading { text-align: center; margin-bottom: 20px; }
.storefront-redesign .storefront-categories-heading h2 { position: relative; display: inline-block; padding-bottom: 12px; margin: 0; font-size: 26px; font-weight: 800; }
.storefront-redesign .storefront-categories-heading h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 54px; height: 3px; border-radius: 3px; background: var(--shop-brand); }
.storefront-redesign .storefront-categories-carousel { position: relative; padding-inline: 26px; min-width: 0; }
.storefront-redesign .storefront-categories-track { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding-block: 6px; cursor: grab; user-select: none; touch-action: pan-y; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.storefront-redesign .storefront-categories-track::-webkit-scrollbar { display: none; }
.storefront-redesign .storefront-categories-track.is-dragging { cursor: grabbing; }
.storefront-redesign .storefront-categories-track.is-dragging a { pointer-events: none; }
.storefront-redesign .storefront-category-tile { flex: 0 0 150px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.storefront-redesign .storefront-category-picture { position: relative; width: 100%; aspect-ratio: 1; border-radius: 28px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 120% at 30% 20%, var(--shop-surface) 0%, var(--shop-soft) 60%, color-mix(in srgb, var(--shop-brand) 25%, var(--shop-surface)) 100%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--shop-brand) 12%, transparent); transition: transform .25s, box-shadow .25s, background .25s; }
.storefront-redesign .storefront-category-icon-background { position: absolute; width: 62%; height: 62%; border-radius: 50%; background: var(--shop-surface); box-shadow: 0 10px 24px color-mix(in srgb, var(--shop-brand) 18%, transparent); transition: .3s; }
.storefront-redesign .storefront-category-picture svg { position: relative; width: 46%; height: 46%; color: var(--shop-brand); transition: .3s; }
.storefront-redesign .storefront-category-picture svg .f { fill: currentColor; opacity: .22; stroke: none; }
.storefront-redesign .storefront-category-picture img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.storefront-redesign .storefront-category-tile:is(:hover,:focus-visible) .storefront-category-picture { transform: translateY(-4px); background: linear-gradient(150deg, var(--shop-brand), color-mix(in srgb, var(--shop-brand) 68%, var(--shop-surface))); box-shadow: var(--shop-shadow); }
.storefront-redesign .storefront-category-tile:is(:hover,:focus-visible) .storefront-category-icon-background { background: rgba(255, 255, 255, .18); box-shadow: none; transform: scale(1.08); }
.storefront-redesign .storefront-category-tile:is(:hover,:focus-visible) svg { color: var(--theme-primary-text); transform: translateY(-2px) rotate(-4deg); }
.storefront-redesign .storefront-category-meta { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-inline: 4px; text-align: center; }
.storefront-redesign .storefront-category-meta b { font-size: 15px; font-weight: 600; }
.storefront-redesign .storefront-category-meta small { font-size: 12px; color: var(--shop-muted); white-space: nowrap; }
.storefront-redesign .storefront-categories-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: var(--shop-surface); border: 1px solid var(--shop-line); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); display: flex; align-items: center; justify-content: center; color: var(--shop-text); transition: .2s; }
.storefront-redesign .storefront-categories-arrow--previous { inset-inline-start: 0; }
.storefront-redesign .storefront-categories-arrow--next { inset-inline-end: 0; }
.storefront-redesign .storefront-categories-arrow:hover { background: var(--shop-brand); border-color: var(--shop-brand); color: var(--theme-primary-text); }
@media (max-width: 760px) {
  .storefront-redesign #carouselControls .main-banner-image { height: auto; aspect-ratio: 4 / 5; min-height: 0; max-height: none; }
  .storefront-redesign .storefront-categories-heading h2 { font-size: 21px; }
  .storefront-redesign .storefront-categories-carousel { padding-inline: 0; }
  .storefront-redesign .storefront-categories-arrow { width: 36px; height: 36px; }
  .storefront-redesign .storefront-category-picture { border-radius: 22px; }
  .storefront-redesign .storefront-category-meta b { font-size: 13px; }
}

/* Brands: grouped private labels and monochrome agency logos from the reference. */
.storefront-redesign .storefront-brands { margin-block: 52px; }
.storefront-redesign .storefront-brands .storefront-categories-heading h2 { position: relative; display: inline-block; margin: 0; padding-bottom: 12px; font-size: 26px; font-weight: 800; }
.storefront-redesign .storefront-brands-carousel { position: relative; padding-inline: 26px; min-width: 0; }
.storefront-redesign .storefront-brands-track { display: flex; align-items: flex-start; gap: 16px; overflow-x: auto; overflow-y: hidden; padding-block: 6px 14px; scrollbar-width: none; touch-action: pan-y; cursor: grab; user-select: none; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.storefront-redesign .storefront-brands-track::-webkit-scrollbar { display: none; }
.storefront-redesign .storefront-brands-track.is-dragging { cursor: grabbing; }
.storefront-redesign .storefront-brands-track.is-dragging a { pointer-events: none; }
.storefront-redesign .storefront-brand-card { flex: 0 0 170px; width: 170px; height: 110px; border-radius: 20px; background: #fff; border: 1px solid var(--shop-line); display: flex; align-items: center; justify-content: center; padding: 18px; transition: border-color .2s, transform .25s; color: var(--theme-secondary); }
.storefront-redesign .storefront-brand-card img { max-height: 70px; max-width: 100%; object-fit: contain; pointer-events: none; }
.storefront-redesign .storefront-brand-card:not(.storefront-brand-card--own) img { filter: grayscale(1) contrast(1.1); opacity: .7; transition: filter .3s, opacity .3s; }
.storefront-redesign .storefront-brand-card:is(:hover,:focus-visible) { border-color: var(--shop-brand); transform: translateY(-3px); }
.storefront-redesign .storefront-brand-card:is(:hover,:focus-visible) img { filter: none; opacity: 1; }
.storefront-redesign .storefront-brands-own-group { position: relative; flex: 0 0 auto; display: flex; gap: 12px; align-items: flex-start; padding-bottom: 40px; }
.storefront-redesign .storefront-brand-card--own { border: 2px solid var(--shop-brand); box-shadow: 0 10px 26px color-mix(in srgb, var(--shop-brand) 22%, transparent); }
.storefront-redesign .storefront-brands-own-label { position: absolute; inset: 122px 6px auto; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--shop-soft), var(--shop-brand) 30%, var(--shop-hover) 50%, var(--shop-brand) 70%, var(--shop-soft)); box-shadow: 0 2px 10px color-mix(in srgb, var(--shop-brand) 45%, transparent); }
.storefront-redesign .storefront-brands-own-label b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--shop-brand); color: var(--theme-primary-text); font-size: 12px; font-weight: 800; padding: 3px 14px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 12px color-mix(in srgb, var(--shop-brand) 35%, transparent); }
@media (max-width: 760px) {
  .storefront-redesign .storefront-brands .storefront-categories-heading h2 { font-size: 21px; }
  .storefront-redesign .storefront-brands-carousel { padding-inline: 0; }
  .storefront-redesign .storefront-brands-own-group { gap: 8px; }
  .storefront-redesign .storefront-brand-card { flex-basis: 104px; width: 104px; height: 74px; padding: 10px; }
  .storefront-redesign .storefront-brand-card img { max-height: 44px; }
  .storefront-redesign .storefront-brands-own-label { top: 86px; }
  .storefront-redesign .storefront-brands-own-label b { font-size: 11px; padding: 2px 10px; }
}

/* Product tabs: centered labels and sliding underline from the final reference. */
.storefront-redesign .main-product-tabs .main-product-tabs__nav {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 34px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 26px;
  padding: 0;
  border: 0;
  border-bottom: 1.5px solid var(--shop-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.storefront-redesign .main-product-tabs__nav::after {
  content: '';
  position: absolute;
  left: var(--tab-indicator-left, 0px);
  bottom: -1.5px;
  width: var(--tab-indicator-width, 0px);
  height: 3px;
  border-radius: 3px;
  background: var(--shop-brand);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--shop-brand) 45%, transparent);
  transition: left .45s cubic-bezier(.34,1.56,.64,1), width .45s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.storefront-redesign .main-product-tabs .main-product-tabs__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  padding: 12px 4px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--shop-muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6;
  white-space: nowrap;
  box-shadow: none;
  transition: color .25s;
}
.storefront-redesign .main-product-tabs .main-product-tabs__button.active { background: transparent; color: var(--shop-text); box-shadow: none; }
.storefront-redesign .main-product-tabs .main-product-tabs__button:not(.active):hover { color: var(--shop-brand); }
.storefront-redesign .main-product-tabs__icon { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--shop-muted); transition: color .3s, transform .45s cubic-bezier(.34,1.56,.64,1); }
.storefront-redesign .main-product-tabs__button.active .main-product-tabs__icon { color: var(--shop-brand); transform: scale(1.15); }
.storefront-redesign .main-product-tabs .main-product-tabs__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--shop-brand); font-size: 14px; font-weight: 600; box-shadow: none; }
.storefront-redesign .main-product-tabs .main-product-tabs__more:hover { background: transparent; color: var(--shop-hover); }
@media (max-width: 760px) {
  .storefront-redesign .main-product-tabs .main-product-tabs__nav { gap: 18px; }
  .storefront-redesign .main-product-tabs .main-product-tabs__button { padding: 10px 2px 12px; font-size: 15px; }
  .storefront-redesign .main-product-tabs__icon { width: 16px; height: 16px; }
}
@media (max-width: 359px) {
  .storefront-redesign .main-product-tabs .main-product-tabs__nav { gap: 10px; }
  .storefront-redesign .main-product-tabs .main-product-tabs__button { font-size: 13px; gap: 5px; }
}

/* Offers banners: rounded slider and prominent CTA from the reference. */
.storefront-redesign .storefront-offers { margin-block: 52px; }
.storefront-redesign .storefront-offers .storefront-categories-heading p { color: var(--shop-muted); font-size: 15px; margin: 8px 0 0; }
.storefront-redesign .storefront-offers-carousel { position: relative; overflow: hidden; border-radius: 14px; background: var(--shop-alt); touch-action: pan-y; }
.storefront-redesign .storefront-offer-image-link { display: block; }
.storefront-redesign .storefront-offer-image { display: block; width: 100%; height: auto; aspect-ratio: 9 / 4; object-fit: cover; -webkit-user-drag: none; }
.storefront-redesign #carouselControls .carousel-item,
.storefront-redesign .storefront-offers .carousel-item { transition: transform 1.2s ease-in-out; }
.storefront-redesign .storefront-offers-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid var(--shop-line); background: var(--shop-surface); color: var(--shop-text); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); transition: background .2s, color .2s, border-color .2s; }
.storefront-redesign .storefront-offers-arrow--previous { inset-inline-start: 14px; }
.storefront-redesign .storefront-offers-arrow--next { inset-inline-end: 14px; }
.storefront-redesign .storefront-offers-arrow:hover { background: var(--shop-brand); border-color: var(--shop-brand); color: var(--theme-primary-text); }
.storefront-redesign .storefront-offer-cta { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: 12px; padding: 6px; padding-inline-start: 24px; overflow: hidden; border-radius: 999px; background: var(--shop-brand); color: var(--theme-primary-text); font-size: 16px; font-weight: 800; white-space: nowrap; box-shadow: 0 12px 28px color-mix(in srgb, var(--shop-brand) 45%, transparent); transition: background .3s, transform .3s, box-shadow .3s; }
.storefront-redesign .storefront-offer-cta i { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; background: var(--theme-primary-text); color: var(--shop-brand); font-size: 16px; transition: transform .35s; }
.storefront-redesign .storefront-offer-cta::after { content: ''; position: absolute; top: 0; bottom: 0; width: 45%; left: -70%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); animation: storefront-offer-shine 3.4s ease-in-out infinite; pointer-events: none; }
.storefront-redesign .storefront-offer-cta:hover { background: var(--shop-hover); color: var(--theme-primary-text); transform: translateX(-50%) translateY(-3px); box-shadow: 0 16px 34px color-mix(in srgb, var(--shop-brand) 40%, transparent); }
.storefront-redesign .storefront-offer-cta:hover i { transform: translateX(-5px); }
html[dir="ltr"] .storefront-redesign .storefront-offer-cta:hover i { transform: translateX(5px); }
.storefront-redesign .storefront-offers-dots { gap: 6px; margin: 0; bottom: 12px; }
.storefront-redesign .storefront-offers-dots [data-bs-target] { flex: 0 0 auto; width: 8px; height: 8px; margin: 0; border: 0; border-radius: 4px; background: #fff; opacity: .6; transition: width .3s, opacity .3s; }
.storefront-redesign .storefront-offers-dots .active { width: 22px; opacity: 1; }
.storefront-redesign .storefront-offers-more { text-align: center; margin-top: 14px; }
.storefront-redesign .storefront-offers-more a { display: inline-flex; align-items: center; gap: 6px; color: var(--shop-brand); font-size: 14px; font-weight: 600; }
.storefront-redesign .storefront-offers-more a:hover { color: var(--shop-hover); }
@keyframes storefront-offer-shine { 0%,55% { left: -70%; } 100% { left: 140%; } }
@media (max-width: 760px) {
  .storefront-redesign .storefront-offers-carousel { border-radius: 18px; }
  .storefront-redesign .storefront-offer-image { aspect-ratio: 4 / 5; }
  .storefront-redesign .storefront-offers-arrow { width: 36px; height: 36px; }
  .storefront-redesign .storefront-offer-cta { font-size: 13px; padding: 4px; padding-inline-start: 16px; gap: 8px; }
  .storefront-redesign .storefront-offer-cta i { width: 28px; height: 28px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .storefront-redesign .storefront-offer-cta::after { display: none; animation: none; }
}

/* Product reviews: horizontal product-and-review cards from the reference. */
.storefront-redesign .storefront-reviews { margin-block: 52px; }
.storefront-redesign .storefront-reviews-carousel { position: relative; padding-inline: 26px; min-width: 0; }
.storefront-redesign .storefront-reviews-track { display: flex; align-items: stretch; gap: 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding-block: 6px 18px; cursor: grab; user-select: none; touch-action: pan-y; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.storefront-redesign .storefront-reviews-track::-webkit-scrollbar { display: none; }
.storefront-redesign .storefront-reviews-track.is-dragging { cursor: grabbing; }
.storefront-redesign .storefront-reviews-track.is-dragging a { pointer-events: none; }
.storefront-redesign .storefront-review { position: relative; flex: 0 0 430px; height: 190px; display: grid; grid-template-columns: 150px minmax(0, 1fr); background: var(--shop-surface); color: var(--shop-text); border: 1px solid var(--shop-line); border-radius: 22px; overflow: hidden; box-shadow: 0 8px 22px color-mix(in srgb, var(--shop-brand) 8%, transparent); transition: transform .25s, box-shadow .25s; }
.storefront-redesign .storefront-review:hover { transform: translateY(-3px); box-shadow: 0 16px 32px color-mix(in srgb, var(--shop-brand) 16%, transparent); }
.storefront-redesign .storefront-review--without-product { grid-template-columns: minmax(0, 1fr); }
.storefront-redesign .storefront-review-image { display: block; min-height: 0; background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--shop-soft) 100%); padding: 12px; border-inline-end: 1px solid var(--shop-line); }
.storefront-redesign .storefront-review-image img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: transform .35s; }
.storefront-redesign .storefront-review:hover .storefront-review-image img { transform: scale(1.06); }
.storefront-redesign .storefront-review-body { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 14px; min-width: 0; min-height: 0; }
.storefront-redesign .storefront-review-product { font-size: 12.5px; font-weight: 800; color: var(--shop-brand); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; flex-shrink: 0; }
.storefront-redesign .storefront-review-product:hover { text-decoration: underline; }
.storefront-redesign .storefront-review-text { font-size: 14px; line-height: 1.8; white-space: pre-line; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.storefront-redesign .storefront-review-text::before { content: '“'; font-family: Georgia, serif; font-size: 32px; line-height: 0; color: var(--shop-brand); vertical-align: -12px; margin-inline-end: 4px; opacity: .6; }
.storefront-redesign .storefront-review-who { margin-top: auto; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--shop-muted); flex-shrink: 0; }
.storefront-redesign .storefront-review-avatar { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--shop-soft); color: var(--shop-brand); font-weight: 800; }
@media (max-width: 760px) {
  .storefront-redesign .storefront-reviews-carousel { padding-inline: 0; }
  .storefront-redesign .storefront-review { flex-basis: min(320px, 88vw); height: 160px; grid-template-columns: 110px minmax(0, 1fr); }
  .storefront-redesign .storefront-review--without-product { grid-template-columns: minmax(0, 1fr); }
  .storefront-redesign .storefront-review-body { padding: 12px 14px 10px; }
  .storefront-redesign .storefront-review-text { font-size: 13px; }
}

/* Catalog page: live Rails filters in the reference's product-list layout. */
.storefront-redesign .storefront-catalog { padding-block: 22px 10px; }
.storefront-redesign .catalog-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--shop-muted); margin-bottom: 10px; }
.storefront-redesign .catalog-crumbs i { font-size: 10px; }
.storefront-redesign .catalog-crumbs span { color: var(--shop-text); font-weight: 700; }
.storefront-redesign .catalog-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.storefront-redesign .catalog-top h1 { font-size: 28px; font-weight: 800; margin: 0; }
.storefront-redesign .catalog-top > span { color: var(--shop-muted); font-size: 14px; }
.storefront-redesign .catalog-categories { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 2px 14px; margin-bottom: 8px; overflow-x: auto; scrollbar-width: none; }
.storefront-redesign .catalog-category { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 14px; border-radius: 999px; border: 1.5px solid var(--shop-line); background: var(--shop-surface); font-size: 14px; font-weight: 700; transition: .2s; }
.storefront-redesign .catalog-category > i { color: var(--shop-brand); font-size: 20px; }
.storefront-redesign .catalog-category small { color: var(--shop-muted); background: var(--shop-alt); border-radius: 999px; font-size: 12px; padding: 1px 8px; }
.storefront-redesign .catalog-category:hover { border-color: var(--shop-brand); }
.storefront-redesign .catalog-category.is-active { color: var(--theme-primary-text); background: var(--shop-brand); border-color: var(--shop-brand); box-shadow: 0 8px 18px color-mix(in srgb, var(--shop-brand) 28%, transparent); }
.storefront-redesign .catalog-category.is-active > i { color: inherit; }
.storefront-redesign .catalog-category.is-active small { background: rgba(255, 255, 255, .25); color: inherit; }
.storefront-redesign .catalog-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.storefront-redesign .catalog-main { min-width: 0; }
.storefront-redesign .catalog-side { position: sticky; top: 96px; background: var(--shop-surface); border: 1px solid var(--shop-line); border-radius: 20px; display: flex; flex-direction: column; max-height: calc(100dvh - 116px); min-height: 0; }
.storefront-redesign .catalog-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 18px; border-bottom: 1px solid var(--shop-line); }
.storefront-redesign .catalog-side-head b { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.storefront-redesign .catalog-side-head i { color: var(--shop-brand); }
.storefront-redesign .catalog-reset { font-size: 13px; font-weight: 700; color: var(--shop-brand); }
.storefront-redesign .catalog-close { display: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--shop-alt); color: var(--shop-text); font-size: 24px; }
.storefront-redesign .catalog-filter-form { display: flex; flex-direction: column; min-height: 0; }
.storefront-redesign .catalog-side-body { overflow-y: auto; padding: 4px 18px 12px; flex: 1; scrollbar-width: thin; }
.storefront-redesign .catalog-filter { border-bottom: 1px solid var(--shop-line); padding-block: 6px; }
.storefront-redesign .catalog-filter:last-child { border-bottom: 0; }
.storefront-redesign .catalog-filter summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 800; font-size: 15px; padding-block: 10px; }
.storefront-redesign .catalog-filter summary::-webkit-details-marker { display: none; }
.storefront-redesign .catalog-filter summary > i { color: var(--shop-muted); font-size: 12px; transition: transform .25s; }
.storefront-redesign .catalog-filter[open] > summary > i { transform: rotate(180deg); }
.storefront-redesign .catalog-filter-body { padding: 2px 0 10px; }
.storefront-redesign .catalog-selection-count { font-size: 12px; color: var(--theme-primary-text); background: var(--shop-brand); border-radius: 999px; padding: 1px 8px; margin-inline-start: 6px; }
.storefront-redesign .catalog-filter-group { font-size: 12px; font-weight: 800; color: var(--shop-brand); margin: 6px 0 4px; display: flex; align-items: center; gap: 6px; }
.storefront-redesign .catalog-filter-group::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--shop-brand); }
.storefront-redesign .catalog-choice { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 10px; cursor: pointer; font-size: 14px; transition: background .15s; }
.storefront-redesign .catalog-choice:hover { background: var(--shop-alt); }
.storefront-redesign .catalog-choice input,
.storefront-redesign .catalog-choice-box { appearance: none; width: 19px; height: 19px; border: 1.6px solid color-mix(in srgb, var(--shop-muted) 45%, var(--shop-surface)); border-radius: 6px; flex-shrink: 0; display: grid; place-content: center; margin: 0; background: var(--shop-surface); }
.storefront-redesign .catalog-choice input::after,
.storefront-redesign .catalog-choice-box::after { content: ''; width: 9px; height: 5px; border: 2px solid var(--theme-primary-text); border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .15s; }
.storefront-redesign .catalog-choice input:checked,
.storefront-redesign .catalog-choice.is-active .catalog-choice-box { background: var(--shop-brand); border-color: var(--shop-brand); }
.storefront-redesign .catalog-choice input:checked::after,
.storefront-redesign .catalog-choice.is-active .catalog-choice-box::after { transform: rotate(-45deg) scale(1); }
.storefront-redesign .catalog-choice > span { flex: 1; }
.storefront-redesign .catalog-choice small { color: var(--shop-muted); font-size: 12px; }
.storefront-redesign .catalog-subcategories { padding-inline-start: 12px; border-inline-start: 2px solid var(--shop-soft); margin-block: 3px 6px; }
.storefront-redesign .catalog-subcategories > summary { font-size: 12px; color: var(--shop-brand); padding: 4px; }
.storefront-redesign .catalog-subcategories .catalog-choice { font-size: 13px; }
.storefront-redesign .catalog-price-values { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.storefront-redesign .catalog-price-values label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--shop-muted); font-weight: 600; min-width: 0; }
.storefront-redesign .catalog-price-values label > span { display: flex; align-items: center; border: 1.5px solid var(--shop-line); border-radius: 12px; padding-inline: 10px; background: var(--shop-surface); }
.storefront-redesign .catalog-price-values label > span:focus-within { border-color: var(--shop-brand); }
.storefront-redesign .catalog-price-values input { width: 100%; min-width: 0; border: 0; background: transparent; padding-block: 9px; color: var(--shop-text); outline: none; font: inherit; font-weight: 700; appearance: textfield; -moz-appearance: textfield; }
.storefront-redesign .catalog-price-values input::-webkit-inner-spin-button { display: none; }
.storefront-redesign .catalog-price-values b { font-weight: 500; font-size: 13px; }
.storefront-redesign .catalog-price-range { position: relative; height: 26px; margin: 0 4px 12px; direction: ltr; }
.storefront-redesign .catalog-range-track { position: absolute; top: 11px; inset-inline: 0; height: 4px; border-radius: 4px; background: var(--shop-line); }
.storefront-redesign .catalog-range-track i { position: absolute; top: 0; bottom: 0; background: var(--shop-brand); border-radius: 4px; }
.storefront-redesign .catalog-price-range input { position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; background: transparent; pointer-events: none; appearance: none; height: 26px; }
.storefront-redesign .catalog-price-range input::-webkit-slider-thumb { appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--shop-surface); border: 3px solid var(--shop-brand); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); cursor: grab; }
.storefront-redesign .catalog-price-range input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--shop-surface); border: 3px solid var(--shop-brand); cursor: grab; }
.storefront-redesign .catalog-price-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.storefront-redesign .catalog-price-quick button { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--shop-alt); color: var(--shop-text); border: 1.5px solid transparent; }
.storefront-redesign .catalog-price-quick button.is-active { border-color: var(--shop-brand); color: var(--shop-brand); background: var(--shop-soft); }
.storefront-redesign .catalog-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; cursor: pointer; font-size: 14px; font-weight: 600; padding-block: 6px; }
.storefront-redesign .catalog-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.storefront-redesign .catalog-switch > i { width: 44px; height: 26px; border-radius: 999px; background: color-mix(in srgb, var(--shop-muted) 30%, var(--shop-surface)); position: relative; flex-shrink: 0; transition: background .2s; }
.storefront-redesign .catalog-switch > i::after { content: ''; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
.storefront-redesign .catalog-switch input:checked + i { background: var(--shop-brand); }
.storefront-redesign .catalog-switch input:checked + i::after { transform: translateX(-18px); }
.storefront-redesign .catalog-switch input:focus-visible + i { outline: 2px solid var(--shop-brand); outline-offset: 3px; }
.storefront-redesign .catalog-switch small { display: block; color: var(--shop-muted); font-size: 12px; font-weight: 500; }
.storefront-redesign .catalog-side-foot { display: flex; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--shop-line); }
.storefront-redesign .catalog-side-foot > * { border: 0; border-radius: 14px; padding: 10px 14px; font-weight: 800; }
.storefront-redesign .catalog-side-foot .catalog-reset { background: var(--shop-alt); color: var(--shop-text); }
.storefront-redesign .catalog-apply { flex: 1; background: var(--shop-brand); color: var(--theme-primary-text); font-size: 14px; }
.storefront-redesign .catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.storefront-redesign .catalog-shown { font-size: 14px; color: var(--shop-muted); }
.storefront-redesign .catalog-shown b { color: var(--shop-text); }
.storefront-redesign .catalog-filter-open { display: none; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--shop-text); background: var(--shop-surface); color: var(--shop-text); font-weight: 800; font-size: 14px; }
.storefront-redesign .catalog-filter-open small { background: var(--shop-brand); color: var(--theme-primary-text); border-radius: 999px; padding: 0 5px; }
.storefront-redesign .catalog-sort { position: relative; }
.storefront-redesign .catalog-sort > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--shop-line); background: var(--shop-surface); font-size: 14px; font-weight: 600; color: var(--shop-muted); cursor: pointer; }
.storefront-redesign .catalog-sort > summary::-webkit-details-marker { display: none; }
.storefront-redesign .catalog-sort summary b { color: var(--shop-text); font-weight: 800; }
.storefront-redesign .catalog-sort summary > i { color: var(--shop-text); }
.storefront-redesign .catalog-sort summary > i:last-child { font-size: 12px; transition: transform .2s; }
.storefront-redesign .catalog-sort[open] summary > i:last-child { transform: rotate(180deg); }
.storefront-redesign .catalog-sort-pop { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 30; min-width: 240px; background: var(--shop-surface); border: 1px solid var(--shop-line); border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .12); padding: 8px; }
.storefront-redesign .catalog-sort-head { display: none; }
.storefront-redesign .catalog-sort-option { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 600; }
.storefront-redesign .catalog-sort-option:hover { background: var(--shop-alt); }
.storefront-redesign .catalog-sort-option > i { width: 18px; height: 18px; border-radius: 50%; border: 1.6px solid var(--shop-muted); display: grid; place-items: center; flex-shrink: 0; }
.storefront-redesign .catalog-sort-option.is-active { color: var(--shop-brand); }
.storefront-redesign .catalog-sort-option.is-active > i { border-color: var(--shop-brand); }
.storefront-redesign .catalog-sort-option.is-active > i::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--shop-brand); }
.storefront-redesign .catalog-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.storefront-redesign .catalog-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--shop-soft); color: var(--shop-hover); font-size: 13px; font-weight: 700; padding: 6px 8px 6px 14px; border-radius: 999px; }
.storefront-redesign .catalog-chip b { width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--shop-brand) 15%, transparent); display: grid; place-items: center; }
.storefront-redesign .catalog-chip:hover b { background: var(--shop-brand); color: var(--theme-primary-text); }
.storefront-redesign .catalog-clear { font-size: 13px; font-weight: 800; padding: 6px 8px; text-decoration: underline; }
.storefront-redesign .catalog-empty { text-align: center; padding: 50px 20px; background: var(--shop-alt); border-radius: 20px; }
.storefront-redesign .catalog-empty b { display: block; font-size: 18px; margin-bottom: 6px; }
.storefront-redesign .storefront-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; }
.storefront-redesign .storefront-catalog-grid > * { width: auto; padding: 0; margin: 0; }
.storefront-redesign .storefront-catalog-grid > .d-flex { grid-column: span 2; }
.storefront-redesign .storefront-catalog-grid .product-list-title { min-height: 42px; }
.storefront-redesign .storefront-catalog-grid .product-list-favorite-action { position: absolute; top: 8px; left: 8px; z-index: 2; }
.storefront-redesign .storefront-catalog-grid .favorite-button { box-shadow: none; background: rgba(255, 255, 255, .9); }
.storefront-redesign .storefront-catalog-grid .product-list-actions { grid-template-columns: minmax(0, 1fr); }
.storefront-redesign .storefront-catalog-grid .new-badge { top: 10px; right: 10px; left: auto; }
.storefront-redesign .storefront-catalog-grid .text-image-top-right { top: auto; bottom: 10px; right: 10px; }
.storefront-redesign .storefront-catalog-brand { color: var(--shop-muted); font-size: 12.5px; font-weight: 800; letter-spacing: .3px; }
.storefront-redesign .catalog-more { text-align: center; margin: 30px auto 10px; max-width: 360px; }
.storefront-redesign .catalog-more p { color: var(--shop-muted); font-size: 14px; margin-bottom: 8px; }
.storefront-redesign .catalog-more p b { color: var(--shop-text); }
.storefront-redesign .catalog-progress { height: 4px; border-radius: 4px; background: var(--shop-line); overflow: hidden; margin-bottom: 16px; }
.storefront-redesign .catalog-progress i { display: block; height: 100%; background: var(--shop-brand); border-radius: 4px; transition: width .5s; }
.storefront-redesign .catalog-load-more { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--shop-text); color: var(--shop-surface); font-weight: 800; font-size: 15px; padding: 13px 34px; border-radius: 999px; transition: .2s; }
.storefront-redesign .catalog-load-more:hover { background: var(--shop-brand); color: var(--theme-primary-text); transform: translateY(-2px); }
.storefront-redesign .catalog-load-more[aria-busy="true"] { opacity: .6; pointer-events: none; }
.storefront-redesign .catalog-pages { margin-top: 22px; }
.storefront-redesign .catalog-pages .pagination { justify-content: center; flex-wrap: wrap; gap: 6px; }
.storefront-redesign .catalog-pages .page-link { border: 0; border-radius: 10px; min-width: 36px; height: 36px; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--shop-muted); }
.storefront-redesign .catalog-pages .active .page-link { background: var(--shop-soft); color: var(--shop-brand); }
.storefront-redesign .catalog-scrim[hidden] { display: none; }
@media (max-width: 980px) {
  .storefront-redesign .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .storefront-redesign .catalog-categories { flex-wrap: nowrap; }
  .storefront-redesign .catalog-filter-open { display: inline-flex; }
  .storefront-redesign .catalog-shown { order: 3; width: 100%; }
  .storefront-redesign .catalog-side { position: fixed; inset: auto 0 0; z-index: 1080; border-radius: 24px 24px 0 0; max-height: 86dvh; transform: translateY(105%); visibility: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility .35s; border: 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); }
  .storefront-redesign .is-filter-open .catalog-side { transform: none; visibility: visible; }
  .storefront-redesign .catalog-side-head { position: relative; padding-top: 22px; }
  .storefront-redesign .catalog-side-head::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; border-radius: 4px; background: var(--shop-line); transform: translateX(-50%); }
  .storefront-redesign .catalog-close { display: grid; place-items: center; }
  .storefront-redesign .catalog-side-head .catalog-reset { margin-inline-start: auto; }
  .storefront-redesign .catalog-side-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .storefront-redesign .catalog-side-foot > * { padding-block: 13px; }
  .storefront-redesign .catalog-scrim { position: fixed; inset: 0; background: rgba(20, 10, 16, .45); z-index: 1070; border: 0; }
  .storefront-redesign.catalog-sheet-open,
  .storefront-redesign.catalog-sort-open { overflow: hidden; }
  .storefront-redesign .catalog-sort-pop { position: fixed; inset: auto 0 0; z-index: 1082; border-radius: 24px 24px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .storefront-redesign .catalog-sort-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px 12px; border-bottom: 1px solid var(--shop-line); margin-bottom: 6px; }
  .storefront-redesign .catalog-sort-head button { border: 0; border-radius: 50%; width: 36px; height: 36px; color: var(--shop-text); background: var(--shop-alt); font-size: 24px; }
  .storefront-redesign .catalog-sort-option { padding: 14px 8px; }
}
@media (max-width: 760px) {
  .storefront-redesign .catalog-top h1 { font-size: 22px; }
  .storefront-redesign .catalog-category { padding: 8px 12px; font-size: 13px; }
  .storefront-redesign .storefront-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .storefront-redesign .storefront-catalog-grid .product-info { padding: 10px; }
  .storefront-redesign .catalog-sort > summary { padding: 10px 12px; font-size: 13px; }
}
.storefront-redesign .catalog-category > svg { width: 20px; height: 20px; color: var(--shop-brand); flex-shrink: 0; }
.storefront-redesign .catalog-category.is-active > svg { color: inherit; }
.storefront-redesign .catalog-filter-form { flex: 1; overflow: hidden; }
.storefront-redesign .catalog-side-body { min-height: 0; }
.storefront-redesign .catalog-side-foot { flex-shrink: 0; }
.storefront-redesign .storefront-catalog-grid .product-info { justify-content: flex-start; }
.storefront-redesign .storefront-catalog-grid .product-list-img { object-fit: contain; }

/* Product detail page: gallery, purchase panel and information tabs. */
.storefront-redesign .storefront-product { padding-block: 22px 20px; }
.storefront-redesign .storefront-product-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; margin-top: 6px; }
.storefront-redesign .storefront-product-gallery { position: sticky; top: 96px; min-width: 0; }
.storefront-redesign .storefront-product-image { position: relative; background: #fff; border: 1px solid var(--shop-line); border-radius: 24px; overflow: hidden; aspect-ratio: 1; }
.storefront-redesign .storefront-product-zoom-button { display: block; padding: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: zoom-in; }
.storefront-redesign .storefront-product-image img { width: 100%; height: 100%; object-fit: contain; padding: 26px; transition: transform .25s; }
.storefront-redesign .storefront-product-image.is-zoomed .storefront-product-zoom-button { cursor: zoom-out; }
.storefront-redesign .storefront-product-image.is-zoomed #chosen_image { transform: scale(2.1); }
.storefront-redesign .storefront-product-badge { position: absolute; top: 16px; inset-inline-start: 16px; color: #fff; font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 999px; background: #dc3545; pointer-events: none; }
.storefront-redesign .storefront-product-badge.is-out { background: #6c757d; }
.storefront-redesign .storefront-product-favorite { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; }
.storefront-redesign .storefront-product-favorite .favorite-button { width: 44px; height: 44px; background: rgba(255, 255, 255, .95); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); color: var(--shop-muted); }
.storefront-redesign .storefront-product-favorite .favorite-button.is-favorite { color: var(--shop-brand); }
.storefront-redesign .storefront-product-hint { font-size: 12px; color: var(--shop-muted); text-align: center; margin: 8px 0; }
.storefront-redesign .storefront-product-thumbnails { display: flex; gap: 8px; overflow-x: auto; padding: 4px; }
.storefront-redesign .storefront-product-thumbnails button { flex: 0 0 70px; width: 70px; height: 70px; border: 1.5px solid var(--shop-line); border-radius: 12px; padding: 4px; background: #fff; }
.storefront-redesign .storefront-product-thumbnails button.is-active { border-color: var(--shop-brand); box-shadow: 0 0 0 2px var(--shop-soft); }
.storefront-redesign .storefront-product-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.storefront-redesign .storefront-product-video { margin-top: 18px; border-radius: 18px; overflow: hidden; }
.storefront-redesign .storefront-product-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--shop-brand); letter-spacing: .4px; }
.storefront-redesign .storefront-product-details h1 { font-size: 26px; font-weight: 800; line-height: 1.5; margin: 6px 0 10px; color: var(--theme-product-name); }
.storefront-redesign .storefront-product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; color: var(--shop-muted); margin-bottom: 16px; }
.storefront-redesign .storefront-product-meta bdi { color: var(--shop-text); font-weight: 700; }
.storefront-redesign .storefront-product-meta button { border: 0; padding: 0; background: transparent; font: inherit; color: inherit; }
.storefront-redesign .storefront-product-stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #1f9d55; }
.storefront-redesign .storefront-product-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.storefront-redesign .storefront-product-stock.is-out { color: #dc3545; }
.storefront-redesign .storefront-product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; font-size: 32px; font-weight: 800; color: var(--theme-price); margin-bottom: 18px; }
.storefront-redesign .storefront-product-price small { font-size: 18px; }
.storefront-redesign .storefront-product-price strike { font-size: 17px; font-weight: 600; color: var(--theme-discount-price); margin-inline-end: 8px; }
.storefront-redesign .storefront-product-purchase { margin-bottom: 18px; }
.storefront-redesign .storefront-product-purchase #add-to-cart-form { margin-block: 18px 10px; }
.storefront-redesign .storefront-product-purchase .variant-option span { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--shop-line); border-radius: 12px; font-size: 14px; font-weight: 700; transition: .2s; }
.storefront-redesign .storefront-product-purchase .variant-option span:hover { border-color: var(--shop-brand); }
.storefront-redesign .storefront-product-purchase .variant-option:has(input:checked) span { background: var(--shop-soft); color: var(--shop-brand); border-color: var(--shop-brand); }
.storefront-redesign .storefront-product-purchase .variant-image-radio { border-radius: 12px; border: 1.5px solid var(--shop-line); object-fit: contain; }
.storefront-redesign .storefront-product-purchase .variant-image-option:has(input:checked) img { border-color: var(--shop-brand); box-shadow: 0 0 0 2px var(--shop-soft); }
.storefront-redesign .storefront-product-purchase .row:has(> .storefront-product-quantity) { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin: 0; }
.storefront-redesign .storefront-product-quantity { display: flex; align-items: center; width: auto; padding: 0; border: 1.5px solid var(--shop-line); border-radius: 14px; height: 54px; overflow: hidden; }
.storefront-redesign .storefront-product-quantity button { width: 44px; height: 100%; border: 0; background: transparent; color: var(--shop-text); font-size: 20px; font-weight: 700; }
.storefront-redesign .storefront-product-quantity input { width: 40px; min-width: 0; height: 100%; margin: 0 !important; padding: 0; text-align: center; border: 0; background: transparent; box-shadow: none; font-size: 16px; font-weight: 800; appearance: textfield; -moz-appearance: textfield; }
.storefront-redesign .storefront-product-quantity input::-webkit-inner-spin-button { display: none; }
.storefront-redesign .storefront-product-purchase .row:has(> .storefront-product-quantity) > .col-auto { width: auto; padding: 0; }
.storefront-redesign .storefront-product-purchase .row:has(> .storefront-product-quantity) > .col-12 { grid-column: 1 / -1; width: 100%; }
.storefront-redesign .storefront-product-purchase #add_to_cart_button { width: 100%; height: 54px; border-radius: 14px; background: var(--shop-brand); border-color: var(--shop-brand); color: var(--theme-primary-text); font-size: 16px; font-weight: 800; box-shadow: 0 10px 22px color-mix(in srgb, var(--shop-brand) 28%, transparent); transition: background .2s, transform .15s; }
.storefront-redesign .storefront-product-purchase #add_to_cart_button:hover { background: var(--shop-hover); transform: translateY(-1px); }
.storefront-redesign .storefront-product-purchase #out_of_stock { font-size: 18px; padding: 16px; border-radius: 18px; background: var(--shop-alt); color: var(--shop-muted); }
.storefront-redesign .storefront-product-purchase a:has(.fa-whatsapp) { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1.5px solid #25d366; border-radius: 14px; color: #1da851; background: transparent; font-weight: 800; }
.storefront-redesign .storefront-product-shipping { border: 1px solid var(--shop-line); border-radius: 16px; padding: 12px 14px; margin-bottom: 16px; font-size: 13px; background: var(--shop-surface); }
.storefront-redesign .storefront-product-policy-icons { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-weight: 700; }
.storefront-redesign .storefront-product-policy-icons span { display: inline-flex; align-items: center; gap: 6px; }
.storefront-redesign .storefront-product-policy-icons i { color: var(--shop-brand); font-size: 17px; }
.storefront-redesign .storefront-product-shipping details { margin-top: 8px; border-top: 1px solid var(--shop-line); padding-top: 8px; }
.storefront-redesign .storefront-product-shipping summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--shop-muted); font-size: 12.5px; font-weight: 700; }
.storefront-redesign .storefront-product-shipping summary::-webkit-details-marker { display: none; }
.storefront-redesign .storefront-product-shipping dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 12px 0 0; }
.storefront-redesign .storefront-product-shipping dt { color: var(--shop-muted); }
.storefront-redesign .storefront-product-shipping dd { margin: 0; }
.storefront-redesign .storefront-product-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--shop-muted); font-weight: 600; }
.storefront-redesign .storefront-product-share > a,
.storefront-redesign .storefront-product-share > button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--shop-line); display: grid; place-items: center; background: transparent; color: var(--shop-text); }
.storefront-redesign .storefront-product-share > a:hover,
.storefront-redesign .storefront-product-share > button:hover { background: var(--shop-brand); color: var(--theme-primary-text); border-color: var(--shop-brand); }
.storefront-redesign .storefront-product-tabs { margin-top: 44px; border: 1px solid var(--shop-line); border-radius: 22px; overflow: hidden; background: var(--shop-surface); scroll-margin-top: 110px; }
.storefront-redesign .storefront-product-tabbar { display: flex; overflow-x: auto; border-bottom: 1px solid var(--shop-line); background: var(--shop-alt); }
.storefront-redesign .storefront-product-tabbar button { border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--shop-muted); padding: 16px 24px; font-size: 15px; font-weight: 800; white-space: nowrap; }
.storefront-redesign .storefront-product-tabbar button.is-active { color: var(--shop-brand); background: var(--shop-surface); border-bottom-color: var(--shop-brand); }
.storefront-redesign .storefront-product-panel { padding: 24px 28px; line-height: 1.9; font-size: 14.5px; }
.storefront-redesign .storefront-product-panel[hidden] { display: none; }
.storefront-redesign .storefront-product-specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin-top: 16px; font-size: 14px; }
.storefront-redesign .storefront-product-specs dt { color: var(--shop-muted); }
.storefront-redesign .storefront-product-specs dd { font-weight: 700; margin: 0; }
.storefront-redesign .storefront-product-specs dd > span { display: block; }
.storefront-redesign .storefront-product-related { margin-top: 44px; }
.storefront-redesign .storefront-product-related > h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.storefront-redesign .storefront-product .product-reviews { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.storefront-redesign .storefront-product .product-reviews > div:first-child { display: none !important; }
.storefront-redesign .storefront-product .product-reviews .card { border: 1px solid var(--shop-line) !important; border-radius: 18px; background: var(--shop-surface); color: var(--shop-text); box-shadow: none !important; }
.storefront-redesign .storefront-product .product-reviews .bg-light { background: var(--shop-alt) !important; color: var(--shop-text) !important; }
.storefront-redesign .storefront-product .product-reviews .text-body { color: var(--shop-text) !important; }
.storefront-redesign .storefront-product-sticky { display: none; }
@media (max-width: 860px) {
  .storefront-redesign .storefront-product-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .storefront-redesign .storefront-product-gallery { position: static; }
  .storefront-redesign .storefront-product-details h1 { font-size: 22px; }
  .storefront-redesign .storefront-product-panel { padding: 18px; }
  .storefront-redesign .storefront-product-tabbar button { padding: 13px 18px; font-size: 14px; }
  .storefront-redesign .storefront-product-sticky:not([hidden]) { position: fixed; inset: auto 0 64px; z-index: 1025; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--shop-surface); border-top: 1px solid var(--shop-line); box-shadow: 0 -6px 24px rgba(0, 0, 0, .08); }
  .storefront-redesign .storefront-product-sticky > span { flex: 1; font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .storefront-redesign .storefront-product-sticky > b { font-size: 16px; color: var(--theme-price); white-space: nowrap; }
  .storefront-redesign .storefront-product-sticky > button { border: 0; border-radius: 12px; background: var(--shop-brand); color: var(--theme-primary-text); padding: 12px 18px; font-size: 13px; font-weight: 800; white-space: nowrap; }
}
@media (max-width: 400px) {
  .storefront-redesign .storefront-product-quantity button { width: 32px; }
  .storefront-redesign .storefront-product-quantity input { width: 30px; }
  .storefront-redesign .storefront-product-sticky > span { display: none; }
  .storefront-redesign .storefront-product-sticky > b { flex: 1; }
}
.storefront-redesign .storefront-product-purchase .row:has(> .storefront-product-quantity) > div:has(> .whats-button) { grid-column: 1 / -1; width: 100%; padding: 0; }
.storefront-redesign .storefront-product-tabbar { background: transparent; scrollbar-width: none; }
.storefront-redesign .storefront-product-tabbar button { position: relative; border: 0; padding: 16px 22px; }
.storefront-redesign .storefront-product-tabbar button.is-active { background: transparent; }
.storefront-redesign .storefront-product-tabbar button.is-active::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--shop-brand); }
.storefront-redesign .storefront-product-panel { padding: 22px 24px; font-size: 15px; }
.storefront-redesign .storefront-product-thumbnail-item { flex: 0 0 70px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.storefront-redesign .storefront-product-thumbnail-item > button { flex: 0 0 70px; }
.storefront-redesign .storefront-product-thumbnail-item > a { font-size: 11px; padding: 5px 8px; white-space: normal; }
.storefront-redesign .storefront-product-management:not(:empty) { margin-bottom: 16px; }
.storefront-redesign .storefront-product-management .btn { margin-bottom: 6px; }

/* Cart drawer: compact items, suggestions and a pinned checkout footer. */
.storefront-redesign #cartOffcanvas { display: flex !important; flex-direction: column; overflow: hidden; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; border: 0; border-radius: 22px 0 0 22px; background: var(--shop-surface); color: var(--shop-text); }
.storefront-redesign #cartOffcanvas .storefront-cart-header { flex-shrink: 0; padding: 20px 22px; border-bottom: 1px solid var(--shop-line); gap: 10px; }
.storefront-redesign #cartOffcanvas .storefront-cart-header h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 20px; font-weight: 800; margin: 0; }
.storefront-redesign #cartOffcanvas .storefront-cart-header small { font-size: 12px; font-weight: 500; color: var(--shop-muted); }
.storefront-redesign #cartOffcanvas .storefront-cart-close { flex-shrink: 0; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--shop-alt); color: var(--shop-text); font-size: 23px; }
.storefront-redesign #cartOffcanvas .storefront-cart-message { font-size: 12px; color: var(--shop-muted); padding: 8px 22px 0; }
.storefront-redesign #cartOffcanvas .storefront-cart-message:empty { display: none; }
.storefront-redesign #cartOffcanvas .storefront-cart-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px; }
.storefront-redesign #cartOffcanvas .storefront-cart-delivery { text-align: center; padding: 0 2px 20px; border-bottom: 1px solid var(--shop-line); margin-bottom: 16px; font-size: 14px; }
.storefront-redesign #cartOffcanvas .storefront-cart-delivery p { margin: 0 0 18px; }
.storefront-redesign #cartOffcanvas .storefront-cart-delivery b { color: var(--shop-brand); }
.storefront-redesign #cartOffcanvas .storefront-cart-delivery-track { position: relative; height: 8px; border-radius: 999px; background: var(--shop-soft); margin: 0 16px 22px; }
.storefront-redesign #cartOffcanvas .storefront-cart-delivery-track > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--shop-brand) 60%, var(--shop-surface)), var(--shop-brand)); }
.storefront-redesign #cartOffcanvas .storefront-cart-delivery-track > span { position: absolute; inset-inline-end: -12px; top: -12px; display: grid; place-items: center; height: 32px; width: 32px; background: var(--shop-surface); color: var(--shop-brand); border: 2px solid var(--shop-brand); border-radius: 50%; font-size: 12px; }
.storefront-redesign #cartOffcanvas .storefront-cart-delivery small { font-size: 12px; }
.storefront-redesign #cartOffcanvas .storefront-cart-item { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; padding: 16px 0 20px; border-bottom: 1px solid var(--shop-line); }
.storefront-redesign #cartOffcanvas .storefront-cart-item-image { display: block; width: 86px; height: 86px; border: 1px solid var(--shop-line); border-radius: 16px; overflow: hidden; background: #fff; }
.storefront-redesign #cartOffcanvas .storefront-cart-item-image img { width: 100%; height: 100%; padding: 6px; object-fit: contain; }
.storefront-redesign #cartOffcanvas .storefront-cart-item-details { min-width: 0; }
.storefront-redesign #cartOffcanvas .storefront-cart-item-name { font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.storefront-redesign #cartOffcanvas .storefront-cart-item-details > small { font-size: 11px; color: var(--shop-muted); }
.storefront-redesign #cartOffcanvas .storefront-cart-item-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.storefront-redesign #cartOffcanvas .storefront-cart-quantity { display: inline-flex; align-items: center; border: 1px solid var(--shop-line); border-radius: 999px; height: 34px; overflow: hidden; }
.storefront-redesign #cartOffcanvas .storefront-cart-quantity button { width: 30px; height: 100%; border: 0; background: transparent; color: var(--shop-text); font-size: 15px; font-weight: 800; }
.storefront-redesign #cartOffcanvas .storefront-cart-quantity input { width: 30px; min-width: 0; border: 0; padding: 0; margin: 0; text-align: center; background: transparent; color: var(--shop-text); font: inherit; font-size: 13px; font-weight: 800; appearance: textfield; -moz-appearance: textfield; }
.storefront-redesign #cartOffcanvas .storefront-cart-quantity input::-webkit-inner-spin-button { display: none; }
.storefront-redesign #cartOffcanvas .storefront-cart-item-total { color: var(--shop-brand); font-size: 14px; font-weight: 800; }
.storefront-redesign #cartOffcanvas .storefront-cart-remove { display: inline-flex; gap: 6px; align-items: center; color: var(--shop-muted); font-size: 12px; margin-top: 10px; }
.storefront-redesign #cartOffcanvas .storefront-cart-edit-price { display: flex; align-items: center; gap: 6px; margin-block: 6px; font-size: 12px; }
.storefront-redesign #cartOffcanvas .storefront-cart-edit-price input { max-width: 100px; }
.storefront-redesign #cartOffcanvas .storefront-cart-recommendations { margin-top: 16px; border: 1px solid var(--shop-line); border-radius: 14px; overflow: hidden; }
.storefront-redesign #cartOffcanvas .storefront-cart-recommendations summary { display: flex; align-items: center; justify-content: space-between; list-style: none; background: var(--shop-brand); color: var(--theme-primary-text); padding: 14px 16px; font-size: 14px; font-weight: 800; cursor: pointer; }
.storefront-redesign #cartOffcanvas .storefront-cart-recommendations summary::-webkit-details-marker { display: none; }
.storefront-redesign #cartOffcanvas .storefront-cart-recommendations summary i { font-size: 11px; transition: transform .2s; }
.storefront-redesign #cartOffcanvas .storefront-cart-recommendations[open] summary i { transform: rotate(180deg); }
.storefront-redesign #cartOffcanvas .storefront-cart-recommendation-track { display: flex; gap: 12px; overflow-x: auto; padding: 12px; scrollbar-width: thin; }
.storefront-redesign #cartOffcanvas .storefront-cart-recommendation { flex: 0 0 130px; min-width: 0; display: flex; flex-direction: column; gap: 7px; border: 1px solid var(--shop-line); border-radius: 18px; padding: 8px; background: var(--shop-surface); }
.storefront-redesign #cartOffcanvas .storefront-cart-recommendation-image { display: block; aspect-ratio: 1; background: #fff; border-radius: 12px; overflow: hidden; }
.storefront-redesign #cartOffcanvas .storefront-cart-recommendation-image img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.storefront-redesign #cartOffcanvas .storefront-cart-recommendation-name { font-size: 12px; line-height: 1.4; min-height: 34px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.storefront-redesign #cartOffcanvas .storefront-cart-recommendation > strong { color: var(--shop-brand); font-size: 12px; text-align: end; margin-top: auto; }
.storefront-redesign #cartOffcanvas .storefront-cart-recommendation-add { display: block; width: 100%; border: 1px solid var(--shop-brand); border-radius: 999px; padding: 5px; background: transparent; color: var(--shop-brand); font-size: 12px; font-weight: 700; text-align: center; }
.storefront-redesign #cartOffcanvas .storefront-cart-recommendation-add:hover { background: var(--shop-brand); color: var(--theme-primary-text); }
.storefront-redesign #cartOffcanvas .storefront-cart-footer { flex-shrink: 0; margin: 0; border-top: 1px solid var(--shop-line); padding: 18px 22px calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--shop-surface); }
.storefront-redesign #cartOffcanvas .storefront-cart-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 15px; }
.storefront-redesign #cartOffcanvas .storefront-cart-total strong { font-size: 18px; font-weight: 800; }
.storefront-redesign #cartOffcanvas .storefront-cart-delivery-note { color: var(--shop-muted); font-size: 11px; line-height: 1.6; max-height: 40px; overflow-y: auto; margin-bottom: 10px; }
.storefront-redesign #cartOffcanvas .storefront-cart-checkout,
.storefront-redesign #cartOffcanvas .storefront-cart-whatsapp { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; width: 100%; border-radius: 999px; font-size: 15px; font-weight: 800; }
.storefront-redesign #cartOffcanvas .storefront-cart-checkout { color: var(--theme-primary-text); background: var(--shop-brand); }
.storefront-redesign #cartOffcanvas .storefront-cart-whatsapp { color: #25c65b; border: 1px solid #25d366; margin-top: 10px; min-height: 46px; font-size: 14px; }
.storefront-redesign #cartOffcanvas .storefront-cart-empty { text-align: center; padding: 50px 12px; color: var(--shop-muted); }
.storefront-redesign #cartOffcanvas .storefront-cart-empty > i { font-size: 36px; margin-bottom: 16px; color: var(--shop-brand); }
@media (max-width: 440px) {
  .storefront-redesign #cartOffcanvas { border-radius: 0; }
  .storefront-redesign #cartOffcanvas .storefront-cart-item { grid-template-columns: 76px minmax(0, 1fr); }
  .storefront-redesign #cartOffcanvas .storefront-cart-item-image { width: 76px; height: 86px; }
}
.storefront-redesign #cartOffcanvas .storefront-cart-quantity { direction: ltr; }

/* Checkout: customer/delivery/payment cards and sticky order summary. */
.storefront-redesign .storefront-checkout { padding-block: 22px 20px; }
.storefront-redesign .checkout-heading { margin-bottom: 26px; }
.storefront-redesign .checkout-back { display: inline-flex; align-items: center; gap: 8px; color: var(--shop-muted); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.storefront-redesign .checkout-steps { display: flex; align-items: center; justify-content: center; gap: 10px; margin-block: 4px; color: var(--shop-muted); font-size: 14px; font-weight: 700; }
.storefront-redesign .checkout-steps > span { display: flex; align-items: center; gap: 8px; }
.storefront-redesign .checkout-steps i { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--shop-alt); font-style: normal; font-weight: 800; font-size: 14px; }
.storefront-redesign .checkout-steps em { width: 40px; height: 2px; border-radius: 2px; background: var(--shop-line); }
.storefront-redesign .checkout-steps .is-complete > i { background: #2fb36b; color: #fff; }
.storefront-redesign .checkout-steps .is-current { color: var(--shop-text); }
.storefront-redesign .checkout-steps .is-current > i { background: var(--shop-brand); color: var(--theme-primary-text); }
.storefront-redesign .checkout-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.storefront-redesign .checkout-grid > #customer_info_section { order: 1; grid-column: 2; grid-row: 1; width: auto; min-width: 0; padding: 0 !important; margin: 0 !important; }
.storefront-redesign .checkout-grid > #shopping_cart_section { order: 0; grid-column: 1; grid-row: 1; width: auto; min-width: 0; padding: 0 !important; }
.storefront-redesign .checkout-card,
.storefront-redesign .checkout-summary { background: var(--shop-surface); border: 1px solid var(--shop-line) !important; border-radius: 22px; padding: 22px 24px !important; margin-bottom: 16px; }
.storefront-redesign .checkout-summary { position: sticky; top: 96px; }
.storefront-redesign #shopping_cart_section { position: sticky; top: 96px; }
.storefront-redesign .checkout-card h2,
.storefront-redesign .checkout-summary > h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; margin: 0 0 14px; }
.storefront-redesign .checkout-card h2 > i { width: 28px; height: 28px; border-radius: 50%; background: var(--shop-brand); color: var(--theme-primary-text); font-size: 14px; font-style: normal; display: grid; place-items: center; }
.storefront-redesign .checkout-summary > hr { display: none; }
.storefront-redesign .checkout-login { font-size: 13.5px; color: var(--shop-muted); margin: -6px 0 14px; }
.storefront-redesign .checkout-login a { color: var(--shop-brand); font-weight: 700; }
.storefront-redesign .checkout-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.storefront-redesign .checkout-full { grid-column: 1 / -1; }
.storefront-redesign .checkout-field { min-width: 0; }
.storefront-redesign .checkout-field > label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.storefront-redesign .checkout-input { display: flex; align-items: center; overflow: hidden; border: 1.5px solid var(--shop-line); border-radius: 12px; background: var(--shop-surface); }
.storefront-redesign .checkout-input > i { padding-inline-start: 12px; font-size: 16px; color: var(--shop-muted); }
.storefront-redesign .checkout-field .form-control,
.storefront-redesign .checkout-field select,
.storefront-redesign .checkout-field .form-select { min-height: 46px; border: 1.5px solid var(--shop-line); border-radius: 12px; padding: 12px; background-color: var(--shop-surface); color: var(--shop-text); font-size: 15px; }
.storefront-redesign .checkout-field select { width: 100%; }
.storefront-redesign .checkout-input > input.form-control { width: 100%; min-width: 0; border: 0; box-shadow: none; background: transparent; }
.storefront-redesign .checkout-input:focus-within { border-color: var(--shop-brand); }
.storefront-redesign .checkout-field.has-error .checkout-input,
.storefront-redesign .checkout-field.has-error > .form-control,
.storefront-redesign .checkout-field.has-error > .form-select { border-color: #dc3545; }
.storefront-redesign .checkout-field textarea { resize: vertical; min-height: 70px; }
.storefront-redesign .checkout-regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.storefront-redesign .checkout-regions button { text-align: start; border: 1.5px solid var(--shop-line); border-radius: 16px; padding: 14px; background: var(--shop-surface); color: var(--shop-text); cursor: pointer; transition: border-color .2s, background .2s; }
.storefront-redesign .checkout-regions b { display: block; font-size: 15px; }
.storefront-redesign .checkout-regions small { color: var(--shop-muted); font-size: 13px; font-weight: 600; }
.storefront-redesign .checkout-regions .is-active { background: var(--shop-soft); border-color: var(--shop-brand); }
.storefront-redesign .checkout-regions .is-active small { color: var(--shop-hover); }
.storefront-redesign .checkout-cod { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--shop-brand); border-radius: 16px; background: var(--shop-soft); }
.storefront-redesign .checkout-cod > i:first-child { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--shop-surface); color: var(--shop-brand); font-size: 22px; }
.storefront-redesign .checkout-cod > i:last-child { margin-inline-start: auto; color: var(--shop-brand); font-size: 22px; }
.storefront-redesign .checkout-payment input[type="radio"] { accent-color: var(--shop-brand); }
.storefront-redesign .checkout-summary-items { display: grid; gap: 12px; max-height: 320px; overflow-y: auto; margin-bottom: 14px; padding: 8px 4px 0; }
.storefront-redesign .checkout-summary-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.storefront-redesign .checkout-summary-image { position: relative; display: block; width: 58px; height: 58px; border-radius: 12px; border: 1px solid var(--shop-line); background: #fff; }
.storefront-redesign .checkout-summary-image img { width: 100%; height: 100%; object-fit: contain; padding: 4px; border-radius: 12px; }
.storefront-redesign .checkout-summary-image em { position: absolute; top: -7px; inset-inline-end: -7px; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding-inline: 5px; background: var(--shop-text); color: var(--shop-surface); font-style: normal; font-size: 11px; font-weight: 800; }
.storefront-redesign .checkout-summary-item > div > a { font-size: 13px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.storefront-redesign .checkout-summary-item small { display: block; font-size: 11px; color: var(--shop-muted); }
.storefront-redesign .checkout-summary-item > strong { font-size: 14px; font-weight: 800; white-space: nowrap; }
.storefront-redesign .checkout-edit-cart { border-block: 1px solid var(--shop-line); margin-block: 12px; }
.storefront-redesign .checkout-edit-cart > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding-block: 10px; font-size: 13px; font-weight: 700; color: var(--shop-brand); }
.storefront-redesign .checkout-edit-cart > summary::-webkit-details-marker { display: none; }
.storefront-redesign .checkout-edit-cart > summary i:last-child { margin-inline-start: auto; font-size: 11px; }
.storefront-redesign .checkout-edit-cart[open] > summary { margin-bottom: 12px; }
.storefront-redesign .checkout-summary .table { margin: 0; font-size: 14px; }
.storefront-redesign .checkout-summary .table > :not(caption) > * > * { border: 0; padding: 5px 0; background: transparent; box-shadow: none; color: var(--shop-text); }
.storefront-redesign .checkout-summary .table td:last-child { text-align: end; font-weight: 700; }
.storefront-redesign .checkout-summary .table tr:last-child td { border-top: 1px solid var(--shop-line); padding-top: 12px; font-size: 18px; font-weight: 800; }
.storefront-redesign .checkout-summary #cart_total { color: var(--shop-brand); }
.storefront-redesign .checkout-summary #delivery_price:empty::after { content: '—'; color: var(--shop-muted); }
.storefront-redesign .checkout-place-order { width: 100%; height: 56px; border: 0; border-radius: 16px; margin-top: 16px; padding-inline: 16px; background: var(--shop-brand); color: var(--theme-primary-text); font-size: 17px; font-weight: 800; box-shadow: 0 12px 24px color-mix(in srgb, var(--shop-brand) 30%, transparent); }
.storefront-redesign .checkout-place-order:hover { background: var(--shop-hover); }
.storefront-redesign .checkout-safe { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 12px; color: var(--shop-muted); }
.storefront-redesign .checkout-safe span { display: flex; align-items: center; gap: 5px; }
.storefront-redesign .checkout-safe i { color: var(--shop-brand); }
.storefront-redesign .checkout-coupon { padding-top: 8px; }
.storefront-redesign .checkout-coupon input:not([type="submit"]):not([type="hidden"]) { border: 1.5px dashed var(--shop-line); border-radius: 12px; background: var(--shop-surface); min-height: 44px; }
.storefront-redesign .checkout-empty { max-width: 560px !important; background: var(--shop-surface); border: 1px solid var(--shop-line); border-radius: 26px; padding: 40px 28px !important; }
@media (max-width: 980px) {
  .storefront-redesign .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .storefront-redesign .checkout-grid > #customer_info_section { grid-column: 1; grid-row: 2; }
  .storefront-redesign .checkout-grid > #shopping_cart_section { grid-column: 1; grid-row: 1; position: static; }
  .storefront-redesign .checkout-summary { position: static; }
}
@media (max-width: 760px) {
  .storefront-redesign .checkout-card,
  .storefront-redesign .checkout-summary { padding: 18px 16px !important; }
  .storefront-redesign .checkout-two { grid-template-columns: minmax(0, 1fr); }
  .storefront-redesign .checkout-regions { grid-template-columns: minmax(0, 1fr); }
  .storefront-redesign .checkout-steps { font-size: 12px; gap: 6px; }
  .storefront-redesign .checkout-steps em { width: 16px; }
  .storefront-redesign .checkout-steps > span { gap: 5px; }
  .storefront-redesign .checkout-summary-item { gap: 8px; grid-template-columns: 52px minmax(0, 1fr) auto; }
  .storefront-redesign .checkout-summary-image { width: 52px; height: 52px; }
}
.storefront-redesign .checkout-payment .row > .col-4 { display: none; }
.storefront-redesign .checkout-payment .row > .col-8 { width: 100%; text-align: start !important; }
.storefront-redesign .checkout-payment .col-8 > div { display: flex; align-items: center; gap: 10px; padding: 14px 16px; margin-bottom: 10px; border: 1.5px solid var(--shop-line); border-radius: 16px; }
.storefront-redesign .checkout-payment .col-8 > div:has(input:checked) { background: var(--shop-soft); border-color: var(--shop-brand); }

.storefront-redesign .storefront-account { position: relative; }
.storefront-redesign .storefront-account-menu::before { content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 12px; }
.storefront-redesign .storefront-account-toggle { border: 0; background: transparent; padding: 0; }
.storefront-redesign .storefront-account-avatar { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--shop-surface); color: var(--shop-brand); font-size: 14px; font-weight: 800; box-shadow: 0 0 0 2px color-mix(in srgb, var(--shop-surface) 45%, transparent); }
.storefront-redesign .storefront-account-menu { width: 250px; max-width: calc(100vw - 24px); padding: 8px; margin-top: 10px !important; background: var(--shop-surface); color: var(--shop-text); border: 1px solid var(--shop-line); border-radius: 18px; box-shadow: 0 20px 44px rgba(40, 10, 25, .18); z-index: 1050; text-align: start; }
.storefront-redesign .storefront-account-heading { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; border-bottom: 1px solid var(--shop-line); margin-bottom: 6px; }
.storefront-redesign .storefront-account-heading > div { min-width: 0; }
.storefront-redesign .storefront-account-heading .storefront-account-avatar { width: 38px; height: 38px; background: var(--shop-brand); color: var(--theme-primary-text); box-shadow: none; }
.storefront-redesign .storefront-account-heading b { display: block; font-size: 14.5px; overflow-wrap: anywhere; }
.storefront-redesign .storefront-account-heading small { display: block; font-size: 12px; color: var(--shop-muted); overflow-wrap: anywhere; }
.storefront-redesign .storefront-account-menu .dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #000; text-align: start; }
.storefront-redesign .storefront-account-menu .dropdown-item i { width: 18px; text-align: center; color: var(--shop-brand); }
.storefront-redesign .storefront-account-menu .dropdown-item:hover,
.storefront-redesign .storefront-account-menu .dropdown-item:focus { background: var(--shop-alt); color: #000; }
.storefront-redesign .storefront-account-menu .storefront-account-logout { color: #000; border-top: 1px solid var(--shop-line); border-radius: 0 0 12px 12px; margin-top: 6px; }
.storefront-redesign .storefront-account-menu .storefront-account-logout i { color: inherit; }
.storefront-redesign :is(#featured_desktop_navbar, .main-navbar) .storefront-account-menu .dropdown-item,
.storefront-redesign :is(#featured_desktop_navbar, .main-navbar) .storefront-account-menu .dropdown-item:hover,
.storefront-redesign :is(#featured_desktop_navbar, .main-navbar) .storefront-account-menu .dropdown-item:focus,
.storefront-redesign :is(#featured_desktop_navbar, .main-navbar) .storefront-account-menu .dropdown-item:active { color: #000 !important; }
.storefront-redesign .mobile-navbar-compact:has(.storefront-account) { overflow: visible !important; position: relative; z-index: 1031; }

/* Responsive mobile header from the reference: menu/search, logo, cart/theme. */
.storefront-redesign .mobile-navbar-compact { --mobile-navbar-row-height: 80px; }
.storefront-redesign .mobile-navbar-main-row.storefront-mobile-header { grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; padding-inline: max(20px, calc((100vw - 1240px) / 2)); overflow: visible; }
.storefront-redesign .storefront-mobile-start,
.storefront-redesign .storefront-mobile-actions { display: flex; align-items: center; gap: 6px; min-width: 0; }
.storefront-redesign .storefront-mobile-start { justify-self: start; gap: 0; }
.storefront-redesign .storefront-mobile-actions { justify-self: end; }
.storefront-redesign .storefront-mobile-header .mobile-navbar-brand { justify-self: center; padding: 0; max-width: 100%; }
.storefront-redesign .storefront-mobile-header .site-logo { width: auto; height: 64px; max-width: 100%; }
.storefront-redesign .storefront-mobile-header .mobile-navbar-icon { width: 42px; height: 42px; min-width: 42px; min-height: 42px; border-radius: 12px; color: var(--theme-header-text); }
.storefront-redesign .storefront-mobile-header .mobile-navbar-icon > svg { width: 22px; height: 22px; }
.storefront-redesign .storefront-mobile-header .mobile-navbar-icon:hover { background: color-mix(in srgb, var(--theme-header-text) 18%, transparent); }
.storefront-redesign .storefront-mobile-header .storefront-theme-toggle { width: 62px; height: 32px; padding: 0 7px; background: color-mix(in srgb, var(--theme-header-text) 20%, transparent); border-color: transparent; }
.storefront-redesign .storefront-mobile-header .storefront-theme-toggle::before { width: 24px; height: 24px; background: var(--theme-header-text); }
.storefront-redesign .storefront-mobile-header .storefront-theme-toggle svg { width: 15px; height: 15px; color: color-mix(in srgb, var(--theme-header-text) 80%, transparent); }
.storefront-redesign .storefront-mobile-header .storefront-theme-toggle .sun { color: var(--theme-mobile-header); }
[data-storefront-theme="dark"] .storefront-redesign .storefront-mobile-header .storefront-theme-toggle::before { transform: translateX(30px); }
[data-storefront-theme="dark"] .storefront-redesign .storefront-mobile-header .storefront-theme-toggle .sun { color: color-mix(in srgb, var(--theme-header-text) 80%, transparent); }
[data-storefront-theme="dark"] .storefront-redesign .storefront-mobile-header .storefront-theme-toggle .moon { color: var(--theme-mobile-header); }
.storefront-redesign .storefront-mobile-header .cart-bubble { top: 4px; left: 4px; min-width: 18px; height: 18px; line-height: 14px; padding: 0 4px; border: 2px solid var(--theme-mobile-header); font-size: 11px; }
.storefront-redesign .storefront-mobile-languages { display: flex; gap: 12px; padding: 10px 12px; }
@media (max-width: 760px) {
  .storefront-redesign .mobile-navbar-compact { --mobile-navbar-row-height: 64px; }
  .storefront-redesign .mobile-navbar-main-row.storefront-mobile-header { padding-inline: 20px; }
  .storefront-redesign .storefront-mobile-header .site-logo { height: 36px; }
  .storefront-redesign .storefront-mobile-account { display: none; }
}
@media (max-width: 359px) {
  .storefront-redesign .mobile-navbar-main-row.storefront-mobile-header { padding-inline: 12px; gap: 8px; }
}

@media (max-width: 991.98px) {
  .storefront-redesign .dropdown-mobile-menu > #navbarSupportedContent {
    position: fixed;
    top: var(--mobile-navbar-bottom, 64px);
    inset-inline: 0;
    z-index: 1029;
    max-height: calc(100dvh - var(--mobile-navbar-bottom, 64px) - 74px - env(safe-area-inset-bottom, 0px));
    padding-inline: 20px;
    background: var(--theme-mobile-header);
    color: var(--theme-header-text);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
  }
  .storefront-redesign .dropdown-mobile-menu > #navbarSupportedContent.show { overflow-y: auto; overscroll-behavior: contain; }
}

.storefront-redesign .storefront-listing-stock {
  display: inline-block;
  padding: 11px 10px;
  border-radius: 999px;
  background: #eeeeee;
  color: #5c636a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-align-last: center;
}

@media (max-width: 800px) {
  /* Mobile category drawer, matching the reference menu. */
  .storefront-redesign #navbarOffcanvas.storefront-mobile-drawer { width: min(380px, 92vw); height: 100dvh; border: 0; border-radius: 22px 0 0 22px; background: var(--shop-surface); color: var(--shop-text); box-shadow: 0 0 40px rgba(0, 0, 0, .18); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .storefront-redesign #navbarOffcanvas.storefront-mobile-drawer.show { display: flex !important; }
  [dir="ltr"] .storefront-redesign #navbarOffcanvas.storefront-mobile-drawer { border-radius: 0 22px 22px 0; }
  .storefront-redesign .storefront-mobile-drawer-heading { padding: 20px 22px; border-bottom: 1px solid var(--shop-line); }
  .storefront-redesign .storefront-mobile-drawer-heading h3 { margin: 0; font-size: 18px; font-weight: 800; }
  .storefront-redesign .storefront-mobile-drawer-close { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--shop-alt); color: var(--shop-text); font-size: 20px; line-height: 38px; }
  .storefront-redesign .storefront-mobile-drawer-close:hover { background: var(--shop-soft); color: var(--shop-brand); }
  .storefront-redesign .storefront-mobile-drawer-body { padding: 6px 22px 18px; overflow-y: auto; overscroll-behavior: contain; }
  .storefront-redesign .storefront-mobile-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; }
  .storefront-redesign .storefront-mobile-quick a { display: inline-flex; border: 1px solid var(--shop-line); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--shop-text) !important; }
  .storefront-redesign .storefront-mobile-quick a:hover { border-color: var(--shop-brand); color: var(--shop-brand) !important; }
  .storefront-redesign .storefront-mobile-category-list { list-style: none; padding: 0; margin: 0; }
  .storefront-redesign .storefront-mobile-category-list > li { border-bottom: 1px solid var(--shop-line); }
  .storefront-redesign .storefront-mobile-category-list > li > :is(button,a) { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; border: 0; background: transparent; font-size: 15px; font-weight: 700; text-align: start; color: var(--shop-text) !important; }
  .storefront-redesign .storefront-mobile-category-list > li > a::after { display: none; }
  .storefront-redesign .storefront-mobile-category-list > li > button svg { width: 16px; height: 16px; color: var(--shop-muted); transition: transform .25s; }
  .storefront-redesign .storefront-mobile-category-list > li > button[aria-expanded="true"] { color: var(--shop-brand) !important; }
  .storefront-redesign .storefront-mobile-category-list > li > button[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--shop-brand); }
  .storefront-redesign .storefront-mobile-submenu { padding-inline: 4px; }
  .storefront-redesign .storefront-mobile-submenu.show { padding-bottom: 14px; }
  .storefront-redesign .storefront-mobile-subgroup { margin-bottom: 10px; }
  .storefront-redesign .storefront-mobile-submenu a { display: inline-block; font-size: 14px; padding: 5px 0; color: var(--shop-muted) !important; }
  .storefront-redesign .storefront-mobile-submenu a.storefront-mobile-group-link { display: block; color: var(--shop-text) !important; font-weight: 700; }
  .storefront-redesign .storefront-mobile-submenu a:hover { color: var(--shop-brand) !important; }
  .storefront-redesign .storefront-mobile-subgroup ul { list-style: none; padding: 0; padding-inline-start: 12px; border-inline-start: 2px solid var(--shop-soft); display: grid; }
}
/* Desktop mega-menu groups follow the reference's compact column layout. */
@media (min-width: 992px) {
  .storefront-redesign #main_menu > .navbar-nav > .dropdown > .dropdown-menu:has(> .storefront-desktop-menu-groups) { display: block !important; }
  .storefront-redesign #main_menu > .navbar-nav > .dropdown > .dropdown-menu > .storefront-desktop-menu-groups { padding: 0; border: 0; columns: 5 170px; column-gap: 30px; }
  .storefront-redesign #main_menu .storefront-desktop-menu-group { break-inside: avoid; margin-bottom: 18px; }
  .storefront-redesign #main_menu .storefront-desktop-menu-group ul { list-style: none; display: grid; gap: 1px; padding: 0; margin: 0; }
  .storefront-redesign #main_menu .storefront-desktop-menu-group .dropdown-item { display: inline-block; width: auto; padding: 3px 0; font-size: 14px; line-height: 1.5; font-weight: 400; color: var(--shop-muted) !important; border: 0; border-radius: 0; background: transparent; transition: color .15s; }
  .storefront-redesign #main_menu .storefront-desktop-menu-group .dropdown-item::after { content: attr(data-menu-label); display: block; height: 0; overflow: hidden; visibility: hidden; font-weight: 700; }
  .storefront-redesign #main_menu .storefront-desktop-menu-group .storefront-desktop-menu-title { display: block; margin-bottom: 6px; font-weight: 700; color: var(--shop-text) !important; }
  .storefront-redesign #main_menu .storefront-desktop-menu-group .dropdown-item:hover,
  .storefront-redesign #main_menu .storefront-desktop-menu-group .dropdown-item:focus-visible { color: var(--shop-brand) !important; font-weight: 700; background: transparent; }
  .storefront-redesign #main_menu .storefront-menu-category .storefront-desktop-menu-groups { list-style: none; padding: 0; }
  .storefront-redesign #main_menu .storefront-menu-category > .storefront-menu-subcategories { display: block; margin-top: 6px; }
  .storefront-redesign #main_menu .dropdown-item.storefront-menu-category-title { border: 0; font-size: 14px; padding: 3px 0; margin-bottom: 6px; color: var(--shop-text) !important; }
}
