/* Cart Page Styles */

.cart-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 100%);
    min-height: 100vh;
}

.page-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: #fbbf24;
    text-align: center;
    margin-bottom: 3rem;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

/* Cart Items */
.cart-items {
    background: rgba(167, 139, 250, 0.05);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 12px;
    padding: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 1rem;
    align-items: center;
}

.item-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(167, 139, 250, 0.3);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.item-name a {
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.3s;
}

.item-name a:hover {
    color: #a78bfa;
}

.item-variant {
    color: #9ca3af;
    font-size: 0.9rem;
}

.item-price {
    font-size: 1.1rem;
    color: #a78bfa;
}

.item-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 2px solid #a78bfa;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    padding: 0.5rem 1rem;
    background: rgba(167, 139, 250, 0.1);
    border: none;
    color: #a78bfa;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: rgba(167, 139, 250, 0.3);
}

.quantity-input {
    width: 60px;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-left: 1px solid rgba(167, 139, 250, 0.3);
    border-right: 1px solid rgba(167, 139, 250, 0.3);
    color: #e5e7eb;
    text-align: center;
    font-size: 1rem;
}

.item-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fbbf24;
}

.remove-btn {
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 6px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Cart Summary */
.cart-summary {
    background: rgba(167, 139, 250, 0.05);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 12px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.summary-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #fbbf24;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: #d1d5db;
    border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fbbf24;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(251, 191, 36, 0.3);
}

.checkout-btn {
    width: 100%;
    padding: 1.25rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.3);
}

.continue-shopping {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: transparent;
    border: 2px solid #a78bfa;
    border-radius: 8px;
    color: #a78bfa;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.continue-shopping:hover {
    background: rgba(167, 139, 250, 0.1);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 4rem 0;
    grid-column: 1 / -1;
}

.empty-cart-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.empty-cart h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #9ca3af;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.3);
}

/* Coupon Code */
.coupon-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(167, 139, 250, 0.2);
}

.coupon-input-group {
    display: flex;
    gap: 0.5rem;
}

.coupon-input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 6px;
    color: #e5e7eb;
    font-family: inherit;
}

.coupon-input:focus {
    outline: none;
    border-color: #a78bfa;
}

.apply-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(167, 139, 250, 0.2);
    border: 1px solid #a78bfa;
    border-radius: 6px;
    color: #a78bfa;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.apply-btn:hover {
    background: rgba(167, 139, 250, 0.3);
}

/* Shipping Estimate */
.shipping-estimate {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    border-radius: 8px;
    color: #22c55e;
    text-align: center;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 968px) {
    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
    }

    .item-image {
        width: 100px;
        height: 100px;
    }

    .item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }

    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .item-image {
        margin: 0 auto;
    }

    .item-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    background: rgba(167, 139, 250, 0.95);
    color: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.cart-count {
    background: #fbbf24;
    color: #0a0a0a;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.nav-menu .active {
    color: #fbbf24;
}
