
/* CSS Variables */
:root {
    --primary: #0066cc;
    --secondary: #64748b;
    --accent: #f59e0b;
    --white: #ffffff;
    --black: #000000;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --border: #ddd;
    --background: #f8f9fa;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--primary) 90%, black);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.error-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #dc2626;
    background: #fee2e2;
    border-radius: 8px;
    margin: 1rem 0;
}

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

.modern-header {
        background: var(--header-bg, #ffffff);
        color: var(--header-text, #1f2937);
        border-bottom: 1px solid var(--header-border, #e5e7eb);
        position: relative;
        z-index: 1000;
        transition: all 0.3s ease;
    }

    .modern-header.sticky {
        position: sticky;
        top: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .header-container {
        max-width: var(--container-width, 1200px);
        margin: 0 auto;
        padding: 0 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: var(--header-height, 80px);
    }

    .header-logo {
        flex-shrink: 0;
    }

    .logo-img {
        height: 40px;
        width: auto;
        object-fit: contain;
    }

    .logo-text {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary, #3b82f6);
    }

    .header-nav {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .nav-list {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 2rem;
    }

    .nav-item {
        position: relative;
    }

    .nav-link {
        text-decoration: none;
        color: inherit;
        font-weight: 500;
        padding: 0.5rem 0;
        transition: color 0.2s ease;
        position: relative;
    }

    .nav-link:hover {
        color: var(--header-hover, #3b82f6);
    }

    .nav-link::after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--header-hover, #3b82f6);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 100%;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-shrink: 0;
    }

    .cart-button {
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 50%;
        transition: background 0.2s ease;
        color: inherit;
    }

    .cart-button:hover {
        background: var(--hover-bg, #f3f4f6);
    }

    .cart-count {
        position: absolute;
        top: 0;
        right: 0;
        background: var(--accent, #ef4444);
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-size: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
    }

    .cta-button {
        background: var(--primary, #3b82f6);
        color: white;
        text-decoration: none;
        padding: 0.75rem 1.5rem;
        border-radius: 6px;
        font-weight: 600;
        transition: all 0.2s ease;
    }

    .cta-button:hover {
        background: var(--primary-dark, #2563eb);
        transform: translateY(-1px);
    }

    .mobile-menu-toggle {
        display: none;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }

    .hamburger-line {
        width: 24px;
        height: 2px;
        background: currentColor;
        transition: all 0.3s ease;
    }

    .mobile-nav {
        background: var(--header-bg, #ffffff);
        border-top: 1px solid var(--header-border, #e5e7eb);
        padding: 1rem 0;
    }

    .mobile-nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
        max-width: var(--container-width, 1200px);
        margin: 0 auto;
        padding: 0 1rem;
    }

    .mobile-nav-item {
        border-bottom: 1px solid var(--header-border, #e5e7eb);
    }

    .mobile-nav-item:last-child {
        border-bottom: none;
    }

    .mobile-nav-link {
        display: block;
        text-decoration: none;
        color: inherit;
        padding: 1rem 0;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    .mobile-nav-link:hover {
        color: var(--header-hover, #3b82f6);
    }

    @media (max-width: 768px) {
        .desktop-nav {
            display: none;
        }

        .mobile-menu-toggle {
            display: flex;
        }

        .header-actions .cta-button {
            display: none;
        }
    }

    .hidden {
        display: none;
    }

.cart-page {
        min-height: 100vh;
        background: var(--background, #f8fafc);
        padding: 2rem 0;
    }

    .cart-container {
        max-width: var(--container-width, 1200px);
        margin: 0 auto;
        padding: 0 1rem;
    }

    .cart-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border, #e5e7eb);
    }

    .cart-title {
        font-size: 2rem;
        font-weight: 700;
        color: var(--text, #1f2937);
        margin: 0;
    }

    .continue-shopping-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--primary, #3b82f6);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    .continue-shopping-link:hover {
        color: var(--primary-dark, #2563eb);
    }

    .cart-empty {
        text-align: center;
        padding: 4rem 2rem;
        background: white;
        border-radius: var(--border-radius, 8px);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .empty-cart-icon {
        margin-bottom: 1.5rem;
        opacity: 0.5;
    }

    .empty-cart-icon svg {
        color: var(--muted, #6b7280);
    }

    .cart-empty h2 {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text, #1f2937);
        margin-bottom: 0.5rem;
    }

    .cart-empty p {
        color: var(--muted, #6b7280);
        margin-bottom: 2rem;
    }

    .cart-content {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 2rem;
        align-items: start;
    }

    .cart-items {
        background: white;
        border-radius: var(--border-radius, 8px);
        padding: 1.5rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .cart-item {
        display: grid;
        grid-template-columns: 80px 1fr auto;
        gap: 1rem;
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--border, #e5e7eb);
        align-items: start;
    }

    .cart-item:last-child {
        border-bottom: none;
    }

    .item-image img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: var(--border-radius, 8px);
        border: 1px solid var(--border, #e5e7eb);
    }

    .item-details h3 {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text, #1f2937);
        margin: 0 0 0.5rem 0;
    }

    .item-description {
        color: var(--muted, #6b7280);
        font-size: 0.875rem;
        margin: 0 0 0.5rem 0;
    }

    .item-variant {
        color: var(--muted, #6b7280);
        font-size: 0.875rem;
        margin: 0 0 0.5rem 0;
        font-style: italic;
    }

    .item-price {
        font-weight: 600;
        color: var(--primary, #3b82f6);
        margin: 0;
    }

    .item-controls {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-end;
    }

    .quantity-controls {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .quantity-controls label {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text, #1f2937);
    }

    .quantity-input {
        display: flex;
        align-items: center;
        border: 1px solid var(--border, #e5e7eb);
        border-radius: var(--border-radius, 8px);
        overflow: hidden;
    }

    .qty-decrease,
    .qty-increase {
        width: 32px;
        height: 32px;
        background: var(--muted-bg, #f3f4f6);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        transition: background 0.2s ease;
    }

    .qty-decrease:hover,
    .qty-increase:hover {
        background: var(--muted, #e5e7eb);
    }

    .qty-input {
        width: 50px;
        height: 32px;
        border: none;
        text-align: center;
        font-weight: 500;
        background: white;
    }

    .qty-input:focus {
        outline: none;
    }

    .item-total {
        font-weight: 600;
        font-size: 1.125rem;
        color: var(--text, #1f2937);
    }

    .remove-item {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        background: none;
        border: none;
        color: var(--danger, #ef4444);
        cursor: pointer;
        font-size: 0.875rem;
        padding: 0.5rem;
        border-radius: var(--border-radius, 8px);
        transition: background 0.2s ease;
    }

    .remove-item:hover {
        background: var(--danger-light, #fef2f2);
    }

    .cart-summary {
        background: white;
        border-radius: var(--border-radius, 8px);
        padding: 1.5rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 2rem;
    }

    .summary-content h3 {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--text, #1f2937);
        margin: 0 0 1rem 0;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border, #e5e7eb);
    }

    .summary-line {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border, #e5e7eb);
    }

    .summary-line:last-of-type {
        border-bottom: none;
    }

    .total-line {
        font-weight: 600;
        font-size: 1.125rem;
        color: var(--text, #1f2937);
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 2px solid var(--border, #e5e7eb);
    }

    .cart-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border, #e5e7eb);
    }

    .continue-shopping-btn,
    .checkout-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        border-radius: var(--border-radius, 8px);
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s ease;
        text-align: center;
    }

    .continue-shopping-btn.secondary {
        background: var(--muted-bg, #f3f4f6);
        color: var(--text, #1f2937);
        border: 1px solid var(--border, #e5e7eb);
    }

    .continue-shopping-btn.secondary:hover {
        background: var(--muted, #e5e7eb);
    }

    .checkout-btn.primary {
        background: var(--primary, #3b82f6);
        color: white;
        border: 1px solid var(--primary, #3b82f6);
    }

    .checkout-btn.primary:hover {
        background: var(--primary-dark, #2563eb);
        transform: translateY(-1px);
    }

    @media (max-width: 768px) {
        .cart-content {
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .cart-item {
            grid-template-columns: 60px 1fr;
            gap: 0.75rem;
        }

        .item-controls {
            grid-column: 1 / -1;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border, #e5e7eb);
        }

        .item-image img {
            width: 60px;
            height: 60px;
        }

        .cart-header {
            flex-direction: column;
            gap: 1rem;
            align-items: flex-start;
        }

        .continue-shopping-link {
            order: -1;
        }
    }

.checkout-page {
        min-height: 100vh;
        background: var(--background, #f8fafc);
        padding: 2rem 0;
    }

    .checkout-container {
        max-width: var(--container-width, 1200px);
        margin: 0 auto;
        padding: 0 1rem;
    }

    .checkout-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border, #e5e7eb);
    }

    .checkout-title {
        font-size: 2rem;
        font-weight: 700;
        color: var(--text, #1f2937);
        margin: 0;
    }

    .back-to-cart-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--primary, #3b82f6);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    .back-to-cart-link:hover {
        color: var(--primary-dark, #2563eb);
    }

    .checkout-progress {
        display: flex;
        justify-content: center;
        margin-bottom: 3rem;
        padding: 1rem;
        background: white;
        border-radius: var(--border-radius, 8px);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .progress-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        flex: 1;
        max-width: 120px;
    }

    .progress-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 15px;
        left: calc(50% + 20px);
        width: calc(100% - 40px);
        height: 2px;
        background: var(--border, #e5e7eb);
        z-index: 1;
    }

    .progress-step.completed::after {
        background: var(--primary, #3b82f6);
    }

    .step-number {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--border, #e5e7eb);
        color: var(--muted, #6b7280);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 0.875rem;
        position: relative;
        z-index: 2;
        margin-bottom: 0.5rem;
    }

    .progress-step.completed .step-number {
        background: var(--primary, #3b82f6);
        color: white;
    }

    .progress-step.active .step-number {
        background: var(--primary, #3b82f6);
        color: white;
        box-shadow: 0 0 0 3px var(--primary-light, #dbeafe);
    }

    .step-label {
        font-size: 0.875rem;
        color: var(--muted, #6b7280);
        font-weight: 500;
    }

    .progress-step.completed .step-label,
    .progress-step.active .step-label {
        color: var(--text, #1f2937);
    }

    .checkout-form {
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 2rem;
        align-items: start;
    }

    .checkout-content {
        background: white;
        border-radius: var(--border-radius, 8px);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .checkout-section {
        padding: 2rem;
        border-bottom: 1px solid var(--border, #e5e7eb);
    }

    .checkout-section:last-child {
        border-bottom: none;
    }

    .section-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--text, #1f2937);
        margin: 0 0 1.5rem 0;
    }

    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .form-group {
        display: flex;
        flex-direction: column;
    }

    .form-group.full-width {
        grid-column: 1 / -1;
    }

    .form-label {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text, #1f2937);
        margin-bottom: 0.5rem;
    }

    .required {
        color: var(--danger, #ef4444);
        margin-left: 0.25rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.75rem;
        border: 1px solid var(--border, #e5e7eb);
        border-radius: var(--border-radius, 8px);
        font-size: 0.875rem;
        transition: border-color 0.2s ease;
        background: white;
    }

    .form-input:focus,
    .form-textarea:focus {
        outline: none;
        border-color: var(--primary, #3b82f6);
        box-shadow: 0 0 0 3px var(--primary-light, #dbeafe);
    }

    .form-textarea {
        resize: vertical;
        min-height: 80px;
    }

    .payment-methods {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .payment-option {
        display: flex;
        align-items: center;
        padding: 1rem;
        border: 2px solid var(--border, #e5e7eb);
        border-radius: var(--border-radius, 8px);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .payment-option:hover {
        border-color: var(--primary, #3b82f6);
        background: var(--primary-light, #f0f9ff);
    }

    .payment-option input[type="radio"] {
        margin-right: 1rem;
        accent-color: var(--primary, #3b82f6);
    }

    .payment-option input[type="radio"]:checked + .payment-option-content {
        color: var(--primary, #3b82f6);
    }

    .payment-option:has(input:checked) {
        border-color: var(--primary, #3b82f6);
        background: var(--primary-light, #f0f9ff);
    }

    .payment-option-content {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .payment-icon {
        font-size: 1.5rem;
    }

    .order-summary {
        background: white;
        border-radius: var(--border-radius, 8px);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        height: fit-content;
    }

    .order-summary.sticky {
        position: sticky;
        top: 2rem;
    }

    .summary-content {
        padding: 1.5rem;
    }

    .summary-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--text, #1f2937);
        margin: 0 0 1.5rem 0;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border, #e5e7eb);
    }

    .order-items {
        margin-bottom: 1.5rem;
    }

    .order-item {
        display: flex;
        gap: 1rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border, #e5e7eb);
    }

    .order-item:last-child {
        border-bottom: none;
    }

    .item-image {
        position: relative;
        flex-shrink: 0;
    }

    .item-image img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: var(--border-radius, 8px);
        border: 1px solid var(--border, #e5e7eb);
    }

    .item-quantity {
        position: absolute;
        top: -8px;
        right: -8px;
        background: var(--primary, #3b82f6);
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: 600;
    }

    .item-details h4 {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--text, #1f2937);
        margin: 0 0 0.25rem 0;
    }

    .item-variant {
        font-size: 0.75rem;
        color: var(--muted, #6b7280);
        margin: 0 0 0.5rem 0;
    }

    .item-price {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--primary, #3b82f6);
        margin: 0;
    }

    .order-totals {
        padding: 1rem 0;
        border-top: 1px solid var(--border, #e5e7eb);
        border-bottom: 1px solid var(--border, #e5e7eb);
        margin-bottom: 1.5rem;
    }

    .total-line {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        color: var(--text, #1f2937);
    }

    .total-line.total {
        font-weight: 600;
        font-size: 1.125rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border, #e5e7eb);
        margin-top: 0.5rem;
    }

    .checkout-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .place-order-btn,
    .whatsapp-order-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.875rem 1.5rem;
        border-radius: var(--border-radius, 8px);
        font-weight: 600;
        text-decoration: none;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        position: relative;
    }

    .place-order-btn.primary {
        background: var(--primary, #3b82f6);
        color: white;
    }

    .place-order-btn.primary:hover {
        background: var(--primary-dark, #2563eb);
        transform: translateY(-1px);
    }

    .whatsapp-order-btn.secondary {
        background: #25d366;
        color: white;
    }

    .whatsapp-order-btn.secondary:hover {
        background: #20bb5c;
        transform: translateY(-1px);
    }

    .btn-loading {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-loading.hidden {
        display: none;
    }

    .spinner {
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    @media (max-width: 768px) {
        .checkout-form {
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .form-grid {
            grid-template-columns: 1fr;
        }

        .checkout-progress {
            padding: 0.75rem;
        }

        .progress-step {
            max-width: 80px;
        }

        .step-number {
            width: 24px;
            height: 24px;
            font-size: 0.75rem;
        }

        .step-label {
            font-size: 0.75rem;
        }

        .checkout-section {
            padding: 1.5rem;
        }

        .order-summary {
            order: -1;
        }
    }

.product-grid {
        padding: var(--section-padding, 4rem 0);
        background: var(--bg-color, #ffffff);
    }

    .grid-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .grid-header {
        text-align: center;
        margin-bottom: 3rem;
    }

    .grid-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--text-dark, #1f2937);
        margin-bottom: 1rem;
    }

    .grid-subtitle {
        font-size: 1.25rem;
        color: var(--text-muted, #6b7280);
        max-width: 600px;
        margin: 0 auto;
    }

    .grid-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .search-container {
        flex: 1;
        max-width: 400px;
    }

    .search-box {
        position: relative;
        display: flex;
        align-items: center;
    }

    .search-icon {
        position: absolute;
        left: 1rem;
        color: var(--text-muted, #6b7280);
        z-index: 1;
    }

    .search-input {
        width: 100%;
        padding: 0.75rem 1rem 0.75rem 3rem;
        border: 2px solid var(--border, #e5e7eb);
        border-radius: 8px;
        font-size: 1rem;
        background: white;
        transition: border-color 0.2s ease;
    }

    .search-input:focus {
        outline: none;
        border-color: var(--primary, #3b82f6);
    }

    .sort-container {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .sort-label {
        font-weight: 500;
        color: var(--text-gray, #4b5563);
    }

    .sort-select {
        padding: 0.5rem 1rem;
        border: 2px solid var(--border, #e5e7eb);
        border-radius: 6px;
        background: white;
        cursor: pointer;
    }

    .grid-layout {
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }

    .filters-sidebar {
        background: #f9fafb;
        padding: 1.5rem;
        border-radius: 12px;
        height: fit-content;
        position: sticky;
        top: 2rem;
    }

    .filter-group {
        margin-bottom: 2rem;
    }

    .filter-group:last-child {
        margin-bottom: 0;
    }

    .filter-title {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-dark, #1f2937);
        margin-bottom: 1rem;
    }

    .filter-options {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-option {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        font-size: 0.9rem;
    }

    .filter-option input[type="radio"] {
        accent-color: var(--primary, #3b82f6);
    }

    .price-range {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .price-slider {
        width: 100%;
        accent-color: var(--primary, #3b82f6);
    }

    .price-display {
        text-align: center;
        font-weight: 500;
        color: var(--text-gray, #4b5563);
    }

    .products-main {
        flex: 1;
    }

    .products-grid-display {
        display: grid;
        grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
        gap: var(--grid-gap, 2rem);
        margin-bottom: 3rem;
    }

    .product-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        border: 1px solid #f1f5f9;
        position: relative;
    }

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

    .product-image-wrapper {
        position: relative;
        overflow: hidden;
        aspect-ratio: 1;
    }

    .product-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .product-card:hover .product-image {
        transform: scale(1.05);
    }

    .product-badge {
        position: absolute;
        top: 0.75rem;
        left: 0.75rem;
        background: var(--accent, #ef4444);
        color: white;
        padding: 0.25rem 0.75rem;
        border-radius: 16px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        z-index: 1;
    }

    .product-badge.bestseller {
        background: var(--success, #10b981);
    }

    .product-badge.sale {
        background: var(--accent, #ef4444);
    }

    .product-badge.new {
        background: var(--primary, #3b82f6);
    }

    .quick-actions {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        opacity: 0;
        transform: translateX(10px);
        transition: all 0.3s ease;
    }

    .product-card:hover .quick-actions {
        opacity: 1;
        transform: translateX(0);
    }

    .quick-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.9);
        color: var(--text-dark, #1f2937);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        backdrop-filter: blur(10px);
    }

    .quick-btn:hover {
        background: var(--primary, #3b82f6);
        color: white;
    }

    .product-info {
        padding: 1.5rem;
    }

    .product-name {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-dark, #1f2937);
        margin-bottom: 0.5rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-rating {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .stars {
        display: flex;
        gap: 2px;
    }

    .star {
        width: 16px;
        height: 16px;
        color: #fbbf24;
    }

    .star.empty {
        color: #d1d5db;
    }

    .rating-text {
        font-size: 0.875rem;
        color: var(--text-muted, #6b7280);
    }

    .product-pricing {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .product-price {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--primary, #3b82f6);
    }

    .product-original-price {
        font-size: 1rem;
        color: var(--text-muted, #6b7280);
        text-decoration: line-through;
    }

    .product-stock {
        font-size: 0.875rem;
        font-weight: 500;
        margin-bottom: 1rem;
    }

    .in-stock {
        color: var(--success, #10b981);
    }

    .out-of-stock {
        color: var(--danger, #ef4444);
    }

    .product-actions {
        display: flex;
        gap: 0.5rem;
    }

    .btn-add-cart {
        flex: 1;
        background: var(--primary, #3b82f6);
        color: white;
        border: none;
        padding: 0.75rem;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 0.9rem;
    }

    .btn-add-cart:hover:not(:disabled) {
        background: var(--primary-dark, #2563eb);
    }

    .btn-add-cart:disabled {
        background: var(--text-muted, #6b7280);
        cursor: not-allowed;
    }

    .btn-whatsapp {
        background: #25d366;
        color: white;
        border: none;
        padding: 0.75rem;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-whatsapp:hover {
        background: #128c7e;
    }

    .pagination-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin-top: 3rem;
    }

    .pagination-btn {
        padding: 0.5rem 0.75rem;
        border: 2px solid var(--border, #e5e7eb);
        background: white;
        color: var(--text-gray, #4b5563);
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-weight: 500;
    }

    .pagination-btn:hover:not(:disabled) {
        border-color: var(--primary, #3b82f6);
        color: var(--primary, #3b82f6);
    }

    .pagination-btn.active {
        background: var(--primary, #3b82f6);
        border-color: var(--primary, #3b82f6);
        color: white;
    }

    .pagination-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .loading-grid {
        text-align: center;
        padding: 3rem;
        color: var(--text-muted, #6b7280);
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
        border: 3px solid #f3f4f6;
        border-top: 3px solid var(--primary, #3b82f6);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 1rem;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    @media (max-width: 1024px) {
        .grid-layout {
            grid-template-columns: 1fr;
        }

        .filters-sidebar {
            order: 2;
            position: static;
        }

        .products-main {
            order: 1;
        }

        .products-grid-display {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .grid-controls {
            flex-direction: column;
            align-items: stretch;
        }

        .search-container {
            max-width: none;
        }

        .products-grid-display {
            grid-template-columns: 1fr;
        }

        .filters-sidebar {
            padding: 1rem;
        }

        .filter-options {
            flex-direction: row;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
    }

.modern-footer {
        background: var(--footer-bg, #1f2937);
        color: var(--footer-text, #f9fafb);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-main {
        padding: var(--footer-padding, 4rem 0 2rem);
    }

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
        gap: var(--footer-spacing, 2rem);
    }

    .footer-brand {
        max-width: 300px;
    }

    .brand-name {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--footer-accent, #3b82f6);
        margin-bottom: 0.75rem;
    }

    .brand-tagline {
        font-size: 0.9rem;
        color: var(--footer-muted, #9ca3af);
        margin-bottom: 1rem;
        font-style: italic;
    }

    .brand-description {
        font-size: 0.9rem;
        line-height: 1.6;
        color: var(--footer-muted, #9ca3af);
        margin-bottom: 1.5rem;
    }

    .social-links {
        display: flex;
        gap: 1rem;
    }

    .social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        color: var(--footer-text, #f9fafb);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .social-link:hover {
        background: var(--footer-accent, #3b82f6);
        transform: translateY(-2px);
    }

    .footer-links {
        min-width: 0;
    }

    .footer-title {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--footer-text, #f9fafb);
        margin-bottom: 1.5rem;
    }

    .link-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-link {
        color: var(--footer-muted, #9ca3af);
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.2s ease;
        line-height: 1.5;
    }

    .footer-link:hover {
        color: var(--footer-accent, #3b82f6);
    }

    .footer-contact {
        min-width: 0;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .contact-item {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .contact-icon {
        color: var(--footer-accent, #3b82f6);
        flex-shrink: 0;
        margin-top: 2px;
    }

    .newsletter-signup {
        background: rgba(255, 255, 255, 0.05);
        padding: 1.5rem;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .newsletter-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--footer-text, #f9fafb);
        margin-bottom: 0.5rem;
    }

    .newsletter-description {
        font-size: 0.875rem;
        color: var(--footer-muted, #9ca3af);
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .newsletter-form {
        width: 100%;
    }

    .newsletter-input-group {
        display: flex;
        gap: 0.5rem;
    }

    .newsletter-input {
        flex: 1;
        padding: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.1);
        color: var(--footer-text, #f9fafb);
        font-size: 0.9rem;
        transition: border-color 0.2s ease;
    }

    .newsletter-input::placeholder {
        color: var(--footer-muted, #9ca3af);
    }

    .newsletter-input:focus {
        outline: none;
        border-color: var(--footer-accent, #3b82f6);
    }

    .newsletter-button {
        padding: 0.75rem 1.5rem;
        background: var(--footer-accent, #3b82f6);
        color: white;
        border: none;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s ease;
        white-space: nowrap;
        font-size: 0.9rem;
    }

    .newsletter-button:hover {
        background: color-mix(in srgb, var(--footer-accent, #3b82f6) 90%, black);
    }

    .footer-bottom {
        background: rgba(0, 0, 0, 0.2);
        padding: 1.5rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .copyright {
        text-align: center;
        color: var(--footer-muted, #9ca3af);
        font-size: 0.875rem;
        margin: 0;
    }

    @media (max-width: 1024px) {
        .footer-container {
            grid-template-columns: 1fr 1fr 1fr;
            gap: 2rem;
        }

        .footer-brand {
            grid-column: 1 / -1;
            max-width: none;
            text-align: center;
            margin-bottom: 2rem;
        }

        .footer-contact {
            grid-column: 1 / -1;
            text-align: center;
        }
    }

    @media (max-width: 768px) {
        .footer-container {
            grid-template-columns: 1fr;
            gap: 2rem;
            text-align: center;
        }

        .footer-brand {
            margin-bottom: 2rem;
        }

        .social-links {
            justify-content: center;
        }

        .newsletter-input-group {
            flex-direction: column;
        }

        .newsletter-button {
            width: 100%;
        }

        .footer-main {
            padding: 3rem 0 2rem;
        }
    }

    @media (max-width: 480px) {
        .footer-container {
            padding: 0 0.5rem;
        }

        .newsletter-signup {
            padding: 1rem;
        }
    }