/* ============ Grab Value Store — Editorial Boutique Theme ============ */
body {
    background-color: #FAF7F0;
    color: #1C2B26;
    margin: 0;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C4572E; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #1C2B26; }

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

/* Inputs */
.lm-input {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E3DACB;
    padding: 1.1rem 1.25rem;
    color: #1C2B26;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.25s ease;
    box-sizing: border-box;
}
.lm-input:focus {
    outline: none;
    border-color: #C4572E;
    box-shadow: 0 0 0 4px rgba(196, 87, 46, 0.12);
}
.lm-input::placeholder { color: #A8A396; font-weight: 400; }

/* Toast */
#toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1C2B26;
    color: #FAF7F0;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 15px 35px rgba(28, 43, 38, 0.35);
    transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #C4572E;
}
#toast.show { bottom: 32px; }

/* Cart Drawer (right side) */
#cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 32, 25, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 9000;
}
#cart-overlay.active { opacity: 1; pointer-events: auto; }

#cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: 100%;
    max-width: 1080px;
    background: #FAF7F0;
    z-index: 9100;
    transform: translateX(105%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -30px 0 60px rgba(20, 32, 25, 0.25);
    border-left: 1px solid #E3DACB;
}
#cart-drawer.active { transform: translateX(0); }

/* Flip cards (FAQ) */
.flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}
.flip-card {
    perspective: 1200px;
    height: 280px;
    cursor: pointer;
}
.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.flip-front {
    background: #FFFFFF;
    border: 1px solid #E3DACB;
    box-shadow: 0 8px 24px rgba(28, 43, 38, 0.05);
}
.flip-back {
    background: #1C2B26;
    color: #FAF7F0;
    transform: rotateY(180deg);
    border: 1px solid #1C2B26;
}

/* Modals */
.app-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 32, 25, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9500;
}
.app-modal.active { opacity: 1; pointer-events: auto; }
.app-modal-box {
    transform: translateY(24px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.app-modal.active .app-modal-box { transform: translateY(0) scale(1); }

/* Header underline link effect */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: #C4572E;
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: #C4572E; }
