/* CSS Variables */
:root {
    --color-blue: #0047AB;
    --color-blue-dark: #003d8f;
    --color-blue-light: #2563eb;
    --color-gold: #FFD700;
    --color-gold-dark: #FFC000;
    --color-text-primary: #1e293b;
    --color-text-secondary: #475569;
    --color-background: #ffffff;
    --color-background-light: #f8fafc;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== BREADCRUMB STYLES ===== */
.breadcrumb-nav {
    background: var(--color-background-light);
    padding: 1rem 0;
    margin-top: 120px;
}

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

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: var(--color-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--color-blue-dark);
}

.breadcrumb-current {
    color: var(--color-text-secondary);
    font-weight: 600;
}

.breadcrumb-item:not(:first-child)::before {
    content: ">";
    color: var(--color-text-secondary);
    margin: 0 0.5rem;
}

/* ===== CART SECTION STYLES ===== */
.cart-section {
    padding: 3rem 0;
    background: var(--color-background);
}

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

.cart-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cart-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 71, 171, 0.1);
}

.cart-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ===== CART ITEMS CONTAINER ===== */
.cart-items-container {
    background: var(--color-background);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    min-height: 400px;
}

.loading-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-cart .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-background-light);
    border-top: 4px solid var(--color-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-cart p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

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

/* ===== CART SUMMARY ===== */
.cart-summary {
    background: var(--color-background);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 140px;
}

.summary-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-background-light);
}

.summary-content {
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-blue);
    border-top: 2px solid var(--color-background-light);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* ===== CART ACTIONS ===== */
.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 56px;
}

.btn-primary {
    background: var(--color-blue);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--color-background-light);
    color: var(--color-text-primary);
    border: 2px solid var(--color-background-light);
}

.btn-secondary:hover {
    background: var(--color-background);
    border-color: var(--color-blue);
    color: var(--color-blue);
    transform: translateY(-1px);
}

/* ===== EMPTY CART STATE ===== */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-background-light);
    border-radius: 16px;
    border: 2px dashed var(--color-text-light);
    margin: 2rem 0;
}

.empty-cart-icon {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.empty-cart h2 {
    font-size: 1.8rem;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.empty-cart p {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    background: var(--color-background-light);
    padding: 4rem 0;
    margin-top: 3rem;
}

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

.benefits h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 3rem;
    position: relative;
}

.benefits h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-gold));
    border-radius: 2px;
}

.benefits h2 span {
    color: var(--color-blue);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--color-background);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-blue);
}

.benefit-card .icon {
    color: var(--color-blue);
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-container {
        padding: 0 1rem;
    }
    
    .cart-title {
        font-size: 2.5rem;
    }
    
    .cart-subtitle {
        font-size: 1.1rem;
    }
    
    .cart-content {
        gap: 1rem;
    }
    
    .cart-summary {
        padding: 1.5rem;
    }
    
    .benefits h2 {
        font-size: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .cart-title {
        font-size: 2rem;
    }
    
    .cart-header {
        margin-bottom: 2rem;
    }
    
    .cart-summary {
        padding: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        min-height: 48px;
    }
}

/* ===== CART COUNTER STYLES (Mantener existentes) ===== */
.cart-counter {
    position: relative;
    display: inline-block;
}

.cart-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    animation: pulse 2s infinite;
}

.cart-badge.hidden {
    display: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== ADD TO CART BUTTON STYLES (Mantener existentes) ===== */
.clearance-product-card .add-to-cart-btn,
.add-to-cart-btn {
    background: var(--color-blue) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(0, 71, 171, 0.2) !important;
    margin-top: auto !important;
    position: relative !important;
    overflow: visible !important;
    width: auto !important;
    height: auto !important;
}

.clearance-product-card .add-to-cart-btn:hover,
.add-to-cart-btn:hover {
    background: var(--color-blue-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 71, 171, 0.3) !important;
}

.clearance-product-card .add-to-cart-btn:active,
.add-to-cart-btn:active {
    transform: translateY(0) !important;
}

.clearance-product-card .add-to-cart-btn .spinner {
    width: 16px !important;
    height: 16px !important;
    border: 2px solid transparent !important;
    border-top: 2px solid white !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

.clearance-product-card .add-to-cart-btn::before,
.add-to-cart-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
}

.clearance-product-card .add-to-cart-btn:hover::before,
.add-to-cart-btn:hover::before {
    opacity: 1 !important;
}

.clearance-product-card .add-to-cart-btn:hover,
.add-to-cart-btn:hover {
    background: var(--color-blue-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 71, 171, 0.3) !important;
}

.clearance-product-card .add-to-cart-btn,
.add-to-cart-btn {
    background: var(--color-blue) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(0, 71, 171, 0.2) !important;
    margin-top: auto !important;
    position: relative !important;
    overflow: visible !important;
    width: auto !important;
    height: auto !important;
}

.clearance-product-card .add-to-cart-btn:hover,
.add-to-cart-btn:hover {
    background: var(--color-blue-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 71, 171, 0.3) !important;
}

.clearance-product-card .add-to-cart-btn:active,
.add-to-cart-btn:active {
    transform: translateY(0) !important;
}

.clearance-product-card .add-to-cart-btn:focus,
.add-to-cart-btn:focus {
    outline: 2px solid var(--color-gold) !important;
    outline-offset: 2px !important;
}

.clearance-product-card .add-to-cart-btn svg,
.add-to-cart-btn svg {
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.2s ease !important;
}

.clearance-product-card .add-to-cart-btn:hover svg,
.add-to-cart-btn:hover svg {
    transform: scale(1.1) !important;
}

.clearance-product-card .add-to-cart-btn,
.add-to-cart-btn {
    background: var(--color-blue) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(0, 71, 171, 0.2) !important;
    margin-top: auto !important;
    position: relative !important;
    overflow: visible !important;
    width: auto !important;
    height: auto !important;
}

.clearance-product-card .add-to-cart-btn:hover,
.add-to-cart-btn:hover {
    background: var(--color-blue-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 71, 171, 0.3) !important;
}

.clearance-product-card .add-to-cart-btn:active,
.add-to-cart-btn:active {
    transform: translateY(0) !important;
}

/* ===== CART DROPDOWN STYLES (Mantener existentes) ===== */
.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
}

.cart-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: var(--color-background-light);
}

.cart-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-text-primary);
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.cart-item:hover {
    background: var(--color-background-light);
}

.cart-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.cart-item-price {
    color: var(--color-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background: var(--color-background-light);
    border: 1px solid #d1d5db;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 600;
}

.quantity-btn:hover {
    background: var(--color-blue);
    color: white;
    border-color: var(--color-blue);
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.25rem;
    font-size: 0.8rem;
}

.cart-item-remove {
    background: #ef4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.cart-item-remove:hover {
    background: #dc2626;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    background: var(--color-background-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.cart-actions {
    display: flex;
    gap: 0.5rem;
}

.cart-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.cart-btn.primary {
    background: var(--color-blue);
    color: white;
}

.cart-btn.primary:hover {
    background: var(--color-blue-dark);
}

.cart-btn.secondary {
    background: var(--color-background);
    color: var(--color-text-primary);
    border: 1px solid #d1d5db;
}

.cart-btn.secondary:hover {
    background: var(--color-background-light);
}

/* ===== RESPONSIVE CART DROPDOWN ===== */
@media (max-width: 768px) {
    .cart-dropdown {
        width: 300px;
        right: -50px;
    }
    
    .cart-item {
        padding: 0.75rem;
    }
    
    .cart-item-image {
        width: 40px;
        height: 40px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid white;
    border-top: 4px solid var(--color-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== SUCCESS ANIMATION ===== */
.success-animation {
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
} 

/* Cart Page Specific Styles */
/* Maintains consistency with categories page design */

/* Cart Items Styling */
.cart-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.cart-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.cart-item .item-image img {
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item:hover .item-image img {
    transform: scale(1.05);
}

/* Quantity Selector */
.quantity-selector {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.quantity-selector:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.quantity-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
}

.quantity-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.quantity-btn:active {
    background: #d1d5db;
}

.quantity-input {
    background: transparent;
    border: none;
    text-align: center;
    font-weight: 600;
    color: #111827;
    padding: 8px 4px;
    min-width: 60px;
}

.quantity-input:focus {
    outline: none;
    background: #f3f4f6;
}

/* Remove Link */
.remove-link {
    color: #dc2626;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.remove-link:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* Checkout Button */
.checkout-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 16px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(37, 99, 235, 0.3);
}

.checkout-btn:active {
    transform: translateY(0);
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 100px;
}

/* Progress Steps */
.checkout-progress {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.step {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: #2563eb;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.step:not(.active) .step-circle {
    background: #d1d5db;
    color: #6b7280;
}

.step-text {
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active .step-text {
    color: #2563eb;
}

.step:not(.active) .step-text {
    color: #6b7280;
}

.step-line {
    width: 64px;
    height: 2px;
    background: #d1d5db;
    transition: all 0.3s ease;
}

/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart svg {
    color: #9ca3af;
    margin: 0 auto 1.5rem;
}

.empty-cart h3 {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.empty-cart p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Breadcrumbs */
.breadcrumb-nav {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
}

.breadcrumb-nav ol {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb-nav a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
    color: #2563eb;
}

.breadcrumb-nav svg {
    color: #9ca3af;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hero-products-circle {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-products-inner {
    position: relative;
}

.hero-products-inner img {
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-products-inner img:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-products-circle {
        width: 280px;
        height: 280px;
    }
    
    .hero-products-inner {
        inset: 1rem;
    }
    
    .hero-products-inner img {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-products-circle {
        width: 240px;
        height: 240px;
        margin: 0 auto;
    }
    
    .hero-products-inner {
        inset: 1rem;
    }
    
    .hero-products-inner img {
        width: 40px;
        height: 40px;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-line {
        display: none;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .item-actions {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .item-price {
        margin-top: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-products-circle {
        width: 200px;
        height: 200px;
    }
    
    .hero-products-inner {
        inset: 0.75rem;
    }
    
    .hero-products-inner img {
        width: 32px;
        height: 32px;
    }
    
    .cart-item {
        padding: 1rem;
    }
    
    .item-image img {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item {
    animation: fadeInUp 0.6s ease-out;
}

.cart-item:nth-child(1) { animation-delay: 0.1s; }
.cart-item:nth-child(2) { animation-delay: 0.2s; }
.cart-item:nth-child(3) { animation-delay: 0.3s; }
.cart-item:nth-child(4) { animation-delay: 0.4s; }

/* Loading States */
.cart-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.cart-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Focus States for Accessibility */
.cart-item:focus-within {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.quantity-btn:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.remove-link:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

.checkout-btn:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .hero-section,
    .checkout-progress,
    .footer {
        display: none;
    }
    
    .cart-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .checkout-btn {
        display: none;
    }
}

/* ===== PRODUCT COUNTER STYLES ===== */
.product-counter {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.product-badge {
    background: var(--color-gold);
    color: var(--color-text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.product-badge:hover {
    background: var(--color-gold-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

#real-product-count {
    font-weight: 700;
    color: var(--color-blue);
}

/* Responsive para el contador de productos */
@media (max-width: 768px) {
    .product-counter {
        margin-left: 0.5rem;
    }
    
    .product-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .product-counter {
        display: none; /* Ocultar en móviles muy pequeños */
    }
}

/* ===== NAVBAR DELGADO - REGLAS PRINCIPALES ===== */
.top-navbar {
    padding: 0 1rem !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    margin: 0 !important;
}

.top-navbar .logo img {
    height: 100px !important;
    max-height: 100px !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Asegurar que ningún elemento del navbar tenga altura extra */
.top-navbar * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
} 