/* Global Styles */
:root {
    --primary-color: #A7241C;
    --secondary-color: #0E0D0C;
    --background-color: #FFF5F0;
    --text-gray: #666666;
    --welcome-red: #751304;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
}

.app-container {
    max-width: 615px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
}

@media (min-width: 600px) {
    .app-container {
        max-width: 600px; /* for desktop */
    }
}

/* Header Styles */
.header {
    padding: 0.75rem 1rem;  /* Reduced from 1rem */
}

.header-content {
    display: flex;
}

.header-left {
    flex: 1;
}
.header-right {
    flex: 1;
    margin-right: -1rem;  /* This will compensate for the parent padding */
}

.logo {
    width: 8rem;
    margin-bottom: 0.5rem;  /* Reduced from 1rem */
}

.logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.welcome-text h1 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--welcome-red);
}

.welcome-text h2 {
    font-size: 1.5rem;  /* Slightly smaller from 1.75rem */
    margin-bottom: 0.25rem; /* Add this to reduce space */
}

.welcome-text h3 {
    font-size: 1.125rem;
    color: var(--secondary-color);
}

.welcome-header h1 img {   /* hand icon */
    height: 2.5rem;
    width: auto;
    vertical-align: middle;
    margin-left: 2px;
    margin-top: -15px;
}


.tagline {
    margin-top: 0.70rem;
    margin-right: 40px;
    font-size: 1rem;
    font-style: italic;
    color: var(--text-gray);
}

.header-right {
    flex: 1;
}

.hero-image {
    margin-top: -5px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem 0 0 0;  /* Only round the top-left corner */
}


/* Gift Banner Styles */
.gift-banner {
    margin-top: -15px;  /* Adjust to reduce space */
    padding: 0.6rem 1.1rem;  /* Reduced from 0.80rem */
    background-color: var(--primary-color);
}

.gift-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gift-info {
    display: flex;
    flex-direction: column;
}

.gift-text {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.gift-text .fas {
    font-size: 1.5rem;
    color: white;
    align-items: center;  /* Center vertically */
}

.gift-title {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.gift-subtitle {
    color: white;
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.buy-button {
    padding: 0.29rem 1rem;
    background-color: white;
    color: var(--primary-color);
    border: none;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.buy-button:hover {
    background-color: #f8f8f8;
}


/* How it Works Styles */
.how-it-works {
    padding: 1rem;  /* Reduced from 1.3rem */
}



.how-it-works h3 {
    
    margin-top: -3px;  /* Adjust if needed */
    font-size: 1.4rem;  /* Slightly smaller */
    margin-bottom: 0.2rem;  /* Reduced from 0.4rem */
    text-align: center;
    width: 100%;  /* Add this to ensure full width */
    display: block; /* Add this to ensure block-level element */
}

.subtitle {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-top: -5px;
    margin-bottom: 1.2rem;
    text-align: center;
}



.steps {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;  /* Reduce from 1.8rem */
    text-align: left;
    max-width: 90%;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.6rem;  /* Reduce from 1rem */
}

.step-icon {
    width: 3.5rem;  /* Increased from 2.7rem */
    height: 3.5rem; /* Increased from 2.7rem */
    display: flex;
    color: var(--primary-color);
    align-items: center;
    justify-content: center;
}

.step-icon i {
    font-size: 1.8rem;  /* Add this line to make the icons themselves larger */
}

.step-title {
    font-size: 0.9rem;  /* Reduce from 1.0rem */
    margin-bottom: 0rem; /* Add small margin */
    color: var(--primary-color);
    font-weight: bold !important;
    text-transform: uppercase !important;
}

.step-description {
    font-size: 0.9rem;  /* Reduce from 1.0rem */
    line-height: 1.1;   /* Add this to reduce line height */
    color: var(--text-gray) !important;
}

.start-button {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.6rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.bottom-nav {
    margin-top: auto;
    border-top: 1px solid #e5e5e5;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    position: fixed;  /* Add this */
    bottom: -10px;       /* Add this */
    width: 100%;     /* Add this */
    z-index: 100;    /* Add this */
     max-width: 630px; /* or your desired max-width to match content */
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 1024px) {
    .bottom-nav {
        justify-content: center; /* Change to center for desktop */
        gap: 7rem; /* Add specific gap for desktop view */
        /* or you could use padding-left/right */
        padding-left: 3.5rem;
        padding-right: 3.5rem;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}


.nav-icon-wrapper {
    position: relative;
}

.nav-item i {
    color: var(--secondary-color);
    width: 1.8rem;
    height: 1.8rem;
    font-size: 1.6rem;
}

.nav-item span {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

#currentWeek .nav-icon-wrapper i {
    color: var(--secondary-color);
}

.notification {   /*   day number   */
    position: absolute;
    top: -0.38rem;
    right: -0.38rem;
    background-color: var(--secondary-color);
    font-size: 0.85rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 9999px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff !important;   
}

/* Icon Styles */
.fas, .far {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

/* Responsive Design */
@media (min-width: 550px) {
  .header-left {
        flex: 1.3;    /* Give more space to text on mobile */
    }
    
    .header-right {
        flex: 1;      /* Adjust image space on mobile */
        padding-top: 30px;
    }

    .hero-image {
    width: 100%;
    height: auto;  /* Let height adjust automatically */
    min-height: 140px;  /* Minimum height to ensure visibility */
    object-fit: cover;
    object-position: center;  /* Center the image */
    margin-top: -10px;
}
}

    
    /*.gift-banner {*/
    /*    padding: 0.8rem 1.1rem;*/
    /*}*/
      .gift-text .fas {
        margin-top: 2px;  /* Fine-tune vertical alignment on mobile */
        font-size: 2.2rem;  /* Slightly smaller on mobile if needed */
        padding-right: 60px;
    }
}


/* View Management */
.view {
    width: 100%;
    min-height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease-in-out;
    display: none;
}

/* Calendar View Specific Styles */
.calendar-header {
    padding: 12px;
    background-color: var(--background-color);
}

.top-bar {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* Add these for desktop containment */
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.back-button {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 10px;
    justify-content: center;
}
/* Add media query for desktop specific adjustments */
@media (min-width: 1024px) {
    .top-bar {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.welcome-section {
 margin-bottom: 16px;
    max-width: 700px;
}

.welcome-section h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.greeting {
    margin-top: -10px;
    font-size: 20px;
    color: var(--text-gray);
    font-weight: 500;
}

.date-spanish {
    font-size: 14px;
    color: #757170;
    margin-bottom: 5px;
    order: 2;
    position: relative;
    
}

.calendar-strip {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 0 10px;
    max-width: 1024px; /* Add this */
    margin-left: auto; /* Add this */
    margin-right: auto; /* Add this */
}

.day-column.active .day,
.day-column.active .date {
    color: white;
}

.day {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.date {
    font-size: 14px;
    font-weight: 500;
    color: #757170;
}

/* Welcome section alignment */

.welcome-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.welcome-left {
   display: flex;
   flex-direction: column;
   margin: 0 auto;
   align-items: flex-start; /* Changed from center to flex-start */
}

.welcome-left h1 {
   order: 1;
   margin-top: 10px;
   margin-bottom: 8px;
}

.welcome-left .greeting {
   order: 2;
}

.welcome-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.welcome-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary-color);
    order: 1;
}

.greeting {
    font-size: 20px;
    font-family: 'Poppins';
    color: var(--text-gray);
    font-weight: 600;
}

/* Calendar strip improvements */
.calendar-strip {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 0;
    margin-left: -10px; /* Align with text above */
    margin-right: -10px;
}

.day-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    background-color: white; /* White background for all days */
}

.day-column.active {
    background-color: #4CAF50;
}

/* Back button fix */
.back-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 20px;
    color: var(--secondary-color);
}

/* Calendar header padding */
.calendar-header {
    padding: 20px;
}

.top-bar {
    margin-bottom: 20px;
}


/*    NEW CSS FOR CUBAN MENU DISHES    */
.daily-menu {
    padding: 20px;
    background-color: #f5f5f5;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.menu-header h2 {
    font-size: 20px;
    color: var(--secondary-color);
    font-weight: 600;
}

.menu-header .date {
    color: #757170;
    font-weight: 700;
    font-size: 18px;
    font-family: 'Poppins';
}

.dishes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dish-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dish-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dish-info {
    flex: 1;
    margin-right: 12px;
}

.dish-info h3 {
    font-size: 15px;
    color: var(--secondary-color);
    margin-bottom: 3px;
    font-weight: 600;
}

.dish-info .description {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 3px;
}

.dish-info .price {
    font-size: 14px;
    color: #4CAF50;
    font-weight: 700;
}


.add-to-plan {
    padding: 9px 17px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-to-plan:hover {
    background-color: #45a049;
}
/*    END OF CSS FOR CUBAN MENU DISHES    */


/* SINGLE PRODUCT PAGE */
.product-detail-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1000;
    overflow-y: auto;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem;
     background-color: rgba(255, 245, 240, 0.95); /* Using background color with 95% opacity */
     backdrop-filter: blur(5px); /* Adds slight blur effect to background */
    position: fixed;
    top: 0;
    left: 0;
   right: 0;
   z-index: 100;
}


/* PROGRESS INDICATOR BAR   */
.progress-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #E0E0E0;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #4CAF50;
}

.progress-text {
    text-align: center;
    font-size: 17px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 3px;
}

.minimum-text {
    text-align: center;
    font-size: 12px;
    color: var(--text-gray);
    opacity: 0.8;
}

/* Ensure back button and cart icon stay above the centered progress indicator */
.back-button, .cart-icon {
    z-index: 1;
}

/* END OF PROGRESS BAR   */

.back-to-list {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.product-main {
    position: relative;
    padding-bottom: 20px;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 16px;
}

.product-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-description {
    color: #666;
    margin-bottom: 8px;
}

.price-tag {
    font-size: 18px;
    font-weight: 600;
    color: #4CAF50;
}


#dishesListView {
    display: block !important;
}

/* Side Dishes Section */
.side-dishes-section {
    padding: 16px;
    background: #f8f8f8;
}

.section-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.required-tag {
    background: #ff4444;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
}

.option-text {
    display: flex;
    flex-direction: column;
}

.spanish {
    font-weight: 500;
}

.english {
    font-size: 12px;
    color: #666;
}

/* Quantity Selectors */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-selector button {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Bottom Action */
.bottom-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-top: 1px solid #F3F4F6;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.select-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    border: 3px solid #4CAF50;
    border-radius: 8px;
    color: var(--secondary-color);
    background: transparent;
    font-weight: 500;
    margin-left: 20px;
}

.select-more-btn i {
    font-size: 14px;
}

.add-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/*    add to cart button with quantity selector dynamic and bubble cart adding number  */
.cart-button-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

.notification-bubble {
    display: none; /* Hidden by default  this is the menu meals bubble*/
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #A7241C;
    color: white;
    font-size: 14px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

/* Text below icon */
.nav-item span:not(.notification-bubble) {
    font-size: 14px; /* Adjust as needed */
}

/* Notification bubble positioning  this is the bubble in bottom nav order summary icon*/
.nav-item .notification-bubble {
      position: absolute;
  
    right: 20px;
    background-color: #A7241C;
    font-size: 0.85rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;   
}

.add-to-cart-initial {
    width: 80%;
    height: 50px;
    margin: 20px auto;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #EF4444;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.quantity-selector-active {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #EF4444;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: white;
}

.quantity-selector-active button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector-active .quantity {
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

/* Add styles for cart notification */
.cart-icon {
    position: absolute;
font-size: 1.8rem;  /* Larger icon */
   margin-right: 6px;  /* Move left */
   color: #4CAF50;
   margin-top: 10px;
   top: 20px;
   right: 20px;
   
}

/* Specific override for homepage */
#homeView .cart-icon {
   display: none;
}

.cart-notification {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #EF4444;
    color: white;
    border-radius: 50%;
    width: 21px;
    height: 21px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}


/* end of add to cart btn with selectors */



.quantity-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #F3F4F6;
    padding: 0.5rem;
    border-radius: 8px;
}

.quantity-main button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #374151;
    cursor: pointer;
}

.quantity-main .quantity {
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.add-to-cart {
    padding: 0.75rem 1.5rem;
    background: #EF4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.add-to-cart {
    background: #ff4444;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}



.load-more {
    color: #ff4444;
    background: none;
    border: none;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
}

/* END OF SINGLE PRODUCT PAGE    */


/*  BEGINNING OF SIDES  */

/* Side Dishes Section Styles */
.side-dishes-section {
    padding: 16px;
    background: #f8f8f8;
    margin-bottom: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 18px;
    color: #333;
}

.required-tag {
    background: #ff4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.optional-tag {
    background: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.option-item:hover {
    background: #f5f5f5;
}

.option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spanish {
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.english {
    color: #666;
    font-size: 13px;
}

/* Add-ons Section Styles */
.addons-section {
    padding: 16px;
    background: white;
}

.promo-banner {
    background: #FFF5E6;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-tag {
    background: #A7241C;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.promo-text {
    color: #A7241C;
    font-size: 14px;
    font-weight: 500;
}

.addons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.addon-text .english {
    display: block;
}

.addon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.addon-item:hover {
    background: #f0f0f0;
}

.addon-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 16px;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
}

.sale-price {
    color: #ff4444;
    font-weight: 500;
    font-size: 15px;
}

.price {
    color: #4CAF50;
    font-weight: 500;
    font-size: 15px;
}

/* Quantity Selector Styles */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-selector button {
    width: 28px;
    height: 28px;
    border-radius: 14px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-selector button:hover {
    background: #f0f0f0;
}

.quantity-selector button:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.quantity-selector .quantity {
    font-size: 15px;
    min-width: 20px;
    text-align: center;
}

/* Checkbox Styles */
.option-select input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Sale Item Highlight */
.addon-item.on-sale {
    background: #FFF5F5;
}

.addon-item.on-sale:hover {
    background: #FFE5E5;
}

/*  END OF SIDES */

/* Empty Cart Styles */
.empty-cart-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: #ffffff;
    position: relative;
}

.back-button {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 0.5rem;
}


/* Order Summary Filled State */
.order-summary-container {
    background-color: var(--background-color);
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 80px;
    max-width: 490px; /* Add this line */
    margin: 0 auto; /* Add this line */
}

.nav-item .orderSummary span {
    color: #000000;
}

@media (min-width: 1024px) {
    .order-summary-container {
        max-width: 1024px;
        padding: 40px; /* More padding for desktop */
    }
}

.order-summary-content {
    padding: 15px;
}

.summary-header {
    margin-bottom: 20px;
}

.summary-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.pickup-time {
    color: var(--text-gray);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pickup-time::before {
    content: '\f017';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
}

.days-container {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Day Section Styles */
.day-section {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px;
    background-color: #fff;
}

.day-section:last-child {
    border-bottom: none;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #f8f8f8;
}

.day-title {
    font-size: 18px;
    font-weight: 600;
    background: #EDF7ED;
    color: #4CAF50;
}
/* Modify existing styles */
.day-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto; /* This pushes the buttons to the right */
}

.edit-day, .delete-day {
    background: none;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Modify edit button styles */
.edit-day {
    color: #4CAF50;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.edit-day i {
    font-size: 14px;
}

/* Modify delete button styles */
.delete-day {
    color: var(--primary-color);
    font-size: 13px;
    display: flex;
    align-items: center;
}

.delete-day i {
    font-size: 16px;
}

/* Add hover effects */
.edit-day:hover {
    color: #388E3C;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
}

.delete-day:hover {
    color: #d32f2f;
    background-color: rgba(167, 36, 28, 0.1);
    border-radius: 4px;
}

@media (min-width: 1024px) {
    .edit-day, .delete-day {
        padding: 8px 16px; /* Slightly larger hit area on desktop */
    }
}

/* Smoother transitions for interactions */
.order-item, .day-header {
    transition: background-color 0.2s ease;
}

.order-item:hover {
    background-color: #fafafa;
}

/* Add desktop specific enhancements */
@media (min-width: 1024px) {
    .order-summary-container {
        max-width: 1024px;
        padding: 40px;
    }

    .days-container {
        max-width: 800px;
        margin: 0 auto;
    }

    .summary-header h1 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .pickup-notification {
        max-width: 800px;
        margin: 20px auto;
    }

    /* Enhanced hover states for desktop */
    .day-actions button {
        opacity: 0.8;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .day-actions button:hover {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Loading state styles */
.order-summary-content.loading {
    position: relative;
    min-height: 200px;
}

.order-summary-content.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.editing-notification {
    background-color: #E8F5E9;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #4CAF50;
}

.editing-notification i {
    color: #4CAF50;
}

.editing-notification span {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
}

.feedback-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.feedback-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.feedback-message i {
    color: #4CAF50;
    font-size: 1.2rem;
}

.feedback-message.error i {
    color: var(--primary-color);
}

.feedback-message span {
    color: var(--secondary-color);
    font-weight: 500;
}

@media (min-width: 1024px) {
    .feedback-message {
        bottom: 40px;
    }
}

/* Loading and Error States */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-gray);
    font-size: 14px;
    margin-top: 10px;
}

.error-state {
    text-align: center;
    padding: 2rem;
}

.error-state i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-state h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.error-state p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.retry-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

.retry-button:hover {
    background-color: #8a1d16;
}

.retry-button i {
    font-size: 1rem;
    color: white;
}

/* end of filled state cart */




@media (max-width: 550px) {
   .back-button {
       margin-top: -10px;
       margin-bottom: 10px;
   }
}

.empty-cart-content {
    max-width: 400px;
    text-align: center;
    margin-top: 4rem;
}

.empty-cart-icon {
    font-size: 6rem;
    color: #000000;
    margin-bottom: 2rem;
}

.empty-cart-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
}

.empty-cart-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.start-planning-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1.1rem 2.9rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.start-planning-btn:hover {
    background-color: #357ABD;
}


@media (max-width: 550px) {  /* for icon hand */
   .welcome-header h1 img {
       height: 0.9em;
       margin-top: -8px;
   }
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .empty-cart-content {
        margin-top: 3rem;
        padding: 0 1rem;
    }

    .empty-cart-content h1 {
        font-size: 1.75rem;
    }

    .empty-cart-content p {
        font-size: 1rem;
    }

    .start-planning-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}


/* OTHER WEEKS STYLES */
/* Other Weeks View Specific Styles */
#otherWeeksView {
    background-color: var(--background-color);
    min-height: 100vh;
    position: relative;
}

/* Month Navigation Styles */
.month-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    position: relative; /* Add this */
}

.month-nav-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

  .month-nav-btn:hover {
    background-color: rgba(167, 36, 28, 0.1);
    border-radius: 50%;
}

.current-month {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    min-width: 140px;
    text-align: center;
}

/* Calendar Grid Styles */

#calendarView.active #dishesListView {
    display: block !important;
} 

.calendar-grid {
    background-color: white;
    border-radius: 12px;
    padding: 0.7rem;
    margin: 1rem 1rem 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 400px; /* Add this */
    margin-left: auto;  /* Add this */
    margin-right: auto; /* Add this */
}

.weekdays {
    display: grid;
   grid-template-columns: repeat(5, 1fr); /* Changed from 7 to 5 */
    text-align: center;
    margin-bottom: 0.5rem;
}

.weekdays div {
    font-size: 0.85rem;
    color: var(--text-gray);
    padding: 0.5rem;
    font-weight: 600;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Changed from 7 to 5 */
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    color: var(--secondary-color);
}

.calendar-day:hover {
    background-color: rgba(167, 36, 28, 0.1);
}

.calendar-day.selected {
    background-color: var(--primary-color);
    color: white;
}

.calendar-day.today {
    font-weight: 700;
    border: 2px solid var(--primary-color);
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.has-menu::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.view-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: center;
    margin: 0.5rem 0;
}

.view.active {
    display: block;
}

/* New container for status and button */
.day-status-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

/* New button styling */
.order-now-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 22px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: opacity 0.2s ease;  /* Changed from background-color to opacity */
}

.order-now-btn:hover {
    opacity: 0.85;  /* Instead of changing background color, we make it slightly transparent */
}

/* Add this if you want a click effect */
.order-now-btn:active {
    transform: scale(0.98);
}



/* Selected Day Info Styles */
.selected-day-info {
    background-color: white;
    margin: 0.5rem 1rem;  /* Reduced top margin from 1rem to 0.5rem */
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.selected-date {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.date-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.date-info {
    display: flex;
    flex-direction: column;
}

.month-year {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.day-name {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.day-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.day-status.available {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.day-status.unavailable {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.day-status i {
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 360px) {
    .calendar-grid {
        margin: 0.5rem;
        padding: 0.5rem;
    }

    .calendar-day {
        font-size: 0.9rem;
    }
    
    .calendar-day.selected {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.calendar-day.empty {
    visibility: hidden;
}

    .weekdays div {
        font-size: 0.75rem;
        padding: 0.25rem;
    }

    .selected-day-info {
        margin: 0.5rem;
        padding: 0.75rem;
    }
}

/* Animation for view transitions */
.view {
    transition: opacity 0.3s ease-in-out;
}

.view.fade-in {
    opacity: 1;
}

.view.fade-out {
    opacity: 0;
}
/* END OF OTHER WEEKS */

/* Initial state - large centered button */
.add-to-cart-initial {
    width: 80%;
    height: 50px;
    margin: 20px auto;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #A7241C;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #ffffff;
}

/* Initial state - small to the side button */ 
.add-to-cart-initial.compact {
    width: auto;
    height: 40px;
    margin: 20px 10px;
    font-size: 14px;
    margin-left: auto;
}

.buttons-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    transition: all 0.3s ease;
}


/*css style for calendar view, notification, cut off time info */
.ordering-window-message {
    background-color: #FAEDE7;  /* lt pink */
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 8px;
    color: #2c3e50;
    font-weight: 500;
    text-align: center;
    border-left: 4px solid #E07670;  /* drk pink */
}

.day-column.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.day-column.disabled .date,
.day-column.disabled .day {
    color: #999;
}

 .pickup-notification {
    background-color: #FAEDE7;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #E07670;
}

.pickup-notification i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.pickup-notification span {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
}


.date-section {
    margin: 20px 0;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pickup-date {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
}


/* Item styling updates */
.order-item {
    padding: 15px;
    background-color: white;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-quantity {
    color: #4CAF50;  /* Green color for quantity */
    font-weight: 700;
    font-size: 15px;
    min-width: 30px; /* Ensure consistent spacing */
}

.item-name {
    font-size: 15px;
    color: var(--secondary-color);
    font-weight: 500;
    flex: 1;
}

.item-sides {
    font-size: 13px;
    color: var(--text-gray);
    padding-left: 42px; /* Aligns with item name accounting for quantity width */
}

.sides-label {
    font-weight: 500;
    color: var(--secondary-color);
    margin-right: 4px;
}

/* Modal Base Structure */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.edit-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Modal Header */
.edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.edit-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

/* Meal Preview Section */
.meal-preview {
    text-align: center;
    margin-bottom: 20px;
}

.meal-preview img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 10px;
}

.meal-preview h4 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

/* Edit Sections */
.edit-section {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f9f9f9;
}

.edit-section h5 {
    margin: 0 0 15px 0;
    color: #444;
    font-size: 1rem;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.quantity-selector button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.2s ease;
}

.quantity-selector button:hover {
    background: #f0f0f0;
}

.quantity-selector .quantity {
    font-size: 1.2rem;
    min-width: 40px;
    text-align: center;
}

/* Sides Selection */
.sides-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.side-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-option input[type="checkbox"] {
    width: 28px;
    height: 28px;
}

.side-option label {
    font-size: 0.9rem;
    color: #555;
}

/* Action Buttons */
.edit-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.edit-actions button {
    padding: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.update-meal-btn {
    background: #007bff;
}


/* DISH DETAIL PAGE */
.new-dish-detail {
  position: relative;
  background: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.new-content-area {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 120px;
}

.new-dish-image {
  margin-top: 80px;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.new-dish-info {
  padding: 1rem;
}

.new-dish-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Add these styles after .new-dish-title */
.dish-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.new-dish-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;  /* Remove default margins */
}

.protein-extra-btn {
    background-color: #dc2626;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto; /* Push button to the right */
}

.protein-extra-btn i {
    font-size: 12px;
    margin-left: 2px;
}

.protein-extra-btn:hover {
    background-color: #b91c1c;
}

.new-dish-description {
  color: #666;
  margin-bottom: 1rem;
}

.new-dish-price {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: -12px;
  margin-bottom: 1.3rem;
  color: #4CAF50;
}


.protein-extra-header {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 20px;
}

.protein-extra-wrapper {
    display: flex;
    align-items: center;
}

.protein-extra-btn {
    background-color: #dc2626;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.protein-extra-btn i {
    font-size: 12px;
    margin-left: 4px;
}

.protein-extra-btn:hover {
    background-color: #b91c1c;
}

.new-side-options {
  background: #f8f8f8;
  border-radius: 0.5rem;
  padding: 1rem;
}

.new-side-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.new-required-badge {
  background: #A7241C;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.new-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.new-option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: white;
  border-radius: 0.5rem;
}

.new-option-title {
  font-weight: 500;
  margin-bottom: 0.21rem;
}

.new-option-subtitle {
  color: #666;
  font-size: 0.870rem;
}

.new-option-checkbox {
  width: 1.55rem;
  height: 1.55rem;
}

.new-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: white;
  border-top: 1px solid #eee;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.new-quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 0.25rem;
}

.new-quantity-btn {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
  font-weight: bold;
  background: none;
  border: none;
}

.new-quantity-value {
  width: 3rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: bold;
}

.new-add-btn {
  flex: 1;
  background: #A7241C;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.75rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.new-add-btn.button-disabled {
    background-color: #E0E0E0; /* Light grey */
    color: #888;
    cursor: not-allowed;
}

.new-add-btn.button-ready {
    flex: 1;
    background-color: #A7241C; /* Red */
    color: white;
    cursor: pointer;
     border: none;
  border-radius: 999px;
  padding: 0.75rem;
  font-weight: 500;
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .new-quantity-btn {
    width: 2rem;
    height: 2rem;
  }
  
  .new-quantity-value {
    width: 2.5rem;
  }
  
  .new-add-btn {
    padding: 0.625rem;
  }
}

/* END OF DISH DETAIL */


/* FILLED STATE O-SUM CSS */
.o-sum-container {
    padding: 20px;
    background: #fff;
}

.o-sum-title {
    font-size: 24px;
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 24px;
}

.o-sum-day {
    font-size: 20px;
    font-weight: 600;
    margin: 16px 0;
}

.o-sum-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 8px 0;
}

.o-sum-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 12px;
    object-fit: cover;
}

.o-sum-item-content {
    flex: 1;
}

.o-sum-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.o-sum-item-title {
    font-weight: 500;
}

.o-sum-item-actions {
    display: flex;
    gap: 8px;
}

.o-sum-action-btn {
    background: none;
    border: none;
    padding: 4px;
    color: #666;
    cursor: pointer;
}

.o-sum-item-quantity {
   font-weight: bold;
   color: #4CAF50;
    font-size: 14px;
}

.o-sum-item-price {
    margin-top: 3px;
    font-weight: bold;
    color: #4CAF50;
    font-size: 14px;
}

.o-sum-item-description {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

.o-sum-serving {
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}

/*.o-sum-extras {*/
/*    margin-top: 24px;*/
/*}*/

/*.o-sum-extras-title {*/
/*    font-size: 18px;*/
/*    font-weight: 600;*/
/*    margin-bottom: 12px;*/
/*}*/

/*.o-sum-extra-item {*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*    margin-bottom: 8px;*/
/*}*/

/*.o-sum-extra-name {*/
/*    display: flex;*/
/*    align-items: center;*/
/*}*/

/*.o-sum-extra-quantity {*/
/*    color: #666;*/
/*    margin-right: 8px;*/
/*}*/

.o-sum-subtotal {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 900;
}

.o-sum-checkout-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: #dc1e1e;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 16px;
    cursor: pointer;
}

/*.o-sum-container .addons-section {*/
/*    margin-top: 24px;*/
/*    padding-top: 16px;*/
/*    border-top: 1px solid #eee;*/
/*}*/

/*.o-sum-container .addons-section .section-header {*/
/*    margin-bottom: 16px;*/
/*}*/

/*.o-sum-container .addons-section h3 {*/
/*    font-size: 18px;*/
/*    font-weight: 600;*/
/*}*/

/*.o-sum-container .addons-section .addons-list {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    gap: 12px;*/
/*    z-index: 9999;*/
/*}*/

/* Ensure add-ons section appears before subtotal */
.o-sum-container .o-sum-subtotal {
    position: relative;
    display: block !important;
    visibility: visible !important;
    z-index: 9999;
}

/* Force display when minimum days are met */
.o-sum-container .addons-section[data-requires-minimum-days="3"] {
    display: block !important;
    visibility: visible !important;
    z-index: 9999;
}

.add-ons-container {
    font-family: Arial, sans-serif;
    max-width: 600px;
    padding: 20px;
    background-color: #FFF5F5;
    display: none;
}

.add-ons-container.show {
    display: block;
}

.add-ons-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.add-ons-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.add-ons-optional {
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.add-ons-special {
    background: #A7241C;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.add-ons-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    background-color: white;
    margin-bottom: 8px;
    border-radius: 4px;
}

.add-ons-item-info {
    flex-grow: 1;
}

.add-ons-item-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.add-ons-item-subname {
    font-size: 14px;
    color: #666;
}

.add-ons-price {
    font-size: 16px;
    font-weight: bold;
    min-width: 60px;
    text-align: right;
    margin: 0 35px;
}

.add-ons-price-original {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-right: 5px;
}

.add-ons-price-discounted {
    color: #e41e31;
}

.add-ons-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0E0D0C;
}

.add-ons-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.add-ons-quantity .add-ons-btn {
    width: 24px;
    height: 24px;
    padding: 0;
}

.add-ons-btn:hover {
    background: #f5f5f5;
}

.add-ons-btn:disabled {
    background: #eee;
    cursor: not-allowed;
}

.add-ons-quantity-value {
    min-width: 20px;
    text-align: center;
    font-size: 16px;
}

.add-ons-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
}

.add-ons-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
}

.add-ons-modal-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.add-ons-day-option {
    display: block;
    padding: 10px;
    margin: 5px 0;
    width: 100%;
    text-align: left;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.add-ons-day-option:hover {
    background: #f5f5f5;
}

.add-ons-summary {
    margin-top: 20px;
    background: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.add-ons-summary-day {
    margin-bottom: 15px;
}

.add-ons-summary-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.add-ons-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.add-ons-summary-item-info {
    flex-grow: 1;
}

.add-ons-summary-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-ons-delete-btn {
    color: #e41e31;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-ons-delete-btn i {
    font-size: 14px;
}

/* Responsive styles - Mobile only */
@media screen and (max-width: 768px) {
    .add-ons-container {
        max-width: 100%;
        padding: 8px;
        margin: 0;
    }

    .add-ons-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 8px;
    }

    .add-ons-item-info {
        width: 100%;
    }

    .add-ons-item-name.spanish {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 4px;
    }

    .add-ons-item-subname.english {
        font-size: 14px;
        color: #666;
        margin-bottom: 8px;
    }

    .add-ons-price-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .add-ons-price {
        margin: 0;
        font-size: 16px;
        display: flex;
        align-items: center;
    }

    .add-ons-quantity {
        margin-left: auto;
    }

    /* Summary section improvements */
    .add-ons-summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }

    .add-ons-summary-actions {
        width: 100%;
        justify-content: space-between;
    }

    .add-ons-delete-btn {
        margin-left: auto;
    }

    /* Improve spacing and alignment for bin icon */
    .add-ons-summary-actions .add-ons-delete-btn {
        padding: 8px;
        margin-right: -8px;  /* Compensate for parent padding */
    }

    /* Add price and quantity selector container */
    .price-quantity-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 8px;
    }
}

/* Additional helper classes for structure */
.flex-column {
    display: flex;
    flex-direction: column;
}

.text-left {
    text-align: left;
}

.full-width {
    width: 100%;
}


/* END OF FILLED STATE O-SUM */
