/* ===== Custom Styles — giestar ===== */

/* Base */
body {
    background-color: #ffffff;
    min-height: 100vh;
}

.glass-widget {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    line-height: 1.15;
}

/* ===== FAQ Accordion ===== */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq-answer > div {
    overflow: hidden;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: #658d51;
    border-color: #658d51;
}

.faq-item.open .faq-icon svg {
    color: #ffffff;
}

/* ===== Photo Expand Strip ===== */
.photo-strip .photo-card {
    min-width: 0;
}

/* Mobile: kartu pendek, tap untuk membesar (konten mengalir di bawah gambar) */
.k-label {
    display: flex;
}

.k-content {
    display: none;
}

.photo-card.open .k-label {
    display: none;
}

.photo-card.open .k-content {
    display: flex;
}

.b-title {
    display: block;
}

.b-expanded {
    display: none;
}

.photo-card:hover .b-title,
.photo-card.open .b-title {
    display: none;
}

.photo-card:hover .b-expanded,
.photo-card.open .b-expanded {
    display: flex;
}

/* ===== Product Scroll (mobile carousel) ===== */
.product-scroll {
    scrollbar-width: none;
}

.product-scroll::-webkit-scrollbar {
    display: none;
}

/* Mobile: kolom kartu full-gambar; tertutup = gambar tipis (terpotong), ditekan = penuh + teks di depan gambar */
@media (max-width: 767.98px) {
    .vertical-text {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .photo-strip .photo-card {
        height: 4rem;
        transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .photo-strip .photo-card.open {
        height: 24rem;
    }
}

@media (min-width: 768px) {
    .photo-strip .photo-card {
        flex: 1 1 0%;
        transition: flex-grow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .photo-strip .photo-card.photo-wide {
        flex: 8 1 0%;
    }

    /* Kartu yang dibuka via tap/klik ikut melebar */
    .photo-strip .photo-card.open {
        flex: 8 1 0%;
    }

    .photo-strip:has(.photo-card.open) .photo-card:not(.open) {
        flex: 1 1 0%;
    }

    .photo-strip:has(.photo-card.open) .photo-card:not(.open) .k-label {
        opacity: 1;
    }

    .photo-strip:has(.photo-card.open) .photo-card:not(.open) .k-content {
        opacity: 0;
        pointer-events: none;
    }

    .photo-strip:hover .photo-card:not(:hover) {
        flex: 1 1 0%;
    }

    .photo-strip:hover .photo-card:hover {
        flex: 8 1 0%;
    }

    .k-label {
        display: flex;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .k-content {
        display: flex;
        transition: opacity 0.3s ease;
    }

    .photo-strip:hover .photo-card:not(:hover) .k-label {
        opacity: 1;
    }

    .photo-strip:hover .photo-card:not(:hover) .k-content {
        opacity: 0;
        pointer-events: none;
    }
}
