/* =============================================================================
   Catalog Page Styles
   Uses centralized color scheme from theme.css (--theme-* variables)
   All styles are scoped to .catalog-page to prevent conflicts
   ============================================================================= */

/* =============================================================================
   CSS Variable Aliases - Map to centralized theme.css variables
   This ensures color consistency across the application
   ============================================================================= */

.catalog-page {
    /* Map catalog variables to centralized theme variables */
    --catalog-primary: var(--theme-primary, #e43131);
    --catalog-primary-dark: var(--theme-primary-dark, #c52a2a);
    --catalog-primary-light: var(--theme-primary-light, #fecaca);
    --catalog-accent: var(--theme-accent, #dc2626);
    --catalog-accent-gold: var(--theme-accent-gold, #d4af37);
    --catalog-bg: #ffffff;
    --catalog-card-bg: #ffffff;
    --catalog-text: var(--theme-text-primary, #1f2937);
    --catalog-text-muted: var(--theme-text-muted, #6b7280);
    --catalog-border: var(--theme-border-light, #e5e7eb);
    --catalog-shadow: rgba(185, 28, 28, 0.08);
}

/* =============================================================================
   Page Layout - Scoped to catalog page only
   ============================================================================= */

.catalog-page {
    padding: 0;
    background-color: #ffffff;
    min-height: 100vh;
}

/* Scoped container styles - only apply within catalog page */
.catalog-page > .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

/* =============================================================================
   Breadcrumb - Styles moved to centralized breadcrumb.css
   ============================================================================= */

/* =============================================================================
   Catalog Header
   ============================================================================= */

.catalog-header {
    padding: 2rem 0 1.5rem;
    text-align: left;
}

/* Centered variant — used on collection (category) pages */
.catalog-header--center {
    text-align: center;
}

.catalog-title {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--catalog-text);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.catalog-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--catalog-text-muted);
    max-width: 100%;
    margin: 0;
}

/* Description block rendered below the product listing */
.catalog-category-description {
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--catalog-border, #e5e7eb);
    margin-top: 1rem;
}

.catalog-category-description p {
    margin-bottom: 1rem;
}

.catalog-category-description p:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   Load More
   ============================================================================= */

.load-more-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem 0 1rem;
}

/* Progress bar + counter */
.load-more-progress-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 360px;
}

.load-more-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--catalog-border, #e5e7eb);
    border-radius: 9999px;
    overflow: hidden;
}

.load-more-progress-bar__fill {
    height: 100%;
    background: var(--catalog-primary, #e43131);
    border-radius: 9999px;
    transition: width 0.4s ease;
    min-width: 4px;
}

.load-more-progress-text {
    font-size: 0.8125rem;
    color: var(--catalog-text-muted, #6b7280);
    margin: 0;
}

/* Load More button — uses the global .btn system for consistent sizing */
.load-more-btn-wrap {
    display: flex;
    justify-content: center;
}

/*
 * .load-more-btn adds ONLY the loading/disabled behaviour.
 * Size, colour, and hover come from .btn + .btn--outline + .btn--sm
 * (applied in the template) so changing --btn-sm-* in theme.css
 * automatically updates this button too.
 */
.load-more-btn:disabled,
.load-more-btn--loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.load-more-btn__idle,
.load-more-btn__loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Spinner inside the button */
.load-more-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: load-more-spin 0.65s linear infinite;
    flex-shrink: 0;
}

@keyframes load-more-spin {
    to { transform: rotate(360deg); }
}

/* Error message */
.load-more-error {
    font-size: 0.875rem;
    color: #dc2626;
    text-align: center;
    margin: 0;
    padding: 0.5rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    max-width: 360px;
    width: 100%;
}

/* "All loaded" state */
.load-more-end {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--catalog-text-muted, #6b7280);
    padding: 0.5rem 0;
}

.load-more-end svg {
    color: #16a34a;
    flex-shrink: 0;
}

/* =============================================================================
   Mobile Filter Button
   ============================================================================= */

.mobile-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--catalog-card-bg);
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--catalog-text);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
    position: relative;
}

.mobile-filter-btn:hover {
    background: var(--catalog-bg);
}

.mobile-filter-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.filter-count-badge {
    position: absolute;
    right: 1rem;
    background: var(--catalog-primary);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-product-count {
    font-size: 0.8125rem;
    color: var(--catalog-text-muted);
    text-align: center;
    margin: 0 0 1.25rem;
}

/* =============================================================================
   Catalog Layout
   ============================================================================= */

.catalog-layout {
    display: flex;
    gap: 2rem;
    padding-bottom: 3rem;
}

.catalog-products {
    flex: 1;
    min-width: 0;
}

/* =============================================================================
   Filter Sidebar - Desktop & Mobile
   ============================================================================= */

.catalog-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.filters-sidebar {
    background: var(--catalog-card-bg);
    border: none;
    padding: 1.25rem;
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
}

/* Close button for mobile */
.close-filter-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--catalog-text-muted);
    cursor: pointer;
    z-index: 10;
}

.close-filter-btn:hover {
    color: var(--catalog-text);
}

/* Filter Header */
.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--catalog-border);
}

.filter-header h3 {
    font-family: var(--font-family-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--catalog-text);
    margin: 0;
}

.btn-clear-filters {
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px solid var(--catalog-primary);
    color: var(--catalog-primary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-filters:hover {
    background: var(--catalog-primary);
    color: white;
}

/* Filter Groups - Accordion Style */
.filter-group {
    margin-bottom: 0;
    border-bottom: 1px solid var(--catalog-border);
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.875rem 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
}

.filter-group-header:hover {
    color: var(--catalog-primary);
}

.filter-group-header:focus {
    outline: none;
}

.filter-group-header:focus-visible {
    outline: 2px solid var(--catalog-primary);
    outline-offset: 2px;
}

.filter-group-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--catalog-text);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    flex: 1;
}

.filter-active-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    margin-right: 0.5rem;
    background: var(--catalog-primary);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 9999px;
}

.filter-chevron {
    flex-shrink: 0;
    color: var(--catalog-text-muted);
    transition: transform 0.25s ease;
}

.filter-chevron.is-expanded {
    transform: rotate(180deg);
}

.filter-group-content {
    display: none;
    padding-bottom: 1rem;
}

.filter-group-content.is-expanded {
    display: block;
}

/* Filter Options List */
.filter-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Filter Option (Checkbox Item) */
.filter-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--catalog-text-muted);
    padding: 0.375rem 0;
    transition: color 0.2s ease;
    user-select: none;
}

.filter-option:hover {
    color: var(--catalog-text);
}

/* Custom Checkbox */
.filter-checkbox {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    border: 1.5px solid #c4c4c4;
    border-radius: 0.1875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-color: white;
    position: relative;
    flex-shrink: 0;
}

.filter-checkbox:checked {
    background-color: var(--catalog-primary);
    border-color: var(--catalog-primary);
}

.filter-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox:focus {
    outline: 2px solid var(--catalog-primary-light);
    outline-offset: 2px;
}

.checkbox-custom {
    display: none;
}

.filter-option-text {
    flex: 1;
    line-height: 1.4;
}

.filter-option-count {
    font-size: 0.75rem;
    color: #a0a0a0;
    flex-shrink: 0;
}

/* Color Swatch */
.color-swatch {
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    border: 1px solid var(--catalog-border);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Price Range Filter */
.price-range-inputs {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.price-input-group {
    flex: 1;
}

.price-input-group label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--catalog-text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.price-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 0.625rem;
    font-size: 0.8125rem;
    color: var(--catalog-text-muted);
    pointer-events: none;
}

.price-input {
    width: 100%;
    padding: 0.5rem 0.625rem 0.5rem 1.5rem;
    border: 1px solid var(--catalog-border);
    font-size: 0.8125rem;
    background: white;
    transition: border-color 0.2s ease;
}

.price-input:focus {
    outline: none;
    border-color: var(--catalog-primary);
}

.price-separator {
    margin-bottom: 0.5rem;
    color: var(--catalog-text-muted);
    font-size: 0.8125rem;
}

.btn-apply-price {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--catalog-primary);
    border: none;
    color: white;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-apply-price:hover {
    background: var(--catalog-primary-dark);
}

/* Mobile Filter Actions */
.mobile-filter-actions {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--catalog-border);
}

.btn-apply-filters {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--catalog-primary);
    border: none;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-apply-filters:hover {
    background: var(--catalog-primary-dark);
}

/* Filter Overlay for Mobile */
.filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 51; /* Above header (z-40) and mobile menu (z-50) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* =============================================================================
   Desktop Toolbar
   ============================================================================= */

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background: var(--catalog-card-bg);
    border: none;
    margin-bottom: 1.25rem;
}

.toolbar-results {
    font-size: 0.8125rem;
    color: var(--catalog-text-muted);
}

.toolbar-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sort-control,
.per-page-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-control label,
.per-page-control label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--catalog-text-muted);
    margin: 0;
}

.sort-select,
.per-page-select {
    padding: 0.4375rem 2rem 0.4375rem 0.75rem;
    background: white url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b6b6b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 0.625rem center/10px 10px;
    border: 1px solid var(--catalog-border);
    font-size: 0.8125rem;
    color: var(--catalog-text);
    cursor: pointer;
    transition: border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.sort-select:focus,
.per-page-select:focus {
    outline: none;
    border-color: var(--catalog-primary);
}

/* =============================================================================
   Products Grid
   ============================================================================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* =============================================================================
   Product Card
   ============================================================================= */

.product-card {
    background: var(--catalog-card-bg);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    /* No shadow or border on hover */
}

.product-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
    background: #f5f3f0;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge-featured {
    background: var(--catalog-accent);
    color: white;
}

.badge-sale {
    background: #c45c5c;
    color: white;
}

.badge-label--new {
    background: #16a34a;
    color: white;
}

.badge-label--trending {
    background: #d97706;
    color: white;
}

/* Quick View Overlay */
.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 44, 44, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-text {
    padding: 0.625rem 1.25rem;
    background: white;
    color: var(--catalog-text);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Product Info */
.product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.6875rem;
    color: var(--catalog-text-muted);
    margin: 0 0 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--catalog-text);
    margin: 0 0 0.625rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(0.875rem * 1.4 * 2);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

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

.current-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--catalog-primary);
}

/* Product Actions */
.product-actions {
    padding: 0 1rem 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.product-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.125rem;
    height: 2.125rem;
    background: #25d366;
    color: white;
    border-radius: 4px;
    transition: background 0.2s ease;
    text-decoration: none;
}

.product-whatsapp-btn:hover {
    background: #1ebe5d;
}

.product-actions .btn-enquiry,
.product-actions button {
    flex: 1;
    padding: 0.625rem 1rem;
    background: transparent;
    border: 1px solid var(--catalog-primary);
    color: var(--catalog-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-actions .btn-enquiry:hover,
.product-actions button:hover {
    background: var(--catalog-primary);
    color: white;
}

/* =============================================================================
   No Products
   ============================================================================= */

.no-products {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--catalog-card-bg);
    border: none;
}

.no-products svg {
    margin-bottom: 1.25rem;
    color: var(--catalog-border);
}

.no-products-title {
    font-family: var(--font-family-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--catalog-text);
    margin: 0 0 0.5rem;
}

.no-products-text {
    font-size: 0.9375rem;
    color: var(--catalog-text-muted);
    margin: 0 0 1.5rem;
}

.btn-clear-cta,
.btn-view-all {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--catalog-primary);
    border: none;
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-clear-cta:hover,
.btn-view-all:hover {
    background: var(--catalog-primary-dark);
}

/* =============================================================================
   Pagination
   ============================================================================= */

.catalog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: none;
}

.catalog-pagination nav {
    display: flex;
    gap: 0.25rem;
}

.catalog-pagination .page-link,
.catalog-pagination a,
.catalog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.625rem;
    background: var(--catalog-card-bg);
    border: none;
    color: var(--catalog-text);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.catalog-pagination a:hover {
    background: var(--catalog-bg);
}

.catalog-pagination .active span,
.catalog-pagination [aria-current="page"] span {
    background: var(--catalog-primary);
    color: white;
}

/* =============================================================================
   Responsive Styles
   ============================================================================= */

/* Large screens */
@media (min-width: 1024px) {
    .catalog-sidebar {
        display: block !important;
    }

    .filters-sidebar {
        padding-left: 0;
        padding-right: 0;
    }

    .close-filter-btn,
    .mobile-filter-actions {
        display: none !important;
    }

    /* Catalog-specific responsive utilities - scoped to avoid conflicts */
    .catalog-page .lg\:hidden {
        display: none !important;
    }

    .catalog-page .lg\:block {
        display: block !important;
    }

    .catalog-page .lg\:flex {
        display: flex !important;
    }
}

/* Tablet and below */
@media (max-width: 1023px) {
    .catalog-layout {
        flex-direction: column;
    }

    /* Mobile sidebar - off-canvas */
    .catalog-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 320px;
        height: 100%;
        z-index: 52; /* Above header (z-40), overlay (z-51), and mobile nav menu (z-50) */
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        background: white;
    }

    .catalog-sidebar.is-open {
        left: 0;
    }

    .catalog-sidebar .filters-sidebar {
        height: 100%;
        max-height: 100%;
        padding-top: 3rem;
        border: none;
        border-radius: 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .catalog-toolbar {
        display: none;
    }
}

@media (max-width: 767px) {
    .catalog-header {
        padding: 1.5rem 0 1rem;
    }

    .catalog-title {
        font-size: 1.5rem;
    }

    .catalog-description {
        font-size: 0.875rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-name {
        font-size: 0.8125rem;
    }

    .current-price {
        font-size: 0.9375rem;
    }

    .product-actions {
        padding: 0 0.75rem 0.75rem;
    }
}

@media (max-width: 479px) {
    .container {
        padding: 0 0.75rem;
    }

    .catalog-title {
        font-size: 1.25rem;
    }

    .products-grid {
        gap: 0.5rem;
    }

    .product-info {
        padding: 0.625rem;
    }

    .product-category {
        font-size: 0.625rem;
    }

    .product-name {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
    }

    .current-price {
        font-size: 0.875rem;
    }

    .compare-price {
        font-size: 0.75rem;
    }

    .product-actions {
        padding: 0 0.625rem 0.625rem;
        gap: 0.375rem;
        flex-wrap: wrap;
    }

    .product-actions button,
    .product-actions .btn-add-enquiry {
        flex: 1 1 100%;
        font-size: 0.6875rem;
        padding: 0.4375rem 0.5rem;
        justify-content: center;
    }

    .product-whatsapp-btn {
        flex: 1 1 100%;
        width: 100%;
        height: 1.875rem;
        min-width: unset;
        border-radius: 4px;
    }
}

/* =============================================================================
   Utility Classes
   ============================================================================= */

/* Scoped to catalog-page to avoid conflicts with Tailwind's responsive utilities */
.catalog-page .hidden {
    display: none !important;
}

/* Loading state */
.products-grid.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.products-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--catalog-border);
    border-top-color: var(--catalog-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 10;
}

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

/* =============================================================================
   Wishlist Button States (Product Cards)
   ============================================================================= */

.catalog-page .wishlist-btn.in-wishlist,
.catalog-page .wishlist-btn.active,
.catalog-page [data-wishlist-toggle].in-wishlist,
.catalog-page [data-wishlist-toggle].active {
    background: var(--catalog-primary, #e43131) !important;
    color: white !important;
}

.catalog-page .wishlist-btn.in-wishlist svg,
.catalog-page .wishlist-btn.active svg,
.catalog-page [data-wishlist-toggle].in-wishlist svg,
.catalog-page [data-wishlist-toggle].active svg {
    fill: currentColor;
    color: white;
}

.catalog-page .wishlist-btn.wishlist-loading,
.catalog-page [data-wishlist-toggle].wishlist-loading {
    opacity: 0.6;
    pointer-events: none;
}
