/* CART PAGE */

/* WHITE HEADER*/

/* 1. Make the header white and sticky */
body.cart-page .main-header {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-bottom: 0;
}

/* 2. Change Logo, Links, and Cart Icon to Dark Color */
body.cart-page .brand-logo-text,
body.cart-page .brand-logo-text a,
body.cart-page .nav-link, 
body.cart-page .cart-icon {
    color: #31262A !important; 
}

/* 3. Adjust spacing for the Logo on this page */
body.cart-page .brand-logo-text {
    font-size: 2.5rem; /* Smaller than homepage for better fit */
    padding-top: 10px;
    padding-bottom: 5px;
}

/* 4. Hover Color for Links */
body.cart-page .nav-link:hover {
    color: #E68A8A !important;
}

/* 5. Fix Mobile Menu Toggle (Make lines dark) */
body.cart-page .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(49, 38, 42, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* 6. Ensure Top Bar is visible if you want it, or hide it */
body.cart-page .top-bar {
    display: flex; /* Or 'none' if you want to hide the black top bar */
}


body.cart-page {
    background-color: #FFEAEA;
}

.cart-header-title {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    color: #31262A;
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 80px;
}

/* --- LEFT COLUMN: ITEMS & NOTE --- */
.cart-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    position: relative;
}

.cart-item-img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 20px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    color: #31262A;
    margin-bottom: 15px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #31262A;
    background: white;
    color: #31262A;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #31262A;
    color: white;
}

.qty-val {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-item-price {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #31262A;
    margin-left: auto;
}

.btn-remove {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-remove:hover {
    color: #E68A8A;
}

/* --- GIFT NOTE SECTION --- */
.gift-note-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    margin-top: 20px;
}

.gift-note-title {
    font-family: "Playfair Display", serif;
    font-size: 1rem;
    color: #31262A;
    margin-bottom: 15px;
    font-weight: 600;
}

.gift-note-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    resize: none;
    outline: none;
}

.gift-note-input:focus {
    border-color: #E68A8A;
}

/* --- RIGHT COLUMN: SUMMARY --- */
.order-summary-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    height: fit-content;
}

.summary-title {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: #31262A;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-family: "Playfair Display", serif;
    color: #31262A;
    font-size: 1.1rem;
}

.summary-total {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-top: 20px;
    font-weight: 700;
    font-size: 1.3rem;
}

.btn-checkout {
    display: block;
    width: 100%;
    background-color: #FFEAEA;
    color: #31262A;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    border: 1px solid #FFEAEA;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-checkout:hover {
    background-color: #E68A8A;
    color: white;
    border-color: #E68A8A;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #31262A;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.back-link:hover {
    color: #E68A8A;
}

/* Empty Cart State */
.empty-cart-msg {
    text-align: center;
    font-family: "Playfair Display", serif;
    padding: 50px;
    color: #888;
}

/* Responsive */
@media (max-width: 991px) {
    .cart-container {
        padding: 0 20px 80px;
    }
}