/* ------------------------- */
/* GLOBAL STYLES & VARIABLES */
/* ------------------------- */
:root {
    --bg-light: #ffffff;
    --bg-grey: #f4f4f7;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-on-dark: #ffffff;
    --font-body: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.modal-open {
    overflow: hidden;
}

/* ------------------------- */
/* HEADER & STORE INFO       */
/* ------------------------- */
.app-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 5%;
    border-bottom: 1px solid #eee;
    gap: 1.5rem;
}

.login-button {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
}

.store-info {
    padding: 1.5rem 5% 1rem 5%;
    text-align: left;
}

.store-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.store-info .descriptors {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ------------------------- */
/* SEARCH & FILTERS          */
/* ------------------------- */
.menu-navigation {
    padding: 1rem 5%;
    text-align: left;
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    background-color: var(--bg-grey);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle-icon {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.filter-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.filter-buttons::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.7rem 1.8rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}

.filter-btn.active {
    background-color: var(--text-primary);
    color: var(--text-on-dark);
    border-color: var(--text-primary);
}

/* ------------------------- */
/* PRODUCT LIST              */
/* ------------------------- */
.product-grid-title {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1.5rem 5% 0.5rem 5%;
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 5% 4rem 5%;
}

.product-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.card-content {
    flex: 1;
    padding-right: 1rem;
}

.product-card figcaption {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.product-card .description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.product-card .price {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 8px;
}

.product-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ------------------------- */
/* CART & USER STATUS        */
/* ------------------------- */
.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
}
.cart-icon {
    width: 28px;
    height: 28px;
}
.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--text-primary);
    color: var(--text-on-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
}
.user-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.user-status span {
    font-weight: 500;
    color: var(--text-secondary);
}
.logout-button, .manage-account-btn {
    background-color: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.logout-button:hover, .manage-account-btn:hover {
    background-color: var(--text-primary);
    color: var(--text-on-dark);
    border-color: var(--text-primary);
}


/* ------------------------- */
/* MODALS & SIDEBARS         */
/* ------------------------- */
/* Product Modal Styles */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease;
    z-index: 1000;
}
.product-modal.is-visible {
    visibility: visible;
    opacity: 1;
}
.modal-content {
    background-color: white;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}
.product-modal.is-visible .modal-content {
    transform: translateY(0);
}
.modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}
.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}
.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
}
.modal-description {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}
.modal-options {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}
.modal-options h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.modal-options .required-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 8px;
}
.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}
.option-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
}
.add-to-basket-btn {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 8px;
    background-color: var(--text-primary);
    color: var(--text-on-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.close-modal-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
}

/* Cart Sidebar Styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1100;
}
.cart-sidebar.is-open {
    transform: translateX(0);
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}
.cart-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}
.close-cart-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
}
.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}
.cart-empty-message {
    color: var(--text-secondary);
    text-align: center;
    margin-top: 2rem;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}
.cart-item-details {
    flex-grow: 1;
}
.cart-item-details h4 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}
.cart-item-price {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.quantity-btn {
    background-color: var(--bg-grey);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
    cursor: pointer;
}
.cart-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
}
.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.checkout-btn {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 8px;
    background-color: var(--text-primary);
    color: var(--text-on-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

/* ------------------------- */
/* CHECKOUT PAGE             */
/* ------------------------- */
.checkout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.checkout-main {
    flex: 2;
    min-width: 300px;
}
.order-summary {
    flex: 1;
    min-width: 300px;
    background-color: var(--bg-grey);
    padding: 1.5rem;
    border-radius: 12px;
    height: fit-content;
}
.checkout-section {
    margin-bottom: 2rem;
}
.checkout-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}
.order-summary h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
}
.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}
.place-order-btn {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 8px;
    background-color: var(--text-primary);
    color: var(--text-on-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
}
.info-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.info-input {
    border: none;
    background-color: transparent;
    padding: 1rem;
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}
.info-input:focus {
    outline: none;
}
.info-input.editable:focus {
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.2);
}
.info-block-details {
    flex-grow: 1;
    position: relative;
    padding-top: 0.5rem;
}
.info-block-label {
    position: absolute;
    top: 6px;
    left: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.edit-btn {
    background-color: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 1rem;
    flex-shrink: 0;
}
.edit-btn:hover {
    background-color: var(--text-primary);
    color: var(--text-on-dark);
    border-color: var(--text-primary);
}
.address-selector-group {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}
.address-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background-color: var(--bg-grey);
}
.address-tab {
    flex-grow: 1;
    padding: 0.8rem;
    border: none;
    background-color: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}
.address-tab.active {
    color: var(--text-primary);
    background-color: var(--bg-light);
    border-bottom: 3px solid var(--text-primary);
}
.address-input-wrapper {
    display: flex;
    align-items: center;
}
.summary-item-container {
    margin-bottom: 1rem;
}
.summary-item-option {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 1rem;
}
.cart-item-option {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ------------------------- */
/* DESKTOP & ANIMATIONS      */
/* ------------------------- */
@media (min-width: 1200px) {
  main {
    max-width: 1100px;
    margin: 0 auto;
  }
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.cart-icon-wrapper.pulse {
  animation: pulse 0.4s ease-in-out;
}

/* ------------------------- */
/* AUTH PAGE STYLES          */
/* ------------------------- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-grey);
    padding: 2rem;
    flex-direction: column;
}
.auth-form {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
}
.auth-form h2 {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}
.auth-form #form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.input-group {
    margin-bottom: 1.5rem;
}
.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    background-color: var(--bg-light);
    border-radius: 8px;
    font-size: 1rem;
}
.input-group input:focus {
    outline: none;
    border-color: var(--text-primary);
}
.auth-form button {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 8px;
    background-color: var(--text-primary);
    color: var(--text-on-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.auth-form button:hover {
    background-color: #333;
}
.toggle-auth {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.toggle-auth a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}
.back-to-home {
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}
.hidden {
    display: none;
}

#profile-icon svg {
    fill: #333; /* Sets the icon color to dark grey */
}

/* ADD THIS CSS TO THE BOTTOM OF YOUR style.css FILE */

/* New Header Styling */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

.header-title h2 {
    margin: 0;
    font-size: 1.5rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between icons */
}

/* Login Button and Profile Icon Styling */
#login-button {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

#profile-icon svg {
    display: block;
    width: 28px;
    height: 28px;
    fill: #333; /* This makes the icon visible */
    cursor: pointer;
}

.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
}

.cart-icon {
    width: 28px;
    height: 28px;
    fill: #333;
}

/*
========================================
Profile Page Design
========================================
*/

/* Main container for the whole page */
.profile-container {
    background-color: #f4f4f7; /* Light grey background */
    min-height: 100vh;
    padding: 1rem;
}

/* Header with back arrow */
.profile-header {
    padding-bottom: 1rem;
}

.profile-header .back-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

/* Main content card */
.profile-main {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#profile-greeting {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.profile-subtext {
    font-size: 1rem;
    color: #666;
    margin-top: 0;
    margin-bottom: 2rem;
}

/* Menu for account links */
.profile-menu {
    border-top: 1px solid #eee;
}

/* Menu items like 'Account details' */
.profile-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease-in-out;
}

.profile-menu-item:hover {
    background-color: #f9f9f9;
}

.profile-menu-item span:first-child {
    font-weight: 500;
}

.profile-menu-item span:last-child {
    font-weight: bold;
    color: #999;
}

/* Container for feedback and logout buttons */
.profile-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Styling for both the 'Send feedback' link and 'Log out' button */
.profile-action-link {
    background: none;
    border: none;
    padding: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease-in-out;
}

.profile-action-link:hover {
    background-color: #f0f0f0;
}

/* Special styling for the logout button */
#logout-btn {
    color: #d9534f; /* A shade of red */
}

#logout-btn:hover {
    background-color: #fdf5f5; /* A very light red */
}

/*
========================================
Profile Dropdown Menu Design
========================================
*/

/* Wrapper to position the dropdown relative to the icon */
.profile-icon-wrapper {
    position: relative;
}

/* Styling for the new profile icon button */
.profile-icon-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.profile-icon-btn svg {
    display: block;
    width: 28px;
    height: 28px;
    fill: #333;
}

/* The dropdown menu itself */
.profile-dropdown {
    position: absolute;
    top: 100%; /* Position below the icon */
    right: 0;
    margin-top: 10px; /* Space between icon and menu */
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    width: 200px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    z-index: 100;

    /* Hidden state for the animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Visible state for the animation */
.profile-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Styling for items inside the dropdown */
.dropdown-item {
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f4f4f7;
}

.dropdown-logout-btn {
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
    color: #d9534f; /* Red color for logout */
    font-weight: 500;
}

/*
========================================
Order History Page Design
========================================
*/
.history-container {
    background-color: #f4f4f7;
    min-height: 100vh;
}

.history-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

.history-header h1 {
    margin: 0;
    font-size: 1.25rem;
}

.history-main {
    padding: 1rem;
}

.order-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.order-card-header-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.order-card-header-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.completed {
    background-color: #eaf7f0;
    color: #2a9d8f;
}

.order-status.processing {
    background-color: #e8f1ff;
    color: #4a90e2;
}

.order-item-list h5 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.order-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.25rem;
}

.empty-message, .loading-message {
    text-align: center;
    color: #888;
    padding: 3rem 1rem;
}

/*
========================================
Cart Sidebar Design
========================================
*/
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.is-open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

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

.cart-item-details h4 {
    margin: 0 0 0.25rem;
}

.cart-item-option {
    font-size: 0.8rem;
    color: #777;
    margin: 0 0 0.5rem;
}

.cart-item-price {
    font-weight: 500;
    margin: 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-quantity .quantity-btn {
    background-color: #f0f0f0;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.cart-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}