/* ============================================
   OLEVS PERÚ - CART STYLES
   Estilos para el sistema de carrito de compras
   ============================================ */

/* ===== CART ICON (HEADER) ===== */
.cart-icon-container {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
    z-index: 1020;
}

.cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    color: var(--brand-gold);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--brand-gold);
    transform: scale(1.1);
}

.cart-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--brand-gold);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    border: 2px solid rgba(5, 5, 5, 0.98);
}

@media (min-width: 1024px) {
    .cart-icon-container {
        position: static;
        margin-left: 24px;
    }
}

/* ===== CART PAGE ===== */
.cart-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.cart-header {
    margin-bottom: 40px;
    text-align: center;
}

.cart-header h1 {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 1024px) {
    .cart-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.cart-items {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.cart-item-title {
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
    margin: 0;
}

.cart-item-code {
    font-size: 14px;
    color: #64748b;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #D4AF37;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 8px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: none;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: #D4AF37;
    color: white;
}

.qty-input {
    width: 50px;
    text-align: center;
    font-weight: 700;
    border: none;
    background: transparent;
    font-size: 16px;
}

.remove-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.remove-btn:hover {
    background: #dc2626;
    color: white;
}

/* Summary */
.cart-summary {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.summary-line.total {
    font-size: 24px;
    font-weight: 800;
    color: #D4AF37;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-cart h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #64748b;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.checkout-form {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-section {
    margin-bottom: 32px;
}

.form-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0f172a;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.05);
}

.payment-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: #D4AF37;
}

.payment-option label {
    cursor: pointer;
    font-weight: 600;
    margin: 0;
}

.payment-icon {
    font-size: 24px;
    margin-left: auto;
}