/* Page Specific Styles */

/* --- Shopping Bag (Cart) --- */
.cart-page {
    padding-top: 40px;
    padding-bottom: 60px;
}

.cart-title {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cart-item-img {
    width: 120px;
    height: 150px;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.item-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.item-price {
    font-weight: bold;
    margin-bottom: 10px;
}

.item-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.cart-summary {
    background: #fdfdfd;
    padding: 30px;
    height: fit-content;
    border: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.summary-total {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 18px;
}

.checkout-btn {
    width: 100%;
    background-color: black;
    color: white;
    padding: 15px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.checkout-btn:hover {
    opacity: 0.9;
}

/* --- Wishlist --- */
.wishlist-page {
    padding-top: 40px;
    padding-bottom: 60px;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.wishlist-card {
    position: relative;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

/* --- Account / Login --- */
.account-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.login-container {
    background: white;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.login-btn {
    width: 100%;
    background-color: black;
    color: white;
    padding: 12px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
}

.alt-auth {
    font-size: 14px;
    color: #555;
    margin-top: 20px;
}

.alt-auth a {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}