@font-face {
    font-family: MyJost;
    src: url("Jost-VariableFont_wght.woff2");
    weight: 100;
}

body {
    background-color: #3C5177;
    position: sticky;
    margin: 0px;
    padding: 0px;
    font-family: MyJost, Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

header {
    position: relative;
    width: 100%;
    height: 200px;
    align-items: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    z-index: 2;
    font-family: MyJost, Arial, sans-serif;
    pointer-events: none;
}

header::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-image: url(images/header-bg-image.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: -1;
}

.navbar {
    position: sticky;
    top: 20px;
    text-align: center;
    padding-bottom: 20px;
    margin: 0 auto;
    overflow: auto;
    white-space: nowrap;
    z-index: 3;
    font-family: MyJost, Arial, sans-serif;
}


h1 {
    font-size:2.6vw;
}

.cta {
    padding: 20px;
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    font-family: MyJost;
    margin: auto;
    text-align: center;
    min-width: 400px;
    max-width: 800px;
    display: inline-block;
    font-family: MyJost, Arial, sans-serif;
}

.header_text {
    margin: 0px;
    color: white;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.42),
        0 0 20px rgba(255, 255, 255, 0.32),
        0 0 30px rgba(255, 223, 186, 0.26),
        0 0 40px rgba(255, 223, 186, 0.2),
        0 0 50px rgba(255, 223, 186, 0.15);
}

/* Safari-specific: reduce glow intensity */
@supports (-webkit-hyphens:none) {
    .header_text {
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.18),
            0 0 20px rgba(255, 255, 255, 0.11),
            0 0 30px rgba(255, 223, 186, 0.08),
            0 0 40px rgba(255, 223, 186, 0.05),
            0 0 50px rgba(255, 223, 186, 0.03);
    }
}

.navbar::-webkit-scrollbar {
    display: none;
}

.category {
    background-color: rgba(112, 131, 109, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 14px;
    color: #ffffff;
    font-size: 16pt;
    font-family: MyJost;
    padding: 7px 14px;
    margin-bottom: 0px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.category:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.category.active {
    background-color: rgba(255, 255, 255, 0.6);
}

.order-closed-banner {
    background-color: rgba(231, 76, 60, 0.7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: white;
    text-align: center;
    padding: 15px 20px;
    font-size: 16px;
    font-family: MyJost, Arial, sans-serif;
    margin: 10px auto 20px auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.5;
    position: relative;
    z-index: 4;
}

.order-closed-banner a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

.order-closed-banner a:hover {
    text-decoration: none;
}

/* Banner Carousel */
.carousel-wrapper {
    max-width: 650px;
    margin: -20px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.carousel-container {
    position: relative;
    overflow: visible;
    width: 650px;
    height: 450px;
    margin: 0 auto;
}

.carousel-track-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    overflow: hidden;
    z-index: 1;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 600px;
    width: 600px;
    height: 400px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide a {
    display: block;
    position: relative;
    width: 600px;
    height: 400px;
}

.carousel-slide img {
    width: 600px;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* Banner text overlay */
.carousel-slide .banner-text-overlay {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
    z-index: 1;
    pointer-events: none;
}

.carousel-slide .banner-title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    padding: 6px 17px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    display: inline-block;
    font-family: MyJost, Arial, sans-serif;
}

/* Stationary frame overlay - stays fixed while banners slide */
.frame-overlay-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 650px;
    height: 450px;
    pointer-events: none;
    z-index: 3;
}

.frame-overlay-static img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* Navigation buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    background-image: url('images/icon_arrow.png');
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-btn.show {
    opacity: 1;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-btn.prev {
    left: 35px;
}

.carousel-btn.next {
    right: 35px;
    transform: translateY(-50%) scaleX(-1);
}

.carousel-btn.next:hover {
    transform: translateY(-50%) scaleX(-1) scale(1.1);
}

/* Dots indicators */
.carousel-dots {
    text-align: center;
    padding: 3px 0;
}

.carousel-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 0 3px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
}

/* Hide carousel if no banners */
.carousel-wrapper.hidden {
    display: none;
}

/* Hero section scroll hide/show behavior */
/* Hidden state - instant hide, no animation */
.hero-hidden {
    opacity: 0 !important;
    pointer-events: none;
}

/* Visible state - with fade-in animation */
.hero-visible {
    opacity: 1 !important;
    transition: opacity 0.4s ease-in-out;
    pointer-events: auto;
}


.main {
    margin-left: 200px;
    margin-right: 200px;
    font-size: 28px;
    padding: 20px 10px;
    text-align: center;
    font-family: MyJost;
}

.logo {
    padding: 20px;
    padding-top: 30px;
    position: fixed;
    left: 0;
    top: 0;
    width: 10%;
    min-width: 100px;
    z-index: 1000;
    pointer-events: auto;
}

.container {
    max-width: 75%;
    margin: 0 auto;
    padding: 20px;
    z-index: 20;
    overflow-x: hidden;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.cardMenuItem {
    padding: 12px 16px;
    border-radius: 15px;
    background-color: #7a6a4e;
    width: 80%;
    margin: 0 auto;
    text-align: left;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    opacity: 0.85;
}

.cardMenuItem.highlighted {
    animation: highlight-pulse 2s ease-in-out;
}

@keyframes highlight-pulse {
    0%, 100% {
        opacity: 0.85;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        background-color: #8a7a5e;
        transform: scale(1.02);
    }
}

.itemImage {
    display: none;
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.itemTitle {
    margin: 0;
    padding: 0;
    font-size: 18pt;
    line-height: 22pt;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.description-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.itemDescription {
    font-size: 12px;
    line-height: 140%;
    padding: 0;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.itemDescription.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.description-toggle {
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    text-decoration: underline;
    display: inline-block;
    margin-top: 2px;
    font-size: 12px;
}

.itemPrice {
    padding: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18pt;
    flex-shrink: 0;
    white-space: nowrap;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    min-width: 130px;
    flex-shrink: 0;
}

.addItem, .minus-btn, .plus-btn {
    background-color: rgba(112, 131, 109, 0.5);
    border: none;
    border-radius: 20px;
    height: 40px;
    width: 40px;
    font-size: 20pt;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.addItem:hover, .minus-btn:hover, .plus-btn:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.quantity-display {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18pt;
    min-width: 30px;
    text-align: center;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    overflow-x: visible;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24pt;
    grid-column: 1 / -1;
}


.order {
    background-color: rgba(200, 10, 10, 0.7);
    border: none;
    font-size: 18pt;
    font-family: MyJost;
    padding: 10px 20px;
    margin-top: 40px;
    margin-right: 4%;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-family: MyJost;
    height: 60px;
    z-index: 1000;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    position: fixed;
    right: 0;
    top: 0;
}

.order:hover {
    background-color: rgba(200, 20, 20, 0.9);
    transition: background-color 0.2s;
}

.order {
    display: none;
}

#bottom {
    display: flex;
    justify-content: center;
    padding: 40px;
    align-items: center;
    padding-bottom: 30px;
}

#bottom-center {
    margin: auto;
    position: relative;
}

.cart-icon {
    height: 30px;
    width: 30px;
    display: block;
    filter: brightness(0) invert(1);
}

/* Cart Badge Counter */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    font-family: MyJost, Arial, sans-serif;
}

.cart-badge.large-count {
    font-size: 9px;
}

.cart-badge.visible {
    opacity: 1;
    transform: scale(1);
}

.cart-badge.pulse {
    animation: badge-pulse 0.3s ease-out;
}

@keyframes badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.cart-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 900px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    flex-direction: column;
    display: flex;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.cart-modal.active {
    transform: translateX(0);
}

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

.cart-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Two Column Layout */
.cart-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.order-form-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    border-right: 1px solid #eee;
    overflow: hidden;
}

.order-form-column form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.form-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.form-submit-area {
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.cart-items-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.cart-items-title {
    font-size: 18px;
    font-weight: 600;
    padding: 20px 20px 10px 20px;
    margin: 0;
    border-bottom: 1px solid #f1f1f1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f1f1;
}

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

.cart-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #e74c3c;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-controls .minus-btn:hover,
.cart-item-controls .plus-btn:hover {
    background-color: rgba(112, 131, 109, 0.8);
}

.cart-item-quantity {
    font-weight: 500;
    min-width: 25px;
    text-align: center;
}

/* Promo Code Section */
.promo-section {
    padding: 15px 20px 6px 20px;
    border-top: 1px solid #f1f1f1;
    background-color: #fafafa;
}

.promo-section label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.promo-section input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: MyJost, Arial, sans-serif;
    text-transform: uppercase;
    box-sizing: border-box;
}

.promo-section input:focus {
    outline: none;
    border-color: #e74c3c;
}

.promo-message {
    margin-top: 8px;
    font-size: 13px;
    min-height: 18px;
}

.promo-message.success {
    color: #28a745;
}

.promo-message.error {
    color: #dc3545;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid #eee;
    background-color: #f9f9f9;
}

.cart-total {
    display: flex;
    flex-direction: column;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.payment-method {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #c0392b;
}

.empty-cart-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

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

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.form-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: MyJost, Arial, sans-serif;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #e74c3c;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* Date Button Row */
.date-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.date-btn {
    flex: 1;
    padding: 8px 4px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 12px;
    font-family: MyJost, Arial, sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.date-btn:hover {
    border-color: #bbb;
    background-color: #f9f9f9;
}

.date-btn.selected {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: white;
    font-weight: 600;
}

.date-btn.disabled {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

.date-btn.disabled:hover {
    background-color: #f0f0f0;
    border-color: #ddd;
}

.form-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.checkout-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Loading and Error Messages */
.loading-message,
.error-message {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 24pt;
}

.error-message {
    color: rgba(255, 100, 100, 0.9);
}

/* Tablet styles */
@media (min-width: 601px) and (max-width: 900px) {
  .order-closed-banner {
    margin: 10px 20px 20px 20px;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .navbar {
    top: 80px;
    text-align: left;
    padding-left: 20px;
    padding-bottom: 5px;
  }
  .logo {
    height: 60px;
    margin-left: 5px;
    margin-top: 5px;
    padding: 0;
  }

  .cta {
    display: none;
  }

  .cart-icon {
    height: 20px;
  }

  .cart-badge {
    top: -3px;
    right: -3px;
    width: 18px;
    height: 18px;
    font-size: 11px;
  }

  #top-cart {
    height: 40px;
    margin-top: 10px;
    margin-right: 10px;
  }

  .cardMenuItem {
    padding: 10px 12px;
    width: 90%;
  }

  .card-top-row,
  .card-bottom-row {
    gap: 10px;
  }

  .itemTitle {
    font-size: 16px;
    line-height: 120%;
  }

  .itemDescription {
    font-size: 12px;
    line-height: 140%;
  }

  .itemPrice {
    font-size: 14px;
  }

  .quantity-display {
    font-size: 14px;
  }

  .addItem, .minus-btn, .plus-btn {
    font-size: 16px;
    height: 24px;
    width: 28px;
  }

  header {
    position: fixed;
    width: 100%;
    height: 20%;
  }
    .date-btn {
        font-size: 11px;
        padding: 6px 3px;
    }

    .date-buttons {
        gap: 4px;
    }

    .category {
        font-size: 12.5pt;
        padding: 6px 12px;
    }

  .order-closed-banner {
        font-size: 14px;
        padding: 12px 15px;
        margin: 10px;
        margin-bottom: 15px;
        max-width: none;
        position: relative;
        z-index: 4;
  }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        justify-items: center;
        grid-template-columns: 1fr;
        justify-items: center;
        margin-top: 5px;
    }

    .cart-modal {
        width: 100%;
        max-width: none;
    }

    .cart-header {
        position: sticky;
        top: 0;
        z-index: 10;
        background-color: white;
    }

    .cart-content {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .order-form-column {
        border-right: none;
        border-bottom: 1px solid #eee;
        overflow: visible;
    }

    .form-scroll-area {
        overflow-y: visible;
    }

    .cart-footer {
        position: sticky;
        bottom: 0;
        z-index: 10;
        background-color: #f9f9f9;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .container {
        justify-items: center;
        max-width: none;
        margin-top: 20px;
    }

    /* Carousel mobile styles */
    .carousel-wrapper {
        max-width: 100%;
        padding: 0 10px;
        margin: 10px auto;
        margin-top: 100px;
    }

    .carousel-container {
        width: 100%;
        height: auto;
        aspect-ratio: 3/2;
    }

    .carousel-track-wrapper {
        width: 92.3%;  /* 600/650 proportion from desktop */
        height: 88.9%; /* 400/450 proportion from desktop */
    }

    .frame-overlay-static {
        width: 100%;
        height: 100%;
    }

    .carousel-slide {
        min-width: 100%;
        width: 100%;
        height: auto;
    }

    .carousel-slide a {
        width: 100%;
        height: auto;
    }

    .carousel-slide img {
        width: 100%;
        height: auto;
        aspect-ratio: 3/2;
    }

    .carousel-slide .banner-title {
        font-size: 18px;
        padding: 10px 15px;
    }

    .carousel-slide .banner-text-overlay {
        bottom: 20px;
    }

    .carousel-btn {
        font-size: 18px;
        width: 8vw;  /* Scale with viewport width */
        height: 8vw;
        min-width: 30px;  /* Minimum size for usability */
        min-height: 30px;
        max-width: 40px;  /* Maximum size limit */
        max-height: 40px;
    }

    .carousel-btn.prev {
        left: 3%;  /* Proportional to banner width */
    }

    .carousel-btn.next {
        right: 3%;
    }

    .carousel-dot {
        width: 3px;
        height: 3px;
        margin: 0 2px;
    }

    .carousel-dots {
        padding: 5px 0;
    }
}