/* Storefront only – base + layout + components (no shared global) */
/* ========== Storefront base ========== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    outline: 0;
    border: none;
    font-size: 14px;
}

iframe {
    display: block;
}

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

h3 {
    font-size: 2.0rem;
    font-weight: 600;
    line-height: 1.1;
}

a {
    text-decoration: none;
    font-size: 14px;
}

a:hover {
    text-decoration: none;
}

.txt_pre { white-space: pre !important; }
.fnt_w1 { font-weight: 100 !important; }
.fnt_w2 { font-weight: 200 !important; }
.fnt_w3 { font-weight: 300 !important; }
.fnt_w4 { font-weight: 400 !important; }
.fnt_w5 { font-weight: 500 !important; }
.fnt_w6 { font-weight: 600 !important; }
.fnt_w7 { font-weight: 700 !important; }
.fnt_w8 { font-weight: 800 !important; }
.fnt_w9 { font-weight: 900 !important; }
.fnt_4xs { font-size: 10px !important; line-height: 115%; }
.fnt_3xs { font-size: 11px !important; line-height: 115%; }
.fnt_2xs * { font-size: 12px !important; line-height: 125%; }
.fnt_xs * { font-size: 13px !important; line-height: 130%; }
.fnt_s * { font-size: 14px !important; line-height: 130%; }
.fnt_m { font-size: 16px !important; line-height: 120%; }
.fnt_l { font-size: 18px !important; }
.fnt_xl { font-size: 20px !important; }
.fnt_2xl { font-size: 22px !important; }
.fnt_3xl { font-size: 24px !important; }
.fnt_4xl { font-size: 28px !important; }
.fnt_5xl { font-size: 32px !important; }
.fnt_6xl { font-size: 36px !important; line-height: 38px; }
.fnt_7xl { font-size: 40px !important; }

/* ========== Storefront layout & theme ========== */
:root {
    --primary-color: #007bff;
}

html {
    scroll-behavior: auto !important;
}

body {
    font-family: var(--bs-body-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    font-size: var(--bs-body-font-size, 1rem);
}

@media (pointer: coarse) {
    input:not([type="color"]):not([type="range"]),
    select,
    textarea {
        font-size: 16px !important;
    }
}

* {
    letter-spacing: 0.5px;
}

/* Sticky footer: prevent "fake scroll" on mobile browsers where 100vh > visible viewport (iOS Safari, Chrome UI bars).
   Our storefront layout uses: body.d-flex.flex-column.min-vh-100 + main.flex-grow-1 + footer.mt-auto. */
html, body {
    height: 100%;
}

/* Prevent visible "jump to top then restore" on refresh when we have a saved scroll position */
html[data-scroll-restore-pending="1"] body {
    visibility: hidden;
}

/* Storefront Styles */
.storefront-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.storefront-header.sticky-top {
    z-index: 1030;
    /* box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px; */
}

/* Always-visible header (mobile): JS toggles this on < lg to avoid sticky bugs on mobile browsers */
html.storefront-fixed-header .storefront-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
}
html.storefront-fixed-header body {
    padding-top: var(--storefront-header-h, 72px);
}

/* (reverted) drawer scroll-lock handled by JS via body fixed positioning */

/* Centered logo header layout (desktop + mobile) */
.storefront-nav-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.storefront-nav-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.storefront-nav-center {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.storefront-nav-right {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.storefront-brand {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70vw;
}

.storefront-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    color: #202223;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.storefront-icon-btn:hover {
    background: #f6f6f700;
    color: #202223;
}

/* Mobile nav menu: animated hamburger (checkbox + label; offcanvas sync in app.js) */
#storefront-nav-menu-checkbox {
    display: none;
}

.storefront-nav-menu-toggle {
    cursor: pointer;
    margin: 0;
}

.storefront-nav-menu-toggle-inner {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition-duration: 0.3s;
}

.storefront-nav-menu-bar {
    width: 100%;
    height: 2px;
    background-color: rgb(0, 0, 0);
    border-radius: 3px;
    transition-duration: 0.3s;
}

#storefront-nav-menu-checkbox:checked + .storefront-nav-menu-toggle .storefront-nav-menu-bar {
    margin-left: 6px;
}

#storefront-nav-menu-checkbox:checked + .storefront-nav-menu-toggle .storefront-nav-menu-bar:nth-child(2) {
    transform: rotate(135deg);
    margin-left: 0;
    transform-origin: center;
    transition-duration: 0.3s;
}

#storefront-nav-menu-checkbox:checked + .storefront-nav-menu-toggle .storefront-nav-menu-bar:nth-child(1) {
    transform: rotate(45deg);
    transition-duration: 0.3s;
    transform-origin: left center;
}

#storefront-nav-menu-checkbox:checked + .storefront-nav-menu-toggle .storefront-nav-menu-bar:nth-child(3) {
    transform: rotate(-45deg);
    transition-duration: 0.3s;
    transform-origin: left center;
}

.btn-close:focus {
    outline: 0;
    box-shadow: none;
}

/* Header / drawer search */
.storefront-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.storefront-search .form-control {
    border-radius: 999px;
}

.storefront-logo-img {
    height: 32px;
    width: auto;
    display: inline-block;
}

@media (max-width: 991px) {
    .storefront-logo-img {
        height: 20px;
    }
}

.storefront-cart-icon {
    position: relative;
}

.storefront-cart-badge {
    position: absolute;
    top: 6px;
    right: 12px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #202223;
    color: #fff;
    font-size: 0.7rem;
    line-height: 18px;
    text-align: center;
}

/* Mobile nav drawer */
.nav-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1040;
    pointer-events: none;
}

.nav-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    max-width: 92vw;
    height: 100vh;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1041;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
}

.nav-drawer.is-open {
    transform: translateX(0);
}

.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid #e1e3e5;
}

.nav-drawer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #202223;
}

.nav-drawer-close {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    color: #202223;
}

.nav-drawer-body {
    padding: 1rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-drawer-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #202223;
    margin-bottom: 0.5rem;
}

body.nav-drawer-open {
    overflow: hidden;
}

@media (min-width: 992px) {
    .nav-drawer,
    .nav-drawer-overlay {
        display: none !important;
    }
}

.add-to-cart-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    padding: 10px;
    border-radius: 100px;
    background-color: #000000;
}

.add-to-cart-button svg {
    fill: #ffffff;
}

.add-to-cart-button:disabled svg {
    fill: #7f7f7f;
}

/* Cart drawer (right) */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1040;
    pointer-events: none;
}

.cart-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 92vw;
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1042;
    display: flex;
    flex-direction: column;
    /* box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15); */
}

.cart-drawer.is-open {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid #e1e3e5;
}

.cart-drawer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #202223;
}

.cart-drawer-close {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    color: #202223;
}

.cart-drawer-body {
    padding: 1rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.cart-drawer-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-drawer-thumb img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.cart-drawer-thumb-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: #f6f6f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #6d7175;
}

.cart-drawer-title {
    display: block;
    color: #202223;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
}

.cart-drawer-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: #6d7175;
    margin-top: 0.25rem;
}

.cart-drawer-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.cart-drawer-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e3e5;
}

.cart-drawer-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.cart-drawer-summary-total {
    font-weight: 700;
    color: #202223;
}

.cart-drawer-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

body.cart-drawer-open {
    overflow: hidden;
}

/* Quick view modal (MicroModal) — "micromodal-slide" style animation */
.modal {
    display: none;
}

.modal.is-open {
    display: block;
}

.micromodal-slide .modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1050;
}

.micromodal-slide .modal__container {
    width: 640px;
    max-width: 96vw;
    max-height: 92vh;
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    will-change: transform, opacity;
}

/* Open / close animations driven by aria-hidden (matches MicroModal demo) */
.micromodal-slide[aria-hidden="false"] .modal__overlay {
    animation: mmfadeIn .25s ease forwards;
}

.micromodal-slide[aria-hidden="false"] .modal__container {
    animation: mmslideIn .25s ease forwards;
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut .25s ease forwards;
}

.micromodal-slide[aria-hidden="true"] .modal__container {
    animation: mmslideOut .25s ease forwards;
}

@keyframes mmfadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mmfadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes mmslideIn {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes mmslideOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(16px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .micromodal-slide[aria-hidden="false"] .modal__overlay,
    .micromodal-slide[aria-hidden="false"] .modal__container,
    .micromodal-slide[aria-hidden="true"] .modal__overlay,
    .micromodal-slide[aria-hidden="true"] .modal__container {
        animation: none !important;
    }
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid #e1e3e5;
}

.modal__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    color: #202223;
}

.modal__close {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.modal__close::before,
.modal__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #202223;
    transform-origin: center;
}

.modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.modal__close:hover {
    background: #f6f6f7;
}

.modal__content {
    padding: 0rem;
    overflow: auto;
    max-height: calc(92vh - 120px);
}

.quickview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.quickview-close-btn {
    position: absolute;
    z-index: 9999;
    right: 10px;
    top: 10px;
    background: rgb(255, 255, 255);
    border-radius: 100px;
}

.quickview-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #202223;
    line-height: 1.2;
}

.quickview-full-link {
    font-size: 0.875rem;
    color: #6d7175;
    text-decoration: none;
}

.quickview-full-link:hover {
    text-decoration: underline;
}

.quickview-image img {
    width: 100%;
    object-fit: cover;
}

.quickview-price {
    margin: 0.75rem 0 1rem;
}

.quickview-price .price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: #202223;
}

.quickview-price .price-compare {
    margin-left: 0.5rem;
    color: #6d7175;
    text-decoration: line-through;
}

body.micromodal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.product-card {
    transition: transform 0.2s;
    border: none;
}

/* .product-card:hover { transform: translateY(-5px); } */

/* Product card: available variants preview (uses same chips/swatches as product single) */
.product-card-variants {
    display: grid;
    gap: 0.6rem;
}

.product-card-variant-row {
    display: grid;
    gap: 0.35rem;
}

.product-card-variant-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #202223;
}

.product-card .option-values {
    gap: 0.4rem;
}

.product-card .option-value {
    padding: 0.35rem 0.55rem;
    min-width: auto;
    font-size: 0.75rem;
    border-radius: 10px;
}

.product-card .color-swatch {
    width: 32px;
    height: 32px;
}

.product-card-variant-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #6d7175;
    padding: 0 0.4rem;
}

.variant-picker {
    margin: 20px 0;
}

.variant-option {
    margin: 5px;
}

.price-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.compare-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
}

/* Custom Slider Navigation */
.slider-nav-custom-wrapper {
    /* margin-bottom: 1.5rem; */
}

.slider-nav-title h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
}

/* Hide arrows by default to prevent flicker - will be shown by JS if needed */
.slider-nav-arrows {
    display: none !important;
}

.slider-nav-arrows.show {
    display: flex !important;
}

.slider-nav-custom-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #333;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    color: #333;
    padding: 0;
    line-height: 1;
}

.slider-nav-custom-btn:hover {
    background: #333;
    color: #fff;
    transform: scale(1.1);
}

.slider-nav-custom-btn:active {
    transform: scale(0.95);
}

.slider-nav-custom-btn span {
    display: inline-block;
    font-weight: bold;
}

/* Hide default Swiffy navigation when using custom */
.swiffy-slider.slider-nav-custom .slider-nav {
    display: none !important;
}

/* Shopify-like Checkout Page */
.checkout-page {
    background: #ffffff;
    min-height: calc(100vh - 80px); /* Account for sticky header */
}

/* Remove top margin from main container on checkout page */
main.container:has(.checkout-page) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.checkout-sidebar {
    padding-left: 2rem;
}

.checkout-header {
    padding: 25px 0;
}

.checkout-title {
    font-size: 2rem;
    font-weight: 600;
    color: #202223;
}

.checkout-section {
    padding: 2rem 0;
    border-bottom: 1px solid #e1e3e5;
}

.checkout-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #000;
    text-transform: none;
}

/* Contact & Delivery: clean minimal style (placeholder-only inputs) */
.checkout-contact .section-title,
.checkout-delivery .section-title {
    font-weight: 700;
    color: #000;
}

.checkout-field {
    margin-bottom: 0;
}

.checkout-field-label .checkout-label {
    display: block;
    font-size: 0.8125rem;
    color: #6d7175;
    margin-bottom: 0.35rem;
    font-weight: 400;
}

.checkout-field-label .checkout-input {
    font-size: 1rem;
    color: #202223;
}

.checkout-input:focus {
    outline: none !important;
}

.checkout-input,
.checkout-form .form-control-lg.checkout-input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #c9cccf;
    border-radius: 3px;
    background: #fff;
    color: #202223;
}

.checkout-input::placeholder {
    color: #6d7175;
}

.checkout-form .form-select-lg.checkout-input {
    padding: 0.75rem 2.25rem 0.75rem 1rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.checkout-input:focus {
    border-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    outline: none;
}

.checkout-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.25);
}

.checkout-input.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.checkout-validation-summary {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.checkout-validation-summary ul {
    padding-left: 1.25rem;
}

.checkout-validation-summary a {
    color: #842029;
    text-decoration: underline;
}

.checkout-field-error.d-block {
    display: block !important;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.checkout-phone-wrap {
    position: relative;
}

.checkout-phone-wrap .checkout-input {
    padding-right: 2.5rem;
}

.checkout-phone-hint {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #e1e3e5;
    color: #6d7175;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    pointer-events: auto;
}

.checkout-newsletter,
.checkout-save-info {
    margin-top: 1rem;
}

.checkout-newsletter .form-check-label,
.checkout-save-info .form-check-label {
    color: #202223;
    font-size: 0.9375rem;
}

.checkout-form .form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #c9cccf;
    border-radius: 4px;
}

.checkout-form .form-control-lg:focus {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.checkout-form .form-label {
    font-weight: 500;
    color: #202223;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.payment-method {
    background: #f6f6f7;
    border-radius: 8px;
    padding: 1rem;
}

.payment-option {
    padding: 1rem;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e1e3e5;
}

.payment-accordion .form-check-input {
    margin-top: 0.1rem !important;
}

.payment-accordion .form-check-label {
    cursor: pointer;
}

.payment-accordion
  .accordion-item {
  border: 1px solid #e3e6e9;
}

/* active item */
.payment-accordion
  .accordion-item:has(.accordion-button:not(.collapsed)) {
  border: 1px solid var(--primary-color, #007bff);
}

/* item BEFORE the active one → remove its bottom border */
.payment-accordion
  .accordion-item:has(+ .accordion-item .accordion-button:not(.collapsed)) {
  border-bottom: 0;
}

/* NEXT item → remove top border */
.payment-accordion
  .accordion-item:has(.accordion-button:not(.collapsed))
  + .accordion-item {
  border-top: 0;
}

.checkout-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e3e5;
}

.checkout-submit-btn {
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: none;
}

.order-summary {
    background: #fff;
    position: sticky;
    top: 88px;
}

.order-summary-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e1e3e5;
}

.order-summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #202223;
}

.order-items {
    overflow-y: auto;
}

.order-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f6f6f7;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8c9196;
}

.order-item-details {
    flex: 1;
    min-width: 0;
}

.order-item-title {
    font-weight: 500;
    color: #202223;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.order-item-variant {
    margin-bottom: 0.25rem;
}

.variant-tag {
    font-size: 0.75rem;
    color: #6d7175;
    margin-right: 0.5rem;
}

.order-item-qty {
    font-size: 0.75rem;
    color: #6d7175;
}

.order-item-price {
    font-weight: 600;
    color: #202223;
    font-size: 0.875rem;
    white-space: nowrap;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #6d7175;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0 0;
    margin-top: 1rem;
    border-top: 1px solid #e1e3e5;
    font-size: 1.125rem;
    font-weight: 600;
    color: #202223;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .checkout-sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .checkout-title {
        font-size: 1.5rem;
    }
    
    .checkout-section {
        padding: 1.5rem 0;
    }
}

/* Product Image Aspect Ratio (configurable via CSS variable) */
.product-card-image-wrapper,
.product-image-wrapper {
    width: 100%;
    aspect-ratio: var(--product-image-aspect-ratio-ar, 1 / 1); /* Default 1:1, configurable via setting */
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.product-card-image,
.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

/* Full-bleed helper (break out of .container) */
.full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.product-content-images img {
    display: block;
    width: 100%;
    height: auto;
}

.product-card-image-placeholder {
    width: 100%;
    height: 100%;
}

/* Product Single Page Image */
.product-image-wrapper {
    background: #fff;
}

/* Mobile: 100% viewport fit */
@media (max-width: 768px) {
    .product-image-wrapper {
        /* Keep aspect-ratio, but prevent overly tall images on mobile */
        max-height: calc(100dvh - var(--storefront-header-h, 72px));
    }
    
    .product-image {
        object-fit: cover !important;
    }
    
    .product-card-image-wrapper {
        /* Keep configured aspect ratio on mobile cards */
        aspect-ratio: var(--product-image-aspect-ratio-ar, 1 / 1);
    }
}

/* Shopify-style Product Single Page */
.product-single-page {
    padding: 0rem 0;
}

.product-images {
    /* margin-bottom: 2rem; */
}

/* Sticky shorter column on desktop (applied via JS by adding `.product-col-sticky`) */
@media (min-width: 992px) {
    .product-single-page .product-col-sticky {
        position: sticky;
        top: var(--sticky-offset, 88px);
        align-self: flex-start;
    }
}

.product-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #202223;
    line-height: 1.2;
}

.product-brand {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price {
    margin-bottom: 2rem;
}

.price-current {
    font-size: 1.75rem;
    font-weight: 600;
    color: #202223;
}

.price-compare {
    font-size: 1.25rem;
    color: #6d7175;
    text-decoration: line-through;
    margin-left: 0.75rem;
}

.product-form {
    margin-bottom: 2rem;
}

.product-option {
    margin-bottom: 2rem;
}

.option-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #202223;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.option-selected {
    font-weight: normal;
    text-transform: none;
    color: #6d7175;
    margin-left: 0.5rem;
}

/* Color Swatches */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.color-swatch {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e1e3e5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    overflow: hidden;
}

.color-swatch.out-of-stock {
    overflow: visible;
}

.color-swatch input[type="radio"],
.color-swatch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.color-swatch:hover:not(.disabled) {
    border-color: #202223;
    transform: scale(1.1);
}

.color-swatch input[type="radio"]:checked + .swatch-color,
.color-swatch input[type="radio"]:checked ~ .swatch-text,
.color-swatch input[type="checkbox"]:checked + .swatch-color,
.color-swatch input[type="checkbox"]:checked ~ .swatch-text {
    border-color: #202223;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #202223;
}

.color-swatch.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.color-swatch.out-of-stock::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 3px;
    background: #d72c0d;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 10;
    pointer-events: none;
}

.swatch-color {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.swatch-text {
    font-size: 0.625rem;
    text-align: center;
    padding: 0.25rem;
    color: #202223;
    font-weight: 500;
}

.swatch-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #d72c0d;
    color: #fff;
    font-size: 0.625rem;
    padding: 0.125rem 0.25rem;
    border-radius: 2px;
    font-weight: 600;
}

/* Other Option Values */
.option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.option-value {
    position: relative;
    min-width: 48px;
    padding: 0.75rem 1.25rem;
    border: 2px solid #e1e3e5;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #202223;
    transition: all 0.2s ease;
    background: #fff;
}

.option-value input[type="radio"],
.option-value input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-value:hover:not(.disabled) {
    border-color: #202223;
}

.option-value.active:not(.disabled) {
    border-color: #202223;
    background: #202223;
    color: #fff;
}

.option-value.active:not(.disabled) span {
    color: #fff;
    font-weight: 600;
}

.option-value input[type="radio"]:checked ~ span,
.option-value input[type="checkbox"]:checked ~ span {
    font-weight: 600;
}

.option-value input[type="radio"]:checked,
.option-value input[type="checkbox"]:checked {
    border-color: #202223;
    background: #202223;
    color: #fff;
}

.option-value.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.option-value.out-of-stock {
    position: relative;
}

.option-value.out-of-stock::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 3px;
    background: #d72c0d;
    transform: translate(-50%, -50%) rotate(-45deg);
    z-index: 10;
    pointer-events: none;
}

/* Optional: make selected swatch label itself "active" (JS adds .active) */
.color-swatch.active:not(.disabled) {
    border-color: #202223;
}

/* =========================
   Products filters sidebar + mobile drawer
   ========================= */
.filters-sidebar {
    position: sticky;
    top: 1rem;
}

.filters-panel {
    border: 1px solid #e1e3e5;
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
}

.filters-title {
    font-weight: 600;
    color: #202223;
    margin-bottom: 0.75rem;
}

.filter-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1040;
    pointer-events: none;
}

.filter-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 92vw;
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1041;
    display: flex;
    flex-direction: column;
    /* box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15); */
}

.filter-drawer.is-open {
    transform: translateX(0);
}

.filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid #e1e3e5;
}

.filter-drawer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #202223;
}

.filter-drawer-close {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    color: #202223;
}

.filter-drawer-body {
    padding: 1rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

body.filter-drawer-open {
    overflow: hidden;
}

.value-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #d72c0d;
    color: #fff;
    font-size: 0.625rem;
    padding: 0.125rem 0.25rem;
    border-radius: 2px;
    font-weight: 600;
}

/* Quantity Selector */
.product-quantity {
    margin-bottom: 2rem;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e1e3e5;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: #fff;
    color: #202223;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #f6f6f7;
}

.qty-input {
    width: 60px;
    height: 48px;
    border: none;
    border-left: 1px solid #e1e3e5;
    border-right: 1px solid #e1e3e5;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    background: #fff;
}

/* .product-add-to-cart {
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: none;
    margin-bottom: 1rem;
} */

.variant-info {
    padding: 1rem;
    background: #f6f6f7;
    border-radius: 4px;
    margin-top: 1rem;
}

.variant-stock {
    font-size: 0.875rem;
    font-weight: 500;
}

.variant-stock.in-stock {
    color: #008060;
}

.variant-stock.out-of-stock {
    color: #d72c0d;
}

.product-description {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e3e5;
}

.product-description h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #202223;
}

.product-description p {
    color: #6d7175;
    line-height: 1.6;
}

/* Variant Generator Color Swatches (Admin) */
.variant-color-swatch {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    border: 2px solid #e1e3e5;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #fff;
    min-width: 80px;
}

.variant-color-swatch:hover {
    border-color: #202223;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.variant-color-swatch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.variant-color-swatch input[type="checkbox"]:checked ~ .swatch-color,
.variant-color-swatch input[type="checkbox"]:checked ~ .swatch-text {
    border-color: #202223;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #202223;
}

.variant-color-swatch input[type="checkbox"]:checked {
    border-color: #202223;
    background: #f6f6f7;
}

.variant-color-swatch .swatch-color {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid transparent;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.variant-color-swatch .swatch-text {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e1e3e5;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    text-align: center;
    padding: 0.25rem;
    color: #202223;
    font-weight: 500;
    background: #f6f6f7;
    transition: all 0.2s ease;
}

.variant-color-swatch .swatch-label {
    font-size: 0.75rem;
    color: #202223;
    text-align: center;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .product-single-wrap{
        padding: 0;
    }
}

@media (max-width: 991px) {
    .product-images{
        padding-right: 0;
        padding-left: 0;
    }

    .product-details {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .product-single-page {
        padding: 0rem 0;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .price-current {
        font-size: 1.5rem;
    }
    
    .color-swatch {
        width: 40px;
        height: 40px;
    }
    
    .option-value {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
}

.desktop-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pri-btn, .sec-btn, .outl-btn {
    display: block;
    padding: 8px 14px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 3px;
    text-transform: none;
}

.pri-btn {
    background-color: #000000;
    color: #ffffff;
    border-radius: 3px;
}

a.pri-btn:hover {
    color: #ffffff;
}

.sec-btn {
    background-color: #cdcdcd;
    color: #000000;
    border-radius: 3px;
}

.outl-btn {
    background-color: #ffffff;
    color: #000000;
}

.outl-inp-group {
    display: flex;
    background-color: #000000;
    border-radius: 3px;
    border: 1px solid rgb(213, 213, 213);
    overflow: hidden;
}

.outl-inp-group .outl-btn {
    border-radius: 0px;
    padding: calc(1rem - 1px);
}

/* .col-one-of-two {
    margin-left: Calc((100vw - 1313px) / 2 * -1);
} */

.fs-7, .fs-7 * {
    font-size: 0.75rem !important;
}

.acc-bg {
    background-color: #eceff1;
}

.cat-card1 {
    position: relative;
}

.cat-card1-txt-wrap {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.cat-card1-txt {
    background-color: #ffffff;
    padding: 2px 10px;
    border-radius: 3px;
    margin: 0px 0px 10px 0;
}

.storefront .offcanvas-header {
    padding: 0px;
    height: 43px;
}

.cont-px-noncont {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (min-width: 576px) {
    .cont-px-sm-def {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .cont-px-noncont {
        padding-left: 0.0;
        padding-right: 0.0;
    }
}

.pxx {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.accordion-item {
  /* Sets the background color for the active accordion button */
  --bs-accordion-active-bg: transparent; 
  /* Sets the color for the active accordion button text */
  --bs-accordion-active-color: inherit; 
  --bs-accordion-bg: transparent; 
}

/* To remove the default blue border/shadow on focus */
.accordion-button:focus {
  box-shadow: none;
}

.form-select {
    overflow: hidden;
}

.bg-white {
    background-color: #ffffff;
}

.container {
    padding-right: 1rem;
    padding-left: 1rem;
}

/* .accordion-item {
    border-radius: 3px !important;
} */

.accordion-item:first-of-type {
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.accordion-item:last-of-type {
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
}

.offcanvas-body > div {
    display: flex;
    width: 100%;
    height: 100%;
}

.ui-a-btn {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    background-color: black;
    text-decoration: none;
    color: #ffffff;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.drawer-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 0px solid #c9cccf;
    border-radius: 0px;
    background: #e8ebed;
    color: #202223;
}

.ui-input-wrap-2 {
  height: 52px;
  background-color: #ffffff;
  border-radius: 3px;
  border: 1px solid #dae0e2;
  overflow: hidden;
  font-weight: 300 !important;
  font-size: 20px !important
}

.ui-input-wrap-2 .ui-input-wrap-left {
    padding: 12px 15px;
    height: 100%;
    border-right: 1px solid #dae0e2;
    font-size: 20px
}

.ui-input-wrap-2 input.ui-input-wrap-right {
    padding: 12px 15px;
    height: 100%;
    width: 100%;
    font-weight: 300 !important;
    font-size: 20px !important
}

/* .ui-input-wrap-2 .ui-input-wrap-left, .ui-input-wrap-2 input.ui-input-wrap-right {
    font-size: 22px !important;
    font-weight: 400;
    color: #000000;
    background-color: #ffffff;
    border-radius: 3px;
    border: 1px solid #dae0e2;
} */

.ui-input-wrap-right::placeholder {
    color: #c0c8cb;
}

.ui-input-wrap-2 svg {
    width: 26px;
    height: 26px;
    margin-right: 10px;
}

/* Optional storefront_auth layout (minimal shell): viewport height for mobile keyboard; --storefront-auth-vh from storefront_auth.php */
body.storefront-auth {
    min-height: 100dvh;
    min-height: var(--storefront-auth-vh, 100dvh);
    overflow-x: hidden;
    /* Scroll only if content exceeds the visible viewport (e.g. long alerts); short login fits with no bar. */
    overflow-y: auto;
}
.storefront-auth .storefront-auth-top {
    flex-shrink: 0;
}
.storefront-auth .storefront-auth-main {
    flex: 1 1 auto;
    min-height: 0;
}
.storefront-auth .storefront-auth-top a:hover {
    opacity: 0.88;
}

/* Login (storefront layout): center block in main between header/footer; min-height for nested flex scroll */
.storefront-login-center {
    min-height: 0;
}

.offcanvas {
    background-clip: unset !important;
}

.offcanvas-body {
    padding: 0 !important;
}

.offcanvas.offcanvas-start{
    border-right: none !important;
}

.storefront-nav {
    padding: 10px 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.storefront-nav-item {
    text-transform: uppercase;
    padding: 5px 0px;
}

.storefront-nav-link {
    color: #202223;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}