/* ==========================================
   CART PAGE STYLES
   ========================================== */

.page-hero {
    height: 40vh;
    background-color: #000000;
    background-image: linear-gradient(
        135deg,
        #000000 0%,
        #1A1A1A 50%,
        #536878 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
}

.page-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-hero-content p {
    color: #CCCCCC;
    font-size: 1.1rem;
}

/* ==========================================
   CART SECTION
   ========================================== */
.cart-section {
    padding: 5rem 0;
    background-color: #F2F2F2;
    min-height: 60vh;
}

/* Empty cart */
.cart-empty {
    text-align: center;
    padding: 5rem 2rem;
    display: none;
}

.cart-empty.show {
    display: block;
}

.empty-icon {
    font-size: 5rem;
    color: #DDDDDD;
    margin-bottom: 1.5rem;
}

.cart-empty h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #000000;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cart-empty p {
    color: #888888;
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

/* Cart content */
.cart-content {
    display: none;
}

.cart-content.show {
    display: block;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Cart items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #DDDDDD;
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #000000;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.item-details p {
    color: #888888;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #536878;
    margin-bottom: 0.8rem;
}

/* Quantity controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 2px solid #000000;
    border-radius: 50%;
    background-color: transparent;
    color: #000000;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.qty-number {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    min-width: 30px;
    text-align: center;
}

.item-remove {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.btn-remove {
    background-color: transparent;
    border: none;
    color: #999999;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0.3rem;
}

.btn-remove:hover {
    color: #e74c3c;
    transform: scale(1.2);
}

.item-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
}

/* Order summary */
.order-summary {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #DDDDDD;
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #000000;
    font-weight: 700;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: #DDDDDD;
    margin: 1rem 0;
}

.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888888;
    font-size: 0.95rem;
}

.total-row {
    color: #000000;
    font-weight: 700;
    font-size: 1.2rem;
    padding-top: 0.8rem;
    border-top: 2px solid #DDDDDD;
}

.btn-checkout {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 1rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.btn-checkout:hover {
    background-color: #536878;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px 
        rgba(83,104,120,0.3);
}

.security-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888888;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.security-note i {
    color: #536878;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    font-size: 2rem;
    color: #CCCCCC;
    margin-bottom: 1.5rem;
}

.continue-shopping {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #536878;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.continue-shopping:hover {
    color: #000000;
    gap: 0.8rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-hero-content h1 {
        font-size: 2.5rem;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }

    .item-remove {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
    }
}
