/* FILE: assets/css/cafe-order-page.css */
/* Toàn bộ nội dung CSS cho giao diện đặt hàng */

/* Base Colors (Cute & Adorable Palette) */
/* Base Colors (Cute & Adorable Palette) */
:root {
    --color-primary: #FF69B4; /* Hot Pink - Playful */
    --color-secondary: #87CEEB; /* Sky Blue - Cheerful */
    --color-accent: #FFDAB9; /* Peach Puff - Warm & Soft */
    --color-dark-text: #4A4A4A; /* Soft Black/Dark Gray */
    --color-medium-text: #777777; /* Medium Gray */
    --color-light-text: #AAAAAA; /* Light Gray */
    --color-background: #FFF0F5; /* Lavender Blush - very light pink */
    --color-card-bg: #FFFFFF;
    --color-border: #F0F0F0; /* Very light gray */
    --color-shadow-base: rgba(0, 0, 0, 0.08); /* Slightly more visible for cute depth */
    --color-shadow-hover: rgba(0, 0, 0, 0.15); /* Stronger hover shadow */
    --color-shadow-deep: rgba(0, 0, 0, 0.3); /* Deeper shadow for focus/active */
    --color-button-shadow: rgba(0, 0, 0, 0.15);
}

/* General Body and Layout */
body {
    font-family: 'Comfortaa', sans-serif; /* Applied Comfortaa to all body text */
    background: linear-gradient(135deg, var(--color-background) 0%, #ffeaf0 100%); /* Soft pink gradient background */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    color: var(--color-medium-text);
    line-height: 1.6; /* Slightly more relaxed line height */
    font-size: 1em; /* Slightly larger base font */
    overflow-x: hidden; /* Prevent horizontal scroll */
    /* padding-top: 100px; Adjusted to make space for the service code section */
    padding-bottom: 100px; /* Space for the new fixed bottom summary bar */
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Fixed Bottom Summary Bar */
#bottom-fixed-summary-bar {
    position: fixed;
    bottom: 55px;
    left: 0;
    width: 100%;
    background-color: #ff69b4; /* Matching nav bar */
    color: white;
    padding: 8px 25px;
    box-shadow: 0 -6px 20px var(--color-shadow-deep); /* Shadow upwards */
    z-index: 1000;
    box-sizing: border-box;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: flex;
    justify-content: space-between; /* Space out total and button */
    align-items: center;
}

#bottom-fixed-summary-bar .total-price-display {
    display: flex;
    align-items: baseline;
    gap: 15px;
    font-size: 1.3em;
    font-weight: 700;
}
#bottom-fixed-summary-bar .total-price-display strong {
    font-size: 2em;
    color: var(--color-accent);
}
#bottom-fixed-summary-bar .item-count-display {
    font-size: 0.9em;
    padding: 7px 15px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-weight: 500;
}

#bottom-fixed-summary-bar #fixed-checkout-btn-summary {
    padding: 12px 20px;
    font-size: 1.1rem;
    background: linear-gradient(45deg, var(--color-accent), #FFB6C1);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    color: var(--color-dark-text);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 218, 185, 0.4);
}
#bottom-fixed-summary-bar #fixed-checkout-btn-summary:hover {
    background: linear-gradient(45deg, #FFC0CB, #FFDAB9);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 218, 185, 0.6);
}


.main-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1280px;
    padding: 0 25px 50px; /* Adjusted padding for main content area */
    gap: 40px; /* Increased consistent gap */
    box-sizing: border-box;
}

/* Main Navigation Bar (Always Vertical, Icon Only) */
#main-nav {
    position: fixed;
    top: 50%; /* Center vertically */
    bottom: auto;
    right: 5px; /* Closer to the right edge */
    transform: translateY(-50%); /* Center vertically */
    background-color: #ff1493;
    padding: 15px 10px; /* Reduced padding */
    border-radius: 20px; /* Square shape */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); /* Stronger shadow */
    z-index: 1001; /* Ensure it's above the fixed summary bar */
    display: flex;
    flex-direction: column; /* Always vertical */
    gap: 15px; /* Reduced space between icons */
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

#main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em; /* Kept font size for readability */
    display: flex;
    flex-direction: column; /* Stack icon and text vertically (text is hidden) */
    align-items: center;
    gap: 3px; /* Reduced gap between icon and text */
    padding: 8px 10px; /* Reduced padding */
    border-radius: 30px; /* More rounded */
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-align: center; /* Center text */
}

#main-nav a i {
    font-size: 1.3em; /* Slightly larger icon */
}

#main-nav a span {
    display: none; /* Hide text labels */
}

#main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* More visible hover */
    transform: translateX(-3px); /* Slight horizontal lift on hover */
}

#main-nav a:active {
    transform: translateY(0);
}


/* Row 1: Service Code Selection (Full Width) */
#service-code-selection {
    width: 100%;
}

/* Shop Logo Styling */
.shop-logo {
    display: block; /* Make it a block element to center */
    margin: 0 auto 30px auto; /* Center horizontally and add margin below */
    max-width: 800px; /* Increased max width for the logo */
    width: 100%; /* Ensure it's responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 15px; /* Slightly rounded corners for the logo */
    
}


/* Row 2: Menu and Cart Layout (Side-by-side) */
.menu-and-cart-layout {
    display: grid;
    grid-template-columns: 1fr; /* Menu takes full width */
    gap: 40px; /* Increased consistent gap */
    width: 100%;
}

@media (min-width: 1024px) { /* Adjusted breakpoint */
    .menu-and-cart-layout {
        grid-template-columns: 1fr; /* Menu takes full width */
    }
}

/* Mobile-specific adjustments for main content to avoid overlap with vertical nav */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* Keep consistent top padding for mobile */
        padding-bottom: 120px; /* More space for fixed bottom bar on mobile */
    }
    /* Main nav is already vertical, so no special media query needed for its direction */
    .main-wrapper {
        padding-right: 60px; /* Adjusted padding to account for narrower nav */
    }
}

/* Card Styling */
.card {
    background-color: var(--color-card-bg);
    padding: 40px 45px; /* More padding */
    border-radius: 25px; /* More rounded */
    box-shadow: 0 12px 35px var(--color-shadow-base); /* Softer, deeper shadow */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Smoother transition */
    border: 1px solid var(--color-border);
    box-sizing: border-box; /* Ensure padding is included in width */
}

.card:hover {
    transform: translateY(-12px); /* More pronounced hover */
    box-shadow: 0 20px 50px var(--color-shadow-hover); /* Stronger, diffused shadow on hover */
}

h2 {
    font-family: 'Comfortaa', sans-serif; /* Applied Comfortaa to headings */
    color: var(--color-primary); /* Use primary color for headings */
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 20px;
    margin-top: 0;
    margin-bottom: 40px;
    font-size: 2.8em; /* Larger font size */
    font-weight: 700; /* Comfortaa can be bold */
    text-align: center;
}

h3 {
    font-family: 'Comfortaa', sans-serif; /* Applied Comfortaa to subheadings */
    color: var(--color-dark-text);
    margin-top: 45px;
    margin-bottom: 30px;
    font-size: 2.2em; /* Larger font size */
    font-weight: 600; /* Comfortaa can be semi-bold */
    text-align: center;
}

/* Service Code Controls Wrapper */
.service-code-controls-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally */
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 15px; /* Space between items */
    width: 100%; /* Ensure it takes full width of its parent */
    box-sizing: border-box; /* Include padding/border in width */
}

@media (max-width: 600px) { /* Adjust for smaller screens */
    .service-code-controls-wrapper {
        flex-direction: column; /* Stack vertically */
        align-items: center;
    }
    #service-code-display {
        width: 100%;
        text-align: center;
    }
    #get-service-code-btn {
        width: auto; /* Allow button to shrink */
        max-width: 200px; /* Limit button width */
    }
}

/* Section: Service Code Display */
#service-code-display {
    background-color: #fcf0f5; /* Very light pink background */
    border: 1px solid #ffc0d0; /* Soft pink border */
    border-radius: 15px; /* More rounded */
    padding: 15px 20px; /* Adjusted padding */
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.15); /* Softer pink shadow, consistent with other elements */
    flex-grow: 1; /* Allow it to take available space */
    margin-top: 0; /* Reset margin-top from previous version */
    /* max-width: 250px; Removed max-width to allow flex-grow to work better */
    text-align: center; /* Center text within the display */
    box-sizing: border-box; /* Crucial for consistent sizing */
}
#service-code-display p {
    margin: 0; /* Remove default paragraph margin */
    font-size: 1.1em; /* Slightly larger text */
    color: var(--color-dark-text);
    display: inline; /* Keep text on one line */
}
#service-code-display strong {
    font-size: 1.5em; /* Larger font for the code itself */
    color: var(--color-primary); /* Primary pink for the code */
    display: inline; /* Keep text on one line */
    margin-left: 5px; /* Space between label and code */
}

#get-service-code-btn {
    padding: 10px 20px; /* Reduced padding */
    font-size:1.1rem;/*Reduced font size */
    width: auto; /* Allow content to dictate width */
    max-width: 200px; /* Further limit button width for compactness */
    flex-shrink: 0; /* Prevent it from shrinking too much */
    margin-top: 0; /* Reset margin-top from previous version */
    background: linear-gradient(45deg, var(--color-primary), #FFC0CB); /* Pink gradient */
    color: white;
    border: none;
    border-radius: 12px; /* More rounded */
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.3); /* Softer pink shadow */
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Crucial for consistent sizing */
}
#get-service-code-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, #FF1493, #FF69B4); /* Darker pink on hover */
    transform: translateY(-3px); /* Slight lift */
    box-shadow: 0 6px 15px rgba(255, 105, 180, 0.5);
}
#get-service-code-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
    transform: none;
}

/* Section: Menu Selection */
.menu-categories-grid {
    gap: 30px; /* Increased gap */
    margin-top: 30px;
}

/* Adjusted for 3-column layout on larger screens */
.item-grid {
    display: grid;
    gap: 20px; /* Increased gap */
    margin-top: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width for 3 columns */
}
@media (min-width: 1024px) { /* For larger screens, enable 3 columns */
    .item-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) { /* For tablets, 2 columns */
    .item-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 550px) { /* Adjust for smaller mobile screens to go to 1 column */
    .item-grid {
        grid-template-columns: 1fr;
    }
}


.menu-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px; /* More rounded */
    padding: 20px 22px; /* Increased padding */
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Softer shadow */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
    
.menu-item:hover {
    transform: translateY(-8px); /* More pronounced */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Stronger shadow */
}

.menu-item h4 {
    font-size: 1.25em; /* Increased font size */
    color: var(--color-dark-text);
    font-weight: 600;
    line-height: 1.4;
    margin: 0; /* No top margin */
    display: flex; /* Enable flex for icon and text */
    align-items: center;
    gap: 10px; /* Space between icon and text */
}

/* Style for the item icon within the h4 */
.menu-item h4 i {
    font-size: 1.3em; /* Slightly larger icon */
    /* Color applied directly in JS for dynamic coloring */
}

/* Style for the colored dot next to the item name */
.item-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    border: 1px solid rgba(0,0,0,0.1); /* Subtle border for visibility */
}

.menu-item p { /* Price */
    font-size: 1.15em; /* Increased font size */
    color: var(--color-secondary);
    font-weight: bold;
    margin: 8px 0 15px 0; /* Adjusted margin */
}

.item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px; /* Increased gap */
    margin-bottom: 10px; /* Increased margin */
    width: 100%;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 10px; /* More rounded */
    overflow: hidden;
    flex-grow: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* Subtle shadow */
}

.qty-adjust-btn {
    background-color: #fefefe; /* Lighter background */
    border: none;
    padding: 7px 12px; /* More compact padding */
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s; /* Added transform */
    flex-shrink: 0;
    color: var(--color-medium-text);
    width: 35px; /* Fixed width for buttons */
    height: 35px; /* Fixed height for buttons */
    display: flex;
    justify-content: center;
    align-items: center;
}
.qty-adjust-btn:hover {
    background-color: #eef2f6; /* Lighter hover */
    transform: scale(1.1); /* Slight scale on hover */
}
.qty-adjust-btn:active {
    transform: scale(0.98); /* Shrink on active/click */
}
.item-quantity-input {
    min-width: 65px;
    text-align: center;
    border: none;
    padding: 7px 0;
    font-size: 1em;
    color: var(--color-dark-text);
    background-color: #fcfdfe;

    /* ✨ SỬA LỖI: Sử dụng các thuộc tính chuẩn để đảm bảo hiển thị trên mọi trình duyệt */
    -webkit-appearance: none; /* Cho Chrome, Safari, Edge */
    -moz-appearance: textfield; /* Giữ lại cho Firefox */
    appearance: none; /* Thuộc tính chuẩn */
}

.item-quantity-input::-webkit-outer-spin-button,
.item-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-item-btn {
    background-color: #ff1493;
    color: white;
    border: none;
    border-radius: 10px; /* More rounded */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-size: 1.5em; /* Larger icon size */
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px; /* Larger button */
    height: 40px; /* Larger button */
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.4); /* Blue shadow */
}
.add-to-cart-item-btn:hover:not(:disabled) {
    background-color: #63b8da; /* Darker blue */
    transform: translateY(-4px); /* More lift */
    box-shadow: 0 6px 15px rgba(135, 206, 235, 0.6); /* Stronger shadow */
}
.add-to-cart-item-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(135, 206, 235, 0.3);
}
.add-to-cart-item-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
    transform: none;
}
.add-options-btn { /* Combined "Mix vị" and "Tùy chỉnh" button */
    background-color: var(--color-primary); /* Pink primary */
    color: white;
    border: none;
    padding: 10px 18px; /* Increased padding */
    border-radius: 10px; /* More rounded */
    cursor: pointer;
    font-size: 0.95em; /* Slightly larger font */
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.25); /* Pink shadow */
    margin-top: 12px;
}
.add-options-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, #FF1493, #FF69B4); /* Darker pink on hover */
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
    transform: translateY(-3px);
}
.add-options-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 105, 180, 0.2);
}
.add-options-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
    transform: none;
}

/* Styling for the combined Options Section within a menu item */
.options-panel {
    background-color: #fffafc; /* Lighter pink background */
    border-top: 1px dashed #ffc0d0; /* Pink dashed border */
    padding: 20px; /* Increased padding */
    margin-top: 20px;
    border-radius: 0 0 20px 20px; /* Match parent border radius */
    text-align: left;
    padding-bottom: 15px; /* Space for buttons */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.options-panel h5 {
    font-size: 1.05em; /* Slightly larger */
    color: var(--color-dark-text);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Single column list layout for options */
.options-list-group { /* New class for common styling of option grids */
    display: block;
    margin-bottom: 15px;
    width: 100%;
    max-height: 220px; /* Increased max-height for more visibility */
    overflow-y: auto;
    padding-right: 8px; /* Small padding for scrollbar */
}

.option-checkbox { /* Common class for mix and custom options */
    box-sizing: border-box;
    margin-bottom: 10px; /* Add vertical spacing between options */
    width: 100%; /* Ensure each option takes full width */
}

.option-checkbox label {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Distribute items with space between */
    background-color: #fcf0f5; /* Very light pink */
    padding: 15px 18px; /* Increased padding */
    border-radius: 8px; /* Slightly rounded corners */
    border: 1px solid #ffc0d0; /* Pink border */
    cursor: pointer;
    font-size: 1.05em; /* Slightly larger font for readability */
    transition: background-color 0.2s, border-color 0.2s, transform 0.1s;
    width: 100%;
    box-sizing: border-box;
    color: var(--color-dark-text); /* Darker text for better contrast */
    white-space: normal; /* Allow text to wrap if needed */
    text-overflow: clip; /* No ellipsis for full text */
}

.option-checkbox label:hover {
    background-color: #ffe0eb; /* Lighter pink on hover */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.option-checkbox label:active {
    transform: translateY(0);
}

.option-checkbox label input[type="checkbox"] {
    margin-left: 12px; /* Push checkbox to the right relative to text/price */
    margin-right: 0; /* Ensure no extra margin on right */
    flex-shrink: 0; /* Prevent checkbox from shrinking */
    order: 3; /* Place checkbox last visually */
    transform: scale(1.2); /* Slightly larger checkbox */
    accent-color: var(--color-primary); /* Pink accent */
}

.option-checkbox label span:first-child { /* The flavor/level text */
    flex-grow: 1; /* Allow text to take available space */
    text-align: left;
    order: 1; /* Place text first visually */
}

.option-checkbox label .option-price {
    order: 2; /* Place price after text, before checkbox */
    margin-left: 12px; /* Space between text and price */
    flex-shrink: 0;
    font-weight: normal; /* Ensure price is not bolded by parent label */
    color: var(--color-light-text);
}
    
.options-total-price { /* Common class for price display in options panel */
    font-size: 1.25em; /* Slightly larger */
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 20px; /* More space */
    text-align: right;
    width: 100%;
}

/* Action buttons for the combined options panel */
.options-action-buttons {
    display: flex;
    gap: 12px; /* Increased gap */
    width: 100%;
    margin-top: 15px;
}

.add-to-cart-options-btn { /* New button for adding item from options panel */
    background: linear-gradient(45deg, var(--color-secondary), #ADD8E6); /* Blue gradient */
    color: white;
    border: none;
    padding: 15px 25px; /* Increased padding */
    border-radius: 12px; /* More rounded */
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    flex-grow: 1;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.4); /* Blue shadow */
}
.add-to-cart-options-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, #63b8da, #87CEEB); /* Darker blue */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(135, 206, 235, 0.6);
}
.add-to-cart-options-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(135, 206, 235, 0.3);
}
.add-to-cart-options-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
    transform: none;
}

.cancel-options-btn { /* New button for canceling options selection */
    background-color: #999999; /* Softer grey */
    color: white;
    border: none;
    padding: 15px 25px; /* Increased padding */
    border-radius: 12px; /* More rounded */
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    flex-grow: 1;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(153, 153, 153, 0.4);
}
.cancel-options-btn:hover {
    background-color: #777777; /* Darker grey */
    box-shadow: 0 6px 15px rgba(153, 153, 153, 0.6);
    transform: translateY(-3px);
}
.cancel-options-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(153, 153, 153, 0.3);
}


/* Cart Summary Section (back in main flow) */
#cart-summary {
    padding: 40px 45px; /* Consistent card padding */
    margin-top: 40px; /* Space from menu section */
}
#cart-summary h2 {
    /* ... existing styles ... */
}

#cart-list { /* This is the main scrollable cart list */
    list-style-type: none;
    padding: 0;
    margin: 0 0 40px 0;
    max-height: 450px; /* Allow scrolling for detailed cart */
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background-color: #fcfdfe;
    box-shadow: inset 0 3px 10px rgba(0,0,0,0.06);
}

#cart-list li {
    display: flex;
    flex-direction: column; /* Stack text and controls vertically */
    align-items: flex-start; /* Align text to the left */
    padding: 18px 25px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 1.1em;
    color: var(--color-dark-text);
    transition: background-color 0.1s ease;
}
#cart-list li:hover {
    background-color: #f8fbfd;
}

/* Ensure cart item text doesn't wrap */
#cart-list li .item-details-text {
    flex-grow: 1; /* Allow text to take available space */
    white-space: normal; /* Allow text to wrap naturally */
    overflow: visible; /* Ensure all text is visible */
    text-overflow: clip; /* No ellipsis needed if wrapping */
    margin-right: 0; /* No extra margin on right */
    margin-bottom: 10px; /* Space between text and controls */
    width: 100%; /* Take full width */
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px; /* Increased gap */
    flex-shrink: 0; /* Prevent controls from shrinking */
    width: 100%; /* Take full width */
    justify-content: flex-end; /* Align controls to the right */
}

.qty-btn, .remove-btn {
    padding: 9px 12px; /* Increased padding */
    font-size: 1.05em;
    border: 1px solid var(--color-border);
    background-color: #fefefe; /* Lighter background */
    cursor: pointer;
    border-radius: 8px; /* More rounded */
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s; /* Added box-shadow transition */
    color: var(--color-medium-text);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* Subtle shadow */
}
.qty-btn:hover {
    background-color: #eef2f6;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.qty-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.remove-btn {
    background-color: #FF6347; /* Tomato Red - Cuter red */
    color: white;
    border-color: #FF6347;
    box-shadow: 0 4px 12px rgba(255, 99, 71, 0.4); /* Red shadow */
}
.remove-btn:hover {
    background-color: #FF4500; /* Darker red */
    transform: translateY(-3px); /* Stronger lift */
    box-shadow: 0 6px 15px rgba(255, 99, 71, 0.6);
}
.remove-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(255, 99, 71, 0.3);
}

.cart-total {
    font-size: 2.8em; /* Larger total price */
    font-weight: bold;
    text-align: right;
    margin-top: 40px;
    color: var(--color-primary); /* Primary pink */
    padding-top: 25px;
    border-top: 2px dashed var(--color-border);
}

#checkout-btn {
    width: 100%;
    padding: 30px; /* Increased padding */
    font-size: 1.8rem; /* Larger font */
    background: linear-gradient(45deg, var(--color-accent), #FFB6C1); /* Peach to light pink gradient */
    border: none;
    border-radius: 20px; /* More rounded */
    cursor: pointer;
    font-weight: bold;
    margin-top: 35px;
    color: var(--color-dark-text);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(255, 218, 185, 0.6); /* Peach shadow */
}

#checkout-btn:hover {
    background: linear-gradient(45deg, #FFC0CB, #FFDAB9); /* Shift gradient on hover */
    transform: translateY(-8px); /* More pronounced lift */
    box-shadow: 0 15px 35px rgba(255, 218, 185, 0.8); /* Stronger, diffused shadow */
}
#checkout-btn:active {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 218, 185, 0.5);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); /* Slightly lighter overlay */
    padding-top: 80px; /* More space from top */
    backdrop-filter: blur(12px); /* More blur */
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 50px; /* Increased padding */
    border-radius: 35px; /* More rounded */
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85); /* Stronger shadow */
    width: 90%;
    max-width: 800px; /* Slightly wider modal */
    position: relative;
    animation: fadeInScale 0.5s ease-out forwards; /* Slower animation */
}
    
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.7); /* Starts smaller */
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-btn {
    color: #ccc; /* Lighter color */
    position: absolute;
    top: 25px; /* Adjusted position */
    right: 30px; /* Adjusted position */
    font-size: 45px; /* Larger icon */
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--color-dark-text);
    text-decoration: none;
}

#qr-code-container {
    border: 6px dashed #ff1493; /* Thicker, blue dashed border */
    padding: 45px; /* Increased padding */
    text-align: center;
    margin: 45px 0; /* Increased margin */
    font-family: 'Comfortaa', sans-serif; /* Use Comfortaa for QR text */
    background-color: #ffc0cb; /* Lighter blue background */
    border-radius: 30px; /* More rounded */
    color: #ff1493; /* Darker blue text */
    font-weight: bold;
    word-break: break-all;
    line-height: 1.6;
    font-size: 1.35em; /* Larger font */
    box-shadow: inset 0 4px 15px rgba(0,0,0,0.1); /* More prominent inner shadow */
}
#qr-code-container img {
    max-width: 100%;
    height: auto;
    margin-top: 25px;
    border-radius: 15px; /* More rounded */
    border: 3px solid var(--color-secondary); /* Thicker border for QR code */
}

#confirm-order-btn {
    width: 100%;
    padding: 30px; /* Increased padding */
    background: linear-gradient(45deg, var(--color-primary), #FFC0CB); /* Pink gradient */
    color: white;
    border: none;
    border-radius: 20px; /* More rounded */
    font-size: 1.8em; /* Larger font */
    cursor: pointer;
    margin-top: 40px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.6); /* Pink shadow */
}

#confirm-order-btn:hover {
    background: linear-gradient(45deg, #FF1493, #FF69B4); /* Darker pink on hover */
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 105, 180, 0.8);
}
#confirm-order-btn:active {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.5);
}

/* Loading spinner */
.loading-spinner {
    display: none;
    border: 5px solid #f3f3f3; /* Thicker border */
    border-top: 5px solid var(--color-primary); /* Primary pink */
    border-radius: 50%;
    width: 25px; /* Larger spinner */
    height: 25px;
    animation: spin 1s linear infinite;
    margin-left: 12px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Alert Modal Styling */
#custom-alert-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6); display: flex; 
    justify-content: center; align-items: center; z-index: 2000;
    backdrop-filter: blur(8px); /* Slightly less blur for alert */
    animation: fadeIn 0.3s ease-out forwards;
}

#custom-alert-modal .modal-content {
    background-color: white; padding: 35px; border-radius: 20px; /* More rounded */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); text-align: center;
    max-width: 450px; width: 90%; font-family: 'Comfortaa', sans-serif;
    position: relative; animation: fadeInScale 0.3s ease-out forwards;
}

#custom-alert-modal .close-btn {
    font-size: 32px; /* Larger close button */
    top: 18px; right: 22px;
}

#custom-alert-modal p {
    font-size: 1.2em; color: var(--color-dark-text); margin-bottom: 30px;
}

#custom-alert-modal button {
    background-color: var(--color-primary); color: white; padding: 15px 35px; /* Increased padding */
    border: none; border-radius: 12px; /* More rounded */
    cursor: pointer; font-size: 1.1em;
    font-weight: 600; transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4); /* Pink shadow */
}
#custom-alert-modal button:hover {
    background-color: #FF1493; transform: translateY(-3px);
}
#custom-alert-modal button:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}