:root {
    --storefront-card-border: #ececec;
    --storefront-card-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    --storefront-card-hover-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    --storefront-card-green: #800080;
    --storefront-card-price: #800080;
    --storefront-card-discount: #e0262b;
}

.storefront-product-column {
    min-width: 0;
}

.storefront-product-card {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--storefront-card-border);
    border-radius: 4px !important;
    padding: 0 !important;
    background: #fff;
    box-shadow: var(--storefront-card-shadow);
    text-align: left;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.storefront-product-card:hover {
    border-color: #dedede !important;
    box-shadow: var(--storefront-card-hover-shadow) !important;
    transform: translateY(-2px) !important;
}

.storefront-product-card .storefront-product-image,
.storefront-product-card .product-img,
.product-card .product-img,
.storefront-product-image {
    position: relative;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: #f8f9fa;
}

.storefront-product-card .storefront-product-image > a,
.storefront-product-image > a,
.storefront-product-image-link {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}

.storefront-product-card .storefront-product-image img,
.storefront-product-image img,
.storefront-product-card .storefront-main-img,
.storefront-main-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center !important;
    mix-blend-mode: normal;
    transition: transform 0.35s ease, filter 0.2s ease;
}

.storefront-product-card:hover .storefront-product-image img,
.storefront-product-card:hover .storefront-main-img {
    transform: scale(1.05);
}

.storefront-product-discount {
    position: absolute;
    z-index: 7;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--storefront-card-discount) !important;
    color: #fff !important;
    font: 700 12px/1.3 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(224, 38, 43, 0.25);
}

/* Eye (Quick View / preview) button at top-right corner of product image */
.storefront-product-quickview {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 8;
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #4b5563 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    opacity: 1;
    transition: all 0.2s ease;
}

.storefront-product-quickview:hover {
    background: #800080 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #800080 !important;
    box-shadow: 0 4px 12px rgba(128, 0, 128, 0.25);
    transform: scale(1.08);
}

/* Quick-view eye hidden on every product card (2026-11-11).
   The button markup, its .quick_view click handler and the quick-view modal stay in place;
   delete this rule to bring the eye back. */
.storefront-product-quickview,
.product-card .quick_view {
    display: none !important;
}

.storefront-visual-match-tag {
    position: absolute;
    z-index: 6;
    top: 40px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    background: linear-gradient(135deg, #6a307d, #a64dbd);
    color: #fff;
    font: 700 11px/1.2 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

.storefront-product-stock-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: rgba(60, 60, 60, 0.75);
}

.storefront-product-card.is-stock-out .storefront-product-image img {
    filter: blur(2px);
}

.storefront-product-stock-label {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    color: #fff;
    font: 700 15px/1.2 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    letter-spacing: 0.5px;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.storefront-product-card .storefront-product-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    padding: 12px 13px 14px !important;
    background: #fff;
    text-align: left;
}

.storefront-product-card .storefront-product-title {
    display: -webkit-box !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: #1f2937 !important;
    font: 500 15px/1.35 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
    font-size: 15px !important;
    text-align: left !important;
    text-transform: none !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.storefront-product-card .storefront-product-title a {
    display: -webkit-box;
    overflow: hidden;
    color: #1f2937 !important;
    font: inherit;
    font-size: 15px !important;
    text-decoration: none;
    text-transform: none !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    transition: color 0.18s ease;
}

@media (min-width: 768px) {
    .storefront-product-card .storefront-product-title,
    .storefront-product-card .storefront-product-title a {
        font-size: 15px !important;
    }
}

.storefront-product-card .storefront-product-title a:hover {
    color: #800080 !important;
}

.storefront-product-card .storefront-product-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 10px !important;
    padding: 0 !important;
    text-align: left !important;
}

.storefront-product-card .storefront-product-current-price {
    color: #000000 !important;
    font: 700 16px/1.2 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
    white-space: nowrap;
}

.storefront-product-card .storefront-product-old-price {
    color: #9ca3af !important;
    font: 400 13px/1.2 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
    text-decoration: line-through !important;
    white-space: nowrap;
}

/* Small variant thumbnails strip */
.storefront-card-variants {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    margin: 0 0 12px;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.storefront-card-variants::-webkit-scrollbar {
    display: none;
}

.storefront-variant-thumb {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    padding: 1.5px;
    border: 1.5px solid #d1d5db;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.18s ease;
}

.storefront-variant-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Swatch hover / selected ring: site red (--btn-red from storefront-buttons.css) */
.storefront-variant-thumb:hover {
    border-color: var(--btn-red, #E10B1F);
    transform: scale(1.12);
}

.storefront-variant-thumb.active {
    border-color: var(--btn-red, #E10B1F);
    box-shadow: 0 0 0 1.5px var(--btn-red, #E10B1F);
}

.storefront-variant-more {
    color: #6b7280;
    font: 600 12px/1 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    padding: 0 4px;
}

/* Variant swatch row hidden on product cards (display only; markup + JS stay so nothing errors).
   Price -> button spacing then comes from .storefront-product-prices margin + .storefront-card-footer padding. */
.storefront-product-card .storefront-card-variants {
    display: none !important;
}

/* Card footer & Clean Add to cart button */
.storefront-card-footer {
    position: relative !important;
    z-index: 10 !important;
    width: 100%;
    margin-top: auto;
    padding-top: 6px;
    pointer-events: auto !important;
}

.storefront-product-card .storefront-card-add-btn,
button.storefront-card-add-btn {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    display: flex !important;
    width: 100%;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #800080 !important;
    border-radius: 4px !important;
    background: #800080 !important;
    background-color: #800080 !important;
    background-image: var(--brand-gradient) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font: 600 13px/1 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
    letter-spacing: 0.3px;
    text-transform: none !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(128, 0, 128, 0.2) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.storefront-card-add-btn * {
    pointer-events: none !important;
}

.storefront-card-add-btn.is-loading,
button.storefront-card-add-btn.is-loading {
    opacity: 0.75 !important;
    pointer-events: none !important;
    cursor: wait !important;
}

.storefront-product-card .storefront-card-add-btn:hover,
.storefront-product-card .storefront-card-add-btn:focus-visible,
button.storefront-card-add-btn:hover,
button.storefront-card-add-btn:focus-visible {
    background: #6a006a !important;
    background-color: #6a006a !important;
    background-image: linear-gradient(135deg, #6a006a 0%, #8520e0 100%) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-color: #800080 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(128, 0, 128, 0.35) !important;
}

.storefront-product-card .storefront-card-add-btn i,
button.storefront-card-add-btn i {
    font-size: 14px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: transform 0.2s ease, color 0.2s ease;
}

.storefront-product-card .storefront-card-add-btn:hover i,
button.storefront-card-add-btn:hover i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: scale(1.08);
}

.storefront-product-card .storefront-card-add-btn.is-out-of-stock,
.storefront-product-card .storefront-card-add-btn:disabled,
button.storefront-card-add-btn:disabled {
    background: #f9fafb !important;
    background-color: #f9fafb !important;
    background-image: none !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    -webkit-text-fill-color: #9ca3af !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

.storefront-product-section {
    margin: 0 0 45px;
}

.storefront-product-section-heading {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.storefront-product-section-title {
    margin: 0 !important;
    color: #1b2536 !important;
    font: 700 26px/1.2 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
    text-transform: uppercase;
}

.storefront-product-view-more {
    color: #555 !important;
    font: 500 15px/1.2 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    margin-left: auto;
}

.storefront-product-section-heading .storefront-product-view-more {
    font-family: 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
}

.storefront-product-view-more:hover {
    color: var(--storefront-card-green) !important;
}

.storefront-product-section-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
}

.storefront-product-carousel-arrow {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #333;
    border-radius: 50%;
    background: transparent;
    color: #333;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.storefront-product-carousel-arrow:hover {
    border-color: #800080;
    background: #800080;
    color: #fff;
}

.storefront-product-carousel-arrow i {
    font-size: 14px;
    line-height: 1;
}

.product_sliders,
.category-product,
.brand-product-grid,
.storefront-product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row dense;
    gap: 15px !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    align-items: stretch !important;
}

/* Eliminate empty slots, scripts, or whitespace nodes from grid/row layouts */
.storefront-product-grid > script,
.storefront-product-grid script,
.row > script,
.row-cols-lg-5 > script,
.row-cols-md-3 > script,
.row-cols-1 > script,
.storefront-home-carousel > script,
.storefront-product-column:empty,
.product-card:empty {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    flex: 0 0 0% !important;
    max-width: 0 !important;
}

/* All Grid and Carousel product containers: Child column must fill 100% of its slot */
.storefront-product-grid > .storefront-product-column,
.storefront-product-grid > .col-custom-5,
.category-product > .storefront-product-column,
.category-product > .col-custom-5,
.brand-product-grid > .storefront-product-column,
.brand-product-grid > .col-custom-5,
.product_sliders > .storefront-product-column,
.product_sliders > .col-custom-5,
.storefront-home-carousel .storefront-product-column,
.storefront-home-carousel .col-custom-5,
.desktop-slider .storefront-product-column,
.desktop-slider .col-custom-5,
.owl-item .storefront-product-column,
.owl-item .col-custom-5,
.owl-carousel .storefront-product-column,
.owl-carousel .col-custom-5,
[class*="grid-cols-"] > .storefront-product-column,
[class*="grid-cols-"] > .col-custom-5 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Ensure product card itself fills full height and stretches cleanly */
.storefront-product-column > .product-card,
.storefront-product-column > .storefront-product-card,
.storefront-product-grid .product-card,
.category-product .product-card,
.brand-product-grid .product-card,
.product_sliders .product-card,
.owl-item .product-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

/* Scoped flex rows (only applies when parent is a true flex .row, never leaking onto grids or carousels) */
@media (min-width: 1200px) {
    .row:not(.storefront-product-grid):not(.category-product):not(.brand-product-grid):not(.product_sliders):not([class*="grid-cols-"]) > .storefront-product-column,
    .row:not(.storefront-product-grid):not(.category-product):not(.brand-product-grid):not(.product_sliders):not([class*="grid-cols-"]) > .col-custom-5 {
        flex: 0 0 20% !important;
        max-width: 20% !important;
        width: 20% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .row:not(.storefront-product-grid):not(.category-product):not(.brand-product-grid):not(.product_sliders):not([class*="grid-cols-"]) > .storefront-product-column,
    .row:not(.storefront-product-grid):not(.category-product):not(.brand-product-grid):not(.product_sliders):not([class*="grid-cols-"]) > .col-custom-5 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 8px !important;
        box-sizing: border-box !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .row:not(.storefront-product-grid):not(.category-product):not(.brand-product-grid):not(.product_sliders):not([class*="grid-cols-"]) > .storefront-product-column,
    .row:not(.storefront-product-grid):not(.category-product):not(.brand-product-grid):not(.product_sliders):not([class*="grid-cols-"]) > .col-custom-5 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 8px !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 767.98px) {
    .row:not(.storefront-product-grid):not(.category-product):not(.brand-product-grid):not(.product_sliders):not([class*="grid-cols-"]) > .storefront-product-column,
    .row:not(.storefront-product-grid):not(.category-product):not(.brand-product-grid):not(.product_sliders):not([class*="grid-cols-"]) > .col-custom-5 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 6px !important;
        box-sizing: border-box !important;
    }
}

.storefront-product-grid .product-card,
.category-product .product-card,
.brand-product-grid .product-card,
.product_sliders .product-card,
.owl-item .product-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.storefront-product-grid .product-card .product-img,
.category-product .product-card .product-img,
.brand-product-grid .product-card .product-img,
.product_sliders .product-card .product-img,
.owl-item .product-card .product-img {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    width: 100% !important;
}

.storefront-product-grid .product-card .product-info,
.category-product .product-card .product-info,
.brand-product-grid .product-card .product-info,
.product_sliders .product-card .product-info,
.owl-item .product-card .product-info {
    padding: 12px 13px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

.storefront-product-grid .product-card .product-title,
.category-product .product-card .product-title,
.brand-product-grid .product-card .product-title,
.product_sliders .product-card .product-title,
.owl-item .product-card .product-title {
    min-height: 38px !important;
    max-height: 38px !important;
    height: 38px !important;
    margin: 0 0 6px !important;
}

.storefront-product-grid .product-card .storefront-card-footer,
.category-product .product-card .storefront-card-footer,
.brand-product-grid .product-card .storefront-card-footer,
.product_sliders .product-card .storefront-card-footer,
.owl-item .product-card .storefront-card-footer {
    margin-top: auto !important;
}

.storefront-product-grid .product-card .storefront-card-add-btn,
.category-product .product-card .storefront-card-add-btn,
.brand-product-grid .product-card .storefront-card-add-btn,
.product_sliders .product-card .storefront-card-add-btn,
.owl-item .product-card .storefront-card-add-btn {
    display: flex !important;
}

/* Quick View / Product Preview Modal Redesign */
@keyframes qvFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes qvScaleIn {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.storefront-quick-view-backdrop {
    position: fixed !important;
    z-index: 100000 !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    animation: qvFadeIn 0.22s ease-out;
}

.storefront-quick-view {
    position: relative !important;
    display: grid !important;
    width: min(840px, 95vw) !important;
    max-height: min(88vh, 660px) !important;
    grid-template-columns: 46% 54% !important;
    gap: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
    animation: qvScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
}

/* Close ('X') Button at top-right corner */
.storefront-quick-view-close,
button.storefront-quick-view-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 60 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.storefront-quick-view-close:hover,
button.storefront-quick-view-close:hover {
    background: #800080 !important;
    background-color: #800080 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #800080 !important;
    box-shadow: 0 4px 14px rgba(128, 0, 128, 0.35) !important;
    transform: rotate(90deg) scale(1.08) !important;
}

.storefront-quick-view-close i {
    font-size: 15px !important;
    line-height: 1 !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* Left Column Media Box */
.storefront-qv-media {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f8fafc;
    border-right: 1px solid #f1f5f9;
    box-sizing: border-box;
}

.storefront-qv-image-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 330px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
}

.storefront-qv-main-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.storefront-qv-image-box:hover .storefront-qv-main-img {
    transform: scale(1.05);
}

.storefront-qv-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    padding: 3px 9px;
    border-radius: 9999px;
    background: #e0262b !important;
    color: #ffffff !important;
    font: 700 11px/1.3 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(224, 38, 43, 0.3);
}

.storefront-qv-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    overflow-x: auto;
}

.storefront-qv-thumb {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    padding: 2px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}

.storefront-qv-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.storefront-qv-thumb:hover,
.storefront-qv-thumb.is-active {
    border-color: #800080;
    transform: scale(1.06);
}

/* Right Column Content */
.storefront-qv-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 28px;
    overflow-y: auto;
    text-align: left;
    box-sizing: border-box;
}

.storefront-qv-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.storefront-qv-category {
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(128, 0, 128, 0.08);
    color: #800080 !important;
    font: 600 11.5px/1.2 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.storefront-qv-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 9999px;
    font: 600 11.5px/1.2 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

.storefront-qv-stock-badge.in-stock {
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #047857 !important;
}

.storefront-qv-stock-badge.out-of-stock {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c !important;
}

.qv-stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.storefront-qv-stock-badge.in-stock .qv-stock-dot {
    background: #10b981;
}

.storefront-qv-stock-badge.out-of-stock .qv-stock-dot {
    background: #ef4444;
}

.storefront-qv-title {
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    color: #0f172a !important;
    font: 700 21px/1.35 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
    text-align: left !important;
}

.storefront-qv-title a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.18s ease;
}

.storefront-qv-title a:hover {
    color: #800080 !important;
}

.storefront-qv-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.storefront-qv-price {
    color: #800080 !important;
    font: 800 26px/1 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
}

.storefront-qv-old-price {
    color: #94a3b8 !important;
    font: 500 16px/1 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
    text-decoration: line-through !important;
}

.storefront-qv-save-badge {
    padding: 2px 8px;
    border-radius: 4px;
    background: #dcfce7;
    color: #15803d !important;
    font: 700 11.5px/1.2 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

.storefront-qv-perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px;
    padding: 12px 14px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    background: #f8fafc;
}

.storefront-qv-perk-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #475569 !important;
    font: 500 12px/1.2 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

.storefront-qv-perk-item i {
    color: #800080;
    font-size: 13px;
}

.storefront-qv-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.storefront-qv-add-btn,
button.storefront-qv-add-btn {
    display: flex !important;
    width: 100% !important;
    height: 46px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: none !important;
    border-radius: 8px !important;
    background: #800080 !important;
    background-color: #800080 !important;
    background-image: var(--brand-gradient) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font: 600 14px/1 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(128, 0, 128, 0.28) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.storefront-qv-add-btn:hover,
button.storefront-qv-add-btn:hover {
    background: #6a006a !important;
    background-color: #6a006a !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(128, 0, 128, 0.4) !important;
    transform: translateY(-1px) !important;
}

.storefront-qv-add-btn i {
    font-size: 15px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.storefront-qv-add-btn.is-disabled {
    background: #f1f5f9 !important;
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

.storefront-qv-details-btn,
a.storefront-qv-details-btn {
    display: flex !important;
    width: 100% !important;
    height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 1.5px solid #800080 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #800080 !important;
    -webkit-text-fill-color: #800080 !important;
    font: 600 13.5px/1 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
    letter-spacing: 0.2px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.storefront-qv-details-btn:hover,
a.storefront-qv-details-btn:hover {
    background: #800080 !important;
    background-color: #800080 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(128, 0, 128, 0.25) !important;
}

.storefront-qv-details-btn i {
    font-size: 13px;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    transition: transform 0.2s ease;
}

.storefront-qv-details-btn:hover i {
    transform: translateX(3px);
}

@media (min-width: 1200px) {
    .storefront-product-grid,
    .category-product,
    .brand-product-grid,
    .brand-product-grid.storefront-product-grid,
    .product_sliders {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 22px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .storefront-product-grid,
    .category-product,
    .brand-product-grid,
    .brand-product-grid.storefront-product-grid,
    .product_sliders {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .storefront-product-grid,
    .category-product,
    .brand-product-grid,
    .brand-product-grid.storefront-product-grid,
    .product_sliders {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 767.98px) {
    .storefront-quick-view-backdrop {
        padding: 12px !important;
    }

    .storefront-quick-view {
        grid-template-columns: 1fr !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        border-radius: 14px !important;
    }

    .storefront-qv-media {
        padding: 18px !important;
        border-right: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .storefront-qv-image-box {
        max-height: 220px !important;
    }

    .storefront-qv-content {
        padding: 20px 16px !important;
    }

    .storefront-qv-title {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }

    .storefront-qv-price {
        font-size: 22px !important;
    }

    .storefront-qv-perks {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        padding: 10px 12px !important;
        margin-bottom: 16px !important;
    }

    .storefront-quick-view-close,
    button.storefront-quick-view-close {
        top: 10px !important;
        right: 10px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    .storefront-product-grid,
    .category-product,
    .brand-product-grid,
    .product_sliders {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .storefront-product-card .storefront-product-image,
    .storefront-product-image,
    .storefront-product-grid .product-card .product-img {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        width: 100% !important;
    }

    .storefront-product-card .storefront-product-image > a,
    .storefront-product-image-link {
        aspect-ratio: 1 / 1 !important;
        padding: 0 !important;
        height: 100% !important;
        width: 100% !important;
    }

    .storefront-product-card .storefront-product-title,
    .storefront-product-card .storefront-product-title a {
        font-size: 14px !important;
    }

    .storefront-product-card .storefront-product-prices {
        gap: 8px;
        margin-top: 10px !important;
    }

    .storefront-product-card .storefront-product-current-price {
        font-size: 15px !important;
    }

    .storefront-product-card .storefront-product-old-price {
        font-size: 12px !important;
    }

    .storefront-product-discount {
        top: 6px;
        left: 6px;
        font-size: 10px;
        padding: 2px 6px;
    }

    .storefront-product-quickview {
        top: 6px;
        right: 6px;
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .storefront-card-variants {
        min-height: 28px;
        gap: 5px;
        margin-bottom: 10px;
    }

    .storefront-variant-thumb {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .storefront-variant-more {
        font-size: 11px;
    }

    .storefront-card-add-btn {
        height: 34px;
        font-size: 12px !important;
        padding: 0 8px !important;
    }

    .storefront-product-section {
        margin-bottom: 32px;
    }

    .storefront-product-section-heading {
        flex-wrap: nowrap;
        min-height: 28px;
        gap: 10px;
        margin-bottom: 16px;
    }

    .storefront-product-section-title {
        min-width: 0;
        font-size: 18px !important;
    }

    .storefront-product-view-more {
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    .storefront-product-section-controls {
        gap: 5px;
    }

    .storefront-product-carousel-arrow {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .storefront-product-carousel-arrow i {
        font-size: 12px;
    }
}

/* Listing pages (category / subcategory / childcategory / brand): 4 per row on desktop */
@media (min-width: 1200px) {
    #shop-area .storefront-product-grid,
    .shop-results .storefront-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 22px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    #shop-area .storefront-product-grid,
    .shop-results .storefront-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }
}

/* ========================================================
   MODERN SHOPPING CART DRAWER / SLIDE-OVER STYLES
   ======================================================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9998;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-sidebar {
    width: 410px;
    max-width: 92vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 36px rgba(15, 23, 42, 0.16);
    font-family: 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    box-sizing: border-box;
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    flex-shrink: 0;
}

.cart-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fdf4ff;
    color: #800080;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.cart-header-title {
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
    letter-spacing: -0.2px;
}

.cart-header-count {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-top: 2px;
}

.close-btn {
    cursor: pointer;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 7px 14px !important;
    border-radius: 9999px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    line-height: 1 !important;
    user-select: none;
    outline: none;
}

.close-btn span {
    font-size: 17px;
    line-height: 1;
    font-weight: 400;
}

.close-btn:hover {
    background: #800080 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #800080 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(128, 0, 128, 0.25);
}

.cart-content {
    flex-grow: 1;
    padding: 16px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.cart-content::-webkit-scrollbar {
    width: 5px;
}

.cart-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item-card {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.cart-item-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.cart-item-thumb {
    position: relative;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

.cart-thumb-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.cart-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.25s ease;
}

.cart-item-card:hover .cart-product-img {
    transform: scale(1.05);
}

.cart-item-details {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cart-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding-right: 28px;
}

.cart-item-title {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color 0.18s ease;
}

.cart-item-title:hover {
    color: #800080 !important;
}

.remove-item-btn,
button.cart_remove_popup {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #94a3b8 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.remove-item-btn:hover,
button.cart_remove_popup:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    -webkit-text-fill-color: #ef4444 !important;
    border-color: #fca5a5 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2) !important;
}

.cart-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 4px 0 8px;
}

.cart-meta-tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 500;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 6px;
}

.quantity-pill {
    display: inline-flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    padding: 2px 4px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    user-select: none;
}

.qty-btn,
button.qty-btn {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    border: none !important;
    background: transparent !important;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.qty-btn:hover {
    background: #f1f5f9 !important;
    color: #800080 !important;
    transform: scale(1.08);
}

.qty-val {
    min-width: 26px !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 0 4px !important;
}

.cart-item-pricing {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-multiplier {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.price-amount {
    font-size: 14.5px;
    font-weight: 700;
    color: #800080;
}

.empty-cart-container {
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-cart-icon-wrap {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #fdf4ff;
    border: 1px dashed rgba(128, 0, 128, 0.3);
    color: #800080;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
}

.empty-cart-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 6px !important;
}

.empty-cart-subtitle {
    font-size: 13.5px !important;
    color: #64748b !important;
    margin: 0 0 22px !important;
    max-width: 240px;
    line-height: 1.45;
}

.empty-shop-btn {
    max-width: 220px;
}

.cart-footer {
    padding: 18px 20px 22px;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.04);
    flex-shrink: 0;
}

.cart-summary-box {
    margin-bottom: 16px;
}

.subtotal-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    margin-bottom: 4px !important;
}

.subtotal-label {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #475569 !important;
}

.subtotal-price,
span.subtotal-price {
    font-size: 21px !important;
    font-weight: 800 !important;
    color: #800080 !important;
    letter-spacing: -0.3px;
}

.cart-shipping-notice {
    margin: 0 !important;
    font-size: 12px !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.cart-shipping-notice i {
    color: #800080;
    font-size: 12px;
}

.btn-group-custom {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.btn-custom {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-view-cart,
.cart-sidebar .btn-custom.btn-view-cart {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #800080 !important;
    -webkit-text-fill-color: #800080 !important;
    border: 1.5px solid #800080 !important;
    box-shadow: none !important;
}

.btn-view-cart:hover,
.cart-sidebar .btn-custom.btn-view-cart:hover {
    background: #fdf4ff !important;
    background-color: #fdf4ff !important;
    color: #800080 !important;
    -webkit-text-fill-color: #800080 !important;
    border-color: #800080 !important;
    transform: translateY(-1px) !important;
}

.btn-checkout,
.cart-sidebar .btn-custom.btn-checkout,
.cart-sidebar .btn-custom.btn-checkout[href*="checkout"] {
    background: #800080 !important;
    background-color: #800080 !important;
    background-image: linear-gradient(135deg, #800080 0%, #9b30ff 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid #800080 !important;
    box-shadow: 0 4px 14px rgba(128, 0, 128, 0.28) !important;
}

.btn-checkout:hover,
.cart-sidebar .btn-custom.btn-checkout:hover,
.cart-sidebar .btn-custom.btn-checkout[href*="checkout"]:hover {
    background: #6a006a !important;
    background-color: #6a006a !important;
    background-image: linear-gradient(135deg, #6a006a 0%, #8520e0 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #6a006a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(128, 0, 128, 0.4) !important;
}

/* =====================================================================
   Homepage section headings: centred title with tapered red lines,
   arrows beside the product slider, "VIEW MORE" button under it.
   Markup: includes/home_product_section.blade.php + "All Categories" in includes/home.blade.php
   ===================================================================== */

/* ---------------------------------------------------------------------
   SECTION HEADING ORNAMENT  (replaces the old tapered red lines)
   Markup: <h2 class="storefront-product-section-title section-title-tapered"><span>Title</span></h2>
   Look:   ——— fading grey line ◆  TITLE  ◆ fading grey line ———
                              ▔▔▔ (short red bar under the text)

   Parts:  h2::before / h2::after = side line + red diamond (one element each, shaped with clip-path)
           span::after            = red accent bar under the text
   Tweak everything with the variables below.
   --------------------------------------------------------------------- */
.section-title-tapered {
    --sh-red: var(--btn-red, #E10B1F);   /* diamonds + bar; site red from storefront-buttons.css */
    --sh-text: #111111;                  /* heading text */
    --sh-line: #bdbdbd;                  /* side line colour next to the diamond (fades to transparent outward) */
    --sh-line-w: 130px;                  /* max length of each side ornament (line + diamond) */
    --sh-line-gap: 4px;                  /* space between line end and diamond */
    --sh-diamond: 11px;                  /* diamond diagonal (= an 8px square rotated 45deg) */
    --sh-gap: 16px;                      /* diamond <-> text */
    --sh-size: 28px;                     /* font size (tablet / mobile values in the media queries below) */
    --sh-tracking: 0.06em;               /* letter-spacing */
    --sh-bar-w: 48px;                    /* red bar width */
    --sh-bar-h: 3px;                     /* red bar thickness */
    --sh-bar-gap: 8px;                   /* space between text and bar */
    --sh-anim: 0.6s;                     /* line grow-in duration (off for prefers-reduced-motion) */

    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: var(--sh-gap);
    width: 100%;
    text-align: center;
}

/* Typography. Extra parent class so it beats the 22px / 600 !important rule in includes/home.blade.php
   (that rule stays for headings without the ornament, e.g. TOP TRENDING). */
.storefront-product-section-heading .storefront-product-section-title.section-title-tapered {
    color: var(--sh-text) !important;
    font-size: var(--sh-size) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: var(--sh-tracking);
    text-transform: uppercase;
}

/* Text + red bar under it */
.section-title-tapered > span {
    position: relative;
    min-width: 0;
    padding-bottom: calc(var(--sh-bar-gap) + var(--sh-bar-h));
    overflow-wrap: break-word;
    text-wrap: balance;                  /* long titles wrap into even lines */
}
.section-title-tapered > span::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: var(--sh-bar-w);
    height: var(--sh-bar-h);
    border-radius: var(--sh-bar-h);
    background: var(--sh-red);
    transform: translateX(-50%);
}

/* Side ornaments: a 1px line plus a diamond, cut from one box with clip-path.
   Layer 1 = solid red (diamond area), layer 2 = grey line fading outward. */
.section-title-tapered::before,
.section-title-tapered::after {
    content: "";
    flex: 0 1 var(--sh-line-w);
    min-width: var(--sh-diamond);        /* long titles: the line shrinks away, the diamond stays */
    height: var(--sh-diamond);
    margin-bottom: calc(var(--sh-bar-gap) + var(--sh-bar-h));   /* centre on the text, not on text + bar */
    background-repeat: no-repeat;
    animation: sh-line-grow var(--sh-anim) ease-out both;
}
.section-title-tapered::before {         /* line on the left, diamond at its right end (next to the text) */
    background-image: linear-gradient(var(--sh-red), var(--sh-red)),
                      linear-gradient(to left, var(--sh-line), transparent);
    background-position: right center, right calc(var(--sh-diamond) + var(--sh-line-gap)) center;
    background-size: var(--sh-diamond) 100%, calc(100% - var(--sh-diamond) - var(--sh-line-gap)) 100%;
    clip-path: polygon(0 calc(50% - 0.5px), calc(100% - var(--sh-diamond)) calc(50% - 0.5px),
                       calc(100% - var(--sh-diamond) / 2) 0, 100% 50%, calc(100% - var(--sh-diamond) / 2) 100%,
                       calc(100% - var(--sh-diamond)) calc(50% + 0.5px), 0 calc(50% + 0.5px));
}
.section-title-tapered::after {          /* mirror: diamond at the left end (next to the text), line to the right */
    background-image: linear-gradient(var(--sh-red), var(--sh-red)),
                      linear-gradient(to right, var(--sh-line), transparent);
    background-position: left center, left calc(var(--sh-diamond) + var(--sh-line-gap)) center;
    background-size: var(--sh-diamond) 100%, calc(100% - var(--sh-diamond) - var(--sh-line-gap)) 100%;
    clip-path: polygon(100% calc(50% - 0.5px), var(--sh-diamond) calc(50% - 0.5px),
                       calc(var(--sh-diamond) / 2) 0, 0 50%, calc(var(--sh-diamond) / 2) 100%,
                       var(--sh-diamond) calc(50% + 0.5px), 100% calc(50% + 0.5px));
}

/* One-time entrance: each line grows from the diamond outward (the diamonds stay crisp, not stretched) */
@keyframes sh-line-grow {
    from { background-size: var(--sh-diamond) 100%, 0 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .section-title-tapered::before,
    .section-title-tapered::after { animation: none; }
}

@media (max-width: 1023.98px) {
    .section-title-tapered { --sh-size: 25px; --sh-line-w: 100px; }
}
@media (max-width: 767.98px) {
    .section-title-tapered { --sh-size: 22px; --sh-line-w: 70px; --sh-gap: 12px; }
}
@media (max-width: 575.98px) {
    .section-title-tapered { --sh-line-w: 40px; --sh-gap: 10px; --sh-tracking: 0.05em; }
}

/* Centred heading row (homepage sections only; listing pages keep the old row layout) */
.storefront-product-section-heading--centered {
    justify-content: center;
}

/* Homepage product sections: fixed grid instead of a slider (home_product_section.blade.php).
   Card equal-height / 2-line title rules come from .storefront-product-grid above. */
.storefront-home-grid.storefront-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;   /* >= 768px: 4 x 2 */
    gap: 24px !important;
    justify-content: start;
}
@media (max-width: 1199.98px) {
    .storefront-home-grid.storefront-product-grid {
        gap: 16px !important;
    }
}
@media (max-width: 767.98px) {
    .storefront-home-grid.storefront-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;  /* mobile: 2 x 4 */
        gap: 12px !important;
    }
}

/* "VIEW MORE" button centred under the slider (beats the global transparent-link rule in header.blade.php) */
.storefront-product-view-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}
.storefront-product-view-more-wrap .storefront-product-view-more {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 10px 30px !important;
    border: 1.5px solid #800080 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #800080 !important;
    -webkit-text-fill-color: #800080 !important;
    font: 500 14px/1.2 'Onest', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
}
.storefront-product-view-more-wrap .storefront-product-view-more:hover,
.storefront-product-view-more-wrap .storefront-product-view-more:focus-visible {
    background: #800080 !important;
    background-color: #800080 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(128, 0, 128, 0.3) !important;
}
@media (max-width: 767.98px) {
    .storefront-product-view-more-wrap { margin-top: 16px; }
    .storefront-product-view-more-wrap .storefront-product-view-more {
        padding: 9px 24px !important;
        font-size: 12px !important;
    }
}

/* =====================================================================
   HOME: extra space between the hero slider and the "ALL CATEGORIES" section
   The section already has an inline padding-top: 18px !important (includes/home.blade.php);
   this adds margin on top of it. The hero has no bottom margin, so nothing collapses it away.
   Total gap = 18px + --hero-gap  (desktop 38px, mobile 30px)
   ===================================================================== */
.top-category-strip {
    --hero-gap: 20px;
    margin-top: var(--hero-gap) !important;
}
@media (max-width: 767.98px) {
    .top-category-strip { --hero-gap: 12px; }
}
