/* ==========================================================================
   GIVORA - COMPONENTS STYLING
   ========================================================================== */

/* --- 1. NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(250, 246, 240, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--brand-primary);
    background: rgba(122, 16, 36, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.cart-trigger-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-surface);
    color: var(--brand-primary);
    border: 1.5px solid var(--border-light);
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-base);
}

.cart-trigger-btn:hover {
    border-color: var(--brand-primary);
    background: var(--brand-primary-subtle);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.cart-count-badge {
    background: var(--brand-primary);
    color: var(--text-inverted);
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nav Action Admin Button (Di Pinggir Kanan Atas) */
.btn-admin-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1.5px solid var(--border-light);
    padding: 0.55rem 0.95rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-base);
}

.btn-admin-nav:hover {
    color: #D97706;
    border-color: #F59E0B;
    background: #FEF3C7;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Floating Admin Edge Pill (Di Pinggir Kiri Bawah Layar) */
.floating-admin-edge {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 990;
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(8px);
    color: #FBBF24;
    border: 1.5px solid rgba(251, 191, 36, 0.4);
    padding: 0.5rem 0.95rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.floating-admin-edge:hover {
    background: #111827;
    border-color: #FBBF24;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

/* Admin PIN Input Field & Shake Animation */
.admin-pin-field {
    width: 100%;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.25rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: #FFF;
    color: var(--text-primary);
    transition: var(--transition-fast);
    outline: none;
}

.admin-pin-field:focus {
    border-color: #D97706;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15);
}

@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.input-shake {
    animation: inputShake 0.4s ease;
    border-color: #DC2626 !important;
}

@media (max-width: 600px) {
    .floating-admin-edge {
        bottom: 85px;
        left: 16px;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* --- 2. HERO SECTION --- */
.hero-section {
    padding: 3.5rem 1.5rem 4rem 1.5rem;
    position: relative;
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.hero-stickers-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.sticker-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    color: var(--text-primary);
}

.sticker-pill.pill-primary {
    background: var(--brand-primary-subtle);
    color: var(--brand-primary);
    border-color: rgba(122, 16, 36, 0.2);
}

.sticker-pill.pill-gold {
    background: var(--accent-gold-light);
    color: var(--accent-gold-dark);
    border-color: rgba(245, 158, 11, 0.3);
}

.sticker-pill.pill-green {
    background: var(--accent-green-light);
    color: #065F46;
    border-color: rgba(16, 185, 129, 0.25);
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 2.25rem auto;
    line-height: 1.65;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.hero-bento-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-bento-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-base);
}

.hero-bento-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(122, 16, 36, 0.2);
}

.bento-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.hero-bento-item strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.hero-bento-item small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- 3. PRODUCTS CATALOG & FILTER TABS --- */
.products-section {
    padding: 4.5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-filter-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.75rem;
    flex-wrap: wrap;
}

.category-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-base);
}

.category-pill-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.category-pill-btn.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--text-inverted);
    box-shadow: var(--shadow-primary);
}

.pill-count {
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.category-pill-btn.active .pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #FFF;
}

/* Products Grid */
.bento-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.75rem;
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(122, 16, 36, 0.2);
}

.bento-card.is-featured {
    border: 1.5px solid var(--accent-gold);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15);
}

/* Card Sold Out State */
.bento-card.is-sold-out {
    border-color: #FCA5A5;
}

.bento-card.is-sold-out:hover {
    transform: none;
    box-shadow: var(--shadow-xs);
}

.bento-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-surface-alt);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bento-card:hover:not(.is-sold-out) .bento-thumb-img {
    transform: scale(1.05);
}

.bento-card.is-sold-out .bento-thumb-img {
    filter: grayscale(0.5) opacity(0.7);
}

.bento-soldout-overlay {
    position: absolute;
    inset: 0;
    background: rgba(36, 14, 19, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.soldout-badge {
    background: #DC2626;
    color: #FFF;
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.bento-sticker-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.badge-gold {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}

.badge-choco {
    background: #EFEBE9;
    color: #3E2723;
    border: 1px solid #D7CCC8;
}

.badge-matcha {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.badge-spicy {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

.bento-star-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.bento-body {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bento-category-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.bento-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.bento-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.85rem;
    flex-grow: 1;
}

.bento-flavor-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    width: fit-content;
}

/* Stock Indicators in Card Body */
.bento-stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.15rem;
    width: fit-content;
}

.bento-stock-indicator.in-stock {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.bento-stock-indicator.low-stock {
    background: #FFFBEB;
    color: #B45309;
    border: 1px solid #FCD34D;
    animation: stockPulse 2s infinite ease-in-out;
}

.bento-stock-indicator.sold-out {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
}

@keyframes stockPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.bento-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-light);
    gap: 0.75rem;
}

.bento-price-tag {
    display: flex;
    flex-direction: column;
}

.bento-price-num {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.bento-price-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.bento-actions-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bento-stepper {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.15rem;
}

.bento-stepper button {
    width: 28px;
    height: 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.bento-stepper button:hover {
    background: var(--brand-primary);
    color: #FFF;
    border-color: var(--brand-primary);
}

.bento-stepper span {
    min-width: 24px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-add-bento {
    background: var(--brand-primary);
    color: var(--text-inverted);
    border: none;
    padding: 0.55rem 0.95rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 10px rgba(122, 16, 36, 0.2);
    transition: var(--transition-base);
}

.btn-add-bento:hover:not(:disabled) {
    background: var(--brand-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(122, 16, 36, 0.3);
}

.btn-add-bento:disabled,
.btn-add-bento.is-disabled {
    background: #E5E7EB !important;
    color: #9CA3AF !important;
    border: 1px solid #D1D5DB !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* --- 4. HOW TO ORDER (STEPS) --- */
.steps-section {
    padding: 4.5rem 1.5rem;
    background: var(--bg-surface-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.25rem 1.75rem;
    position: relative;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-base);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(122, 16, 36, 0.2);
}

.step-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(122, 16, 36, 0.08);
    line-height: 1;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--brand-primary-subtle);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- 5. FLOATING QUICK CART & WHATSAPP PILL --- */
.floating-quick-cart {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--brand-primary-dark);
    color: #FFF;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    box-shadow: 0 12px 32px rgba(79, 8, 21, 0.35);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 90;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.floating-quick-cart.visible {
    transform: translateX(-50%) translateY(0);
}

.floating-cart-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.floating-cart-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gold);
    color: #240E13;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.floating-cart-meta {
    display: flex;
    flex-direction: column;
}

.floating-cart-meta strong {
    font-size: 0.9rem;
    font-weight: 700;
}

.floating-cart-meta small {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
}

.btn-floating-checkout {
    background: var(--accent-gold);
    color: #240E13;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.floating-ig-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFF;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    z-index: 85;
    text-decoration: none;
    transition: var(--transition-base);
}

.floating-ig-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
    color: #FFF;
}

/* --- 6. FOOTER --- */
.footer {
    background: #1F080D;
    color: #D3C5C7;
    padding: 4.5rem 1.5rem 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3.5rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #A89598;
    max-width: 440px;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 1.25rem 0 1.5rem 0;
}

.admin-orders-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFF;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: var(--transition-fast);
}

.admin-orders-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-contact h4 {
    color: #FFF;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: #A89598;
    margin-bottom: 0.85rem;
}

.contact-wa-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
}

.contact-email {
    color: var(--accent-gold);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.85rem;
    color: #7A696C;
}

@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-title {
        font-size: 2.35rem;
    }
    .hero-bento-highlights {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .nav-links {
        display: none;
    }
}
