@charset "UTF-8";

/* =======================================
   1. VARIABEL WARNA & FONT
   ======================================= */
:root {
    /* Tema Warna */
    --color-primary: #00796b;
    --color-primary-dark: #004d40;
    --color-background: #f4f4f9;
    --color-card-bg: #ffffff;
    --color-text: #333333;
    --color-text-light: #ffffff;
    --color-heading: #005a4d;
    --color-secondary: #8c3b77;

    /* Font */
    --font-heading: 'Sour Gummy', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Properti Lain */
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

/* =======================================
   2. SKEMA WARNA GELAP (DARK MODE)
   ======================================= */
@media (prefers-color-scheme:dark) {
    :root {
        --color-primary: #00897b;
        --color-primary-dark: #00a99d;
        --color-background: #121212;
        --color-card-bg: #1e1e1e;
        --color-text: #e0e0e0;
        --color-text-light: #121212;
        --color-heading: #00bfa5;
        --shadow: 0 4px 20px rgba(0, 0, 0, .25);
    }

    figure.captioned-image figcaption {
        color: #aaa;
    }

    /* Gaya Search di Dark Mode */
    .search-input {
        background-color: rgba(45, 45, 45, 0.8);
        color: var(--color-text);
    }

    .search-input:focus,
    .search-input:not(:placeholder-shown) {
        background-color: var(--color-card-bg);
    }

    .search-label {
        color: #aaa;
    }
}

/* =======================================
   3. RESET & GAYA GLOBAL
   ======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.body-no-scroll {
    overflow: hidden;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.judul-akarsehat {
    color: #00BFA6;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    white-space: nowrap;
}

/* =======================================
   4. HEADER & NAVIGASI
   ======================================= */

/* Default (kalau browser ga support prefers-color-scheme) */
.header {
    backdrop-filter: blur(12px);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

/* Light mode */
@media (prefers-color-scheme: light) {
    .header {
        background-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .header {
        background-color: rgba(30, 30, 30, 0.9);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.header.hidden {
    transform: translateY(-100%);
}

.desktop-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.nav-link,
.nav-btn {
    background-color: var(--color-card-bg);
    color: var(--color-primary);
    padding: 0.6rem 1.35rem;
    border-radius: 8px;
    border: 1px solid var(--color-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover,
.nav-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
}

.whatsapp-button {
    background-color: #25D366;
    color: #fff;
    border-color: #25D366;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-card-bg);
    min-width: 220px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown.show .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--color-text);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}

.arrow {
    font-size: 1.1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown.show .arrow {
    transform: rotate(180deg);
}

/* =======================================
   5. PENCARIAN
   ======================================= */
.search-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: transparent;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, z-index 0.4s;
    padding-top: 5.5rem;
}

.search-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1001;
}

.search-box {
    position: relative;
    width: 90%;
    max-width: 500px;
    height: 58px;
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.search-container.active .search-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.search-input {
    -webkit-appearance: none;
    border: 0;
    outline: 0;
    width: 100%;
    height: 100%;
    padding: 0 68px 0 18px;
    border-radius: 29px;
    background-color: rgba(255, 255, 255, .7);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 2px 4px rgba(0, 0, 0, .05), 0 4px 8px rgba(0, 0, 0, .05), 0 8px 16px rgba(0, 0, 0, .05);
    color: var(--color-primary);
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.search-input::placeholder {
    color: transparent;
}

.search-input:focus,
.search-input:not(:placeholder-shown) {
    background-color: var(--color-card-bg);
}

.search-label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: var(--color-primary-dark);
    font-weight: 500;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-input:not(:placeholder-shown)+.search-label {
    opacity: 0;
    visibility: hidden;
}

.search-btn {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    border: 0;
    outline: 0;
    background-color: transparent;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
    background-repeat: no-repeat;
    background-position: center;
    transition: background-color .3s ease;
}

.search-btn:hover {
    background-color: var(--color-primary-dark);
}

.search-btn:active {
    transform: translateY(-50%) scale(.95);
}

.search-highlight {
    background-color: yellow;
    color: #333;
    padding: 0.1em 0.2em;
    border-radius: 3px;
}

/* =======================================
   6. KONTEN UTAMA & KOMPONEN
   ======================================= */
main {
    padding: 2.5rem 0;
}

.card {
    background-color: var(--color-card-bg);
    padding: 2.2rem;
    margin-bottom: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.product-title,
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.2;
}

#subarashi .product-title {
    color: var(--color-heading);
}

#Utsukushhii .product-title {
    color: var(--color-secondary);
}

#hikari .product-title {
    color: #555;
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--color-heading);
    margin: 2.2rem 0 1rem 0;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.6rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 1.6rem 0 0.6rem;
}

p,
ul,
ol {
    margin-bottom: 1.1rem;
    text-align: justify;
}

ul,
ol {
    padding-left: 28px;
}

li {
    margin-bottom: 0.6rem;
}

.main-product-image,
.price-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto 2.2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.03);
}

.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.ingredient-item {
    background-color: var(--color-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ingredient-item img {
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.ingredient-item h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
    color: var(--color-primary);
    font-size: 1.3rem;
}

.ingredient-item p {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 0;
}

.ingredient-breakdown {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ingredient-breakdown:last-child {
    border-bottom: none;
}

.ingredient-breakdown h4 {
    color: var(--color-secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

figure.captioned-image {
    margin: 2rem auto;
    text-align: center;
    max-width: 500px;
}

figure.captioned-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: block;
    margin-bottom: 0.8rem;
}

figure.captioned-image figcaption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 1.8rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: #000;
    cursor: pointer;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.youtube-facade .play-button {
    width: 80px;
    height: 55px;
    background-color: rgba(255, 0, 0, 0.8);
    border-radius: 10px;
    border: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.youtube-facade .play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #ffffff;
    transform: translateX(3px);
}

.youtube-facade:hover .play-button {
    background-color: rgba(200, 0, 0, 0.9);
    transform: scale(1.1);
}

.zoomable {
    cursor: zoom-in;
}

.image-zoom-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-zoom-viewer.active {
    opacity: 1;
    visibility: visible;
}

.image-zoom-viewer img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-zoom-viewer.active img {
    transform: scale(1);
}

.faq-section .card {
    padding: 2.5rem;
}

.faq-section details {
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-section summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--color-card-bg);
    color: var(--color-primary);
    font-size: 1.1rem;
    outline: none;
    transition: background-color 0.3s ease;
}

.faq-section summary::marker,
.faq-section summary::-webkit-details-marker {
    display: none;
}

.faq-section summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-section details[open] summary::after {
    content: '−';
}

.faq-section details[open] summary {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-section details p {
    padding: 1.2rem 1.5rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* =======================================
   7. NAVIGASI & PANEL MENU MOBILE
   ======================================= */
.mobile-nav-wrapper {
    display: none;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    max-width: 80vw;
    height: 100%;
    background-color: var(--color-card-bg);
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-menu-panel.active {
    right: 0;
}

.mobile-menu-nav {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
}

.mobile-menu-link {
    font-size: 1.25rem;
    color: var(--color-text);
    text-decoration: none;
    padding: 1.1rem 0;
    font-weight: 600;
    transition: color 0.2s ease;
}

.mobile-menu-link:hover {
    color: var(--color-primary);
}

.mobile-menu-nav hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    margin: 1.2rem 0;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-primary);
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    transform: scale(1.1);
}

.icon-btn svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
}

/* =======================================
   8. FOOTER
   ======================================= */

/* Default (fallback) */
.footer {
    text-align: center;
    padding: 2.8rem 1rem;
    margin-top: 3rem;
}

.footer p {
    margin-bottom: 0.8rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
    text-align: center;
}

.footer b,
.footer strong {
    font-weight: bold;
}

.footer em {
    font-size: 0.85rem;
    font-style: italic;
}

/* Light mode */
@media (prefers-color-scheme: light) {
    .footer {
        background-color: #f9f9f9;
        color: #444;
    }

    .footer b,
    .footer strong {
        color: #222;
    }

    .footer em {
        color: #555;
        opacity: 0.7;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .footer {
        background-color: #333;
        color: #ccc;
    }

    .footer b,
    .footer strong {
        color: #fff;
    }

    .footer em {
        color: #ccc;
        opacity: 0.8;
    }
}

/* =======================================
   9. MEDIA QUERIES (RESPONSIVE)
   ======================================= */
@media (max-width: 900px) {

    .product-title,
    .section-title {
        font-size: 2.4rem;
    }

    h3 {
        font-size: 1.7rem;
    }

    .card {
        padding: 1.8rem;
    }
}

@media (max-width: 768px) {
    .judul-akarsehat {
        white-space: normal;
    }

    .judul-akarsehat span {
        display: block;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .mobile-logo {
        font-family: var(--font-body);
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--color-primary);
        text-decoration: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-grow: 1;
    }

    .mobile-nav-icons {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
        padding-left: 1rem;
    }

    .product-title,
    .section-title {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    /* PERBAIKAN: Galeri dan Komposisi menjadi 1 kolom di mobile */
    .image-gallery,
    .ingredient-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .product-title,
    .section-title {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .card {
        padding: 1.2rem;
    }

    .mobile-logo {
        font-size: 1.4rem;
    }

    .search-container {
        padding-top: 5rem;
    }

    .mobile-menu-panel {
        width: 100%;
        max-width: 100vw;
        right: -100%;
    }
}

/* =======================================
   10. NOTIFIKASI PENCARIAN
   ======================================= */
.search-notification {
    position: fixed;
    bottom: -100px;
    /* Mulai dari posisi tersembunyi */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    z-index: 2000;
    transition: bottom 0.5s ease-in-out;
    text-align: center;
    max-width: 90%;
}

.search-notification.show {
    bottom: 30px;
    /* Posisi saat muncul */
}
