
/* 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-enhanced {
    background: var(--header-bg, #ffffff);
    color: var(--header-text, #1f2937);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height, 80px);
}

.header-logo {
    flex-shrink: 0;
}

.logo-link {
    text-decoration: none;
}

.logo-img {
    height: 45px;
    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-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: 0;
    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: rgba(0, 0, 0, 0.05);
}

.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: none;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.cart-count.active {
    display: flex;
}

.cta-button {
    background: var(--primary, #3b82f6);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    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 rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0 1.5rem;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.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);
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.cart-modal.hidden {
    display: none;
}

.cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cart-panel {
    position: relative;
    width: 100%;
    max-width: 450px;
    background: var(--panel-bg, #ffffff);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.cart-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.cart-empty svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: #d1d5db;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.cart-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-name {
    font-weight: 600;
    color: #1f2937;
}

.cart-item-price {
    color: #3b82f6;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 0.25rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #3b82f6;
    color: white;
}

.qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.remove-btn:hover {
    color: #dc2626;
}

.cart-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.cart-summary {
    margin-bottom: 1.5rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.cart-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-checkout-form {
    width: 100%;
    padding: 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-checkout-form:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-checkout-whatsapp {
    width: 100%;
    padding: 1rem;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-checkout-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-1px);
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.checkout-modal.hidden {
    display: none;
}

.checkout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.checkout-panel {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.checkout-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checkout-back, .checkout-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.checkout-back:hover, .checkout-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.checkout-title {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.checkout-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #374151;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.checkout-summary {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
}

.checkout-summary h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #1f2937;
}

#checkout-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #6b7280;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 700;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #1f2937;
}

.btn-submit-order {
    width: 100%;
    padding: 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit-order:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-submit-order:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-actions .cta-button {
        display: none;
    }

    .cart-panel {
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkout-panel {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}

.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-enhanced {
    padding: var(--section-padding, 4rem 0);
    background: var(--bg-color, #fafafa);
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid-header {
    text-align: center;
    margin-bottom: 3rem;
}

.grid-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.grid-subtitle {
    font-size: 1.25rem;
    color: #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: #6b7280;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-label {
    font-weight: 500;
    color: #4b5563;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.grid-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.filters-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid #e5e7eb;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #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: #3b82f6;
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-slider {
    width: 100%;
    accent-color: #3b82f6;
}

.price-display {
    text-align: center;
    font-weight: 500;
    color: #4b5563;
    font-size: 0.9rem;
}

.products-main {
    flex: 1;
}

.products-grid-display {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
    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;
    background: #f9fafb;
}

.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: #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, .product-badge.best-seller {
    background: #10b981;
}

.product-badge.sale {
    background: #ef4444;
}

.product-badge.new, .product-badge.trending {
    background: #3b82f6;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #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: #6b7280;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6;
}

.product-original-price {
    font-size: 1rem;
    color: #6b7280;
    text-decoration: line-through;
}

.product-stock {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.in-stock {
    color: #10b981;
}

.out-of-stock {
    color: #ef4444;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-add-cart {
    flex: 1;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-add-cart:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-add-cart:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
}

.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 #e5e7eb;
    background: white;
    color: #4b5563;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #3b82f6;
    color: #3b82f6;
}

.pagination-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading-grid {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #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;
        gap: 1.5rem;
    }
}

.modern-footer-enhanced {
    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 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
}

.footer-brand {
    max-width: 320px;
}

.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;
    flex-wrap: wrap;
}

.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;
}

.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;
    color: var(--footer-muted, #9ca3af);
}

.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: 0 0 0.5rem 0;
}

.newsletter-description {
    font-size: 0.875rem;
    color: var(--footer-muted, #9ca3af);
    margin-bottom: 1rem;
}

.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;
}

.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: all 0.2s ease;
    white-space: nowrap;
}

.newsletter-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.footer-map-section {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 1.5rem;
}

.footer-map {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

.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;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        margin-bottom: 2rem;
    }

    .contact-item {
        justify-content: center;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-button {
        width: 100%;
    }

    .footer-main {
        padding: 3rem 0 2rem;
    }
}