/* ============================================
   FERRANT PHE - Styles
   ============================================ */

body {
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
}

/* --- LAYOUT MANAGER --- */
.view-section {
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 90px;
    padding-top: env(safe-area-inset-top);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96);
    z-index: 0;
}

@media (min-width: 768px) {
    .view-section {
        padding-bottom: 0;
        padding-left: 22rem !important;
        padding-right: 4rem;
    }
}

.view-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    z-index: 10;
}

/* --- ANIMATIONS --- */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-enter {
    opacity: 0;
    animation: fade-in-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.4s; }

/* --- DETAILS DRAWER --- */
#view-details {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    background: #1A2F25;
    z-index: 50;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    transform: translateX(100%);
}

@media (min-width: 768px) {
    #view-details {
        width: 500px;
        border-left: 1px solid rgba(255,255,255,0.1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
}

#view-details.details-open {
    transform: translateX(0);
}

/* --- NAVIGATION --- */
.apple-nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid #E5E7EB;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.nav-btn { color: #4B5563; }
.nav-btn.active { color: #C5A065; font-weight: bold; }

.desk-nav-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 2rem;
    color: rgba(255,255,255,0.6);
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.desk-nav-btn:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.desk-nav-btn.active {
    background: rgba(255,255,255,0.1);
    color: #C5A065;
    border-left-color: #C5A065;
    font-weight: bold;
}

/* --- PRODUCT ELEMENTS --- */
.month-box {
    font-size: 0.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    color: rgba(255,255,255,0.3);
    padding: 2px 0;
}

.month-active {
    background-color: #C5A065;
    color: white;
    border-color: #C5A065;
    font-weight: bold;
}

.category-tab {
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    transition: all 0.2s;
    cursor: pointer;
}

.category-tab.active {
    background: #C5A065;
    border-color: #C5A065;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.badge-essential { background: rgba(34, 197, 94, 0.9); }
.badge-concentrate { background: rgba(168, 85, 247, 0.9); }

/* --- UI COMPONENTS --- */
.logo-framed {
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 16px;
    background: rgba(0,0,0,0.35);
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
}

.lang-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.lang-switch.mobile { height: 5rem; }
.lang-switch.desktop { height: 9rem; }

.lang-active { color: #FFFFFF; font-weight: bold; }
.lang-inactive { color: rgba(255,255,255,0.5); cursor: pointer; }

.header-tight { padding-top: 1.25rem !important; }
.header-hidden { transform: translateY(-160%) !important; opacity: 0 !important; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- NOSCRIPT --- */
.noscript-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #1A2F25;
    color: white;
    text-align: center;
    padding: 2rem;
    font-family: 'Lato', sans-serif;
}

.noscript-fallback h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #C5A065;
}

.noscript-fallback p {
    color: rgba(255,255,255,0.7);
    max-width: 400px;
    line-height: 1.6;
}
