﻿/*
     * Boot scroll lock: theme CSS often sets html { scroll-behavior: smooth }.
     * During first paint / preloader reveal / focus restoration that smooths the
     * viewport to a footer control (e.g. footer search). Keep auto until ready.
     */
    html.sf-boot {
        scroll-behavior: auto !important;
    }
    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto !important;
        }
    }

    /* Base styles */
    body {
        margin: 0;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        min-height: 100vh;
        background: linear-gradient(135deg, rgba(var(--theme-secondary-rgb), 0.05), #fcfcfc 45%, rgba(var(--theme-primary-rgb), 0.05));
        position: relative;
        overflow-x: hidden;
    }

    /* Readable text on theme primary / accent fills (beats inherited link colors) */
    a.btn-track-modern,
    .btn-track-modern,
    a.oc-btn-primary,
    .oc-btn-primary,
    a.btn-modern.btn-track-modern {
        color: var(--on-primary, #fff) !important;
    }
    a.btn-track-modern i,
    .btn-track-modern i,
    a.oc-btn-primary i,
    .oc-btn-primary i {
        color: inherit !important;
    }

    /* Disabled fixed blurred orbs: they repaint during scroll and cause visible jank on product-heavy pages. */
    body::before,
    body::after {
        content: none;
        display: none;
    }

    @keyframes floatOrb1 {
        0% {
            transform: translate(0, 0) scale(1);
        }

        33% {
            transform: translate(40px, 30px) scale(1.08);
        }

        66% {
            transform: translate(20px, 60px) scale(0.95);
        }

        100% {
            transform: translate(60px, 20px) scale(1.05);
        }
    }

    @keyframes floatOrb2 {
        0% {
            transform: translate(0, 0) scale(1);
        }

        33% {
            transform: translate(-30px, -40px) scale(1.06);
        }

        66% {
            transform: translate(-55px, -20px) scale(0.97);
        }

        100% {
            transform: translate(-20px, -50px) scale(1.04);
        }
    }

    @keyframes gradientBG {
        0% {
            background-position: 0% 50%;
        }

        50% {
            background-position: 100% 50%;
        }

        100% {
            background-position: 0% 50%;
        }
    }

    /* Modern Product Card Design */
    .row--tight {
        margin-left: -8px !important;
        margin-right: -8px !important;
    }

    /* Fix: use descendant selector (not >) because wire:key uses display:contents wrapper */
    .row--tight div[class*="col-"] {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    /* Tight outer gutter for the product grid row itself */
    .row--tight {
        margin-left: -4px !important;
        margin-right: -4px !important;
    }

    /* Also override Bootstrap's global .row margin inside the shop product collection */
    .shop-p__collection > .row {
        margin-left: -4px !important;
        margin-right: -4px !important;
    }

    .shop-p__collection > .row div[class*="col-"] {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .modern-product-card {
        background: #ffffff;
        border-radius: 8px;
        border: 1px solid rgba(0, 0, 0, 0.04);
        overflow: hidden;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
        position: relative;
        height: 100%;
        display: flex;
        flex-direction: column;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
        content-visibility: auto;
        contain-intrinsic-size: 360px 520px;
    }

    /* Daytrail rail/grid cards must size to content — global intrinsic size creates huge gaps */
    html[data-theme="daytrail"] .modern-product-card,
    html[data-theme="daytrail"] .modern-product-card--dt {
        height: auto;
        min-height: 0;
        content-visibility: visible;
        contain-intrinsic-size: none;
        contain: none;
    }

    /* Crimson Organica LO cards — same intrinsic-size reset */
    html[data-theme="crimson_organica"] .modern-product-card,
    html[data-theme="crimson_organica"] .modern-product-card--mb,
    html[data-theme="crimson_organica"] .mb-pcard--lo {
        height: auto;
        min-height: 0;
        content-visibility: visible;
        contain-intrinsic-size: none;
        contain: none;
    }

    /* Khaati / GB-style cards — intrinsic 520px placeholder stretched rails */
    html[data-theme="khaati"] .modern-product-card,
    html[data-theme="khaati"] .modern-product-card--mb,
    html[data-theme="khaati"] .mb-pcard {
        height: auto;
        min-height: 0;
        content-visibility: visible;
        contain-intrinsic-size: none;
        contain: none;
    }

    /* Senorita — portrait fashion cards; no lift/intrinsic jump on hover */
    html[data-theme="senorita"] .modern-product-card,
    html[data-theme="senorita"] .sn-pcard,
    html[data-theme="senorita"] .pcard {
        height: auto;
        min-height: 0;
        content-visibility: visible;
        contain-intrinsic-size: none;
        contain: none;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
        transform: none;
        transition: none;
    }

    .modern-product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
        border-color: rgba(var(--theme-primary-rgb), 0.1);
    }

    html[data-theme="senorita"] .modern-product-card:hover,
    html[data-theme="senorita"] .sn-pcard:hover,
    html[data-theme="senorita"] .pcard:hover {
        transform: none !important;
        box-shadow: none !important;
        border-color: transparent !important;
        margin-top: 0 !important;
    }

    .modern-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 10;
        background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 1), rgba(var(--theme-primary-rgb), 0.8));
        color: white;
        padding: 4px 12px;
        border-radius: 50px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 10px rgba(var(--theme-primary-rgb), 0.3);
    }

    .modern-card__image-container {
        position: relative;
        z-index: 1;
        overflow: hidden;
    }

    .modern-card__image-wrap {
        position: relative;
        background-color: #f8f9fa;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 50px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px 8px 0 0;
        aspect-ratio: 3/4;
        /* Fixed height before image loads */
        width: 100%;
    }

    .modern-card__img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        /* Show full image without cropping */
        background: #fff;
        /* White background for padding areas */
        display: block;
        transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
        border-radius: 0 !important;
    }

    .modern-product-card:hover .modern-card__img {
        transform: scale(1.08);
    }

    .modern-card__actions {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 12px;
        background: linear-gradient(to top, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.6));
        transition: opacity 0.18s ease, transform 0.18s ease;
        opacity: 0;
        transform: translateY(100%);
        pointer-events: none;
        z-index: 10;
    }

    .modern-product-card:hover .modern-card__actions {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Force theme elements to be visible */
    .modern-card__actions .product-o__action-wrap {
        position: relative !important;
        top: 0 !important;
        opacity: 1 !important;
        transform: none !important;
        background: transparent !important;
        padding: 0 !important;
        display: block !important;
    }

    .modern-card__actions .product-o__action-list {
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        opacity: 1 !important;
        transform: none !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .modern-card__actions .product-o__action-list>li {
        opacity: 1 !important;
        transform: none !important;
        margin: 0 !important;
    }

    .modern-card__actions .product-o__action-list li a {
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #fff !important;
        border-radius: 50% !important;
        color: #333 !important;
        transition: all 0.25s ease !important;
        font-size: 14px !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    }

    .modern-card__actions .product-o__action-list li a:hover {
        background: rgba(var(--theme-primary-rgb), 1) !important;
        color: #fff !important;
        transform: scale(1.1) !important;
        box-shadow: 0 4px 10px rgba(var(--theme-primary-rgb), 0.3) !important;
    }

    .modern-price-stack {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.2;
    }

@if($storefrontTheme->isClassic())
    .modern-price-final {
        font-size: 18px;
        font-weight: 800;
        color: rgba(var(--theme-primary-rgb), 1);
        letter-spacing: -0.5px;
    }

    .modern-price-original {
        font-size: 12px;
        color: #999;
        text-decoration: line-through;
        margin-top: 2px;
        font-weight: 500;
    }

    @media (max-width: 576px) {
        .modern-price-final {
            font-size: 16px;
        }

        .modern-price-original {
            font-size: 11px;
        }
    }
@endif

    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.001ms !important;
            animation-iteration-count: 1 !important;
            scroll-behavior: auto !important;
            transition-duration: 0.001ms !important;
        }
    }

    .modern-card__content {
        padding: 18px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

@if($storefrontTheme->isClassic())
    .modern-card__title a {
        color: #333;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .modern-card__title a:hover {
        color: var(--secondary-theme-color) !important;
    }

    .modern-card__title {
        font-size: 17px;
        font-weight: 600;
        margin: 0;
        line-height: 1.4;
        height: 2.8em; /* 2 lines * 1.4 line-height */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
@endif

    .modern-card__rating {
        display: flex;
        align-items: center;
        margin-top: -2px;
        margin-bottom: 2px;
    }

    .modern-card__rating .gl-rating-style i {
        font-size: 13px;
        color: #ff9500;
        margin-right: 2px;
    }

    .modern-card__price-row {
        margin-top: 4px;
        flex-grow: 0;
    }

@if($storefrontTheme->isClassic())
    .product-name-link {
        color: #2d2d2d !important;
        text-decoration: none;
        transition: color 0.2s;
    }

    .modern-product-card:hover .product-name-link {
        color: rgba(var(--theme-primary-rgb), 1) !important;
    }
@endif

    .modern-card__price-row {
        margin-top: auto;
        padding-top: 5px;
    }

    .modern-card__footer {
        margin-top: 12px;
    }

    .modern-card__footer .btn {
        width: 100%;
        border-radius: 8px !important;
        padding: 10px;
        font-weight: 600;
        font-size: 13px;
        transition: all 0.3s;
    }

@if($storefrontTheme->isClassic())
    .modern-product-card--slider {
        margin: 15px 8px;
        /* Margin to avoid shadow clipping in owl-carousel */
    }
@endif

    /* Modern Filter Sidebar */
    .shop-w-master {
        background: #ffffff;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .shop-w-master__heading {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #1a1a1a;
        margin-bottom: 25px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 15px;
        border-bottom: 1px dashed #eee;
    }

    .shop-w-master__heading a {
        font-size: 12px !important;
        font-weight: 600;
        color: #ef4444 !important;
        background: rgba(239, 68, 68, 0.08);
        padding: 4px 10px;
        border-radius: 6px;
        transition: all 0.2s;
    }

    .shop-w-master__heading a:hover {
        background: #ef4444;
        color: white !important;
    }

    .shop-w-master__sidebar {
        position: relative;
    }

    @media (min-width: 992px) {
        .shop-w-master__sidebar {
            position: sticky !important;
            top: 140px;
            /* Increased to account for site header */
            max-height: calc(100vh - 120px);
            overflow-y: auto;
            padding-right: 8px;
            z-index: 50;
        }

        .shop-w-master__sidebar::-webkit-scrollbar {
            width: 14px;
        }

        .shop-w-master__sidebar::-webkit-scrollbar-track {
            background: transparent;
        }

        .shop-w-master__sidebar::-webkit-scrollbar-thumb {
            background: rgba(var(--theme-primary-rgb), 0.15);
            border-radius: 10px;
            transition: background 0.3s;
        }

        .shop-w-master__sidebar:hover::-webkit-scrollbar-thumb {
            background: rgba(var(--theme-primary-rgb), 0.5);
        }
    }

    .modern-filter-widget {
        margin-bottom: 20px;
        border-bottom: 1px solid #f8f9fa;
        padding-bottom: 15px;
    }

    .modern-filter-widget:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .filter-widget__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 8px 0;
        transition: all 0.2s;
    }

    .filter-widget__title-group {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .filter-widget__icon {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(var(--theme-primary-rgb), 0.08);
        color: rgba(var(--theme-primary-rgb), 1);
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.3s;
    }

    .modern-filter-widget:hover .filter-widget__icon {
        background: rgba(var(--theme-primary-rgb), 1);
        color: #fff;
        transform: scale(1.05);
    }

    .filter-widget__title {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .filter-widget__toggle {
        font-size: 12px;
        color: #999;
        transition: transform 0.3s;
    }

    .filter-widget__header.is-collapsed .filter-widget__toggle {
        transform: rotate(-90deg);
    }

    .filter-widget__content {
        padding-top: 10px;
    }

    /* Custom Checkbox Styles */
    .modern-checkbox-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .modern-checkbox-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 0;
        cursor: pointer;
        transition: all 0.2s;
    }

    .modern-checkbox-item:hover {
        padding-left: 5px;
    }

    .modern-checkbox-group {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        flex-grow: 1;
    }

    .modern-checkbox {
        width: 18px;
        height: 18px;
        border: 2px solid #ddd;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        background: #fff;
        flex-shrink: 0;
    }

    input[type="checkbox"]:checked+.modern-checkbox-group .modern-checkbox {
        background: rgba(var(--theme-primary-rgb), 1);
        border-color: rgba(var(--theme-primary-rgb), 1);
    }

    .modern-checkbox::after {
        content: '\f00c';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 10px;
        color: #fff;
        display: none;
    }

    input[type="checkbox"]:checked+.modern-checkbox-group .modern-checkbox::after {
        display: block;
    }

    .filter-item__label {
        font-size: 13.5px;
        color: #555;
        font-weight: 500;
    }

    .filter-item__count {
        font-size: 11px;
        font-weight: 600;
        color: #999;
        background: #f0f2f5;
        padding: 2px 8px;
        border-radius: 10px;
        min-width: 25px;
        text-align: center;
    }

    .modern-checkbox-item:hover .filter-item__label {
        color: rgba(var(--theme-primary-rgb), 1);
    }

    /* Price Inputs */
    .modern-price-range {
        display: flex;
        gap: 8px;
        align-items: center;
        margin-top: 5px;
    }

    .modern-price-input {
        width: 100%;
        height: 36px;
        border: 1px solid #eee !important;
        border-radius: 6px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
        background: #fcfcfc !important;
        transition: all 0.2s;
    }

    .modern-price-input:focus {
        border-color: rgba(var(--theme-primary-rgb), 0.5) !important;
        background: #fff !important;
        box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.1) !important;
    }

    .apply-btn {
        background: rgba(var(--theme-primary-rgb), 1);
        color: white;
        border: none;
        padding: 8px 15px;
        border-radius: 6px;
        font-weight: 600;
        font-size: 13px;
        cursor: pointer;
        width: 100%;
        margin-top: 10px;
        transition: all 0.2s;
    }

    .apply-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(var(--theme-primary-rgb), 0.3);
        opacity: 0.95;
    }

    /* Rating Filter */
    .modern-rating-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .rating-stars {
        color: #ffb400;
        font-size: 12px;
        gap: 2px;
        display: flex;
    }

    /* Dual Range Slider Styles */
    .range-input {
        position: relative;
    }

    .range-input--slider {
        position: absolute;
        width: 100%;
        top: -5px;
        background: none;
        pointer-events: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .range-input--slider::-webkit-slider-thumb {
        height: 18px;
        width: 18px;
        border-radius: 50%;
        background: #fff;
        border: 2px solid rgba(var(--theme-primary-rgb), 1);
        pointer-events: auto;
        -webkit-appearance: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        z-index: 2;
        position: relative;
    }

    .range-input--slider::-moz-range-thumb {
        height: 18px;
        width: 18px;
        border-radius: 50%;
        background: #fff;
        border: 2px solid rgba(var(--theme-primary-rgb), 1);
        pointer-events: auto;
        -moz-appearance: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        z-index: 2;
        position: relative;
    }

    /* Hide the second input's track */
    .range-input--slider:last-child {
        background: none;
    }

    /* Shop Grid Adjustments */
    @media (min-width: 992px) {
        .col-lg-3.col-md-4.col-sm-6 {
            flex: 0 0 25%;
            max-width: 25%;
        }
    }

    /* Premium Centered Circular Pagination */
    .u-s-p-y-60 nav {
        display: flex !important;
        justify-content: center !important;
        width: 100%;
    }

    .pagination {
        display: flex !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 8px !important;
        border: none !important;
    }

    .page-item {
        border: none !important;
        background: none !important;
    }

    .page-link {
        color: #333 !important;
        background-color: #fff !important;
        border-radius: 50% !important;
        margin: 0 !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 600 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border: 1px solid #efefef !important;
        font-size: 14px !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
        overflow: hidden !important;
        /* Hide overflowing text */
        position: relative !important;
    }

    /* Hide 'Previous' and 'Next' text, keep only symbols */
    .page-item:first-child .page-link,
    .page-item:last-child .page-link {
        font-size: 0 !important;
        /* Force hide text */
        line-height: 0 !important;
        color: transparent !important;
        text-indent: -9999px !important;
    }

    .page-item:first-child .page-link::before,
    .page-item:last-child .page-link::before {
        font-size: 20px !important;
        /* Set arrow size here */
        text-indent: 0 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        line-height: 1 !important;
        visibility: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .page-item:first-child .page-link::before {
        content: '‹';
        color: #333 !important;
    }

    .page-item:last-child .page-link::before {
        content: '›';
        color: #333 !important;
    }

    .page-item.disabled:first-child .page-link::before,
    .page-item.disabled:last-child .page-link::before {
        color: #ccc !important;
    }

    .page-link:hover {
        background-color: #f8f8f8 !important;
        color: rgba(var(--theme-primary-rgb), 1) !important;
        border-color: rgba(var(--theme-primary-rgb), 0.3) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08) !important;
    }

    /* Premium Centered Circular Pagination */
    .u-s-p-y-60 nav {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .pagination {
        display: flex !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 8px !important;
        border: none !important;
    }

    .page-item {
        border: none !important;
        background: none !important;
        display: block !important;
    }

    .page-link,
    .page-item span {
        color: #333 !important;
        background-color: #fff !important;
        border-radius: 50% !important;
        margin: 0 !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 600 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border: 1px solid #efefef !important;
        font-size: 14px !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
        overflow: hidden !important;
        position: relative !important;
        text-indent: 0 !important;
        line-height: 1 !important;
    }

    /* Hide 'Previous' and 'Next' text ONLY for first/last items */
    .page-item:first-child .page-link,
    .page-item:first-child span,
    .page-item:last-child .page-link,
    .page-item:last-child span {
        font-size: 0 !important;
        color: transparent !important;
        text-indent: -9999px !important;
    }

    /* Arrow Symbols for First/Last */
    .page-item:first-child .page-link::before,
    .page-item:first-child span::before,
    .page-item:last-child .page-link::before,
    .page-item:last-child span::before {
        font-size: 20px !important;
        text-indent: 0 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        line-height: 1 !important;
        visibility: visible !important;
        display: flex !important;
        color: #333 !important;
    }

    .page-item:first-child .page-link::before,
    .page-item:first-child span::before {
        content: '‹' !important;
    }

    .page-item:last-child .page-link::before,
    .page-item:last-child span::before {
        content: '›' !important;
    }

    /* Active State (usually a span in Bootstrap) */
    .page-item.active .page-link,
    .page-item.active span {
        background-color: rgba(var(--theme-primary-rgb), 1) !important;
        border-color: rgba(var(--theme-primary-rgb), 1) !important;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), 0.3) !important;
        transform: scale(1.05);
        font-size: 14px !important;
        text-indent: 0 !important;
    }

    /* Disabled State */
    .page-item.disabled .page-link,
    .page-item.disabled span {
        color: #ccc !important;
        background-color: #fafafa !important;
        border-color: #f0f0f0 !important;
        cursor: not-allowed !important;
    }

    .page-item.active .page-link {
        background-color: rgba(var(--theme-primary-rgb), 1) !important;
        border-color: rgba(var(--theme-primary-rgb), 1) !important;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), 0.3) !important;
        transform: scale(1.05);
    }

    /* Modern Product List Card Styles */
    .modern-product-card--list {
        display: flex;
        flex-direction: row;
        width: 100%;
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid #f0f0f0;
        transition: all 0.3s ease;
        position: relative;
        margin-bottom: 20px;
    }

    .modern-product-card--list:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
        border-color: rgba(var(--theme-primary-rgb), 0.15);
    }

    .modern-card--list__left {
        width: 300px;
        min-width: 300px;
        background: #fcfcfc;
        display: flex;
        flex-direction: column;
        border-right: 1px solid #f5f5f5;
        position: relative;
        overflow: hidden;
    }

    .modern-card--list__right {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .modern-product-card--list .modern-card__image-container {
        width: 100%;
        height: 100%;
        margin-bottom: 0;
        position: relative;
    }

    .modern-product-card--list .modern-card__image-wrap {
        height: 100%;
        width: 100%;
        padding-top: 0;
        aspect-ratio: auto;
        /* Override grid aspect ratio */
    }

    .modern-product-card--list .modern-card__img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #fff;
        transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .modern-product-card--list:hover .has-description .modern-card__img {
        opacity: 0.15;
        transform: scale(1.05);
    }

    .modern-card__description-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 20px;
        background: rgba(255, 255, 255, 0.92);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 5;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .modern-product-card--list:hover .modern-card__description-overlay {
        opacity: 1;
        visibility: visible;
    }

    .modern-card__description--scrollable {
        font-size: 13.5px;
        color: #444;
        line-height: 1.6;
        max-height: 100%;
        overflow-y: auto;
        padding-right: 10px;
    }

    .modern-card__description--scrollable::-webkit-scrollbar {
        width: 4px;
    }

    .modern-card__description--scrollable::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .modern-card__description--scrollable::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 10px;
    }

    .modern-product-card--list .modern-card__content {
        padding: 15px;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .modern-product-card--list .modern-card__title {
        font-size: 26px;
        margin-bottom: 4px;
        font-weight: 700;
        line-height: 1.1;
    }

    .modern-product-card--list .modern-card__rating {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 10px;
    }

    .modern-product-card--list .modern-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 5;
        right: auto;
        width: fit-content;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    /* Modern Loader Spinner */
    .modern-loader {
        width: 48px;
        height: 48px;
        border: 4px solid rgba(var(--theme-primary-rgb), 0.1);
        border-bottom-color: rgba(var(--theme-primary-rgb), 1);
        border-radius: 50%;
        display: inline-block;
        box-sizing: border-box;
        animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .opacity-50 {
        opacity: 0.5;
        transition: opacity 0.3s ease;
    }

    /* Modern Footer Styling */
    .modern-footer {
        background: var(--primary-color);
        color: #e0e0e0;
        padding: 70px 0 30px;
        font-family: 'Poppins', sans-serif;
    }

    .modern-footer a {
        transition: all 0.3s ease;
        text-decoration: none !important;
    }

    .footer-col-title {
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        margin: 45px 0 15px 0;
        position: relative;
        padding-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-col-title::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 30px;
        height: 2px;
        background: rgba(var(--theme-secondary-rgb), 1);
    }

    .footer-links-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-links-list li {
        margin-bottom: 12px;
    }

    .footer-link {
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .footer-link:hover {
        color: var(--secondary-light) !important;
        transform: translateX(5px);
    }

    .footer-about-text {
        font-size: 13px;
        line-height: 1.8;
        margin-bottom: 25px;
        color: rgba(255, 255, 255, 0.6);
    }

    .footer-social-wrap {
        display: flex;
        gap: 10px;
    }

    .social-btn {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        font-size: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .social-btn svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

    .social-btn:hover {
        transform: translateY(-3px);
        color: #fff !important;
    }

    .social-facebook:hover {
        background: #1877F2 !important;
        border-color: #1877F2 !important;
    }

    .social-twitter:hover {
        background: #1DA1F2 !important;
        border-color: #1DA1F2 !important;
    }

    .social-instagram:hover {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
        border-color: transparent !important;
    }

    .social-tiktok:hover {
        background: #010101 !important;
        border-color: #010101 !important;
    }

    .social-youtube:hover {
        background: #FF0000 !important;
        border-color: #FF0000 !important;
    }

    .footer-contact-item {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .contact-circle {
        /* width: 32px; */
        height: 32px;
        border-radius: 50%;
        background: rgba(var(--theme-secondary-rgb), 0.15);
        color: #f0f0f0ff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        transition: all 0.3s ease;
    }

    .footer-contact-item:hover .contact-circle {
        background: rgba(var(--theme-secondary-rgb), 1);
    }

    .contact-text {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.8);
    }

    .footer-bottom-bar {
        margin-top: 10px;
        padding-top: 25px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .copyright-text {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.4);
    }

    .payment-methods-img {
        max-height: 40px;
        opacity: 0.7;
        transition: all 0.3s;
    }

    .payment-methods-img:hover {
        opacity: 1;
    }




    @media (max-width: 768px) {
        /* Pull the shop container to edges so cards fill the screen */
        .shop-p .container {
            padding-left: 6px !important;
            padding-right: 6px !important;
        }

        /* Tighten row gutters on mobile for both shop and categories (no > because of display:contents wrapper) */
        .row--tight div[class*="col-"],
        .shop-p__collection .row div[class*="col-"] {
            padding-left: 4px !important;
            padding-right: 4px !important;
            margin-bottom: 8px !important;
        }

        .row--tight,
        .shop-p__collection .row {
            margin-left: -4px !important;
            margin-right: -4px !important;
        }

        /* Tighten card inner padding on mobile */
        .modern-card__content {
            padding: 10px 10px 12px;
            gap: 6px;
        }

        .modern-footer {
            text-align: center;
        }

        .footer-col-title::after {
            left: 50%;
            transform: translateX(-50%);
        }

        .footer-social-wrap {
            justify-content: center;
        }

        .footer-link {
            justify-content: center;
            width: 100%;
        }

        .footer-contact-item {
            justify-content: center;
        }

        .footer-bottom-bar {
            justify-content: center;
            text-align: center;
        }

        .footer-bottom-links {
            justify-content: center;
        }

        .newsletter-info-wrap {
            align-items: center;
            text-align: center;
            display: flex;
            flex-direction: column;
        }

        .newsletter-footer__content {
            display: flex !important;
            flex-direction: column;
            align-items: center;
            text-align: center;
            width: 100%;
        }

        .footer-contact-info {
            display: flex !important;
            flex-direction: column;
            align-items: center;
            width: 100%;
        }

@if($storefrontTheme->isClassic())
        .modern-card__title {
            font-size: 14px; /* Smaller font on mobile */
        }
@endif
    }

    /* Toolbar Toggle Styles */
    .js-shop-grid-target:hover,
    .js-shop-list-target:hover {
        background: rgba(var(--theme-primary-rgb), 0.05);
        border-color: rgba(var(--theme-primary-rgb), 1) !important;
        color: rgba(var(--theme-primary-rgb), 1) !important;
    }

    /* Homepage Product Slider Gap Optimization */
    .product-slider.owl-carousel .owl-item {
        padding: 0 4px !important;
    }

    .product-slider.owl-carousel .owl-stage {
        margin: 0 -4px !important;
    }

    @media (max-width: 576px) {
        .product-slider.owl-carousel .owl-item {
            padding: 0 2px !important;
        }

        .product-slider.owl-carousel .owl-stage {
            margin: 0 -2px !important;
        }
    }

    .js-shop-grid-target.is-active {
        background: rgba(var(--theme-primary-rgb), 1) !important;
        color: #fff !important;
    }