/* CSS 变量用于控制基础字体大小 */
:root {
    --base-font-size: 100%; /* Default font size */
}

/* Ensure body takes full height for fixed element positioning */
html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #f4f4f9;
    color: #333;
    /* Prevent double-tap zoom */
    touch-action: manipulation;
    font-size: var(--base-font-size); /* Apply base font size variable */
}

/* Prevent double-tap zoom on all elements */
* {
    touch-action: manipulation;
}

.header {
    text-align: center;
    padding: 5px 20px;
    background-color: #4A90E2;
    color: white;
    position: fixed;
    width: 100%;
    max-width: 800px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* NEW: Fixed font size for header h1, ignoring --base-font-size changes */
.header h1 {
    margin: 0 0 2px;
    font-size: 24px; /* Changed from 2em to a fixed pixel size */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3); /* Added text shadow */
}
/* NEW: Fixed font size for header p, ignoring --base-font-size changes */
.header p {
    margin: 5px 0 0;
    opacity: 0.9;
    font-size: 16px; /* Changed from default (implied 1em) to a fixed pixel size, adjust as needed */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3); /* Added text shadow */
}

.lang-switcher-container {
    background: #f0f0f0;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between; /* Adjusted to space-between for 3 elements */
    align-items: center;
    gap: 10px; /* Gap between elements */
    position: fixed;
    width: 100%;
    max-width: 800px;
    top: 0; /* Will be set dynamically by JS */
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

/* Language switcher dropdown */
.lang-switcher {
    flex-grow: 1; /* Allow it to grow and take available space */
}

.lang-select {
    width: auto; /* Make dropdown take only the width of its content */
    /* Removed max-width to allow it to expand as needed */
    padding: 8px 28px 8px 10px; /* Adjusted padding to give more space on the right */
    border: 1px solid #fff;
    border-radius: 8px; /* Rounded corners for the dropdown */
    background-color: #c764b8;
    color: white;
    font-size: 0.9em;
    cursor: pointer;
    appearance: none; /* Remove default system dropdown arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2C197.3L159.1%2C69.5c-3-3-7.9-3-10.9%2C0L5.4%2C197.3c-3%2C3-7.9%2C3-10.9%2C0l-2.2-2.2c-3-3-3-7.9%2C0-10.9L146%2C51.1c3-3%2C7.9-3%2C10.9%2C0l142.2%2C142.2c3%2C3%2C3%2C7.9%2C0%2C10.9L287%2C197.3z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow color changed to white */
    background-repeat: no-repeat;
    background-position: right 8px center; /* Adjusted position to 8px from right */
    background-size: 12px;
    box-shadow: 0 1px 1px white; /* Subtle shadow */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lang-select:focus {
    border-color: white;
    box-shadow: 0 0 0 1px white;
    outline: none;
}

/* 新增：两种语言切换按钮的样式 */
.lang-toggle-btn {
    background-color: #c764b8; /* 与其他按钮颜色一致 */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.0em;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px; /* 保持与购物车按钮高度一致 */
    box-sizing: border-box;
    transition: background-color 0.2s ease-in-out;
    flex-grow: 1; /* 允许它增长并占据可用空间 */
}

.lang-toggle-btn:hover {
    background-color: #a34895; /* 悬停效果 */
}


.cart-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-buttons button {
    background-color: #0a9c86; /* Updated color */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.0em;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 30px; /* Ensure view cart button has fixed height */
    box-sizing: border-box;
}
.cart-buttons button:hover {
    background-color: #087d6d; /* Darker shadow on hover */
}
.clear-cart-icon {
    background: none !important;
    border: none !important;
    padding: 5px !important;
    font-size: 1.5em !important;
    cursor: pointer;
    transition: color 0.2s ease-in-out; /* Only color transition */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}
.clear-cart-icon:hover {
    /* Removed transform and background color */
}
/* Cart icon state */
.clear-cart-icon.empty {
    color: #cccccc !important; /* Grey when empty */
}
.clear-cart-icon:not(.empty) {
    color: #d9534f !important; /* Red when not empty */
}

/* Font size toggle icon style */
.font-size-toggle-btn {
    background-color: #f3751a;
    color: white;
    border: none;
    padding: 8px 15px; /* Match padding of view-cart-btn */
    border-radius: 8px; /* Match border-radius of view-cart-btn */
    cursor: pointer;
    font-size: 1.0em; /* Ensure it matches other buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px; /* Explicitly set height to match view-cart-btn */
    transition: background-color 0.2s ease-in-out;
    /* No margin-right needed here, as it's now handled by parent .cart-buttons gap */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}
.font-size-icon-small {
    font-size: 1.0em; /* "A+" */
    font-weight: bold;
}
.font-size-icon-large {
    font-size: 1.0em; /* "A-" */
    font-weight: bold;
}


/* Main content area wrapper, contains fixed nav and scrollable menu */
.main-content-area-wrapper {
    max-width: 800px;
    margin: auto; /* Center the entire content block */
    position: relative; /* For correct z-index and positioning of fixed children */
    background-color: #f4f4f9; /* Background for main content area, outside category blocks */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex; /* Place category nav and menu side-by-side */
    box-sizing: border-box;
    /* Top and height will be set by JS to position below header/lang switcher */
}

#category-nav-container {
    position: fixed; /* Fixed relative to viewport */
    /* Width set by JS */
    background-color: #e9ecef;
    padding: 10px 0; /* Padding around nav items */
    z-index: 98;
    overflow-y: auto; /* Allow many categories to scroll */
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    box-sizing: border-box;
    /* Top, left, and height will be set by JS */
}

#category-nav-container a {
    display: block;
    padding: 8px 2px; /* Padding changed to 8px 2px */
    text-align: center; /* Text centered */
    margin-bottom: 5px;
    text-decoration: none;
    color: #333;
    border-radius: 0 5px 5px 0; /* Right side rounded corners */
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
}

#category-nav-container a:hover {
    background-color: #d1e7dd; /* Light green on hover */
}

#category-nav-container a.active {
    background-color: #4A90E2; /* Blue when active */
    color: white;
    font-weight: bold;
}

#menu-content-scroll-wrapper {
    /* Left margin and width set by JS */
    flex-grow: 1; /* Take up remaining space */
    padding: 0px 10px; /* Adjusted padding as per request */
    box-sizing: border-box;
    overflow-y: auto; /* Make this section independently scrollable */
    overflow-x: hidden; /* Prevent horizontal scrolling for menu content */
    /* Height will be set by JS to match its parent's height */
}

/* Category block - now a container for its h2 and dishes */
.category {
    margin-bottom: 25px; /* Consistent spacing between category blocks */
    background-color: #e9ecef;
    border-radius: 8px; /* Rounded corners for the entire category block */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* Stronger shadow for category block */
    overflow: hidden; /* Ensure border-radius applies to inner content */
}
.category:first-of-type {
    margin-top: 20px; /* Initial top margin for the first category block */
}
.category:last-of-type {
    margin-bottom: 20px; /* Ensure last category also has bottom spacing */
}

/* Category h2 - styled as a distinct title within its category block */
.category h2 {
    padding: 12px 20px; /* Adjusted padding as per request */
    background-color: #e0e0e0; /* Distinct background color for title */
    color: #333; /* Darker text */
    margin: 0; /* Remove browser default margins */
    border-bottom: 1px solid #ccc; /* Fine separator line to dishes */
    font-size: 1.3em;
    display: flex; /* Enable flexbox for icon alignment */
    align-items: center; /* Vertically center icon and text */
}

.category h2 .fa-bullhorn { /* Style for the announcement icon */
    margin-right: 8px; /* Space between icon and text */
    color: #d9534f; /* Red color for emphasis */
}

/* Dish card within a category */
.dish {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px; /* Inner padding for each dish card */
    border-radius: 8px; /* Rounded corners for individual dish card */
    margin: 0 5px 15px 5px; /* Adjusted margins for dishes within categories */
    box-shadow: 0 1px 3px rgba(0,0,0,0.08); /* Lighter shadow for dish card */
    box-sizing: border-box;
    width: calc(100% - 10px); /* Adjust width to account for left/right margins within category */
}
/* Alternating background colors for dish blocks */
.dish:nth-child(odd) {
    background-color: #ffffff; /* Clearer white for odd items */
}
.dish:nth-child(even) {
    background-color: #fdfdfd; /* Very light gray for even items */
}
.dish:first-of-type {
    margin-top: 15px; /* Spacing between h2 and first dish card */
}
.dish:last-of-type {
    margin-bottom: 15px; /* Spacing between last dish card and category bottom */
}

.dish-content {
    display: flex;
    flex-direction: column; /* Stack image and info vertically */
    align-items: center; /* Center content horizontally in column */
    width: 100%;
    margin-bottom: 15px;
}
.dish-img {
    width: 100%; /* Take full width of parent */
    max-width: 100%; /* Ensure it doesn't overflow */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px; /* Add margin below image to separate from info */
    flex-shrink: 0;
    background-color: #eee;
    cursor: pointer; /* Indicate clickable */
}
/* Style for the "No Image" placeholder */
.dish-placeholder-img {
    aspect-ratio: 4 / 1.5; /* Rectangular aspect ratio for 400x150 (8:3) */
    object-fit: contain; /* Ensures text inside is fully visible */
}
.dish-info {
    flex-grow: 1;
    width: 100%; /* Ensure info takes full width below image */
}
.dish-info h3 {
    margin: 0 0 4px; /* Reduced margin to bring base language name closer */
    font-size: 1.2em;
}
.dish-name-base-lang { /* New style for base language dish name */
    font-size: 1.0em;
    font-weight: normal; /* Remove bold */
    color: #555;
    margin-bottom: 8px; /* Margin below base language name */
    display: block; /* Ensure it takes its own line */
}
.dish-price-container { /* New container for price to control height */
    min-height: 0px; /* Ensure space is reserved even if no price */
    display: flex; /* To correctly position price paragraph if present */
    align-items: center; /* Vertically align content */
    justify-content: flex-start; /* Align to start, can be adjusted if needed */
    margin-top: 8px; /* Maintain consistent spacing with elements above */
    margin-bottom: 5px; /* Added as per request */
}
.dish-price {
    font-weight: bold;
    color: #d9534f;
    margin: 0; /* Reset margins, handled by container */
    padding: 0;
}
.tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* Small gap between tag groups */
}
.tag {
    display: inline-block;
    color: #555;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
}
/* Specific tag colors */
.cooking-methods-tag {
    background-color: #D6E4FF; /* Light blue */
    color: #0047AB; /* Dark blue */
}
.flavors-tag {
    background-color: #D4EDDA; /* Light green */
    color: #155724; /* Dark green */
}
.allergens-tag {
    background-color: #F8D7DA; /* Light red */
    color: #721C24; /* Dark red */
}
.meat-options-tag {
    background-color: #f7f7bf;
    color: #383D41;
}

/* New industry-specific tag styles */
.service-types-tag {
    background-color: #E1F5FE; /* Light cyan */
    color: #006064; /* Dark cyan */
}
.duration-tag {
    background-color: #FFF3E0; /* Light orange */
    color: #E65100; /* Dark orange */
}
.intensity-tag {
    background-color: #FCE4EC; /* Light pink */
    color: #880E4F; /* Dark pink */
}
.special-features-tag {
    background-color: #F3E5F5; /* Light purple */
    color: #4A148C; /* Dark purple */
}
.categories-tag {
    background-color: #E8F5E8; /* Light green */
    color: #2E7D32; /* Dark green */
}
.brand-tag {
    background-color: #FFF8E1; /* Light yellow */
    color: #F57F17; /* Dark yellow */
}
.size-tag {
    background-color: #E3F2FD; /* Light blue */
    color: #1565C0; /* Dark blue */
}
.material-tag {
    background-color: #EFEBE9; /* Light brown */
    color: #5D4037; /* Dark brown */
}
.workout-types-tag {
    background-color: #E8F5E8; /* Light green */
    color: #388E3C; /* Dark green */
}
.difficulty-tag {
    background-color: #FFEBEE; /* Light red */
    color: #C62828; /* Dark red */
}
.equipment-tag {
    background-color: #F1F8E9; /* Light lime */
    color: #689F38; /* Dark lime */
}

/* NEW: Style for inputbox content block */
.inputbox-content {
    white-space: pre-wrap; /* Preserves newlines and spaces, wraps text */
    word-wrap: break-word; /* Ensures long words don't overflow */
    text-align: left;
    line-height: 1.5;
    margin-top: 10px; /* Space between tags and this content */
    margin-bottom: 1.5em; /* Space after this content. Roughly one line + one blank line */
    padding: 10px;
    background-color: #f9f9f9; /* A slightly different background to make it stand out */
    border-left: 3px solid #4A90E2; /* A little accent */
    border-radius: 4px;
}


.quantity-controls {
    display: flex;
    align-items: center;
    margin-top: 8px; /* Adjusted for tighter spacing */
    background-color: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 38px; /* Set a fixed height for the container */
}
.quantity-btn {
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 0 15px; /* Removed vertical padding */
    height: 100%; /* Make button fill container height */
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.2s;
    outline: none;
    flex-shrink: 0;
    display: flex; /* Use flexbox to perfectly center content vertically */
    align-items: center;
    justify-content: center;
}
.quantity-btn:hover {
    background-color: #357ABD;
}
.quantity-display {
    padding: 0 15px; /* Removed vertical padding */
    height: 100%;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    min-width: 30px;
    text-align: center;
    background-color: white;
    margin: 0;
    display: flex; /* Use flexbox to perfectly center content vertically */
    align-items: center;
    justify-content: center;
}
/* NEW: Announcement card styling */
#announcement-text-content {
    white-space: pre-wrap; /* Respect newlines in the announcement text */
    word-wrap: break-word; /* Break long words */
    line-height: 1.6;
    color: #d9534f;
    font-weight: bold;
}

/* Quantity controls mobile adjustments */
@media (max-width: 600px) {
    .quantity-controls {
        height: 32px; /* Smaller height for mobile */
        margin-top: 5px; /* Further reduced margin for mobile */
    }
    .quantity-btn {
        font-size: 1em; /* Smaller button font */
        padding: 0 12px; /* Adjusted horizontal padding to fit smaller size */
    }
    .quantity-display {
        font-size: 0.9em; /* Smaller display font */
        padding: 0 12px; /* Adjusted horizontal padding */
        min-width: 25px; /* Slightly smaller min width */
    }
}

#modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
#cart-modal {
    background: white;
    padding: 20px 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    max-height: 80vh; /* Limit height to 80% of viewport */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
}
#cart-modal h2 {
    margin-top: 0;
    color: #d9534f;
    flex-shrink: 0; /* Don't shrink the header */
}
#cart-items {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    overflow-y: auto; /* Make cart items scrollable */
    flex-grow: 1; /* Take up available space */
    /* Show scrollbar explicitly */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #888 #f1f1f1; /* Firefox */
}
/* Webkit scrollbar styling */
#cart-items::-webkit-scrollbar {
    width: 8px;
}
#cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
#cart-items::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}
#cart-items::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#cart-items li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#cart-items li:last-child {
    border-bottom: none;
}
#cart-items .cart-item-names {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
#cart-items .cart-item-main-name {
    font-weight: bold;
}
#cart-items .cart-item-base-lang-name {
    font-size: 0.9em;
    font-weight: normal;
    color: #666;
}
#cart-items .cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
#cart-items .cart-item-quantity-controls {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    height: 30px;
}
#cart-items .cart-quantity-btn {
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 0 10px;
    height: 100%;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
#cart-items .cart-quantity-btn:hover {
    background-color: #357ABD;
}
#cart-items .cart-quantity-display {
    padding: 0px;
    height: 100%;
    font-size: 0.9em;
    font-weight: bold;
    color: #333;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
}
#cart-items .cart-remove-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.2s;
}
#cart-items .cart-remove-btn:hover {
    background-color: #c82333;
}

#cart-modal button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0; /* Don't shrink the close button */
}
#cart-instruction {
    color: #d9534f; /* Red for instruction */
    flex-shrink: 0; /* Don't shrink the instruction */
}

/* Payment methods display in cart */
#payment-methods-display {
    padding: 3px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #4A90E2;
    flex-shrink: 0; /* Don't shrink payment methods */
}
#payment-methods-display h4 {
    margin: 0 0 8px 0;
    color: #797979;
    font-size: 1em;
}
#payment-methods-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.payment-method-tag {
    background-color: #e7f3ff;
    color: #0066cc;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

/* Expiry Modal Styles */
#expiry-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#expiry-modal {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
}

#expiry-modal h2 {
    color: #d9534f;
    margin-top: 0;
    font-size: 1.8em;
}

#expiry-modal p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

/* #expiry-modal button { Removed to prevent user closing } */


/* Custom styles for restaurant name display */
/* NEW: Fixed font size for restaurant-name-cn, ignoring --base-font-size changes */
#restaurant-name-cn {
    color: white;
    font-size: 28px; /* Changed from 2.2em to a fixed pixel size */
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* NEW: Fixed font size for restaurant-name-current-lang, ignoring --base-font-size changes */
#restaurant-name-current-lang {
    color: #FFD700;
    font-size: 20px; /* Changed from 1.8em to a fixed pixel size */
    margin: 1px 0 5px;
    opacity: 0.9;
    font-weight: bold;
}

/* Image Modal Styles */
#image-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Darker overlay */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1001; /* Above other modals */
}

#image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#image-modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensure full image is visible */
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#image-modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.7);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s, color 0.2s;
}

#image-modal-close-btn:hover {
    background: #fff;
    color: #000;
}

/* Bottom-right floating icon styles */
#floating-ring-icon-container {
    position: fixed;
    bottom: 20px;
    right: 20px; /* Changed from left to right */
    z-index: 2001; /* Ensure it's above all modals */
    cursor: pointer;
    /* 移除边框和背景色，只保留阴影和过渡 */
    border: none;
    background-color: transparent;
    border-radius: 50%; /* Circular */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Shadow */
    transition: transform 0.2s ease-in-out;
    display: flex; /* Use flexbox layout */
    align-items: center; /* Vertically center content */
    justify-content: center;
    width: 50px; /* Reduced from 60px */
    height: 50px; /* Reduced from 60px */
}

#floating-ring-icon-container:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

.floating-ring-icon {
    display: block;
    width: 100%; /* Make image take full width of container */
    height: 100%; /* Make image take full height of container */
    border-radius: 50%; /* Ensure image itself is circular */
    object-fit: contain; /* Use 'contain' to ensure the entire image is visible, scaling it down if necessary */
    margin: auto; /* Auto-center within flex container */
}

/* Floating icon adjustments for mobile */
@media (max-width: 480px) {
    #floating-ring-icon-container {
        bottom: 15px;
        right: 15px; /* Changed from left to right */
        width: 40px; /* Reduced from 50px */
        height: 40px; /* Reduced from 50px */
    }
    .floating-ring-icon {
        width: 100%; /* Make image take full width of container */
        height: 100%; /* Make image take full height of container */
    }
}

/* Version Info Modal Styles */
#version-info-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark translucent background */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1002; /* Ensure it's above other modals */
}

#version-info-modal {
    background: linear-gradient(135deg, #4A90E2 0%, #7B68EE 100%); /* Gradient background */
    color: white;
    padding: 25px 20px; /* Adjusted padding */
    border-radius: 15px; /* Larger border-radius */
    width: 90%;
    max-width: 380px; /* Slightly increased max-width */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4); /* Stronger shadow */
    text-align: center;
    position: relative;
    transform: scale(0.9); /* Initial scale down */
    opacity: 0; /* Initial transparency */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out; /* Transition effect */
    display: flex; /* Use flexbox for internal layout */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center horizontally */
    gap: 15px; /* Space between elements */
    /* Modified: Add 20px padding to top and bottom */
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 10px; /* Keep existing horizontal padding */
    padding-right: 10px; /* Keep existing horizontal padding */
}

#version-info-modal.show {
    transform: scale(1);
    opacity: 1;
}

#version-info-modal h2 {
    margin: 0; /* Remove default margin */
    font-size: 2em; /* Adjusted font size */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#version-info-modal p {
    font-size: 1.5em; /* Adjusted font size */
    margin: 0; /* Remove default margin */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Space between icon and text */
    word-break: break-all; /* Allow long URLs to break */
    text-align: center;
}
#version-info-modal .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Space between contact lines */
    margin-top: 10px; /* Adjusted space above contact section */
}
#version-info-modal .contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5em; /* Adjusted font size */
    color: white;
}
#version-info-modal .contact-line a {
    color: white;
    text-decoration: none;
}
#version-info-modal .contact-line a:hover {
    text-decoration: underline;
}

#version-info-modal button {
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white button */
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 10px 25px;
    border-radius: 25px; /* Rounded button */
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.2s, border-color 0.2s;
    margin-top: 15px; /* Adjusted space above close button */
}

#version-info-modal button:hover {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

/* New: Clear Cart Confirmation Modal Styles */
#confirm-clear-cart-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark translucent background */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2002; /* Ensure it's above other modals */
}

#confirm-clear-cart-modal {
    background: white;
    color: #333;
    padding: 30px 20px; /* 30px top/bottom, 20px left/right */
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
}

#confirm-clear-cart-modal h2 {
    margin-top: 0;
    font-size: 1.5em;
    color: #4A90E2;
}

#confirm-clear-cart-modal p {
    font-size: 1.1em;
    margin-bottom: 25px;
}

#confirm-clear-cart-modal .button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

#confirm-clear-cart-modal button {
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s;
}

#confirm-clear-cart-modal button:hover {
    background-color: #357ABD;
}

#confirm-clear-cart-modal button.cancel-btn {
    background-color: #6c757d;
}

#confirm-clear-cart-modal button.cancel-btn:hover {
    background-color: #5a6268;
}

/* Remove Item Confirmation Modal Styles */
#confirm-remove-item-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2003;
}

#confirm-remove-item-modal {
    background: white;
    color: #333;
    padding: 30px 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
}

#confirm-remove-item-modal h2 {
    margin-top: 0;
    font-size: 1.5em;
    color: #dc3545;
}

#confirm-remove-item-modal p {
    font-size: 1.1em;
    margin-bottom: 25px;
}

#confirm-remove-item-modal .button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

#confirm-remove-item-modal button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s;
}

#confirm-remove-item-modal button:hover {
    background-color: #c82333;
}

#confirm-remove-item-modal button.cancel-btn {
    background-color: #6c757d;
}

#confirm-remove-item-modal button.cancel-btn:hover {
    background-color: #5a6268;
}