/* Cart Page */
.cart-page {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
}

.cart-container {
    width: 100%;
}

.cart-title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: center;
    color: #000;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: #fafafa;
    border-radius: 12px;
}

.empty-cart i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 30px;
}

.empty-cart h2 {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #000;
}

.empty-cart p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.btn-shop {
    display: inline-block;
    padding: 16px 40px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-shop:hover {
    background: #333;
}

/* Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

/* Cart Items */
.cart-items {
    background: #fff;
    border-radius: 8px;
}

.cart-item {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 20px;
    padding: 25px;
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.3s;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background: #fafafa;
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 15px;
    }
}

.item-image {
    width: 150px;
    height: 150px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

@media (max-width: 768px) {
    .item-image {
        width: 100px;
        height: 100px;
    }
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.item-image:hover img {
    transform: scale(1.05);
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-name {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}

.item-name a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s;
}

.item-name a:hover {
    opacity: 0.7;
}

.item-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.item-price {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.item-quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 4px;
    width: fit-content;
}

.item-quantity .qty-btn {
    width: 35px;
    height: 35px;
    background: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    color: #000;
}

.item-quantity .qty-btn:hover {
    background: #f5f5f5;
}

.item-quantity .qty-input {
    width: 50px;
    height: 35px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.stock-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    color: #856404;
    font-size: 12px;
    border-radius: 4px;
    width: fit-content;
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

@media (max-width: 768px) {
    .item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.item-subtotal {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.btn-remove {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
}

.btn-remove:hover {
    background: #fee;
}

/* Cart Summary */
.cart-summary {
    background: #fafafa;
    border-radius: 12px;
    padding: 30px;
    position: sticky;
    top: 20px;
}

.cart-summary h2 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: #000;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    color: #333;
}

.free-shipping-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #d4edda;
    border-left: 3px solid #28a745;
    color: #155724;
    font-size: 13px;
    margin: 15px 0;
    border-radius: 4px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    border-top: 2px solid #000;
    margin-top: 15px;
}

.btn-checkout {
    width: 100%;
    padding: 18px;
    background: #f4c6cf;
    color: #000;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-checkout:hover {
    background: #e5aab9;
}

.btn-continue-shopping {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-continue-shopping:hover {
    background: #000;
    color: #fff;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}

.payment-icons img {
    height: 25px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.payment-icons img:hover {
    opacity: 1;
}
