/* ==================== CART PAGE ==================== */

.cart-page {
    min-height: 100vh;
}

/* Cart Section */
.cart-section {
    padding: 40px 0 80px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

/* ========== CART ITEMS ========== */
.cart-items {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
}

.cart-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.cart-count {
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
}

/* Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 140px 120px 40px;
    gap: 20px;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #f1f3f5;
    transition: background 0.2s;
}

.cart-item:hover {
    background: #f8f9fa;
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.item-name a {
    color: #1a1a1a;
    transition: color 0.2s;
}

.item-name a:hover {
    color: #00b96b;
}

.item-category {
    font-size: 13px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-price {
    font-size: 14px;
    color: #495057;
    font-weight: 600;
}

/* Quantity Controls */
.item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 4px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #00b96b;
    color: #ffffff;
    border-color: #00b96b;
}

.qty-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    cursor: default;
    user-select: none;
}

.qty-input:focus {
    outline: none;
}

.qty-input[readonly] {
    pointer-events: none;
}

.item-total {
    text-align: right;
}

.total-price {
    font-size: 18px;
    font-weight: 700;
    color: #00b96b;
}

.item-remove {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-remove:hover {
    background: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    justify-content: space-between;
    padding: 25px 30px;
    background: #f8f9fa;
}

.btn-continue,
.btn-clear {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-continue {
    background: #ffffff;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-continue:hover {
    background: #00b96b;
    color: #ffffff;
    border-color: #00b96b;
}

.btn-clear {
    background: transparent;
    color: #dc3545;
    border: 1px solid #dee2e6;
}

.btn-clear:hover {
    background: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
}

/* ========== CART SUMMARY ========== */
.cart-summary {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.cart-summary h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 15px;
}

.summary-row span:first-child {
    color: #6c757d;
    font-weight: 500;
}

.summary-row span:last-child {
    color: #1a1a1a;
    font-weight: 600;
}

.free-badge {
    background: #00b96b;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shipping-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #e7f5ef;
    border: 1px solid #00b96b;
    border-radius: 10px;
    color: #00b96b;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.summary-divider {
    height: 1px;
    background: #dee2e6;
    margin: 20px 0;
}

.summary-total {
    font-size: 18px;
    margin-bottom: 25px;
}

.summary-total span:first-child {
    color: #1a1a1a;
    font-weight: 700;
}

.total-amount {
    color: #00b96b;
    font-size: 24px;
    font-weight: 700;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: #00b96b;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.btn-checkout:hover {
    background: #009955;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,185,107,0.25);
}

.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.payment-methods i {
    font-size: 28px;
    color: #adb5bd;
    transition: all 0.2s;
}

.payment-methods i:hover {
    color: #495057;
}

/* ========== EMPTY CART ========== */
.empty-cart {
    text-align: center;
    padding: 100px 40px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.empty-cart i {
    font-size: 100px;
    color: #dee2e6;
    margin-bottom: 30px;
}

.empty-cart h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 35px;
}

.empty-cart .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 35px;
    background: #00b96b;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.empty-cart .btn:hover {
    background: #009955;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,185,107,0.25);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .cart-layout {
        grid-template-columns: 1fr 350px;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr 120px 100px 40px;
        gap: 15px;
        padding: 20px;
    }
    
    .item-image {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .item-image {
        width: 100%;
        height: 200px;
    }
    
    .item-quantity {
        justify-content: center;
    }
    
    .item-total {
        text-align: center;
    }
    
    .item-remove {
        margin: 0 auto;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-continue,
    .btn-clear {
        width: 100%;
        justify-content: center;
    }
}
