/* Cart Component Styles */
.cart-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Cart Video Background */
.cart-video-container {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 130%;
    z-index: -1;
    overflow: hidden;
}

.cart-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 251, 240, 0.5) 0%,
        rgba(254, 246, 211, 0.4) 20%,
        rgba(250, 250, 247, 0.6) 50%,
        rgba(250, 250, 247, 0.8) 80%,
        rgba(250, 250, 247, 0.95) 100%
    );
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
}

.cart-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.2);
    object-fit: cover;
    filter: brightness(0.95);
}

/* Bottom fade transition */
.cart-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(250, 250, 247, 0.5) 30%,
        rgba(250, 250, 247, 0.8) 60%,
        rgba(250, 250, 247, 0.95) 90%,
        #fafaf7 100%
    );
    z-index: 1;
    pointer-events: none;
}

.cart-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

/* Cart Title */
.cart-title {
    font-size: 3rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: heroTextReveal 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    opacity: 0;
    animation: textGlow 1.2s ease-out forwards;
    animation-delay: 0.6s;
}

.empty-cart-title {
    font-size: 2rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.6);
}

.empty-cart-message {
    font-size: 1.125rem;
    color: #777;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(247, 233, 142, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-brand {
    display: block;
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.cart-item-name {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.cart-item-type {
    color: #666;
    font-size: 0.875rem;
}

.cart-item-variants {
    display: block;
    color: var(--accent-color);
    font-size: 0.825rem;
    font-style: italic;
    margin-top: 0.25rem;
}

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

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bar-bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600;
    position: relative;
}

.quantity-btn:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.cart-item-price {
    font-size: 1.25rem;
    font-weight: 500;
}

.cart-summary {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 2px 10px var(--shadow);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Checkout Form */
.checkout-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.checkout-form {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--bar-bg);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(164, 207, 165, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Receipt Page */
.receipt-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 2rem;
    text-align: center;
}

.receipt-box {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 2px 10px var(--shadow);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    stroke: var(--white);
    width: 40px;
    height: 40px;
}

.receipt-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.order-number {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    margin: 2rem 0;
    font-family: monospace;
    font-size: 1.125rem;
}

/* Cart Quote */
.cart-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: #666;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.8s;
}

/* Cart Footer */
footer {
    background: transparent;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: -50px;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-video {
        filter: brightness(0.85) blur(5px);
    }
    
    .cart-title {
        font-size: 2rem;
    }
    
    .cart-quote {
        font-size: 1.25rem;
        padding: 3rem 1.5rem;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-image {
        width: 150px;
        height: 150px;
    }
    
    .cart-item-details {
        width: 100%;
    }
    
    .cart-item-quantity {
        justify-content: center;
        margin: 1rem 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   DARK MODE STYLES FOR CART
   ============================================ */

/* Cart Video Overlay */
body.dark-mode .cart-video-container::after {
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(10, 10, 10, 0.5) 20%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(10, 10, 10, 0.85) 80%,
        rgba(10, 10, 10, 0.95) 100%
    );
}

/* Cart Section Bottom Fade */
body.dark-mode .cart-section::after {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(10, 10, 10, 0.5) 30%,
        rgba(10, 10, 10, 0.8) 60%,
        rgba(10, 10, 10, 0.95) 90%,
        #0a0a0a 100%
    );
}

/* Cart Title */
body.dark-mode .cart-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Empty Cart Text */
body.dark-mode .empty-cart-title {
    color: #d0d0d0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

body.dark-mode .empty-cart-message {
    color: #a8a8a8;
}

/* Cart Items */
body.dark-mode .cart-item {
    background: rgba(20, 20, 20, 0.7);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .cart-item:hover {
    background: rgba(25, 25, 25, 0.8);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    border-color: rgba(122, 166, 123, 0.3);
}

body.dark-mode .cart-item-image {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
}

body.dark-mode .cart-item-type {
    color: #a8a8a8;
}

/* Cart Summary */
body.dark-mode .cart-summary {
    background: rgba(20, 20, 20, 0.7);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Checkout Form */
body.dark-mode .checkout-form {
    background: rgba(20, 20, 20, 0.7);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d0d0d0;
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
    color: #888;
}

body.dark-mode .form-group label {
    color: #d0d0d0;
} 