/* ===== CART PAGE STYLES ===== */
.cart-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 20px 0;
    min-height: 70vh;
}


/* ===== CART CONTENT ===== */
.cart-content {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* ===== CART ITEMS ===== */
.cart-items {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-items-header h2 {
    color: #000000;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== CART ITEM IMAGE ===== */
.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item:hover .product-thumbnail {
    transform: scale(1.05);
}

.product-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 2rem;
}

/* ===== CART ITEM INFO ===== */
.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
    margin: 0;
    line-height: 1.3;
}

.product-variant {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variant-option {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stock-status {
    margin-top: 0.5rem;
}

.stock-status span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.in-stock {
    color: #4caf50;
}

.out-of-stock {
    color: #f44336;
}

.unlimited-stock {
    color: #2196f3;
}

/* ===== QUANTITY CONTROLS ===== */
.cart-item-quantity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-quantity label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.2rem;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.quantity-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 50px;
    height: 35px;
    border: none;
    background: transparent;
    color: #000000;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    outline: none;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type=number] {
    -moz-appearance: textfield;
}

/* ===== PRICE INFO ===== */
.cart-item-price {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
    min-width: 120px;
}

.unit-price,
.total-price {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.price-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.price-value {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
}

.price-value.total {
    font-size: 1.2rem;
    color: #000000;
}

/* ===== REMOVE BUTTON ===== */
.cart-item-actions {
    display: flex;
    justify-content: center;
}

.remove-item-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(244, 67, 54, 0.2);
    color: #ff1100;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.remove-item-btn:hover {
    background: rgba(244, 67, 54, 0.3);
    transform: scale(1.1);
}

/* ===== CART SUMMARY ===== */
.cart-summary {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 100px;
}

.summary-header h3 {
    color: #000000;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.summary-details {
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-label {
    color: rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.summary-value {
    color: #000000;
    font-weight: 600;
}

.summary-divider {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.total-row {
    border-bottom: none;
    padding-top: 1rem;
}

.total-row .summary-label {
    font-size: 1.2rem;
    font-weight: 700;
}

.total-row .summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

/* ===== CHECKOUT ACTIONS ===== */
.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.checkout-btn {
    background: none;
    border: 3px solid black;
    color: rgb(0, 0, 0);
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    border-radius: 0;
    text-decoration: none;
    font-family: inherit;
    justify-content: center;
    width: 100%;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.continue-shopping-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #000000;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.continue-shopping-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #000000;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ===== EMPTY CART ===== */
.empty-cart {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.empty-cart-content {
    text-align: center;
    color: #ffffff;
}

.start-shopping-btn {
    background: none;
    border: 3px solid black;
    font-weight: 700;
    color: rgb(0, 0, 0);
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.start-shopping-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-quantity,
    .cart-item-price,
    .cart-item-actions {
        grid-column: 1 / -1;
        margin-top: 1rem;
    }
    
    .cart-item-quantity {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .cart-item-price {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .cart-item-actions {
        justify-content: flex-end;
    }
    
    .cart-title {
        font-size: 2rem;
    }
    
    .cart-items,
    .cart-summary {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .cart-page {
        padding: 10px 0;
    }
    
    .cart-items,
    .cart-summary {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .cart-item {
        padding: 0.8rem;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .checkout-btn,
    .start-shopping-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
}
