/* ==========================================================================
   Supper Savings Shopping - SHARED SITE STYLES
   Palette: Deep Evergreen / Emerald / Soft Sage
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CORE
   -------------------------------------------------------------------------- */
body {
    background-color: #FBF5F6;
    color: #402B34;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

::selection { background: #B87583; color: #FFFFFF; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #E6EDE4; }
::-webkit-scrollbar-thumb { background: #402B34; border-radius: 99px; border: 2px solid #E6EDE4; }
::-webkit-scrollbar-thumb:hover { background: #B87583; }

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

/* --------------------------------------------------------------------------
   2. INPUTS & BUTTONS
   -------------------------------------------------------------------------- */
.gl-input {
    width: 100%; background: #FFFFFF; border: 1px solid #E2C5CC; padding: 1.05rem 1.35rem;
    color: #402B34; font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 400;
    transition: all 0.3s ease; outline: none; border-radius: 0.9rem;
}
.gl-input:focus { border-color: #B87583; box-shadow: 0 0 0 4px rgba(14, 122, 83, 0.12); }
.gl-input::placeholder { color: #9DB3A6; font-weight: 300; letter-spacing: 0.03em; }

.gl-input-dark {
    background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #FFFFFF;
}
.gl-input-dark:focus { border-color: #D49AA5; box-shadow: 0 0 0 4px rgba(47, 174, 131, 0.18); background: rgba(255, 255, 255, 0.09); }
.gl-input-dark::placeholder { color: rgba(255, 255, 255, 0.35); }
.gl-input-dark::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.65; cursor: pointer; }

.input-label {
    display: block; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.12em; color: #402B34; margin-bottom: 0.5rem;
}
.label-white { color: #FFFFFF; }

.btn-primary {
    background: #402B34; color: #FFFFFF; font-family: 'Inter', sans-serif; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em; padding: 1.05rem 2.6rem; font-size: 0.8rem;
    display: inline-flex; align-items: center; justify-content: center; transition: all 0.35s ease;
    border: 1px solid #402B34; cursor: pointer; border-radius: 999px;
}
.btn-primary:hover { background: #B87583; border-color: #B87583; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(14, 122, 83, 0.45); }

.btn-accent {
    background: #B87583; color: #FFFFFF; font-family: 'Inter', sans-serif; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em; padding: 1.05rem 2.6rem; font-size: 0.8rem;
    display: inline-flex; align-items: center; justify-content: center; transition: all 0.35s ease;
    border: 1px solid #B87583; cursor: pointer; border-radius: 999px;
}
.btn-accent:hover { background: #402B34; border-color: #402B34; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(12, 33, 26, 0.4); }

.btn-outline {
    background: transparent; color: #402B34; font-family: 'Inter', sans-serif; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em; padding: 1rem 2.4rem; font-size: 0.8rem;
    display: inline-flex; align-items: center; justify-content: center; transition: all 0.35s ease;
    border: 1px solid #C2D3C6; cursor: pointer; border-radius: 999px;
}
.btn-outline:hover { background: #402B34; border-color: #402B34; color: #FFFFFF; transform: translateY(-2px); }

.eyebrow {
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 10px;
    letter-spacing: 0.22em; text-transform: uppercase; display: block;
}

/* Header nav links */
.nav-link { position: relative; padding: 0.35rem 0; transition: color 0.3s ease; }
.nav-link:hover { color: #402B34; }
.nav-link::after {
    content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
    background: #B87583; border-radius: 99px; transition: width 0.35s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link.nav-active { color: #B87583; }
.nav-link.nav-active::after { width: 100%; }

/* --------------------------------------------------------------------------
   3. TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
#toast {
    position: fixed; bottom: -140px; left: 50%; transform: translateX(-50%);
    background: #402B34; color: #FFFFFF; padding: 0.95rem 1.5rem; border-radius: 999px;
    font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.85rem; line-height: 1.45;
    transition: bottom 0.5s cubic-bezier(0.25, 1, 0.5, 1); z-index: 99999;
    display: flex; align-items: center; gap: 11px; max-width: 92vw;
    box-shadow: 0 20px 40px -12px rgba(12, 33, 26, 0.45); border: 1px solid rgba(255,255,255,0.12);
}
#toast.show { bottom: 1.75rem; }
#toast i { color: #4ADE80; font-size: 1.15rem; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   4. BOTTOM-SHEET CART
   -------------------------------------------------------------------------- */
#cart-backdrop {
    position: fixed; inset: 0; background: rgba(12, 33, 26, 0.55); backdrop-filter: blur(8px);
    z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.5s ease; cursor: pointer;
}
body.cart-open #cart-backdrop { opacity: 1; visibility: visible; }
body.cart-open { overflow: hidden; }

#bottom-sheet {
    position: fixed; bottom: 0; left: 0; width: 100vw; height: 90vh;
    background: #FFFFFF; z-index: 2100; display: flex; flex-direction: column;
    transform: translateY(100%); transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 -20px 60px rgba(12, 33, 26, 0.25);
    border-top: 1px solid #E2C5CC; border-radius: 2rem 2rem 0 0; overflow: hidden;
}
body.cart-open #bottom-sheet { transform: translateY(0); }

.cart-pane {
    transition: opacity 0.4s ease, transform 0.4s ease; opacity: 0; transform: translateY(20px);
    position: absolute; inset: 0; pointer-events: none; overflow-y: auto;
    display: flex; flex-direction: column; background: #FFFFFF;
}
.cart-pane.active { opacity: 1; transform: translateY(0); pointer-events: auto; position: relative; z-index: 5; }

/* --------------------------------------------------------------------------
   5. HERO (HOME)
   -------------------------------------------------------------------------- */
.hero-glow {
    position: absolute; border-radius: 9999px; filter: blur(90px); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.hero-col { display: flex; flex-direction: column; gap: 1.25rem; }
.hero-col-offset { transform: translateY(2.5rem); }
.hero-tile {
    border-radius: 1.75rem; overflow: hidden; height: 170px;
    background: #563945; border: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 768px) { .hero-tile { height: 190px; } }
@media (min-width: 1280px) { .hero-tile { height: 235px; } }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.hero-tile:hover img { transform: scale(1.06); }
@media (max-width: 640px) { .hero-col-offset { transform: translateY(1.5rem); } }

/* --------------------------------------------------------------------------
   6. PRODUCT CARDS
   -------------------------------------------------------------------------- */
.prod-card {
    background: #FFFFFF; border: 1px solid #E2C5CC; border-radius: 1.5rem; padding: 1.25rem;
    display: flex; flex-direction: column; cursor: pointer; transition: all 0.35s ease;
}
.prod-card:hover {
    border-color: #B87583; box-shadow: 0 20px 40px -18px rgba(12, 33, 26, 0.22);
    transform: translateY(-6px);
}
.prod-img-wrap {
    width: 100%; aspect-ratio: 4/5; overflow: hidden; background: #FBF5F6; border-radius: 1rem;
    display: flex; align-items: center; justify-content: center; padding: 1.75rem; margin-bottom: 1.25rem;
}
.prod-img-wrap img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    mix-blend-mode: multiply; transition: transform 0.6s ease;
}
.prod-card:hover .prod-img-wrap img { transform: scale(1.08); }

.cat-tag {
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 9px;
    text-transform: uppercase; letter-spacing: 0.18em; color: #B87583; margin-bottom: 0.4rem;
}

.add-btn {
    width: 100%; background: transparent; border: 1px solid #C2D3C6; color: #402B34;
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.14em; padding: 0.75rem 1rem; border-radius: 999px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s ease;
}
.prod-card:hover .add-btn { background: #402B34; border-color: #402B34; color: #FFFFFF; }
.add-btn.added { background: #B87583 !important; border-color: #B87583 !important; color: #FFFFFF !important; }

/* Category pills */
.pill {
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.14em; padding: 0.7rem 1.5rem; border-radius: 999px; transition: all 0.3s ease;
    border: 1px solid #C2D3C6; background: #FFFFFF; color: #927780; cursor: pointer;
}
.pill:hover { border-color: #B87583; color: #B87583; transform: translateY(-1px); }
.pill-active, .pill-active:hover {
    background: #402B34 !important; border-color: #402B34 !important; color: #FFFFFF !important;
    box-shadow: 0 12px 26px -12px rgba(12, 33, 26, 0.5);
}

/* --------------------------------------------------------------------------
   7. WHY-US SLAB PANELS
   -------------------------------------------------------------------------- */
.slab-wrap { display: flex; flex-direction: column; gap: 0.85rem; width: 100%; }
@media (min-width: 1024px) { .slab-wrap { flex-direction: row; height: 480px; } }

.slab-panel {
    flex: 1; position: relative; background: #563945; border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.5rem; transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1), background 0.5s ease, border-color 0.5s ease;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    overflow: hidden; padding: 2.5rem 1.5rem; text-align: center;
}
@media (min-width: 1024px) {
    .slab-panel:hover { flex: 2.4; background: #173B2C; border-color: rgba(74, 222, 128, 0.25); }
}

.slab-icon-wrap {
    width: 4.25rem; height: 4.25rem; border-radius: 9999px; background: rgba(47, 174, 131, 0.14);
    border: 1px solid rgba(47, 174, 131, 0.35); display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.1rem; transition: transform 0.5s ease, background 0.5s ease;
}
.slab-icon { font-size: 1.8rem; color: #4ADE80; }
@media (min-width: 1024px) { .slab-panel:hover .slab-icon-wrap { transform: translateY(-8px) scale(1.06); background: rgba(47, 174, 131, 0.28); } }

.slab-title {
    font-family: 'Fraunces', serif; font-size: 1.65rem; font-weight: 500; color: #FFFFFF;
    margin-bottom: 0.6rem; transition: all 0.5s ease;
}
@media (min-width: 1024px) { .slab-panel:hover .slab-title { font-size: 2.1rem; } }

.slab-desc {
    opacity: 0; max-height: 0; transition: all 0.5s ease; color: rgba(255, 255, 255, 0.66);
    font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 300; line-height: 1.65;
    max-width: 380px; margin: 0 auto; overflow: hidden;
}
@media (min-width: 1024px) { .slab-panel:hover .slab-desc { opacity: 1; max-height: 220px; margin-top: 0.5rem; } }
@media (max-width: 1023px) { .slab-desc { opacity: 1; max-height: none; margin-top: 0.5rem; } }

/* --------------------------------------------------------------------------
   8. FAQ CARDS
   -------------------------------------------------------------------------- */
.faq-item {
    background: #FFFFFF; border: 1px solid #E2C5CC; border-radius: 1.25rem;
    padding: 0 1.5rem; transition: all 0.3s ease;
}
.faq-item:hover { border-color: #B3CBB9; }
.faq-item[open] { border-color: #B87583; box-shadow: 0 12px 40px -14px rgba(12, 33, 26, 0.14); }

summary.faq-q {
    padding: 1.35rem 0; font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 500;
    color: #402B34; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
summary.faq-q::-webkit-details-marker { display: none; }
summary.faq-q .faq-ic {
    flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 9999px; border: 1px solid #C2D3C6;
    display: inline-flex; align-items: center; justify-content: center; color: #B87583;
    font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 300; transition: all 0.3s ease;
}
.faq-item[open] summary.faq-q .faq-ic { background: #B87583; border-color: #B87583; color: #FFFFFF; transform: rotate(45deg); }
.faq-a { padding-bottom: 1.35rem; color: #927780; font-family: 'Inter', sans-serif; font-size: 0.95rem; line-height: 1.7; font-weight: 400; }

/* --------------------------------------------------------------------------
   9. MODALS
   -------------------------------------------------------------------------- */
.app-modal {
    display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden;
    transition: all 0.4s ease; pointer-events: none; position: fixed; inset: 0; z-index: 4000;
    background: rgba(12, 33, 26, 0.7); backdrop-filter: blur(6px); padding: 1.25rem;
}
.app-modal.active { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-box {
    transform: translateY(30px); opacity: 0; transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    max-height: 90vh; overflow-y: auto; background: #FFFFFF; width: 100%;
    border-radius: 1.75rem; box-shadow: 0 30px 60px rgba(12, 33, 26, 0.35);
}
.app-modal.active .modal-box { transform: translateY(0); opacity: 1; }
