/* ===========================
   DESA FIKAR – DESIGN SYSTEM
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #dcfce7;
    --secondary: #052e16;
    --accent: #facc15;
    --bg: #f0fdf4;
    --bg-2: #ffffff;
    --text: #1a2e1a;
    --text-muted: #6b7280;
    --border: #d1fae5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow: 0 4px 20px rgba(22, 163, 74, .12);
    --shadow-lg: 0 12px 40px rgba(22, 163, 74, .18);
    --radius: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --glass: rgba(255, 255, 255, .85);
    --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

/* ─── RESET ─────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ─── LAYOUT ─────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── HEADER / NAV ───────────────────────── */
header {
    background: var(--glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
    gap: 1.5rem;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -.3px;
    flex-shrink: 0;
}

.logo svg {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: .95rem;
    color: var(--text-muted);
    transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
    color: var(--primary-dark);
    background: var(--primary-light);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    padding: 5px;
    align-items: center;
    justify-content: center;
}

/* ─── BUTTON ─────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: .95rem;
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 14px rgba(22, 163, 74, .35);
    white-space: nowrap;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, .45);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-light);
    box-shadow: none;
    transform: translateY(-2px);
}

/* ─── HERO ───────────────────────────────── */
.hero {
    padding: 110px 0 90px;
    background: linear-gradient(160deg, #f0fdf4 0%, #dcfce7 55%, #bbf7d0 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* decorative blobs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: .35;
    pointer-events: none;
}

.hero::before {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, #86efac 0%, transparent 70%);
    top: -100px;
    left: -120px;
    animation: float 8s ease-in-out infinite alternate;
}

.hero::after {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #a7f3d0 0%, transparent 70%);
    bottom: -80px;
    right: -80px;
    animation: float 10s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(20px, 15px) scale(1.05);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--border);
    color: var(--primary-dark);
    font-size: .8rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--secondary);
    margin-bottom: 1.25rem;
    letter-spacing: -.5px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: #374151;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── STATS ROW ──────────────────────────── */
.stats-section {
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: .4rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 600;
}

/* ─── SECTION TITLE ──────────────────────── */
.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: .75rem;
    letter-spacing: -.3px;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── PRODUCT GRID ───────────────────────── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: var(--primary-light);
}

.card-body {
    padding: 1.4rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    margin-bottom: .85rem;
    width: fit-content;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: .45rem;
    line-height: 1.4;
}

.card-desc {
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.card-price {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.3px;
}

/* ─── PRODUCT DETAIL ─────────────────────── */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3.5rem;
    align-items: start;
    padding: 70px 0;
}

.detail-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    object-fit: cover;
}

.detail-category {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    background: var(--primary-light);
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.detail-name {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: .8rem;
    letter-spacing: -.4px;
}

.detail-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    letter-spacing: -.5px;
}

.detail-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.detail-box h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: .85rem;
}

.detail-box p {
    color: #374151;
    line-height: 1.75;
    margin-bottom: 1.75rem;
}

/* ─── FORM ───────────────────────────────── */
.form-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 1.5rem 0;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: .875rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: .5rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #d1d5db;
    border-radius: var(--radius);
    font-size: .95rem;
    font-family: inherit;
    color: var(--text);
    background: #fafafa;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}

.btn-wa {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 1rem;
    border-radius: var(--radius);
    margin-top: .25rem;
}

/* ─── EMPTY STATE ────────────────────────── */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.empty-state svg {
    margin: 0 auto 1.5rem;
    opacity: .35;
}

.empty-state p {
    font-size: 1.05rem;
}

/* ─── FOOTER ─────────────────────────────── */
footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, .8);
    padding: 3.5rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

footer h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    margin-bottom: .65rem;
}

footer h4 {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 1rem;
}

footer p,
footer li {
    font-size: .9rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, .7);
}

footer ul {
    list-style: none;
}

footer ul li a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: color var(--transition);
}

footer ul li a:hover {
    color: white;
}

.footer-map {
    min-width: 280px;
}

.footer-map iframe {
    filter: grayscale(0.2) contrast(1.1);
    transition: var(--transition);
}

.footer-map iframe:hover {
    filter: grayscale(0) contrast(1);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 1.5rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .4);
}

/* ─── PRODUCTS PAGE HEADER ───────────────── */
.page-hero {
    padding: 60px 0 50px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0fdf4 100%);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: .5rem;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ─── SEARCH & FILTER BAR ────────────────── */
.filter-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 1.5px solid #d1d5db;
    border-radius: var(--radius-full);
    font-size: .95rem;
    font-family: inherit;
    outline: none;
    background: white;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}

/* ─── BREADCRUMB ─────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-2);
        padding: 1.5rem 24px 2rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
        gap: 1.2rem;
        align-items: flex-start;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all var(--transition);
        z-index: -1;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hero {
        padding: 80px 0 70px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .detail-grid {
        gap: 2rem;
        padding: 40px 0;
    }

    .stats-section {
        padding: 50px 0;
    }

    .filter-bar {
        flex-direction: column;
    }

    .search-box {
        min-width: 100%;
    }
}

/* ─── SCROLL ANIMATIONS ──────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp .6s ease both;
}

.delay-1 {
    animation-delay: .1s;
}

.delay-2 {
    animation-delay: .2s;
}

.delay-3 {
    animation-delay: .3s;
}

/* ─── GALLERY ────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0 5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1/1;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 46, 22, 0.9), transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ─── ADMIN NOTIFICATIONS ────────────────── */
.nav-badge {
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 99px;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.sidebar a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

#order-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
    border-left: 5px solid #ef4444;
    animation: slideIn 0.5s ease forwards;
    max-width: 300px;
    cursor: pointer;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notif-title {
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 5px;
    display: block;
}

.notif-msg {
    font-size: 0.9rem;
    color: var(--text-muted);
}