/* =============================================
   BAGEL BAGEL - Catering Page Styles
   Brand colors, Special Elite font, lowercase
   ============================================= */

.catering-main {
    padding-top: 90px;
    min-height: 100vh;
    background: var(--white);
}

.page-title {
    text-align: center;
    padding: 40px 20px;
}

.page-title h1 {
    font-size: clamp(24px, 5vw, 42px);
    font-weight: normal;
    color: var(--blue-main);
}

.page-title p {
    margin-top: 10px;
    color: var(--blue-main);
    opacity: 0.7;
    font-size: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   Catering Info Tags
   ============================================= */

.catering-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.catering-tag {
    font-family: 'Special Elite', monospace;
    font-size: 13px;
    color: var(--blue-main);
    padding: 8px 18px;
    border: 1.5px solid var(--blue-main);
    border-radius: 100px;
    letter-spacing: 0.3px;
    opacity: 0.7;
}

/* =============================================
   Progress Steps
   ============================================= */

.progress-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto 40px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--blue-main);
    opacity: 0.4;
    font-size: 14px;
    position: relative;
}

.step::after {
    content: '';
    width: 50px;
    height: 2px;
    background: var(--blue-main);
    opacity: 0.3;
    margin: 0 15px;
}

.step:last-child::after {
    display: none;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--blue-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    font-size: 13px;
}

.step.active .step-number {
    background: var(--blue-main);
    color: var(--white);
}

.step.completed .step-number {
    background: var(--blue-main);
    color: var(--white);
}

.step.completed {
    opacity: 1;
}

/* =============================================
   Sections
   ============================================= */

.section {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.section.active {
    display: block;
}

.section-title {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 30px;
    text-align: center;
    color: var(--blue-main);
}

/* =============================================
   Calendar
   ============================================= */

.calendar-container {
    background: var(--white);
    border: 2px solid var(--blue-main);
    padding: 30px;
    max-width: 450px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-header h3 {
    font-size: 20px;
    font-weight: normal;
    color: var(--blue-main);
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav button {
    width: 36px;
    height: 36px;
    border: 2px solid var(--blue-main);
    background: var(--white);
    color: var(--blue-main);
    cursor: pointer;
    font-size: 18px;
    font-family: 'Special Elite', monospace;
    transition: all 0.2s;
    border-radius: 50%;
}

.calendar-nav button:hover {
    background: var(--blue-main);
    color: var(--white);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-day-header {
    text-align: center;
    font-size: 11px;
    color: var(--blue-main);
    opacity: 0.6;
    padding: 10px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    color: var(--blue-main);
}

.calendar-day:hover:not(.disabled):not(.unavailable) {
    border-color: var(--blue-main);
}

.calendar-day.selected {
    background: var(--blue-dark);
    color: var(--white);
}

.calendar-day.disabled {
    color: var(--blue-main);
    opacity: 0.2;
    cursor: not-allowed;
}

.calendar-day.unavailable {
    color: var(--blue-main);
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day.today {
    border-color: var(--blue-main);
}

.calendar-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 25px;
    font-size: 11px;
    color: var(--blue-main);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.available {
    border: 2px solid var(--blue-main);
}

.legend-dot.unavailable {
    background: var(--blue-main);
    opacity: 0.3;
}

.legend-dot.closed {
    background: var(--blue-main);
    opacity: 0.1;
}

.legend-dot.limited {
    background: #d97706;
}

/* Time Picker */
.time-picker {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--blue-main);
}

.time-picker h4 {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 20px;
    text-align: center;
    color: var(--blue-main);
}

.time-slider-container {
    padding: 0 10px;
    position: relative;
}

.time-display {
    text-align: center;
    font-size: 32px;
    color: var(--blue-main);
    margin-bottom: 20px;
    transition: transform 0.1s ease-out;
}

/* Time snap feedback animation */
.time-display.time-snap {
    transform: scale(1.1);
}

.time-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(10, 10, 121, 0.2);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    margin: 18px 0;
    padding: 0;
}

/* WebKit track */
.time-slider::-webkit-slider-runnable-track {
    height: 8px;
    background: rgba(10, 10, 121, 0.2);
    border-radius: 4px;
}

/* Firefox track */
.time-slider::-moz-range-track {
    height: 8px;
    background: rgba(10, 10, 121, 0.2);
    border-radius: 4px;
    border: none;
}

/* WebKit thumb */
.time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--blue-dark, #0A0A79);
    cursor: pointer;
    border-radius: 4px;
    margin-top: -8px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Firefox thumb */
.time-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--blue-dark, #0A0A79);
    cursor: pointer;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.time-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: var(--blue-main);
    opacity: 0.6;
}

/* =============================================
   Bagel Selection
   ============================================= */

.bagel-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.category-tab {
    padding: 12px 30px;
    border: 2px solid var(--blue-main);
    background: var(--white);
    color: var(--blue-main);
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: lowercase;
    border-radius: 100px;
}

.category-tab:hover {
    background: var(--blue-main);
    color: var(--white);
}

.category-tab.active {
    background: var(--blue-dark);
    color: var(--white);
    border-color: var(--blue-dark);
}

.order-layout {
    display: flex;
    gap: 40px;
}

.bagel-list {
    flex: 1;
}

.bagel-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bagel-card {
    background: var(--white);
    border: 2px solid var(--blue-main);
    padding: 25px;
    transition: all 0.2s;
}

.bagel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.bagel-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.bagel-image {
    width: 91px;
    height: 91px;
    border-radius: 50%;
    background: #1a4d1a;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--blue-main);
}

.bagel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    transform: scale(1.1);
}

.bagel-name {
    font-size: 20px;
    font-weight: normal;
    color: var(--blue-main);
}

.bagel-price {
    font-size: 18px;
    color: var(--blue-main);
}

.bagel-description {
    font-size: 13px;
    color: var(--blue-main);
    opacity: 0.7;
    margin-bottom: 20px;
    line-height: 1.6;
}

.bagel-options {
    margin-bottom: 20px;
}

.bagel-options label {
    font-size: 12px;
    color: var(--blue-main);
    display: block;
    margin-bottom: 10px;
}

.bagel-type-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .bagel-type-options {
        gap: 6px;
    }

    .bagel-type-btn {
        padding: 10px 14px;
        font-size: 11px;
        flex: 1;
        min-width: 0;
        text-align: center;
    }
}

.bagel-type-btn {
    padding: 8px 16px;
    border: 1px solid var(--blue-main);
    background: var(--white);
    color: var(--blue-main);
    font-family: 'Special Elite', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: lowercase;
}

.bagel-type-btn:hover {
    background: var(--blue-main);
    color: var(--white);
}

.bagel-type-btn.selected {
    background: var(--blue-dark);
    color: var(--white);
    border-color: var(--blue-dark);
}

.bagel-quantity {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--blue-main);
    touch-action: manipulation;
    background: var(--white);
    color: var(--blue-main);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Special Elite', monospace;
}

.quantity-btn:hover {
    background: var(--blue-main);
    color: var(--white);
}

.quantity-display {
    width: 50px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--blue-main);
    border-top: 2px solid var(--blue-main);
    border-bottom: 2px solid var(--blue-main);
}

/* =============================================
   Drinks Section
   ============================================= */

.drinks-section {
    margin-top: 0;
    padding-top: 0;
}

.drinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.drink-card {
    background: var(--white);
    border: 2px solid var(--blue-main);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

.drink-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #1a4d1a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--blue-main);
}

.drink-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    transform: scale(1.1);
}

.drink-info {
    text-align: center;
}

.drink-name {
    font-size: 16px;
    font-weight: normal;
    color: var(--blue-main);
    margin-bottom: 5px;
}

.drink-size {
    font-size: 12px;
    color: var(--blue-main);
    opacity: 0.7;
}

.drink-quantity {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* =============================================
   Cart Sidebar
   ============================================= */

.cart-sidebar {
    width: 300px;
    background: var(--white);
    border: 2px solid var(--blue-main);
    padding: 25px;
    position: sticky;
    top: 110px;
    height: fit-content;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--blue-main);
}

.cart-header h3 {
    font-size: 18px;
    font-weight: normal;
    color: var(--blue-main);
}

.cart-count {
    background: var(--blue-dark);
    color: var(--white);
    padding: 4px 12px;
    font-size: 12px;
}

.cart-date {
    background: rgba(10, 10, 121, 0.05);
    padding: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--blue-main);
}

.cart-date strong {
    display: block;
    margin-bottom: 4px;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(10, 10, 121, 0.2);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--blue-main);
}

.cart-item-details {
    font-size: 12px;
    color: var(--blue-main);
    opacity: 0.7;
}

.cart-item-price {
    font-size: 14px;
    color: var(--blue-main);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--blue-main);
    opacity: 0.5;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    font-family: 'Special Elite', monospace;
}

.cart-item-remove:hover {
    opacity: 1;
    color: var(--red);
}

.cart-empty {
    text-align: center;
    color: var(--blue-main);
    opacity: 0.5;
    padding: 30px 0;
    font-size: 14px;
}

.cart-summary {
    border-top: 2px solid var(--blue-main);
    padding-top: 15px;
    margin-top: 15px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--blue-main);
}

.cart-total span:last-child {
    font-size: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--blue-dark);
    color: var(--white);
    border: none;
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: lowercase;
    border-radius: 100px;
}

.checkout-btn:hover {
    background: var(--blue-main);
}

.checkout-btn:disabled {
    background: var(--blue-main);
    opacity: 0.5;
    cursor: not-allowed;
    font-size: 13px;
    padding: 16px 12px;
}

/* =============================================
   Review Section
   ============================================= */

.review-container {
    background: var(--white);
    border: 2px solid var(--blue-main);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.review-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--blue-main);
}

.review-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-section h4 {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 15px;
    color: var(--blue-main);
}

.review-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--blue-main);
}

.review-detail span:first-child {
    opacity: 0.7;
}

.review-items {
    margin-top: 15px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(10, 10, 121, 0.1);
    color: var(--blue-main);
}

.review-breakdown {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(10, 10, 121, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--blue-main);
    opacity: 0.85;
}

.review-line-off {
    color: #2e7d32;
    opacity: 1;
}

.review-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid rgba(10, 10, 121, 0.15);
    color: var(--blue-main);
    font-weight: 600;
}

/* Checkout Form */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkout-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkout-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkout-form label {
    font-size: 12px;
    color: var(--blue-main);
}

.checkout-form input,
.checkout-form textarea {
    padding: 12px 14px;
    border: 1px solid var(--blue-main);
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    color: var(--blue-main);
    background: var(--white);
    text-transform: lowercase;
    transition: border-color 0.2s;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: var(--blue-dark);
}

/* Address Autocomplete */
.address-autocomplete-container {
    position: relative;
}

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--blue-main);
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.address-suggestions.visible {
    display: block;
}

.address-suggestion {
    padding: 12px 14px;
    cursor: pointer;
    font-size: 13px;
    color: var(--blue-main);
    border-bottom: 1px solid rgba(10, 10, 121, 0.1);
    transition: background 0.15s;
}

.address-suggestion:last-child {
    border-bottom: none;
}

.address-suggestion:hover {
    background: rgba(10, 10, 121, 0.05);
}

.address-suggestion.address-out-of-range {
    opacity: 0.5;
    cursor: not-allowed;
    color: #888;
}

.address-suggestion.address-out-of-range:hover {
    background: transparent;
}

.address-distance {
    font-size: 11px;
    color: #c0392b;
    font-style: italic;
}

.address-delivery-error {
    margin-top: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: #c0392b;
    background: rgba(192, 57, 43, 0.08);
    border: 1px solid rgba(192, 57, 43, 0.2);
    border-radius: 4px;
}

.address-suggestion-loading {
    padding: 12px 14px;
    font-size: 12px;
    color: var(--blue-main);
    opacity: 0.6;
    text-align: center;
}

/* Legal Agreement */
.legal-agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(10, 10, 121, 0.03);
    margin-top: 20px;
}

.legal-agreement input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--blue-dark);
}

.legal-agreement label {
    font-size: 13px;
    color: var(--blue-main);
    line-height: 1.5;
}

.legal-agreement a {
    text-decoration: underline;
}

/* =============================================
   Navigation Buttons
   ============================================= */

.nav-buttons {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.nav-btn {
    padding: 14px 30px;
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: lowercase;
    border-radius: 100px;
}

.nav-btn.secondary {
    background: var(--white);
    border: 2px solid var(--blue-main);
    color: var(--blue-main);
}

.nav-btn.secondary:hover {
    background: var(--blue-main);
    color: var(--white);
}

.nav-btn.primary {
    background: var(--blue-dark);
    border: 2px solid var(--blue-dark);
    color: var(--white);
}

.nav-btn.primary:hover {
    background: var(--blue-main);
    border-color: var(--blue-main);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* =============================================
   Success Message
   ============================================= */

.success-container {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: var(--white);
    font-size: 40px;
}

.success-container h2 {
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 15px;
    color: var(--blue-main);
}

.success-container p {
    color: var(--blue-main);
    font-size: 15px;
    line-height: 1.7;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 900px) {
    .order-layout {
        flex-direction: column;
    }

    .cart-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        margin-top: 40px;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .catering-main {
        padding-top: 74px;
    }

    .page-title {
        padding: 16px 16px 12px;
    }

    .page-title h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .page-title p {
        font-size: 13px;
        line-height: 1.5;
        margin-top: 6px;
    }

    .catering-tags {
        gap: 6px;
        margin-top: 14px;
    }

    .catering-tag {
        font-size: 11px;
        padding: 6px 14px;
    }

    .page-title p[style*="margin-top: 10px"] {
        margin-top: 6px !important;
        font-size: 12px !important;
    }

    .progress-steps {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 12px 16px;
        margin-bottom: 16px;
        background: rgba(10, 10, 121, 0.03);
    }

    .step {
        font-size: 11px;
        flex-direction: row;
        gap: 4px;
        text-align: center;
        align-items: center;
    }

    .step::after {
        content: '';
        display: block;
        width: 20px;
        height: 1px;
        margin: 0 4px;
        background: var(--blue-main);
        opacity: 0.3;
    }

    .step:last-child::after {
        display: none;
    }

    .step-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .section {
        padding: 0 16px 40px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .calendar-container {
        padding: 16px;
    }

    .calendar-header {
        margin-bottom: 16px;
    }

    .calendar-header h3 {
        font-size: 15px;
    }

    .calendar-nav button {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .calendar-grid {
        gap: 4px;
    }

    .calendar-day {
        font-size: 13px;
    }

    .calendar-legend {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 16px;
        font-size: 10px;
    }

    .legend-dot {
        width: 10px;
        height: 10px;
    }

    .time-picker {
        margin-top: 20px;
        padding-top: 16px;
    }

    .time-picker h4 {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .time-display {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .bagel-categories {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 20px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .category-tab {
        flex: 1;
        min-width: auto;
        white-space: nowrap;
        text-align: center;
        padding: 10px 12px;
        font-size: 12px;
    }

    .bagel-card {
        padding: 16px;
    }

    .bagel-card-header {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .bagel-header-left {
        gap: 10px;
        flex: 1;
        min-width: 0;
    }

    .bagel-image {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
    }

    .bagel-name {
        font-size: 15px;
        line-height: 1.2;
    }

    .bagel-price {
        font-size: 15px;
        font-weight: normal;
    }

    .bagel-description {
        font-size: 12px;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    .bagel-options {
        margin-bottom: 12px;
    }

    .bagel-options label {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .bagel-type-options {
        gap: 6px;
    }

    .bagel-type-btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    .bagel-addons {
        margin: 10px 0;
    }

    .addons-toggle {
        font-size: 12px;
        padding: 8px 12px;
    }

    .addon-options {
        padding: 10px;
        gap: 6px;
    }

    .addon-checkbox {
        font-size: 12px;
        padding: 6px 8px;
    }

    .bagel-swap {
        margin: 10px 0;
        padding: 8px;
    }

    .swap-checkbox {
        font-size: 12px;
    }

    .bagel-quantity {
        justify-content: flex-end;
        margin-top: 12px;
    }

    .quantity-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .quantity-display {
        width: 44px;
        height: 36px;
        font-size: 16px;
    }

    .drinks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .drink-card {
        padding: 12px;
        gap: 10px;
    }

    .drink-image {
        width: 60px;
        height: 60px;
    }

    .drink-name {
        font-size: 12px;
    }

    .drink-size {
        font-size: 10px;
    }

    .drink-quantity .quantity-controls {
        transform: scale(0.9);
    }

    .checkout-form .form-row {
        grid-template-columns: 1fr;
    }

    .nav-buttons {
        flex-direction: column-reverse;
        gap: 10px;
        padding: 0;
        margin: 24px 0 0;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
        padding: 14px;
        font-size: 13px;
    }

    .nav-btn.secondary {
        padding: 12px;
        font-size: 12px;
    }

    .review-container {
        padding: 20px 16px;
    }

    .review-section {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .review-section h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .review-detail {
        font-size: 13px;
        padding: 6px 0;
    }

    .review-item {
        font-size: 13px;
        padding: 8px 0;
    }

    .review-total {
        font-size: 17px;
        padding-top: 12px;
    }

    .checkout-form input,
    .checkout-form textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .legal-agreement {
        padding: 12px;
        margin-top: 16px;
    }

    .legal-agreement input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .legal-agreement label {
        font-size: 12px;
        line-height: 1.4;
    }

    .drinks-price-label {
        font-size: 14px;
        padding: 8px;
        margin-bottom: 16px;
    }

    .pack-customizer {
        padding: 12px;
        margin: 12px 0;
    }

    .pack-flavor-row {
        padding: 6px 0;
    }

    .flavor-name {
        font-size: 13px;
    }

    .qty-btn {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }

    .flavor-count {
        font-size: 13px;
    }

    .pack-total-row {
        margin-top: 10px;
        padding-top: 10px;
    }

    .pack-total-label,
    .pack-total-count {
        font-size: 13px;
    }

    .add-pack-btn,
    .add-to-cart-btn {
        padding: 10px;
        font-size: 13px;
    }
}

/* =============================================
   Modal Styles for Terms & Conditions
   ============================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--white);
    padding: 0;
    border: 2px solid var(--blue-main);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    background-color: var(--blue-main);
    color: var(--white);
    padding: 20px 50px 20px 30px;
    margin: 0;
    font-size: 24px;
    text-transform: lowercase;
    font-weight: normal;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--white);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    line-height: 1;
    transition: transform 0.2s;
}

.modal-close:hover,
.modal-close:focus {
    transform: scale(1.2);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-body h3 {
    color: var(--blue-main);
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
    text-transform: lowercase;
    font-weight: bold;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.modal-body li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

.modal-body a {
    color: var(--blue-main);
    text-decoration: underline;
}

.modal-body a:hover {
    color: var(--pink);
}

.modal-body strong {
    color: var(--blue-main);
}

@media (max-width: 768px) {
    .modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 30px;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-content h2 {
        font-size: 20px;
        padding: 15px 45px 15px 20px;
    }

    .modal-close {
        right: 15px;
        top: 10px;
        font-size: 30px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-body h3 {
        font-size: 15px;
    }

    .modal-body p,
    .modal-body li {
        font-size: 13px;
    }
}

/* =============================================
   Pack Customizer
   ============================================= */

.pack-customizer {
    margin: 15px 0;
    padding: 15px;
    background: rgba(10, 10, 121, 0.03);
    border: 1px solid rgba(10, 10, 121, 0.1);
}

.pack-flavor-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(10, 10, 121, 0.1);
}

.pack-flavor-row:last-of-type {
    border-bottom: none;
}

.flavor-name {
    font-size: 14px;
    color: var(--blue-main);
}

.flavor-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--blue-main);
    touch-action: manipulation;
    background: var(--white);
    color: var(--blue-main);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--blue-light);
}

.flavor-count {
    min-width: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--blue-main);
}

.pack-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid rgba(10, 10, 121, 0.2);
    font-weight: bold;
}

.pack-total-label,
.pack-total-count {
    font-size: 14px;
    color: var(--blue-main);
}

.add-pack-btn {
    width: 100%;
    padding: 12px;
    background: var(--blue-dark);
    color: var(--white);
    border: none;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.add-pack-btn:hover:not(:disabled) {
    background: var(--blue-main);
}

.add-pack-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* =============================================
   Add-ons Section
   ============================================= */

.bagel-addons {
    margin: 15px 0;
}

.bagel-addons label:first-child {
    display: block;
    font-size: 12px;
    color: var(--blue-main);
    opacity: 0.8;
    margin-bottom: 10px;
}

.addons-toggle {
    background: transparent;
    border: 1px dashed var(--blue-main);
    color: var(--blue-main);
    font-family: 'Special Elite', monospace;
    font-size: 13px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
}

.addons-toggle:hover {
    background: rgba(10, 10, 121, 0.05);
    border-style: solid;
}

.addon-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 12px;
    background: rgba(10, 10, 121, 0.03);
    border: 1px solid rgba(10, 10, 121, 0.1);
}

.addon-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--blue-main);
    padding: 6px 10px;
    border: 1px solid rgba(10, 10, 121, 0.2);
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s;
}

.addon-checkbox:hover {
    border-color: var(--blue-main);
    background: var(--blue-light);
}

.addon-checkbox input {
    accent-color: var(--blue-main);
}

.addon-checkbox input:checked + span,
.addon-checkbox:has(input:checked) {
    font-weight: bold;
}

/* =============================================
   Swap Options (Sucuk)
   ============================================= */

.bagel-swap {
    margin: 12px 0;
    padding: 10px;
    background: rgba(255, 182, 193, 0.15);
    border: 1px solid rgba(255, 182, 193, 0.3);
}

.swap-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--blue-main);
    cursor: pointer;
}

.swap-checkbox input {
    accent-color: var(--pink);
}

/* =============================================
   Add to Cart Button
   ============================================= */

.add-to-cart-btn {
    padding: 12px 24px;
    background: var(--blue-dark);
    color: var(--white);
    border: 2px solid var(--blue-dark);
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: lowercase;
}

.add-to-cart-btn:hover {
    background: var(--blue-main);
    border-color: var(--blue-main);
}

/* =============================================
   Plain Bagel Type Selector
   ============================================= */

.plain-bagel-selector {
    margin: 15px 0;
    padding: 15px;
    background: rgba(10, 10, 121, 0.05);
    border: 1px solid rgba(10, 10, 121, 0.15);
}

.plain-bagel-selector label {
    display: block;
    font-size: 12px;
    color: var(--blue-main);
    margin-bottom: 10px;
}

.plain-type-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.plain-type-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 15px;
    border: 2px solid var(--blue-main);
    background: var(--white);
    color: var(--blue-main);
    font-family: 'Special Elite', monospace;
    font-size: 13px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: lowercase;
}

.plain-type-btn:hover {
    background: var(--blue-dark);
    color: var(--white);
    border-color: var(--blue-dark);
}

/* =============================================
   Drinks Price Label
   ============================================= */

.drinks-price-label {
    text-align: center;
    font-size: 16px;
    color: var(--blue-main);
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(10, 10, 121, 0.05);
    border: 1px solid rgba(10, 10, 121, 0.1);
}

@media (max-width: 768px) {
    .addon-options {
        flex-direction: column;
    }

    .addon-checkbox {
        width: 100%;
    }
}

/* =============================================
   Floating Mobile Cart
   ============================================= */

.mobile-cart-floating {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-top: 2px solid var(--blue-main);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-cart-floating.visible {
    transform: translateY(0);
}

.mobile-cart-floating.expanded {
    top: 0;
    border-top: none;
    overflow: hidden;
}

.mobile-cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--blue-main);
    color: var(--white);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-cart-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-cart-icon svg {
    width: 20px;
    height: 20px;
}

.mobile-cart-count {
    font-size: 13px;
    font-weight: normal;
}

.mobile-cart-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-cart-total {
    font-size: 16px;
    font-weight: bold;
}

.mobile-cart-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.mobile-cart-floating.expanded .mobile-cart-arrow {
    transform: rotate(180deg);
}

.mobile-cart-expanded {
    display: none;
    flex-direction: column;
    background: var(--white);
    max-height: calc(100vh - 52px);
    overflow: hidden;
}

.mobile-cart-floating.expanded .mobile-cart-expanded {
    display: flex;
}

.mobile-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--blue-main);
    background: var(--white);
}

.mobile-cart-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: normal;
    color: var(--blue-main);
}

.mobile-cart-close {
    width: 32px;
    height: 32px;
    border: 2px solid var(--blue-main);
    background: var(--white);
    color: var(--blue-main);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-cart-date {
    background: rgba(10, 10, 121, 0.05);
    padding: 10px 16px;
    font-size: 12px;
    color: var(--blue-main);
}

.mobile-cart-date strong {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    opacity: 0.7;
}

.mobile-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
}

.mobile-cart-items .cart-item {
    padding: 10px 0;
}

.mobile-cart-items .cart-item-name {
    font-size: 13px;
}

.mobile-cart-items .cart-item-details {
    font-size: 11px;
}

.mobile-cart-items .cart-item-price {
    font-size: 13px;
}

.mobile-cart-items .cart-item-remove {
    font-size: 16px;
    padding: 4px;
}

/* Cart section labels (bagels/drinks) */
.cart-section-label {
    font-size: 12px;
    color: var(--blue-main);
    opacity: 0.7;
    margin-bottom: 8px;
    text-transform: lowercase;
}

.mobile-cart-footer {
    padding: 12px 16px;
    border-top: 2px solid var(--blue-main);
    background: var(--white);
}

.mobile-cart-total-row {
    display: none; /* Hide since total is shown in the blue bar at top */
}

.mobile-cart-total-row span:last-child {
    font-size: 17px;
    font-weight: bold;
}

.mobile-checkout-btn {
    width: 100%;
    padding: 14px;
    background: var(--blue-dark);
    color: var(--white);
    border: none;
    font-family: 'Special Elite', monospace;
    font-size: 13px;
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.2s;
    text-transform: lowercase;
}

.mobile-checkout-btn:hover {
    background: var(--blue-main);
}

.mobile-checkout-btn:disabled {
    background: #999;
    cursor: not-allowed;
    font-size: 11px;
}

@media (max-width: 900px) {
    .mobile-cart-floating {
        display: block;
    }

    /* Hide desktop cart on mobile */
    .cart-sidebar {
        display: none !important;
    }

    /* Adjust order layout for full width */
    .order-layout {
        display: block;
    }

    .bagel-list {
        width: 100%;
    }

    /* Add padding at bottom for floating cart */
    #step2 {
        padding-bottom: 80px;
    }

    /* Hide island when mobile cart bar is visible — cart needs the bottom space */
    body:has(.mobile-cart-floating.visible) .island-wrapper {
        transform: translateX(-50%) translateY(calc(100% + 40px));
        pointer-events: none;
    }

    /* Also hide island on checkout step */
    .island-wrapper.island-hidden {
        transform: translateX(-50%) translateY(calc(100% + 40px)) !important;
        pointer-events: none;
    }

    /* When mobile cart is expanded fullscreen, raise it above the frosted bar + lang-switch */
    .mobile-cart-floating.expanded {
        z-index: 1010;
    }
}

/* When cart is expanded, hide body scroll completely */
body.mobile-cart-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
}

/* Cart added animation removed - user preference */

/* Extra small screens */
@media (max-width: 480px) {
    .page-title h1 {
        font-size: 20px;
    }

    .page-title p {
        font-size: 12px;
    }

    .progress-steps {
        padding: 10px 12px;
    }

    .step {
        font-size: 10px;
    }

    .step-number {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .step::after {
        width: 20px;
        margin: 0 6px;
    }

    .bagel-type-btn {
        padding: 6px 8px;
        font-size: 10px;
    }

    .drinks-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .drink-card {
        padding: 10px;
    }

    .drink-image {
        width: 50px;
        height: 50px;
    }

    .drink-name {
        font-size: 11px;
    }

    .drink-price {
        font-size: 13px;
    }

    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .quantity-display {
        width: 38px;
        height: 32px;
        font-size: 14px;
    }

    .mobile-cart-summary {
        padding: 10px 14px;
    }

    .mobile-cart-count {
        font-size: 12px;
    }

    .mobile-cart-total {
        font-size: 14px;
    }

    /* Calendar: tighter on small screens for 44px min cells */
    .calendar-container {
        padding: 12px;
    }

    .calendar-grid {
        gap: 2px;
    }

    .calendar-day {
        font-size: 12px;
    }

    .calendar-nav button {
        width: 36px;
        height: 36px;
    }
}

/* Mobile cart safe area for notched phones */
@media (max-width: 768px) {
    .mobile-cart-floating {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}


/* ================================================================
   FAQ SECTION — below ordering wizard, above footer
   ================================================================ */

/* --- Section title --- */
.cat-section-title-blue {
    font-family: 'Big Limbo', 'Special Elite', monospace;
    font-size: clamp(36px, 8vw, 72px);
    font-weight: normal;
    color: var(--blue-main);
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1;
    margin: 0 0 12px 0;
    text-align: center;
}

/* --- FAQ --- */
.cat-faq {
    background: var(--white);
    border-top: 2px solid var(--blue-main);
    padding: 80px 40px;
}

.cat-faq-inner {
    max-width: 800px;
    margin: 0 auto;
}

.cat-faq-list {
    margin-top: 50px;
}

.cat-faq-item {
    border-bottom: 1.5px solid rgba(10,10,121,0.15);
}

.cat-faq-item:first-child {
    border-top: 1.5px solid rgba(10,10,121,0.15);
}

.cat-faq-q {
    font-size: 16px;
    color: var(--blue-main);
    padding: 22px 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.4;
}

.cat-faq-q::-webkit-details-marker { display: none; }

.cat-faq-q::after {
    content: '+';
    font-size: 22px;
    color: var(--blue-main);
    opacity: 0.4;
    flex-shrink: 0;
    margin-left: 16px;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.cat-faq-item[open] .cat-faq-q::after {
    content: '−';
    opacity: 0.6;
}

.cat-faq-a {
    padding: 0 0 22px;
}

.cat-faq-a p {
    font-size: 14px;
    color: var(--blue-main);
    opacity: 0.75;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .cat-faq { padding: 50px 24px; }
    .cat-faq-q { font-size: 14px; padding: 18px 0; }
}

/* =============================================
   Order Type Toggle (Segmented Control)
   ============================================= */

.order-type-toggle {
    position: relative;
    display: flex;
    max-width: 280px;
    margin: 30px auto 0;
    background: color-mix(in srgb, var(--blue-main) 9%, transparent);
    border-radius: 100px;
    padding: 4px;
    overflow: hidden;
    isolation: isolate;
    --thumb-x: 0%;
}

.order-type-toggle:has(.order-type-seg[data-type="delivery"].active) {
    --thumb-x: 100%;
}

.order-type-toggle::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    background: var(--blue-main);
    border-radius: 100px;
    transform: translateX(var(--thumb-x));
    transition: transform 340ms cubic-bezier(0.65, -0.08, 0.3, 1.22);
    z-index: 0;
    pointer-events: none;
}

.order-type-toggle.morphing::before {
    animation: seg-morph 340ms ease-in-out;
}

@keyframes seg-morph {
    0%   { border-radius: 100px; }
    45%  { border-radius: 22px; }
    100% { border-radius: 100px; }
}

.order-type-seg {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 9px 16px;
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    text-transform: lowercase;
    text-align: center;
    color: var(--blue-main);
    opacity: 0.55;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 200ms ease, opacity 200ms ease;
    letter-spacing: 0.5px;
}

.order-type-seg:hover {
    opacity: 0.8;
}

.order-type-seg.active {
    color: var(--white);
    opacity: 1;
}

/* ---- Fresh-to-order hero promise ---- */

.page-title p.fresh-hero {
    margin: 14px auto 0;
    max-width: 620px;
    color: var(--blue-main);
    opacity: 1;
    font-size: clamp(17px, 2.4vw, 21px);
    line-height: 1.4;
    letter-spacing: 0.3px;
    font-family: 'Special Elite', monospace;
}

.page-title p.fresh-hero strong {
    position: relative;
    font-weight: bold;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.page-title p.fresh-hero strong::after {
    content: "";
    position: absolute;
    left: 3%;
    right: 3%;
    bottom: -2px;
    height: 2px;
    background: var(--blue-main);
    opacity: 0.35;
    border-radius: 2px;
}

.fresh-hero-mode {
    display: inline-block;
    font-weight: bold;
    color: var(--blue-main);
    min-width: 130px;
    text-align: left;
}

/* Soft vertical fade — used for single-word / single-line swaps (hero
   promise, section title, time picker label). Low-key, matches the flip
   direction of the sliding-thumb toggle. */
.fresh-hero-mode.soft-swap,
.when-mode.soft-swap,
.time-picker h4.soft-swap {
    animation: soft-fade 380ms ease-in-out;
}

.when-mode {
    display: inline-block;
    min-width: 230px;
    text-align: left;
}

@media (max-width: 768px) {
    .when-mode {
        min-width: 170px;
    }
}

/* Three tag chips intentionally have NO swap animation — text updates
   instantly so the row stays calm while the soft-fade copy around it
   carries the motion. */

.catering-tag {
    display: inline-block;
}

/* Pin the row's total min-height so chip reflow never shifts the layout
   below, even if a long translation would otherwise wrap. */
.catering-tags {
    min-height: 40px;
    align-items: center;
}

/* Reserve enough width on the swapping tags so the adjacent chips don't
   shift when Dutch/English copy changes length. */
.catering-tag[data-tag="type"] {
    min-width: 150px;
    text-align: center;
}

.catering-tag[data-tag="min"] {
    min-width: 250px;
    text-align: center;
}

/* Primary (type) chip gets a filled treatment so the top-of-row
   benefit ("free delivery" / "store pickup") reads as the headline. */
.catering-tag-primary {
    background: var(--blue-main);
    color: var(--white);
    border-color: var(--blue-main);
    opacity: 1;
    font-weight: bold;
    letter-spacing: 0.4px;
}

@keyframes soft-fade {
    0%   { opacity: 1; transform: translateY(0); }
    38%  { opacity: 0; transform: translateY(-6px); }
    62%  { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes solari-flip {
    0%   { transform: perspective(500px) rotateX(0);        opacity: 1; }
    49%  { transform: perspective(500px) rotateX(90deg);    opacity: 0; }
    50%  { transform: perspective(500px) rotateX(-90deg);   opacity: 0; }
    100% { transform: perspective(500px) rotateX(0);        opacity: 1; }
}

@media (max-width: 768px) {
    .fresh-hero-mode {
        min-width: 0;
        text-align: center;
    }
    /* On mobile, let chips size naturally (the pinned widths we use
       on desktop add awkward empty padding at smaller font sizes). */
    .catering-tag[data-tag="type"] { min-width: 0; }
    .catering-tag[data-tag="min"]  { min-width: 0; }

    .order-type-toggle {
        margin-top: 20px;
        max-width: 260px;
    }

    .catering-tags {
        min-height: 0;
    }
}

/* On small phones, stack tags in a consistent single-column layout
   so the row never reflows when copy changes length between pickup
   and delivery. Width is pinned wide enough to accommodate the
   longest translation without jumping. */
@media (max-width: 480px) {
    .catering-tags {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        margin-top: 14px;
    }

    .catering-tag {
        width: 250px;
        max-width: 90%;
        text-align: center;
        padding: 5px 14px;
    }

    .page-title p.fresh-hero strong::after {
        /* underline reads as noise at small size — drop it, rely on weight */
        display: none;
    }
}

@media (max-width: 768px) {
    .page-title p.fresh-hero {
        font-size: 16px;
        max-width: 92%;
        margin-top: 12px;
        letter-spacing: 0.2px;
        line-height: 1.35;
    }
}

/* =============================================
   Calendar Constraint UX (Pickup Mode)
   ============================================= */

/* Limited day indicator (orange dot — loose bagels only for pickup) */
.calendar-day.limited {
    cursor: pointer;
    position: relative;
}

.calendar-day.limited::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d97706;
}

/* Info notice for constrained dates */
.order-constraint-notice {
    display: none;
    padding: 14px 18px;
    border: 1.5px solid #d97706;
    border-radius: 6px;
    background: rgba(217, 119, 6, 0.06);
    font-size: 13px;
    color: var(--blue-main);
    margin: 16px auto 0;
    max-width: 450px;
    line-height: 1.5;
    text-align: center;
}

.order-constraint-notice.visible {
    display: block;
}

/* =============================================
   Discount Code Section (inline inside checkout form)
   ============================================= */

.discount-section label {
    font-size: 11px;
    opacity: 0.8;
}

.discount-section .discount-inputs {
    display: flex;
    gap: 6px;
}

.discount-section .discount-inputs input#discount-code {
    flex: 1;
    padding: 9px 12px;
    font-size: 13px;
    letter-spacing: 1px;
}

.discount-apply-btn {
    padding: 9px 14px;
    border: 1px solid var(--blue-main);
    background: var(--white);
    color: var(--blue-main);
    font-family: inherit;
    font-size: 13px;
    text-transform: lowercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.discount-apply-btn:hover:not(:disabled) {
    background: var(--blue-main);
    color: var(--white);
}

.discount-apply-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.discount-message {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.4;
}

.discount-message.is-error {
    color: #CD0000;
}

.discount-message.is-success {
    color: var(--blue-main);
}

.discount-summary {
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid var(--blue-main);
    background: rgba(10, 10, 121, 0.03);
    font-size: 12px;
}

.discount-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

.discount-row-off {
    color: var(--blue-main);
}

.discount-row-total {
    margin-top: 3px;
    padding-top: 6px;
    border-top: 1px solid var(--blue-main);
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 600px) {
    .discount-apply-btn {
        padding: 9px 11px;
        font-size: 13px;
    }
    .discount-summary {
        font-size: 13px;
    }
    .discount-row-total {
        font-size: 14px;
    }
}

/* =============================================
   TEAM LUNCH BUNDLES
   ============================================= */

.bundle-section {
    display: block;
}

.bundle-intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.bundle-intro h3 {
    font-family: 'Special Elite', monospace;
    font-size: clamp(22px, 3.5vw, 28px);
    color: var(--blue-main);
    font-weight: normal;
    margin-bottom: 8px;
}

.bundle-intro p {
    font-size: 14px;
    color: var(--blue-main);
    opacity: 0.75;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.5;
}

.bundle-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.bundle-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--blue-main);
    padding: 25px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bundle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 10, 121, 0.12);
}

.bundle-card.popular {
    border-color: var(--blue-dark, var(--blue-main));
    background: linear-gradient(180deg, rgba(10, 10, 121, 0.04) 0%, var(--white) 100%);
}

.bundle-popular-tag {
    position: absolute;
    top: -11px;
    left: 25px;
    background: var(--blue-main);
    color: var(--white);
    font-family: 'Special Elite', monospace;
    font-size: 11px;
    padding: 5px 14px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    white-space: nowrap;
}

.bundle-card-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 28px;
    align-items: center;
}

.bundle-card-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.bundle-size-eyebrow {
    font-family: 'Special Elite', monospace;
    font-size: 13px;
    color: var(--blue-main);
    opacity: 0.65;
    text-transform: lowercase;
    letter-spacing: 0.3px;
}

.bundle-size-headline {
    font-family: 'Special Elite', monospace;
    font-size: 26px;
    color: var(--blue-main);
    line-height: 1.1;
    margin-bottom: 6px;
}

.bundle-badge {
    background: #1f8a4c;
    color: var(--white);
    font-family: 'Special Elite', monospace;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.3px;
    display: inline-block;
}

.bundle-card-middle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.bundle-price {
    font-family: 'Special Elite', monospace;
    font-size: 36px;
    color: var(--blue-main);
    line-height: 1;
}

.bundle-per-person {
    font-size: 12px;
    color: var(--blue-main);
    opacity: 0.65;
    font-family: 'Special Elite', monospace;
}

.bundle-card-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.bundle-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--blue-main);
    opacity: 0.8;
    margin: 0;
}

.bundle-configure-btn {
    background: var(--blue-main);
    color: var(--white);
    border: none;
    padding: 11px 22px;
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 100px;
    text-transform: lowercase;
    align-self: stretch;
}

.bundle-configure-btn:hover {
    background: var(--blue-dark, #06063d);
}

.bundle-footnote {
    text-align: center;
    font-size: 13px;
    color: var(--blue-main);
    opacity: 0.7;
    margin-top: 8px;
}

.bundle-footnote a {
    color: var(--blue-main);
    text-decoration: underline;
}

/* Bundle Modal */
.bundle-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 121, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.bundle-modal.open {
    display: flex;
    animation: bundleFade 0.2s ease;
}

@keyframes bundleFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bundle-modal-panel {
    background: var(--white);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    position: relative;
    animation: bundleSlideUp 0.3s ease;
}

@keyframes bundleSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.bundle-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: var(--blue-main);
    cursor: pointer;
    z-index: 1;
    transition: background 0.2s ease;
}

.bundle-modal-close:hover {
    background: rgba(10, 10, 121, 0.08);
}

.bundle-modal-header {
    padding: 28px 28px 16px;
    border-bottom: 1px solid rgba(10, 10, 121, 0.1);
}

.bundle-modal-header h3 {
    font-family: 'Special Elite', monospace;
    font-weight: normal;
    font-size: 24px;
    color: var(--blue-main);
    margin: 0;
    text-transform: lowercase;
}

.bundle-modal-sub {
    font-size: 14px;
    color: var(--blue-main);
    opacity: 0.75;
    margin: 6px 0 0;
}

.bundle-modal-sub strong {
    color: var(--blue-main);
    opacity: 1;
    font-weight: normal;
    font-family: 'Special Elite', monospace;
}

.bundle-modal-body {
    padding: 16px 28px;
    overflow-y: auto;
    flex: 1;
}

.bundle-row {
    border: 1.5px solid rgba(10, 10, 121, 0.18);
    border-radius: 4px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.bundle-row.expanded {
    border-color: var(--blue-main);
    background: rgba(10, 10, 121, 0.02);
}

.bundle-row-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
}

.bundle-row-img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(10, 10, 121, 0.05);
}

.bundle-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bundle-row-img-placeholder {
    background: rgba(10, 10, 121, 0.08);
}

.bundle-row-name {
    flex: 1;
    font-family: 'Special Elite', monospace;
    font-size: 15px;
    color: var(--blue-main);
    text-transform: lowercase;
}

.bundle-row-total {
    font-family: 'Special Elite', monospace;
    font-size: 18px;
    color: var(--blue-main);
    min-width: 30px;
    text-align: right;
}

.bundle-row-seasonings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 14px 14px;
}

.bundle-seasoning {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bundle-seasoning-label {
    font-size: 12px;
    color: var(--blue-main);
    opacity: 0.75;
    font-family: 'Special Elite', monospace;
    text-transform: lowercase;
}

.bundle-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bundle-stepper-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--blue-main);
    background: var(--white);
    color: var(--blue-main);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: 'Special Elite', monospace;
}

.bundle-stepper-btn:hover {
    background: var(--blue-main);
    color: var(--white);
}

.bundle-stepper-count {
    font-family: 'Special Elite', monospace;
    font-size: 16px;
    color: var(--blue-main);
    min-width: 22px;
    text-align: center;
}

.bundle-variant {
    padding: 0 14px 10px;
}

.bundle-variant + .bundle-variant {
    padding-top: 4px;
    border-top: 1px dashed rgba(10, 10, 121, 0.15);
    margin-top: 2px;
}

.bundle-variant-label {
    font-family: 'Special Elite', monospace;
    font-size: 12px;
    color: var(--blue-main);
    opacity: 0.7;
    text-transform: lowercase;
    letter-spacing: 0.3px;
    padding: 8px 0 6px;
}

.bundle-variant .bundle-row-seasonings {
    padding: 0 0 4px;
}

.bundle-modal-footer {
    padding: 16px 28px 24px;
    border-top: 1px solid rgba(10, 10, 121, 0.1);
    background: rgba(10, 10, 121, 0.02);
    border-radius: 0 0 4px 4px;
}

.bundle-counter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

#bundleCounterText {
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    color: var(--blue-main);
    opacity: 0.8;
    text-align: center;
    transition: color 0.2s ease;
}

#bundleCounterText.complete {
    color: #1f8a4c;
    opacity: 1;
}

.bundle-counter-bar {
    height: 6px;
    background: rgba(10, 10, 121, 0.12);
    border-radius: 100px;
    overflow: hidden;
}

.bundle-counter-fill {
    height: 100%;
    background: var(--blue-main);
    width: 0;
    transition: width 0.25s ease, background 0.2s ease;
}

#bundleCounterText.complete ~ .bundle-counter-bar .bundle-counter-fill,
.bundle-counter-fill[style*="100%"] {
    background: #1f8a4c;
}

.bundle-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.bundle-modal-actions .nav-btn {
    min-width: 120px;
}

/* Responsive */
/* Tablet — stack the middle/right columns under the left block, keep list layout */
@media (max-width: 900px) {
    .bundle-card-main {
        grid-template-columns: 1fr 1fr;
        row-gap: 18px;
    }
    .bundle-card-right {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .bundle-list {
        gap: 16px;
    }
    .bundle-card {
        padding: 22px 20px;
    }
    .bundle-card-main {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .bundle-card-left {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    .bundle-size-eyebrow {
        order: 1;
        width: 100%;
    }
    .bundle-size-headline {
        order: 2;
        margin-bottom: 0;
    }
    .bundle-badge {
        order: 3;
        margin-left: auto;
    }
    .bundle-card-middle {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
    }
    .bundle-price {
        font-size: 30px;
    }
    .bundle-card-right {
        grid-column: auto;
    }
    .bundle-configure-btn {
        width: 100%;
        padding: 13px 20px;
    }
    .bundle-popular-tag {
        left: 20px;
    }
    .bundle-modal-panel {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    .bundle-modal-header {
        padding: 24px 20px 12px;
    }
    .bundle-modal-body {
        padding: 12px 20px;
    }
    .bundle-modal-footer {
        padding: 14px 20px 20px;
    }
    .bundle-row-seasonings {
        gap: 4px;
        padding: 0 12px 12px;
    }
    .bundle-stepper {
        gap: 6px;
    }
    .bundle-stepper-btn {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }
}
