/* Tindahan Natin Online - shared look (Option A) */
:root {
    --tn-green: #006e1c;
    --tn-green-dark: #00521a;
    --tn-green-soft: #e3f2e5;
    --tn-yellow: #FFC93C;
    --tn-ink: #14201a;
    --tn-muted: #5b6b60;
    --tn-bg: #f5f7f2;
    --tn-line: #e3e8e0;
    --tn-red: #c62828;
}

html, body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
}
body.tn-page {
    background: var(--tn-bg) !important;
    color: var(--tn-ink);
}

/* Sari-sari awning stripe */
.tn-awning {
    height: 16px;
    background-color: #ffffff;
    background-image:
        radial-gradient(circle at 15px 0, var(--tn-green) 15px, transparent 15.5px);
    background-size: 60px 16px;
    background-repeat: repeat-x;
}
.tn-awning.tn-awning-red {
    background-image:
        radial-gradient(circle at 15px 0, var(--tn-red) 15px, transparent 15.5px);
}

/* Green page header */
.tn-header {
    background: var(--tn-green);
    color: #ffffff;
}
.tn-header-btn {
    width: 44px; height: 44px; border-radius: 22px;
    background: rgba(255, 255, 255, 0.16) !important; /* !important: Tailwind's reset for buttons loads after this file */
    color: #ffffff;
    display: flex; align-items: center; justify-content: center;
    position: relative; flex-shrink: 0; border: none;
}
.tn-header-btn:active { transform: scale(0.95); }
.tn-badge {
    position: absolute; top: -3px; right: -3px;
    min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
    background: var(--tn-red); color: #fff;
    font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--tn-green);
}

.tn-card {
    background: #ffffff !important;
    border: 1px solid var(--tn-line);
    border-radius: 20px;
}
.tn-section-title {
    font-size: 17px; font-weight: 800; letter-spacing: -0.2px; color: var(--tn-ink);
}
.tn-link {
    font-size: 13px; font-weight: 700; color: var(--tn-green);
}

/* Bottom navigation */
#floatingBottomNav.tn-nav {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    height: 72px; max-width: none; margin: 0;
    background: #ffffff !important;
    border-top: 1px solid var(--tn-line);
    border-radius: 0 !important;
    display: flex; align-items: flex-start; justify-content: space-around;
    padding: 4px 6px 0;
    z-index: 50;
    box-shadow: 0 -6px 20px rgba(20, 32, 26, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
#floatingBottomNav.tn-nav.nav-hidden { transform: translateY(110%) !important; }
.tn-nav-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 0; border: none; background: none !important;
    color: var(--tn-muted);
    font-size: 11px; font-weight: 600;
    font-family: inherit;
}
.tn-nav-pill {
    width: 52px; height: 30px; border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
}
.tn-nav-item.tn-active { color: var(--tn-green); font-weight: 800; }
.tn-nav-item.tn-active .tn-nav-pill { background: var(--tn-green-soft); }
.tn-nav-item .material-symbols-outlined { font-size: 22px; }
.tn-nav-item.tn-active .material-symbols-outlined { font-variation-settings: 'FILL' 1; }

/* Pop-ups (replace alert / confirm) */
.tn-sheet-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(12, 20, 14, 0);
    display: flex; align-items: flex-end; justify-content: center;
    transition: background 0.2s ease;
}
.tn-sheet-overlay.tn-open { background: rgba(12, 20, 14, 0.5); }
.tn-sheet {
    width: 100%; max-width: 480px;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    padding: 10px 20px 24px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transform: translateY(100%);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--tn-ink);
}
.tn-open .tn-sheet { transform: translateY(0); }
.tn-sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: #dfe4dc; }
.tn-sheet-icon {
    width: 64px; height: 64px; border-radius: 22px; margin-top: 18px;
    display: flex; align-items: center; justify-content: center;
}
.tn-sheet-icon svg { width: 30px; height: 30px; }
.tn-tone-danger, .tn-tone-error { background: #fff1ef; color: var(--tn-red); }
.tn-tone-success { background: var(--tn-green-soft); color: var(--tn-green); }
.tn-tone-info { background: #fff6dc; color: #8a5a00; }
.tn-sheet h2 { margin: 14px 0 6px; font-size: 19px; font-weight: 800; }
.tn-sheet p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--tn-muted); white-space: pre-line; }
.tn-sheet-actions { display: flex; gap: 10px; width: 100%; margin-top: 20px; }
.tn-btn {
    flex: 1; height: 52px; border-radius: 15px;
    font-family: inherit; font-size: 15px; font-weight: 800;
    border: none; cursor: pointer;
}
.tn-btn:active { transform: scale(0.98); }
.tn-btn-primary { background: var(--tn-green) !important; color: #fff; }
.tn-btn-danger { background: var(--tn-red) !important; color: #fff; }
.tn-btn-ghost { background: #fff !important; color: var(--tn-ink); border: 1px solid var(--tn-line) !important; }

.tn-toast {
    position: fixed; left: 50%; bottom: 92px; z-index: 9998;
    transform: translate(-50%, 20px); opacity: 0;
    background: var(--tn-ink); color: #fff;
    padding: 12px 18px; border-radius: 14px;
    font-size: 13px; font-weight: 700; max-width: 86%;
    transition: all 0.2s ease; pointer-events: none;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.tn-toast.tn-show { transform: translate(-50%, 0); opacity: 1; }
