/*
 * GOLD CENTER - Cart Page Styles
 * Premium cart design matching home page theme
 * Version 1.0
 */

/* ========================================
   Cart Page Section
======================================== */
.cart-page-section {
    padding: 140px 24px 80px;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    min-height: 100vh;
}

.cart-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   Hero Header
======================================== */
.cart-hero {
    text-align: center;
    margin-bottom: 48px;
}

.cart-hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 9999px;
    margin-bottom: 16px;
}

.cart-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.cart-hero h1 span {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Cart Layout Grid
======================================== */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 900px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Cart Items Card
======================================== */
.cart-items-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.cart-items-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.cart-items-count {
    background: #fef3c7;
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.cart-items-list {
    padding: 0;
}

/* ========================================
   Cart Item
======================================== */
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
    transition: background 0.3s;
}

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

.cart-item:hover {
    background: #fefce8;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #fefce8, #fef3c7);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

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

.cart-item-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

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

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ========================================
   Quantity Control
======================================== */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.quantity-control button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-control button:hover {
    background: #fbbf24;
    color: white;
}

.quantity-control span {
    width: 48px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.remove-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #fef2f2;
    border-radius: 10px;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

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

/* ========================================
   Continue Shopping
======================================== */
.continue-shopping {
    padding: 20px 24px;
    border-top: 1px solid #f3f4f6;
}

.continue-shopping a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.continue-shopping a:hover {
    color: #b45309;
}

/* ========================================
   Order Summary Card
======================================== */
.order-summary-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 28px;
    position: sticky;
    top: 120px;
}

.order-summary-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.summary-row .label {
    color: #6b7280;
}

.summary-row .value {
    color: #1f2937;
    font-weight: 600;
}

.summary-row .free {
    color: #10b981;
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #f3f4f6;
    margin-bottom: 24px;
}

.summary-total .label {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.summary-total .value {
    font-size: 28px;
    font-weight: 700;
    color: #b45309;
}

/* ========================================
   Checkout Button
======================================== */
.checkout-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(251, 191, 36, 0.4);
}

/* ========================================
   Checkout Guarantees
======================================== */
.checkout-guarantees {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.checkout-guarantee {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.checkout-guarantee svg {
    width: 16px;
    height: 16px;
    color: #10b981;
}

/* ========================================
   Empty Cart
======================================== */
.empty-cart-container {
    text-align: center;
    background: white;
    border-radius: 24px;
    padding: 80px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.empty-cart-icon {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 60px;
}

.empty-cart-container h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
}

.empty-cart-container p {
    color: #6b7280;
    font-size: 16px;
    margin: 0 0 32px;
}

.browse-products-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s;
}

.browse-products-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(251, 191, 36, 0.4);
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 768px) {
    .cart-page-section {
        padding: 120px 16px 60px;
    }

    .cart-hero h1 {
        font-size: 1.75rem;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 16px;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
        padding-top: 12px;
    }

    .summary-total .value {
        font-size: 22px;
    }

    .checkout-guarantees {
        grid-template-columns: 1fr;
    }
}