/* ======================================================
   PREMIUM CART PAGE STYLES
   Modern E-Commerce Fashion Design
   ====================================================== */

/* ======================================================
   1. CART CONTAINER & LAYOUT
   ====================================================== */

.cart-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.cart-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.cart-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.cart-item-count {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* ======================================================
   2. CART ITEM CARDS (Premium Design)
   ====================================================== */

.cart-item-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cart-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #d4af37 0%, #f4e5c3 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-item-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #d4af37;
    transform: translateY(-2px);
}

.cart-item-card:hover::before {
    opacity: 1;
}

/* Product Image */
.cart-item-image {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease;
}

.cart-item-image:hover {
    transform: scale(1.05);
}

/* Product Details */
.cart-item-details {
    flex: 1;
    padding-left: 1.5rem;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-item-name:hover {
    color: #d4af37;
}

.cart-item-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cart-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

.cart-meta-label {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* ======================================================
   3. QUANTITY CONTROLS (Premium Style)
   ====================================================== */

.cart-qty-control {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.cart-qty-control:hover {
    border-color: #d4af37;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.cart-qty-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.cart-qty-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    transform: scale(1.1);
}

.cart-qty-btn:active {
    transform: scale(0.95);
}

.cart-qty-input {
    width: 45px;
    text-align: center;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    color: #0f172a;
    background: transparent;
}

.cart-qty-input:focus {
    outline: none;
}

/* ======================================================
   4. CART ACTIONS (Save/Remove Buttons)
   ====================================================== */

.cart-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.cart-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cart-save-btn {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.cart-save-btn:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.cart-remove-btn {
    background: transparent;
    color: #ef4444;
    border: 1px solid transparent;
}

.cart-remove-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

/* ======================================================
   5. PRICE DISPLAY
   ====================================================== */

.cart-price-section {
    text-align: right;
}

.cart-unit-price {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.cart-line-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

/* ======================================================
   6. ORDER SUMMARY (Sticky Sidebar)
   ====================================================== */

.order-summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 2rem;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.order-summary-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.order-summary-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 0.95rem;
}

.summary-label {
    color: #64748b;
    font-weight: 500;
}

.summary-value {
    color: #0f172a;
    font-weight: 600;
}

.summary-divider {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 1rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

/* Free Shipping Badge */
.free-shipping-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.shipping-progress {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
}

.shipping-progress-text {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.shipping-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.shipping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37 0%, #f4e5c3 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* ======================================================
   7. CHECKOUT BUTTON (Premium CTA)
   ====================================================== */

.cart-checkout-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    text-align: center;
}

.cart-checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cart-checkout-btn:hover::before {
    left: 100%;
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.3);
}

.cart-checkout-btn:active {
    transform: translateY(0);
}

/* Security Badge */
.cart-security-badge {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ======================================================
   8. EMPTY CART STATE
   ====================================================== */

.empty-cart-container {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px dashed #e5e7eb;
    border-radius: 24px;
}

.empty-cart-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.empty-cart-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.empty-cart-text {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.empty-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-cart-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
    color: #ffffff;
}

/* ======================================================
   9. CONTINUE SHOPPING BUTTON
   ====================================================== */

.continue-shopping-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.continue-shopping-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #ffffff;
    color: #0f172a;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.continue-shopping-btn:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15);
}

/* ======================================================
   10. RESPONSIVE DESIGN
   ====================================================== */

@media (max-width: 992px) {
    .order-summary-card {
        position: static;
        margin-top: 2rem;
    }

    .cart-item-card {
        padding: 1.25rem;
    }

    .cart-item-image {
        width: 100px;
        height: 125px;
    }

    .cart-item-details {
        padding-left: 1rem;
    }
}

@media (max-width: 768px) {
    .cart-page-container {
        padding: 1rem 0.75rem;
    }

    .cart-header h2 {
        font-size: 1.5rem;
    }

    .cart-item-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .cart-item-image {
        width: 80px;
        height: 100px;
    }

    .cart-item-details {
        padding-left: 0.75rem;
    }

    .cart-item-name {
        font-size: 1rem;
    }

    .cart-item-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cart-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .cart-action-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    .order-summary-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .order-summary-title {
        font-size: 1.2rem;
    }

    .cart-checkout-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* ======================================================
   11. ANIMATIONS
   ====================================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item-card {
    animation: slideInUp 0.4s ease-out backwards;
}

.cart-item-card:nth-child(1) {
    animation-delay: 0.05s;
}

.cart-item-card:nth-child(2) {
    animation-delay: 0.1s;
}

.cart-item-card:nth-child(3) {
    animation-delay: 0.15s;
}

.cart-item-card:nth-child(4) {
    animation-delay: 0.2s;
}

.cart-item-card:nth-child(5) {
    animation-delay: 0.25s;
}

/* ======================================================
   12. ACCESSIBILITY
   ====================================================== */

@media (prefers-reduced-motion: reduce) {

    .cart-item-card,
    .cart-checkout-btn,
    .continue-shopping-btn {
        animation: none;
        transition: none;
    }
}

/* Focus States */
.cart-qty-btn:focus,
.cart-action-btn:focus,
.cart-checkout-btn:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}