/* ==================================================
   Reset & Core Layout
   ================================================== */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: "Bebas Neue", sans-serif;
    font-size: 20px;
    background: #ffffff;
    color: #333;
    overscroll-behavior: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

#content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Slide styles */
.treatment,
.promotion {
    background: transparent!important;
    background-image: url("images/wallpaper2.png");
    background-size: cover;
    animation: gradient-frame-animation 10s ease infinite;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.treatment h3,
.promotion h3 {
    margin-top: 0;
    color: #84aed8;
    font-size: 2rem;
}

.treatment-description,
.promotion-description {
    color: #84aed8;
    font-size: 1.2rem;
    margin: 1rem 0;
}

.treatment-price,
.promotion-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin: 1rem 0;
}

.main-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================================================
    Background
    ================================================== */
.base-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("images/wallpaper4.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    animation: gradient-frame-animation 10s ease infinite;
    z-index: 1;
}

@keyframes gradient-frame-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ==================================================
    Ambient Animation Overlay
    ================================================== */
.ambient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.light-sweep {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(207, 154, 59, 0.03) 43%,
        rgba(207, 154, 59, 0.07) 50%,
        rgba(207, 154, 59, 0.03) 57%,
        transparent 65%
    );
    animation: lightSweep 22s ease-in-out infinite;
}

@keyframes lightSweep {
    0%, 100% {
        transform: translateX(-80%) translateY(-30%) rotate(15deg);
    }
    50% {
        transform: translateX(80%) translateY(30%) rotate(15deg);
    }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particles span {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(207, 154, 59, 0.3), transparent 70%);
    box-shadow: 0 0 6px rgba(207, 154, 59, 0.1);
    animation: particleFloat linear infinite;
    will-change: transform, opacity;
}

.particles span:nth-child(1)  { width: 8px;  height: 8px;  left: 5%;   animation-duration: 18s; animation-delay: 0s; }
.particles span:nth-child(2)  { width: 5px;  height: 5px;  left: 15%;  animation-duration: 22s; animation-delay: -3s; }
.particles span:nth-child(3)  { width: 10px; height: 10px; left: 25%;  animation-duration: 16s; animation-delay: -7s; }
.particles span:nth-child(4)  { width: 4px;  height: 4px;  left: 35%;  animation-duration: 24s; animation-delay: -2s; }
.particles span:nth-child(5)  { width: 7px;  height: 7px;  left: 45%;  animation-duration: 20s; animation-delay: -10s; }
.particles span:nth-child(6)  { width: 9px;  height: 9px;  left: 55%;  animation-duration: 19s; animation-delay: -5s; }
.particles span:nth-child(7)  { width: 5px;  height: 5px;  left: 65%;  animation-duration: 23s; animation-delay: -8s; }
.particles span:nth-child(8)  { width: 8px;  height: 8px;  left: 75%;  animation-duration: 17s; animation-delay: -1s; }
.particles span:nth-child(9)  { width: 4px;  height: 4px;  left: 85%;  animation-duration: 21s; animation-delay: -12s; }
.particles span:nth-child(10) { width: 6px;  height: 6px;  left: 95%;  animation-duration: 25s; animation-delay: -6s; }
.particles span:nth-child(11) { width: 10px; height: 10px; left: 10%;  animation-duration: 20s; animation-delay: -14s; }
.particles span:nth-child(12) { width: 5px;  height: 5px;  left: 30%;  animation-duration: 18s; animation-delay: -4s; }
.particles span:nth-child(13) { width: 7px;  height: 7px;  left: 50%;  animation-duration: 22s; animation-delay: -9s; }
.particles span:nth-child(14) { width: 4px;  height: 4px;  left: 70%;  animation-duration: 24s; animation-delay: -11s; }
.particles span:nth-child(15) { width: 9px;  height: 9px;  left: 90%;  animation-duration: 16s; animation-delay: -15s; }
.particles span:nth-child(16) { width: 6px;  height: 6px;  left: 20%;  animation-duration: 21s; animation-delay: -13s; }
.particles span:nth-child(17) { width: 5px;  height: 5px;  left: 40%;  animation-duration: 19s; animation-delay: -16s; }
.particles span:nth-child(18) { width: 8px;  height: 8px;  left: 60%;  animation-duration: 23s; animation-delay: -18s; }
.particles span:nth-child(19) { width: 10px; height: 10px; left: 80%;  animation-duration: 17s; animation-delay: -20s; }
.particles span:nth-child(20) { width: 4px;  height: 4px;  left: 5%;   animation-duration: 25s; animation-delay: -17s; }

@keyframes particleFloat {
    0% {
        transform: translateY(110vh) translateX(0) scale(0.5);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(40px) scale(1.2);
        opacity: 0;
    }
}

.glass-effect {
    backdrop-filter: blur(8px);
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    animation: glassMove 10s ease infinite;
    background-size: 400% 400%;
    border-radius: 20px;
}

@keyframes glassMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* ==================================================
      Product Slide Layout
      ================================================== */
.product-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 75%;
    height: 80%;
    gap: 40px;
    padding: 30px;
    position: relative;
    z-index: 2;
}

.product-info {
    flex: 1;
    max-width: 50%;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.product-name {
    font-size: 4.7vw;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 2vh;
    line-height: -1!important;
    color: #0E4D64;
}

/* Force Cairo font for Arabic TEXT content - ALWAYS enforce for readability.
   Prices and numbers are intentionally excluded: digits/currency symbols
   render in the Latin display font (Bebas Neue) in every language direction. */
[dir="rtl"] .product-name,
[dir="rtl"] .product-description,
[dir="rtl"] .product-attributes {
    font-family: "Cairo", sans-serif !important;
}

/* Remove uppercase transform for Arabic text */
[dir="rtl"] .product-name {
    text-transform: none !important;
    font-weight: 700;
}

.product-description {
    font-size: 2.1vw;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2vh;
    color: #373636 !important;
}

.product-price {
    font-size: 4vw;
    font-family: "Bebas Neue", sans-serif;
    font-weight: bold;
    color: #e50027;
    margin-bottom: 2vh;
    line-height: 1;
}

.product-price .currency {
    font-size: 2vw;
    margin-right: 1vw;
}

/* Dual currency secondary amount (e.g., LBP) - lighter gray */
.product-price small {
    display: block;
    font-size: 2.5vw;
    font-weight: 500;
    color: #999999;
    margin-top: 0.5vh;
    line-height: 1.2;
}

/* Line breaks for portion indicators (Full Portion / Half Portion) */
.portion-break {
    display: block;
    line-height: 0.4;
}

/* Numerals & currency symbols always use the Latin display font, in any direction.
   Keeps prices visually identical between EN and AR (applied via .price-numeral). */
.product-price.price-numeral,
.product-price.price-numeral small {
    font-family: "Bebas Neue", sans-serif !important;
}

/* ==================================================
      Product Image
      ================================================== */
.product-image-container {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image {
    width: auto;
    max-width: 100%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ==================================================
      Clock (Bottom Right)
      ================================================== */
.live-clock {
    position: fixed;
    bottom: 10px;
    right: 30px;
    z-index: 9999;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    color: #2e2e2e;
    text-align: end;
    text-shadow: 2px 2px 6px rgba(142, 142, 142, 0.7);
    background-color: transparent;
    padding: 10px 20px;
    border-radius: 8px;
    line-height: 1.1;
}

.live-clock small {
    display: block;
    font-size: 18px;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* ==================================================
      Special Occasion Overlay
      ================================================== */
.special-occasion-overlay {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background-image: url("images/wallpaper5.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    animation: gradient-frame-animation 10s ease infinite;
    /*background-color: rgba(255, 255, 255, 0.9);*/
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ==================================================
    Restaurant Branding Logo
    ================================================== */
.brand-logo {
    position: fixed;
    top: 16px;
    inset-inline-start: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
    padding: 8px 16px 8px 8px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    animation: logoBreathe 6s ease-in-out infinite, logoSubtleGlow 8s ease-in-out infinite;
}

.brand-logo-img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: contain;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.brand-logo-text {
    font-family: "Bebas Neue", sans-serif;
    font-size: 22px;
    color: #0E4D64;
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap;
}

@keyframes logoBreathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 6px 28px rgba(207, 154, 59, 0.2);
    }
}

@keyframes logoSubtleGlow {
    0%, 100% {
        background: rgba(255, 255, 255, 0.85);
    }
    50% {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* ==================================================
    Occasion Greeting — appears under logo
    ================================================== */
.occasion-greeting {
    position: fixed;
    top: 76px;
    inset-inline-start: 16px;
    z-index: 99;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(207, 154, 59, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(207, 154, 59, 0.25);
    box-shadow: 0 4px 20px rgba(207, 154, 59, 0.15);
    animation: greetingFadeIn 0.6s ease-out;
}

.occasion-greeting-logo {
    height: 36px;
    width: auto;
    border-radius: 6px;
}

.occasion-greeting-text {
    font-family: "Bebas Neue", sans-serif;
    font-size: 18px;
    color: #0E4D64;
    font-weight: bold;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

[dir="rtl"] .occasion-greeting-text {
    font-family: "Cairo", sans-serif !important;
}

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

/* ==================================================
      Variants & Attributes
      ================================================== */
.variant-box {
    font-size: 1.4vw;
    padding: 1vh 2vw;
}

/* Attributes Grid - 3 columns */
.attributes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5vh;
    margin-top: 1vh;
}

.attr-row {
    display: flex;
    gap: 0.5vw;
    margin-bottom: 0.5vh;
    align-items: center;
}

.attr-col {
    flex: 1 1 33.333%;
    max-width: 33.333%;
    text-align: center;
}

.attribute-item {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.attribute-item span {
    font-size: 1.3vw;
    padding: 1vh 2vw;
    font-family: "Bebas Neue", sans-serif;
    display: inline-block;
    vertical-align: middle;
}

.product-attributes {
    display: flex;
    flex-direction: column;
    gap: 0.5vh;
    margin-top: 1vh;
}

.product-attributes .attr-row {
    display: flex;
    gap: 0.5vw;
    align-items: center;
}

.product-attributes .attr-col {
    flex: 1 1 33.333%;
    max-width: 33.333%;
    text-align: center;
}

.product-attributes .attr-col span {
    font-size: 1.3vw;
    padding: 1vh 2vw;
    font-family: "Bebas Neue", sans-serif;
    display: inline-block;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

[dir="rtl"] .product-attributes .attr-col span,
[dir="rtl"] .attribute-item span {
    font-family: "Cairo", sans-serif !important;
}

/* ==================================================
      Responsive Adjustments
      ================================================== */
@media (max-width: 768px) {
    .product-name {
        font-size: 7vw;
    }

    .product-description {
        font-size: 3.5vw;
    }

    .product-price {
        font-size: 6vw;
    }

    .product-price small {
        font-size: 4vw;
    }

    .variant-box,
    .product-attributes span,
    .attribute-item span {
        font-size: 3.5vw;
        padding: 1vh 2vw;
    }

    .live-clock {
        font-size: 6vw;
        right: 10px;
        bottom: 10px;
    }

    .live-clock small {
        font-size: 2.5vw;
    }
}

@media (min-width: 1920px) {
    .product-name {
        font-size: 4vw;
    }

    .product-description {
        font-size: 1.5vw;
    }

    .product-price {
        font-size: 3vw;
    }

    .product-price small {
        font-size: 1.8vw;
    }

    .variant-box,
    .product-attributes span,
    .attribute-item span {
        font-size: 1vw;
    }
}

/* ==================================================
    Multilingual Reach Bar & Customization Indicator
   ================================================== */
.i18n-reach-bar {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 24px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    background: rgba(6, 9, 17, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
    max-width: calc(100vw - 340px);
    transition: all 0.4s ease;
}

.i18n-reach-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.45);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-family: ui-monospace, monospace;
}

.i18n-reach-text {
    font-size: 12.5px;
    color: #e2e8f0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
}