/* Cart Page Styles */

/* Hero Section - Matching Home Page Style */
.cart-hero {
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    height: 70vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
    padding-top: 120px;
    z-index: 1;
    margin-top: 0;
}

.cart-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    z-index: 1;
}

.cart-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: white;
}

.cart-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

.cart-hero-content h1 span {
    color: var(--primary-color);
}

.cart-hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.cart-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
}

.cart-empty {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.cart-empty i {
    font-size: 100px;
    color: #ddd;
    margin-bottom: 30px;
    animation: cart-float 3s ease-in-out infinite;
}

@keyframes cart-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.cart-empty h2 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.cart-empty p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cart-items {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.cart-item:hover {
    background: rgba(255, 0, 128, 0.02);
    border-radius: 12px;
    padding-left: 15px;
    padding-right: 15px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 180px;
    aspect-ratio: 16 / 9; /* 1920x1080 aspect ratio */
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.cart-item:hover .cart-item-image {
    transform: scale(1.05);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9; /* 1920x1080 aspect ratio */
    object-fit: cover;
    object-position: center;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.cart-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.cart-item-title a:hover {
    color: var(--primary-color);
}

.cart-item-meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

.cart-item-meta p {
    margin-bottom: 5px;
}

.cart-item-meta i {
    color: var(--primary-color);
    width: 20px;
}

.cart-item-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cart-item-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.cart-quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 12px;
}

.cart-quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: var(--primary-color);
}

.cart-quantity-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.cart-quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cart-quantity-input {
    width: 70px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.cart-quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.cart-remove-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-remove-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.cart-summary {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 120px;
    overflow: hidden;
}

.cart-summary h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.5rem;
}

.cart-coupon-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #eee;
}

.cart-coupon-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

.cart-coupon-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.cart-coupon-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.cart-coupon-btn {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e0006e 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cart-coupon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3);
}

.cart-coupon-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.cart-coupon-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.cart-coupon-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.cart-summary-row.discount {
    color: #28a745;
    font-weight: 600;
}

.cart-summary-row:last-of-type {
    border-bottom: 2px solid var(--primary-color);
    font-weight: 800;
    font-size: 1.5rem;
    margin-top: 15px;
    padding-top: 20px;
    color: var(--primary-color);
}

.cart-checkout-btn {
    width: 100%;
    max-width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e0006e 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(255, 0, 128, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-sizing: border-box;
}

.cart-checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.4);
    color: white;
}

.cart-checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.cart-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
    padding: 12px 20px;
    border-radius: 10px;
    background: rgba(255, 0, 128, 0.05);
}

.cart-continue-shopping:hover {
    background: rgba(255, 0, 128, 0.1);
    transform: translateX(-5px);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .cart-hero-content h1 {
        font-size: 2.5rem;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
        aspect-ratio: 16 / 9; /* 1920x1080 aspect ratio */
    }

    .cart-summary {
        position: relative;
        top: 0;
    }

    .cart-coupon-input-group {
        flex-direction: column;
    }
    
    .cart-coupon-btn {
        width: 100%;
    }
}
