.variant-row {
    display: none !important; /* Force hide by default */
    transition: background-color 0.3s ease, all 0.3s ease-in-out;
}

.variant-row:hover {
    background-color: #f0f0f0;
}

/* Add transition for smooth toggling */
.variant-row.showing {
    display: table-row;
    animation: fadeIn 0.2s ease-in-out;
}

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

#slide-cart {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 400px;
    max-width: 80%;
    background: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 99999 !important;
}

#slide-cart.active {
    transform: translateX(0);
}

#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

#cart-overlay.active {
    display: block;
}

.cart-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.added-to-cart {
    background-color: #f8f8f8 !important;
    border: 1px solid #000 !important;
    color: #000 !important;
}

.added-to-cart:hover {
    background-color: #000 !important;
    color: #fff !important;
}

.added-to-cart span.text-green-500 {
    font-size: 14px;
    margin-top: 2px;
}

.added-status {
    font-size: 14px;
    background-color: #22c55e;
}

.add-to-cart + .added-status {
    margin-top: 0.5rem;
}

.toggle-variants {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: inline-block;
}

/* Ensure the button is visible and clickable on mobile */
@media (max-width: 768px) {
    .toggle-variants {
        display: inline-block;
        cursor: pointer;
    }
}

.toggle-variants:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.toggle-variants:hover:after {
    opacity: 1;
}

/* Prevent layout shifts during animation */
#product-table {
    width: 100%;
    table-layout: fixed;
    font-size: 16px;
}

#product-table th {
    font-size: 16px;
}

#product-table td {
    font-size: 16px;
}

/* Pagination styles */
.pagination-wrapper {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pagination.style--1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pagination-page-item {
    font-size: 16px;
    color: #4B5563;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.pagination-page-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.pagination-total-progress {
    height: 4px;
    background-color: #E5E7EB;
    width: 100%;
    max-width: 200px;
    border-radius: 2px;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.pagination-total-item {
    position: absolute;
    height: 100%;
    background-color: #006DB5 !important;
    left: 0;
    top: 0;
    transition: width 0.3s ease;
}

.pagination-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 200px;
}

/* Show more button styling */
.show-more-button {
    background-color: #006DB5 !important;
    color: white !important;
    padding: 12px 0; /* Adjust padding to account for button-content padding */
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    width: 100%;
    max-width: 200px;
    border: 1px solid #006DB5 !important;
    position: relative;
}

.show-more-button:hover {
    background-color: white !important;
    color: #006DB5 !important;
    border-color: #006DB5 !important;
}

.button-content {
    display: flex;
    align-items: center; /* This ensures vertical centering */
    justify-content: center;
    gap: 10px;
    padding: 0 15px;
    min-height: 100%; /* This ensures full height */
}

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #006DB5 !important;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
    margin: auto 0; /* This helps with vertical centering */
}

.loading .loader {
    display: inline-block;
}

/* Filter button styles */
.alphabet-filter {
    padding: 0.6rem 1rem;
    border: 2px solid #eef0f2;
    border-radius: 8px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 42px;
    text-align: center;
    color: #1e293b;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.alphabet-filter:hover {
    background-color: #f8fafc;
    border-color: #006DB5 !important;
    color: #006DB5 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.alphabet-filter.active {
    background-color: #006DB5 !important;
    color: white !important;
    border-color: #006DB5 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#product-search {
    padding: 1rem 1.5rem;
    border: 2px solid #eef0f2;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    color: #1e293b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#product-search:hover {
    background-color: #fff;
    border-color: #e2e8f0;
}

#product-search:focus {
    outline: none;
    border-color: #232323;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(35, 35, 35, 0.1);
}

#product-search::placeholder {
    color: #94a3b8;
    font-size: 0.95rem;
}

#product-search {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    width: 100%;
    max-width: 80%;
}

#product-search:focus {
    outline: none;
    border-color: #232323;
}

/* Mobile Card Layout */
@media (max-width: 767px) {
    .overflow-x-auto {
        overflow-x: hidden;
        width: 100%;
        padding: 0 !important;
    }

    table, thead, tbody, tr, th, td {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 0.5rem;
        background: white;
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        border: 1px solid #e5e7eb;
        position: relative;
        padding: 10px;
    }

    td {
        border: none !important;
        padding: 0.5rem !important;
    }

    /* Image column */
    tr > td:first-child {
        width: 40% !important;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
    }

    tr > td:first-child img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Content wrapper */
    tr > td:nth-child(2),
    tr > td:nth-child(3),
    tr > td:nth-child(5) {
        width: 60% !important;
        margin-left: 40%;
    }

    /* Product name column */
    tr > td:nth-child(2) {
        padding-bottom: 0.25rem !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    /* Price and button container */
    tr > td:nth-child(3),
    tr > td:nth-child(5) {
        display: inline-flex;
        align-items: center;
        padding-top: 0 !important;
    }

    tr > td:nth-child(3) {
        width: auto !important;
        font-size: 13px !important;
        float: left;
    }

    tr > td:nth-child(5) {
        float: right;
        text-align: right;
    }

    /* Clear float */
    tr > td:nth-child(5)::after {
        content: '';
        display: table;
        clear: both;
    }

    /* Hide quantity column on mobile */
    tr > td:nth-child(4) {
        display: none;
    }

    /* Adjust button width for mobile */
    .add-to-cart,
    .toggle-variants {
        width: auto !important;
        padding: 0.5rem 1rem !important;
        margin: 0 !important;
    }

    /* Variant rows adjustments */
    .variant-row {
        display: none !important; /* Reinforce hiding on mobile */
        margin: 8px 0;
        padding: 12px;
        flex-direction: column;
        align-items: center;
        width: 100%;
        border: 1px solid #e5e7eb;
        background: white;
    }

    .variant-row.show {
        display: flex !important; /* Only show when .show class is present */
    }

    /* Variant image */
    .variant-row td:first-child {
        width: 40% !important;
        padding: 0.5rem !important;
    }

    .variant-row td:first-child img {
        width: 100%;
        height: 100px;
        object-fit: cover;
    }

    /* Variant details */
    .variant-row td:nth-child(2) {
        width: 60% !important;
        padding: 0.5rem !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    /* Variant price */
    .variant-row td:nth-child(3) {
        width: auto !important;
        padding: 0.5rem !important;
        display: inline-flex;
        align-items: center;
        font-size: 13px !important;
    }

    /* Variant button */
    .variant-row td:nth-child(5) {
        flex: 1;
        padding: 0.5rem !important;
        display: inline-flex;
        justify-content: flex-end;
    }

    /* Hide quantity column for variants */
    .variant-row td:nth-child(4) {
        display: none;
    }

    /* Adjust variant spacing */
    .variant-row + .variant-row {
        border-top: 1px solid #e5e7eb;
    }

    /* Price alignment */
    td .flex.flex-row.items-center.justify-center {
        justify-content: flex-start;
    }

    /* Variant rows adjustments */
    .variant-row {
        margin-bottom: 0.5rem !important;
        background: white;
        display: none;
        width: 100%;
        border: 1px solid #e5e7eb !important;
        padding: 0 !important;
    }

    .variant-row.show {
        display: flex;
        flex-wrap: wrap;
    }

    /* Make variant layout match main product layout */
    .variant-row td {
        border: none !important;
        padding: 0.5rem !important;
    }

    /* Variant image */
    .variant-row td:first-child {
        width: 40% !important;
        height: 100% !important;
    }

    .variant-row td:first-child img {
        width: 100% !important;
        height: 120px !important;
        object-fit: cover;
    }

    /* Variant name/attributes */
    .variant-row td:nth-child(2) {
        width: 60% !important;
        padding: 0.5rem !important;
        font-size: 0.875rem;
        font-weight: 500;
    }

    /* Variant price */
    .variant-row td:nth-child(3) {
        width: auto !important;
        padding: 0.5rem !important;
        display: inline-flex;
        align-items: center;
    }

    /* Variant button */
    .variant-row td:nth-child(5) {
        flex: 1;
        padding: 0.5rem !important;
        display: inline-flex;
        justify-content: flex-end;
    }

    /* Price and button container for variants */
    .variant-row td:nth-child(3),
    .variant-row td:nth-child(5) {
        width: auto !important;
        padding-top: 0 !important;
    }

    /* Remove border between variants */
    .variant-row + .variant-row {
        border-top: none !important;
    }

    /* Add some spacing between main product and variants */
    .variant-row:first-of-type {
        margin-top: 0.5rem;
    }

    /* Update variant row container */
    .variant-row {
        margin: 0 0 0.5rem 0 !important;
        width: 100% !important;
        display: none;
        border: 1px solid #e5e7eb !important;
        padding: 0 !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Force full width on show */
    .variant-row.show {
        display: flex !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Ensure variant cells take proper width */
    .variant-row td {
        min-width: 0 !important;
        width: auto !important;
    }

    /* Maintain image column width */
    .variant-row td:first-child {
        width: 40% !important;
        flex: 0 0 40% !important;
    }

    /* Content column width */
    .variant-row td:nth-child(2) {
        width: 60% !important;
        flex: 0 0 60% !important;
    }

    /* Price and button row */
    .variant-row td:nth-child(3),
    .variant-row td:nth-child(5) {
        width: auto !important;
        flex: 0 0 auto !important;
    }

    /* Fix table container */
    .overflow-x-auto {
        overflow-x: hidden;
        width: 100%;
        padding: 0 !important;
    }

    table {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    tbody {
        width: 100% !important;
        display: block !important;
    }

    /* Variant container fixes */
    .variant-row {
        width: 100% !important;
        margin: 0 0 0.5rem 0 !important;
        display: none;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        border: 1px solid #e5e7eb !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        transform: none !important;
        left: 0 !important;
    }

    .variant-row.show {
        display: flex !important;
        position: relative !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
    }

    /* Content layout fixes */
    .variant-row td:first-child {
        flex: 0 0 40% !important;
        max-width: 40% !important;
    }

    .variant-row td:nth-child(2) {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .variant-row td:nth-child(3),
    .variant-row td:nth-child(5) {
        flex: 0 0 auto !important;
        position: relative !important;
        left: 40% !important;
    }

    /* Remove any transforms or absolute positioning */
    .variant-row,
    .variant-row.show,
    .variant-row td {
        position: relative !important;
        transform: none !important;
    }

    /* Update button styles for mobile */
    .add-to-cart,
    .toggle-variants {
        width: auto !important;
        padding: 0.5rem 0.75rem !important;
        margin: 0 !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    /* Ensure variant buttons match main product buttons */
    .variant-row .add-to-cart {
        font-size: 11px !important;
        line-height: 1.2 !important;
        padding: 0.5rem 0.75rem !important;
    }

    /* New Variation Card Layout */
    .variant-row {
        margin: 0 0 0.5rem 0 !important;
        padding: 0.75rem !important;
        display: none;
        width: 100% !important;
        border: 1px solid #e5e7eb !important;
        background: white !important;
        text-align: left;
    }

    .variant-row.show {
        display: block !important;
    }

    /* Hide table structure */
    .variant-row td {
        display: inline-block !important;
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
    }

    /* Hide image column on variants */
    .variant-row td:first-child {
        display: none !important;
    }

    /* Variant title */
    .variant-row td:nth-child(2) {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
        font-weight: 500 !important;
    }

    /* Price and button container */
    .variant-row td:nth-child(3),
    .variant-row td:nth-child(5) {
        width: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 !important;
        position: static !important;
        left: 0 !important;
    }

    /* Price column */
    .variant-row td:nth-child(3) {
        font-size: 12px !important;
        margin-right: auto !important;
    }

    /* Quantity input */
    .variant-row td:nth-child(4) {
        display: inline-block !important;
        width: auto !important;
        margin-right: 8px !important;
    }

    .variant-row td:nth-child(4) input {
        width: 60px !important;
        height: 32px !important;
        font-size: 12px !important;
    }

    /* Action buttons */
    .variant-row .add-to-cart {
        padding: 0.375rem 0.75rem !important;
        font-size: 11px !important;
        height: 32px !important;
    }

    /* Flex container for bottom row */
    .variant-row {
        display: none;
        flex-direction: column !important;
    }

    .variant-row.show {
        display: flex !important;
    }

    /* Bottom row layout */
    .variant-row td:nth-child(3),
    .variant-row td:nth-child(4),
    .variant-row td:nth-child(5) {
        margin-top: 8px !important;
    }

    .mb-6.flex.flex-col.md\:flex-row {
        padding: 1rem;
        margin: 1rem;
        gap: 1rem;
    }

    #product-search {
        max-width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .alphabet-filter {
        padding: 0.5rem;
        min-width: 36px;
        font-size: 0.875rem;
    }

    .flex.flex-wrap.gap-2.justify-center {
        gap: 0.375rem;
    }

    /* New Variant Layout Fixes */
    .variant-row {
        display: flex !important;
        flex-direction: column !important;
        padding: 12px !important;
    }

    .variant-row td {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding: 4px 0 !important;
    }

    /* Variant title */
    .variant-row td:nth-child(2) {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin: 8px 0 !important;
        font-weight: 500 !important;
        text-align: center !important;
    }

    /* Price styling */
    .variant-row td:nth-child(3) {
        justify-content: center !important;
        margin: 4px 0 !important;
    }

    /* Button container */
    .variant-row td:nth-child(5) {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 4px 0 !important;
    }

    /* Add to cart button */
    .variant-row .add-to-cart {
        margin: 0 auto !important;
        min-width: 120px !important;
    }

    /* Bottom row layout */
    .variant-row td:nth-child(3),
    .variant-row td:nth-child(4),
    .variant-row td:nth-child(5) {
        margin: 4px 0 !important;
        width: 100% !important;
    }

    /* Price and action row */
    .variant-row td:last-child {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
    }

    /* Simplified Mobile Variant Layout */
    .variant-row {
        margin: 8px 0 !important;
        padding: 12px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        border: 1px solid #e5e7eb !important;
        background: white !important;
        box-sizing: border-box !important;
    }

    .variant-row.show {
        display: flex !important;
    }

    /* Reset all TD styles first */
    .variant-row td {
        width: 100% !important;
        margin: 0 !important;
        padding: 4px 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        position: static !important;
        left: 0 !important;
        float: none !important;
    }

    /* Variant title */
    .variant-row td:nth-child(2) {
        width: 100% !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        margin: 0 0 8px 0 !important;
        font-weight: 500 !important;
    }

    /* Price styling */
    .variant-row td:nth-child(3) {
        width: 100% !important;
        font-size: 14px !important;
        margin: 4px 0 !important;
        justify-content: center !important;
    }

    /* Button container */
    .variant-row td:nth-child(5) {
        width: 100% !important;
        margin: 8px 0 4px 0 !important;
        justify-content: center !important;
    }

    /* Add to cart button */
    .variant-row .add-to-cart {
        margin: 0 !important;
        min-width: 120px !important;
        font-size: 12px !important;
    }

    /* Remove all absolute positioning and transforms */
    .variant-row,
    .variant-row td,
    .variant-row.show {
        position: relative !important;
        transform: none !important;
        left: auto !important;
    }

    /* Center flex items */
    .variant-row td .flex {
        justify-content: center !important;
        width: 100% !important;
    }
}

/* Modern Search and Filter Section */
.mb-6.flex.flex-col.md\:flex-row {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    border: 1px solid #f0f0f0;
}

/* Modern A-Z Filter Buttons */
.flex.flex-wrap.gap-2.justify-center {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.5rem;
}

/* Modern Search and Filter Section */
.search-filter-container {
    background: #ffffff;
    padding: 1.25rem;
    border: none;
    border-radius: 0;
    margin-bottom: 2rem;
    position: relative;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.search-filter-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    background: #ffffff;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #111827;
    transition: all 0.2s ease;
}

.search-input:hover {
    border-color: #d1d5db;
}

.search-input:focus {
    outline: none;
    border-color: #232323;
    box-shadow: 0 0 0 1px #232323;
}

.search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.dropdown-filter {
    width: 140px;
    flex-shrink: 0;
    position: relative;
    min-width: 140px;
}

.filter-btn {
    width: 100%;
    padding: .5rem 1.25rem;
    background: #ffffff;
    border: 2px solid #232323;
    color: #232323;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.filter-btn:hover {
    background: #f8fafc;
}

.filter-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    padding: 0.5rem;
}

.filter-dropdown.show {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
    animation: fadeIn 0.2s ease;
}

.filter-dropdown .alphabet-filter {
    padding: 0.5rem;
    border: none;
    background: none;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.filter-dropdown .alphabet-filter:hover {
    background: #f3f4f6;
    color: #111827;
}

.filter-dropdown .alphabet-filter.active {
    background: #006DB5 !important;
    color: white !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 840px) {
    .search-filter-container {
        margin: 0 1rem 2rem 1rem;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 640px) {
    .search-filter-container {
        padding: 1rem;
    }

    .search-filter-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .search-input {
        width: 100%;
        max-width: 100%;
        padding: 0.875rem 1rem;
    }

    .dropdown-filter {
        width: 100%;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
    }

    .filter-dropdown {
        width: 100%;
        position: absolute;
        left: 0;
        right: 0;
    }

    .filter-dropdown.show {
        grid-template-columns: repeat(5, 1fr);
    }
}

.alphabet-filter-container {
    background: #fff;
    border-radius: 0.375rem;
}

.alphabet-filter {
    min-width: 40px;
    text-align: center;
    background: white;
    border-color: #e5e7eb;
}

.alphabet-filter.active {
    background: #006DB5 !important;
    color: white !important;
    border-color: #006DB5 !important;
}

.alphabet-filter:hover:not(.active) {
    background: #f3f4f6;
}

.search-input:focus {
    outline: none;
    border-color: #232323;
    box-shadow: 0 0 0 1px #232323;
}

.search-filter-container {
    background: #ffffff;
    padding: 1.25rem;
    border: none;
    border-radius: 0;
    margin-bottom: 2rem;
    position: relative;
    max-width:100%;
    margin-left: auto;
    margin-right: auto;
}

.search-filter-wrapper {
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    background: #ffffff;
    position: relative;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #111827;
    transition: all 0.2s ease;
    margin: 0 auto;
    display: block;
}

/* Modern Search and Filter Section */
.search-filter-container {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 32px;
    position: relative;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.search-filter-wrapper {
    width: 100%;
    background: #ffffff;
    position: relative;
}

.search-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.search-input-wrapper {
    width: 100%;
    max-width: 80%;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    transition: all 0.2s ease;
}

.search-input:hover {
    border-color: #d1d5db;
}

.search-input:focus {
    outline: none;
    border-color: #232323;
    box-shadow: 0 0 0 1px #232323;
}

.search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.alphabet-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 8px;
}

.alphabet-filter {
    padding: 10px 10px;
    border: 2px solid #eef0f2;
    border-radius: 8px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 42px;
    text-align: center;
    color: #1e293b;
    font-size: 14px;
}

.alphabet-filter:hover {
    background-color: #f8fafc;
    border-color: #006DB5 !important;
    color: #006DB5 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.alphabet-filter.active {
    background-color: #006DB5 !important;
    color: white !important;
    border-color: #006DB5 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive Styles */
@media (max-width: 640px) {
    .search-filter-container {
        padding: 16px;
        margin: 0 16px 32px 16px;
    }

    .search-section {
        gap: 16px;
    }

    .search-input {
        padding: 14px 16px;
        font-size: 14px;
    }

    .alphabet-filter {
        padding: 8px;
        min-width: 36px;
        font-size: 14px;
    }

    .alphabet-filter-container {
        gap: 6px;
    }
}

/* Add loading state styles */
.loading {
    opacity: 1;
}

.loading::after {
    display: none;
}

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #006DB5 !important;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
    position: static; /* Remove absolute positioning */
    margin: auto 0; /* This helps with vertical centering */
}

.loading .loader {
    display: block;
}

.loading .button-text {
    visibility: visible; /* Keep text visible while loading */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading .loader {
    display: block;
}

.loading .show-more-button {
    display: none;
}

/* Base variant styles - should be outside media queries */
.variant-row {
    display: none !important;
}

.variant-row.show {
    display: table-row !important;
}

@media (max-width: 767px) {
    .variant-row.show {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 8px 0 !important;
    }

    /* Force hide variants when not showing */
    .variant-row:not(.show) {
        display: none !important;
    }
}

/* Button color updates */
.add-to-cart,
.toggle-variants,
.show-more-button {
    background-color: #006DB5 !important;
    color: white !important;
    border: 1px solid #006DB5 !important;
}

.add-to-cart:hover,
.toggle-variants:hover,
.show-more-button:hover {
    background-color: white !important;
    color: #006DB5 !important;
    border-color: #006DB5 !important;
}

/* Update active states */
.alphabet-filter.active {
    background-color: #006DB5 !important;
    border-color: #006DB5 !important;
    color: white !important;
}

/* Update hover states for filter buttons */
.alphabet-filter:hover {
    border-color: #006DB5 !important;
    color: #006DB5 !important;
}


#slide-cart h2{
    font-size: 16px !important;
}

#slide-cart h4{
    font-size: 14px !important;
}

/* Unified cart panel styling */
.qv-cart-panel {
    font-family: inherit;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.qv-cart-panel, .qv-cart-panel *:not(svg):not(path) {
    font-family: inherit !important;
}

.qv-cart-header {
    box-shadow: 0 1px 0 0 rgba(0,0,0,0.04);
}

.qv-cart-title {
    letter-spacing: .5px;
    text-transform: uppercase;
}

.qv-cart-items-wrapper::-webkit-scrollbar {
    width: 8px;
}
.qv-cart-items-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.qv-cart-items-wrapper::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
.qv-cart-items-wrapper::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.qv-cart-footer {
    box-shadow: 0 -1px 0 0 rgba(0,0,0,0.04);
}

/* Cart buttons consistent with table buttons */
.qv-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: 13px;
    font-weight: 600;
    padding: .75rem 1.25rem;
    border-radius: .5rem;
    transition: all .25s ease;
    text-decoration: none !important;
    line-height: 1.2;
    cursor: pointer;
    border: 1px solid transparent;
    letter-spacing: .25px;
}
.qv-cart-btn.primary {
    background: var(--qv-btn-color, #006DB5);
    color: #fff;
    border-color: var(--qv-btn-color, #006DB5);
}
.qv-cart-btn.primary:hover {
    background: var(--qv-btn-color, #006DB5);
    color: #ffffff;
    filter: brightness(1.05);
}
.qv-cart-btn.secondary {
    background: #ffffff;
    color: #111827;
    border-color: #e5e7eb;
}
.qv-cart-btn.secondary:hover {
    background: #f8fafc;
    border-color: #d1d5db;
}

/* Respect dynamic color variable if set */
/* Variable-aware state overrides (redundant but explicit) */
:root[style*='--qv-btn-color'] .qv-cart-btn.primary { background: var(--qv-btn-color) !important; border-color: var(--qv-btn-color) !important; }
:root[style*='--qv-btn-color'] .qv-cart-btn.primary:hover { background: var(--qv-btn-color) !important; color: #ffffff !important; filter: brightness(1.05); }


/* Progress bar color */
.pagination-total-item {
    background-color: #006DB5 !important;
}

/* Loading spinner color */
.loader {
    border-top-color: #006DB5 !important;
}

/* Filter dropdown active state */
.filter-dropdown .alphabet-filter.active {
    background-color: #006DB5 !important;
    color: white !important;
}

@media (max-width: 767px) {
    /* Mobile variant display override */
    .variant-row.show {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
}

/* Override hidden variants */
.variant-row {
    display: none !important;
}

.variant-row.showing {
    display: table-row !important;
}

@media (max-width: 767px) {
    .variant-row.showing {
        display: flex !important;
    }
}

/* Base variant styles */
.variant-row {
    display: none !important;
    transition: none !important; /* Disable transitions temporarily */
}

/* Quick view modal styles */
#qv-modal-root {
    display: none;
    align-items: center;
    justify-content: center;
}

#qv-modal-root.flex {
    display: flex;
}

#qv-modal-root .qv-quick-view {
    transform: translateY(-10px) scale(.985);
    transform-origin: center center;
    opacity: 0;
    will-change: transform, opacity;
    transition: transform 300ms cubic-bezier(.22,.9,.2,1), opacity 260ms ease;
    max-height: 90vh;
    overflow: auto;
}

#qv-modal-root.qv-visible .qv-quick-view {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#qv-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    transition: opacity 300ms ease;
}

#qv-modal-root.qv-visible #qv-modal-overlay {
    opacity: 1;
}

.qv-close-top {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e5e7eb;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.qv-close-top {
    cursor: pointer;
    z-index: 60;
}

.qv-close-top svg {
    pointer-events: none; /* Let the button capture clicks consistently */
}

.qv-toast {
    animation: qv-toast-in 200ms ease;
}

@keyframes qv-toast-in {
    from { transform: translateY(-6px); opacity: 0 }
    to { transform: translateY(0); opacity: 1 }
}

/* Quick view select invalid state and disabled add button */
.qv-invalid-select {
    border-color: #dc2626 !important; /* red-600 */
    box-shadow: 0 0 0 3px rgba(220,38,38,0.06) !important;
}
.qv-disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
}

.variant-row.show {
    display: table-row !important;
}

/* Mobile specific styles */
@media (max-width: 767px) {
    .variant-row.show {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 8px 0 !important;
    }

    /* Ensure variants stay hidden */
    .variant-row:not(.show) {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Transition class for hiding */
    .variant-row.hiding {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}
