/* =========================================================================
   AldenCamp — "Government-Tech Clean" Theme
   White + Blue + Navy design system
   ========================================================================= */

:root{
    --primary:       #1565C0;
    --primary-light: #1E88E5;
    --primary-pale:  #E3F2FD;
    --primary-dark:  #0D47A1;
    --accent:        #00ACC1;
    --accent-light:  #E0F7FA;
    --success:       #2E7D32;
    --success-light: #E8F5E9;
    --warning:       #F57F17;
    --warning-light: #FFFDE7;
    --danger:        #C62828;
    --danger-light:  #FFEBEE;
    --info:          #01579B;
    --info-light:    #E1F5FE;

    --white:   #FFFFFF;
    --gray-50: #F8FAFF;  --gray-100:#EEF2F7; --gray-200:#DDE3EE;
    --gray-300:#C4CEDF;  --gray-400:#9AABC4; --gray-500:#6B82A0;
    --gray-600:#4A617E;  --gray-700:#334159; --gray-800:#1E2D42; --gray-900:#0F1B2D;

    --body-bg: #F4F8FE;
    --card-bg: #FFFFFF;
    --border:  #DDE3EE;

    --shadow-xs: 0 1px 3px rgba(21,101,192,.06);
    --shadow-sm: 0 2px 8px rgba(21,101,192,.10);
    --shadow-md: 0 4px 20px rgba(21,101,192,.14);
    --shadow-lg: 0 8px 40px rgba(21,101,192,.18);
    --shadow-xl: 0 20px 60px rgba(21,101,192,.22);

    --radius-sm: 6px;  --radius-md: 12px; --radius-lg: 20px;
    --radius-xl: 28px; --radius-full: 9999px;

    --font-body:    'Plus Jakarta Sans', sans-serif;
    --font-display: 'DM Serif Display', serif;
    --nav-h: 70px;
    --transition: all .25s cubic-bezier(.4,0,.2,1);

    /* ---- backward-compatible aliases used throughout the existing markup ---- */
    --ap: var(--primary);
    --dark: var(--gray-900);
    --dark3: var(--gray-800);
    --gray: var(--gray-600);
    --gray2: var(--gray-400);
    --light: var(--gray-50);
    --secondary: var(--accent);
    --blue-pale: var(--primary-pale);
    --blue-mid: var(--primary-light);
    --sidebar: var(--gray-900);
    --bg: var(--body-bg);
    --sh-md: var(--shadow-md);
    --tr: var(--transition);
}

/* ============================= RESET / BASE ============================= */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; touch-action:manipulation; }
body{
    font-family:var(--font-body);
    background:var(--body-bg);
    color:var(--gray-800);
    margin:0;
    -webkit-font-smoothing:antialiased;
}
a{ text-decoration:none; color:var(--primary); transition:var(--transition); }
a:hover{ color:var(--primary-dark); }
img{ max-width:100%; }
h1,h2,h3,h4,h5,h6{
    font-weight:700; color:var(--gray-900); margin:0 0 .5em; line-height:1.25;
}
h1{ font-size:clamp(1.9rem,4vw,3rem); }
h2{ font-size:clamp(1.5rem,3vw,2.2rem); }
h3{ font-size:clamp(1.15rem,2vw,1.5rem); }
em,.highlight{
    font-family:var(--font-display); font-style:italic; color:var(--primary);
}
::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-thumb{ background:var(--gray-300); border-radius:99px; }
::selection{ background:var(--primary-pale); color:var(--primary-dark); }

/* ================================ BUTTONS ================================ */
.btn{
    display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
    font-family:var(--font-body); font-weight:600; font-size:.9rem;
    padding:.7rem 1.5rem; border-radius:var(--radius-full);
    border:none; cursor:pointer; text-decoration:none;
    background:var(--primary); color:#fff;
    box-shadow:0 4px 14px rgba(21,101,192,.28);
    transition:var(--transition); white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); box-shadow:0 8px 22px rgba(21,101,192,.36); color:#fff; }
.btn:active{ transform:translateY(0); }
.btn-primary{ background:var(--primary); color:#fff; }
.btn-secondary{ background:var(--gray-100); color:var(--gray-700); box-shadow:none; }
.btn-secondary:hover{ background:var(--gray-200); color:var(--gray-800); box-shadow:var(--shadow-xs); }
.btn-outline{ background:transparent; color:var(--primary); border:1.5px solid var(--primary); box-shadow:none; }
.btn-outline:hover{ background:var(--primary-pale); color:var(--primary-dark); }
.btn-white{ background:#fff; color:var(--primary); box-shadow:var(--shadow-sm); }
.btn-accent{ background:var(--accent); color:#fff; box-shadow:0 4px 14px rgba(0,172,193,.3); }
.btn-info{ background:var(--info); color:#fff; box-shadow:0 4px 14px rgba(1,87,155,.3); }
.btn-success{ background:var(--success); color:#fff; box-shadow:0 4px 14px rgba(46,125,50,.28); }
.btn-danger{ background:var(--danger); color:#fff; box-shadow:0 4px 14px rgba(198,40,40,.28); }
.btn-warning{ background:var(--warning); color:#fff; box-shadow:0 4px 14px rgba(245,127,23,.28); }
.btn-sm{ padding:.45rem 1.1rem; font-size:.8rem; }
.btn-lg{ padding:.95rem 2rem; font-size:1rem; }
.btn-block{ width:100%; }
.btn-icon{ width:38px; height:38px; padding:0; border-radius:50%; }
.btn-text{}

/* ================================ BADGES ================================ */
.badge{
    display:inline-flex; align-items:center; gap:.3rem;
    padding:.28rem .8rem; border-radius:var(--radius-full);
    font-size:.68rem; font-weight:700; letter-spacing:.03em; text-transform:uppercase;
    background:var(--gray-100); color:var(--gray-700);
}
.badge-success{ background:var(--success-light); color:var(--success); }
.badge-danger{ background:var(--danger-light); color:var(--danger); }
.badge-warning{ background:var(--warning-light); color:var(--warning); }
.badge-info{ background:var(--info-light); color:var(--info); }
.badge-secondary{ background:var(--accent-light); color:var(--accent); }
.badge-sold{
    position:absolute; top:12px; right:12px; background:var(--danger);
    color:#fff; font-size:.65rem; font-weight:700; text-transform:uppercase;
    padding:.3rem .8rem; border-radius:var(--radius-full); box-shadow:var(--shadow-sm);
}
.badge-count{ background:var(--primary); color:#fff; border-radius:var(--radius-full); padding:.1rem .55rem; font-size:.7rem; }

/* ================================ ALERTS ================================= */
.alert{
    padding:1rem 1.25rem; border-radius:var(--radius-md);
    border-left:4px solid var(--gray-400); margin-bottom:1.25rem;
    display:flex; align-items:flex-start; gap:.65rem; font-size:.9rem;
    background:var(--gray-50); color:var(--gray-700);
}
.alert-success{ background:var(--success-light); border-color:var(--success); color:#1b5e20; }
.alert-danger{ background:var(--danger-light); border-color:var(--danger); color:#8e1c1c; }
.alert-warning{ background:var(--warning-light); border-color:var(--warning); color:#8a5700; }
.alert-info{ background:var(--info-light); border-color:var(--info); color:#01395c; }

/* ================================= FORMS ================================= */
.form-group{ margin-bottom:1.15rem; }
.form-group label{ display:block; font-weight:600; font-size:.85rem; color:var(--gray-700); margin-bottom:.4rem; }
.form-control, input[type=text], input[type=email], input[type=password],
input[type=number], input[type=date], input[type=tel], select, textarea{
    width:100%; padding:.72rem 1rem; border:1.5px solid var(--border);
    border-radius:var(--radius-md); font-family:var(--font-body); font-size:.9rem;
    color:var(--gray-800); background:#fff; transition:var(--transition);
}
.form-control:focus, input:focus, select:focus, textarea:focus{
    outline:none; border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(21,101,192,.10);
}

/* ================================= CARDS ================================= */
.card, .product-card, .wisata-card, .blog-card, .testimonial-card,
.form-card, .cart-card, .co-card, .summary-card, .stat-user-card,
.gallery-album-card{
    background:var(--card-bg); border:1px solid var(--border);
    border-radius:var(--radius-lg); box-shadow:var(--shadow-sm);
    transition:var(--transition); overflow:hidden;
}
.product-card:hover, .wisata-card:hover, .blog-card:hover,
.testimonial-card:hover, .gallery-album-card:hover{
    transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--primary-pale);
}
.product-info, .wisata-card-body, .wisata-card-footer{ padding:1.1rem 1.25rem; }
.product-image{ position:relative; overflow:hidden; aspect-ratio:4/3; background:var(--gray-100); }
.form-card{ padding:1.75rem; }
.summary-card, .cart-card, .co-card{ padding:1.5rem; }

/* ================================= TABLES ================================= */
.table-container{
    background:var(--card-bg); border:1px solid var(--border);
    border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); overflow:hidden;
}
.table-header{
    padding:1.1rem 1.5rem; border-bottom:1px solid var(--border);
    display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem;
}
table, .rg-table{ width:100%; border-collapse:collapse; font-size:.88rem; }
table thead th, .rg-table thead th{
    background:linear-gradient(90deg,var(--primary),var(--primary-light));
    color:#fff; font-weight:600; text-align:left; padding:.85rem 1.1rem;
    white-space:nowrap;
}
table thead th:first-child, .rg-table thead th:first-child{ border-top-left-radius:0; }
table tbody td, .rg-table tbody td{
    padding:.8rem 1.1rem; border-bottom:1px solid var(--gray-100); color:var(--gray-700);
}
table tbody tr:nth-child(even), .rg-table tbody tr:nth-child(even){ background:var(--gray-50); }
table tbody tr:hover, .rg-table tbody tr:hover{ background:var(--primary-pale); }
@media (max-width:768px){
    .table-container{ overflow-x:auto; }
    table, .rg-table{ min-width:640px; }
}

/* ================================ NAVBAR ================================ */
.navbar{
    position:fixed; top:0; left:0; right:0; z-index:1000; height:var(--nav-h);
    display:flex; align-items:center;
    background:rgba(255,255,255,.95); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
    border-bottom:1px solid var(--border); box-shadow:var(--shadow-xs);
    transition:var(--transition);
}
.navbar.scrolled{ box-shadow:var(--shadow-md); }
.navbar-container, .navbar .container{
    width:100%; max-width:1240px; margin:0 auto; padding:0 1.5rem;
    display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap;
}
.nav-brand{ display:flex; align-items:center; gap:.7rem; }
.nav-brand .logo{ width:42px; height:42px; object-fit:contain; border-radius:var(--radius-sm); }
.nav-brand .brand-name{ font-size:1.05rem; font-weight:800; color:var(--gray-900); margin:0; line-height:1.15; }
.nav-brand .tagline{ font-size:.72rem; color:var(--gray-500); margin:0; }
/* variasi markup navbar yang dipakai di beberapa halaman (user/index.php dst) */
.nav-brand img, .nav-logo{
    width:42px; height:42px; object-fit:contain; border-radius:var(--radius-sm);
    border:1.5px solid var(--border); background:#fff; flex-shrink:0;
}
.nav-logo-fallback{
    width:42px; height:42px; flex-shrink:0; background:var(--primary); border-radius:var(--radius-sm);
    display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.1rem;
}
.nav-brand-text h2{ font-size:1.05rem; font-weight:800; color:var(--gray-900); margin:0; line-height:1.2; }
.nav-brand-text .tagline{ font-size:.72rem; color:var(--gray-500); margin:0; }
.nav-menu{ display:flex; align-items:center; gap:.65rem; flex-wrap:wrap; }
body{ padding-top:var(--nav-h); }
body.admin-body, body.auth-page{ padding-top:0; }

.user-dropdown{ position:relative; }
.user-dropdown-btn{
    display:flex; align-items:center; gap:.5rem; background:var(--gray-50);
    border:1.5px solid var(--border); padding:.5rem 1rem; border-radius:var(--radius-full);
    cursor:pointer; font-family:var(--font-body); font-weight:600; font-size:.85rem; color:var(--gray-800);
    transition:var(--transition);
}
.user-dropdown-btn:hover{ border-color:var(--primary-light); background:var(--primary-pale); }
.user-dropdown-menu{
    position:absolute; top:calc(100% + 10px); right:0; min-width:190px;
    background:#fff; border:1px solid var(--border); border-radius:var(--radius-md);
    box-shadow:var(--shadow-lg); opacity:0; visibility:hidden; transform:translateY(-8px);
    transition:var(--transition); z-index:1200;
}
.user-dropdown.open .user-dropdown-menu{ opacity:1; visibility:visible; transform:translateY(0); }
.user-dropdown-menu-inner{ padding:.5rem; }
.user-dropdown-menu-inner a{
    display:flex; align-items:center; gap:.6rem; padding:.65rem .85rem;
    border-radius:var(--radius-sm); color:var(--gray-700); font-size:.85rem; font-weight:500;
}
.user-dropdown-menu-inner a:hover{ background:var(--primary-pale); color:var(--primary-dark); }
.logout-link{ color:var(--danger) !important; }

/* ================================= HERO ================================= */
.hero{
    position:relative; overflow:hidden; min-height:78vh;
    display:flex; align-items:center; justify-content:center; text-align:center;
    background:linear-gradient(160deg,var(--primary-dark) 0%,var(--primary) 55%,var(--primary-light) 100%);
    color:#fff; padding:6rem 1.5rem 4rem;
}
.hero::before, .hero::after{
    content:''; position:absolute; border-radius:50%; filter:blur(10px);
    background:radial-gradient(circle,rgba(255,255,255,.16),transparent 70%);
}
.hero::before{ width:520px; height:520px; top:-180px; right:-160px; }
.hero::after{ width:420px; height:420px; bottom:-200px; left:-140px; background:radial-gradient(circle,rgba(0,172,193,.25),transparent 70%); }
.hero-content{ position:relative; z-index:2; max-width:720px; }
.hero h1{ color:#fff; }
.hero p{ font-size:1.1rem; color:rgba(255,255,255,.88); margin-bottom:1.75rem; }
.hero-buttons{ display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
.hero-buttons .btn{ background:#fff; color:var(--primary-dark); box-shadow:var(--shadow-lg); }
.hero-buttons .btn:hover{ background:var(--primary-pale); }
.hero-buttons .btn.btn-outline{ background:rgba(255,255,255,.12); color:#fff; border:2px solid rgba(255,255,255,.7); backdrop-filter:blur(10px); }
.hero-stats{ display:flex; gap:2.5rem; justify-content:center; margin-top:2.5rem; flex-wrap:wrap; }
.hero-stats .stat-num{ font-size:2.2rem; font-weight:800; font-family:var(--font-display); }
.hero-stats .stat-label{ font-size:.8rem; color:rgba(255,255,255,.75); text-transform:uppercase; letter-spacing:.05em; }

/* ============================ HERO — CAMPING SCENE ============================
   Layered, animated outdoor scene: night sky, twinkling stars, drifting moon-lit
   clouds, parallax mountain ridges, pine forest silhouette and a glowing campfire
   with rising embers. Pure SVG/CSS — no image assets, fully responsive.
================================================================================ */
.hero.hero-camp{
    background:linear-gradient(180deg,#040b18 0%,#0a1c33 35%,#123a5e 68%,#1b5686 100%);
}
.hero-scene{ position:absolute; inset:0; z-index:0; overflow:hidden; }

/* soft night-sky glow */
.hero-sky{
    position:absolute; inset:0;
    background:
        radial-gradient(600px 380px at 78% 18%, rgba(255,241,199,.16), transparent 70%),
        radial-gradient(900px 500px at 20% 100%, rgba(255,140,66,.14), transparent 65%);
}

/* stars */
.hero-stars{ position:absolute; inset:0; }
.star{
    position:absolute; width:var(--sz); height:var(--sz); border-radius:50%;
    background:#fff; box-shadow:0 0 6px 1px rgba(255,255,255,.7);
    animation:twinkle var(--d) ease-in-out var(--dl) infinite;
}
@keyframes twinkle{ 0%,100%{ opacity:.15; } 50%{ opacity:1; } }

.shooting-star{
    position:absolute; width:2px; height:2px; background:#fff; border-radius:50%;
    box-shadow:0 0 8px 2px rgba(255,255,255,.9);
    opacity:0;
}
.shooting-star::before{
    content:''; position:absolute; top:0; right:0; width:90px; height:1px;
    background:linear-gradient(90deg,rgba(255,255,255,.9),transparent);
    transform:translateY(.5px);
}
.shooting-star.s1{ top:12%; left:15%; animation:shoot 7s ease-in 1.2s infinite; }
.shooting-star.s2{ top:22%; left:60%; animation:shoot 9s ease-in 4.5s infinite; }
@keyframes shoot{
    0%{ opacity:0; transform:translate(0,0); }
    2%{ opacity:1; }
    14%{ opacity:0; transform:translate(-220px,140px); }
    100%{ opacity:0; }
}

/* moon */
.hero-moon{
    position:absolute; top:9%; right:12%; width:78px; height:78px; border-radius:50%;
    background:radial-gradient(circle at 35% 32%, #fffdf3, #fdf1c8 55%, #f3dd9a 100%);
    box-shadow:0 0 50px 14px rgba(255,244,199,.35), 0 0 100px 40px rgba(255,244,199,.12);
    animation:moonGlow 6s ease-in-out infinite;
}
@keyframes moonGlow{
    0%,100%{ box-shadow:0 0 50px 14px rgba(255,244,199,.35), 0 0 100px 40px rgba(255,244,199,.12); }
    50%{ box-shadow:0 0 60px 20px rgba(255,244,199,.45), 0 0 120px 50px rgba(255,244,199,.18); }
}

/* sun (dipakai untuk tema pagi/siang/sore, tersembunyi secara default di tema malam) */
.hero-sun{
    position:absolute; top:10%; right:16%; width:86px; height:86px; border-radius:50%;
    display:none;
    animation:moonGlow 6s ease-in-out infinite;
}

/* drifting clouds */
.hero-clouds{ position:absolute; top:6%; left:0; width:220%; height:26%; }
.hero-clouds .cloud{ fill:rgba(255,255,255,.06); }
.hero-clouds .c1{ animation:driftRight 55s linear infinite; }
.hero-clouds .c2{ animation:driftLeft 70s linear infinite; }
@keyframes driftRight{ from{ transform:translateX(-10%);} to{ transform:translateX(40%);} }
@keyframes driftLeft{ from{ transform:translateX(10%);} to{ transform:translateX(-45%);} }

/* mountain ridges — parallax drift */
.hero-mountains{ position:absolute; left:-5%; width:110%; bottom:9%; height:48%; }
.hero-mountains.layer-back{ bottom:12%; height:40%; opacity:.55; animation:parallax 40s ease-in-out infinite; }
.hero-mountains.layer-back polygon{ fill:#173e63; }
.hero-mountains.layer-mid{ bottom:6%; height:46%; opacity:.85; animation:parallax 26s ease-in-out infinite reverse; }
.hero-mountains.layer-mid polygon{ fill:#0c2748; }
@keyframes parallax{
    0%,100%{ transform:translateX(0); }
    50%{ transform:translateX(-2.5%); }
}

/* pine forest silhouette along the base */
.hero-trees{ position:absolute; left:0; bottom:0; width:100%; height:22%; }
.hero-trees .tree-row polygon{ fill:#081a2e; }

/* campfire */
.hero-fire{
    position:absolute; left:50%; bottom:6%; width:6px; height:6px; transform:translateX(-50%);
}
.fire-glow{
    position:absolute; left:50%; bottom:0; width:260px; height:150px; transform:translate(-50%,20%);
    background:radial-gradient(circle, rgba(255,150,60,.5), rgba(255,110,40,.18) 45%, transparent 72%);
    animation:glowPulse 2.4s ease-in-out infinite;
    filter:blur(2px);
}
@keyframes glowPulse{ 0%,100%{ opacity:.75; transform:translate(-50%,20%) scale(1); } 50%{ opacity:1; transform:translate(-50%,20%) scale(1.08); } }

.logs{
    position:absolute; left:50%; bottom:-2px; width:46px; height:10px; transform:translateX(-50%);
    background:linear-gradient(90deg,#5a3116,#7a4420,#5a3116); border-radius:4px;
}
.flame{
    position:absolute; left:50%; bottom:6px; border-radius:50% 50% 50% 50% / 60% 60% 40% 40%;
    transform-origin:bottom center; filter:blur(.3px);
}
.flame.f1{ width:20px; height:34px; margin-left:-10px; background:linear-gradient(0deg,#ff5b1e,#ffb347 70%,#fff3c4); animation:flicker1 1.1s ease-in-out infinite; }
.flame.f2{ width:13px; height:24px; margin-left:-16px; background:linear-gradient(0deg,#ff7a1e,#ffcf6b); animation:flicker2 1.4s ease-in-out infinite; opacity:.9; }
.flame.f3{ width:13px; height:24px; margin-left:4px; background:linear-gradient(0deg,#ff7a1e,#ffcf6b); animation:flicker3 1.25s ease-in-out infinite; opacity:.9; }
@keyframes flicker1{ 0%,100%{ transform:scaleY(1) scaleX(1) rotate(0deg);} 30%{ transform:scaleY(1.15) scaleX(.9) rotate(-3deg);} 60%{ transform:scaleY(.9) scaleX(1.05) rotate(2deg);} }
@keyframes flicker2{ 0%,100%{ transform:scaleY(1) rotate(-4deg);} 50%{ transform:scaleY(1.2) rotate(-8deg);} }
@keyframes flicker3{ 0%,100%{ transform:scaleY(1) rotate(4deg);} 50%{ transform:scaleY(1.2) rotate(8deg);} }

.ember{
    position:absolute; bottom:14px; left:50%; width:3px; height:3px; border-radius:50%;
    background:#ffb056; box-shadow:0 0 6px 1px rgba(255,150,60,.8);
    animation:emberRise var(--d) ease-in var(--dl) infinite;
}
@keyframes emberRise{
    0%{ opacity:0; transform:translate(0,0) scale(1); }
    12%{ opacity:1; }
    100%{ opacity:0; transform:translate(var(--dx),-160px) scale(.3); }
}

/* darkening overlay for text legibility, on top of the whole scene */
.hero-overlay{
    position:absolute; inset:0;
    background:linear-gradient(180deg, rgba(3,9,20,.35) 0%, rgba(3,9,20,.15) 40%, rgba(3,9,20,.55) 100%);
}

.hero-camp .hero-content{ position:relative; z-index:2; }
.hero-camp h1{ text-shadow:0 2px 18px rgba(0,0,0,.45); }
.hero-camp .hero-buttons .btn{ background:#fff; color:var(--primary-dark); }
.hero-camp .hero-buttons .btn.btn-outline{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.65); }

@media (max-width:768px){
    .hero-moon{ width:52px; height:52px; top:7%; right:8%; }
    .fire-glow{ width:190px; height:110px; }
}
@media (prefers-reduced-motion: reduce){
    .hero-scene *{ animation:none !important; }
}

/* ================= HERO — TEMA WAKTU OTOMATIS (pagi/siang/sore/malam) =================
   Tema "malam" memakai warna default di atas (langit gelap + bintang + bulan).
   Untuk pagi/siang/sore, langit dibuat cerah dan bulan+bintang diganti matahari.
   Kelas tema (theme-pagi/theme-siang/theme-sore/theme-malam) ditentukan otomatis oleh
   PHP lewat get_time_theme() di config.php, sesuai jam saat halaman dibuka.
========================================================================================== */

/* --- PAGI (05:00 - 10:59): langit biru lembut dengan semburat matahari terbit --- */
.hero-camp.theme-pagi,
.auth-bg-scene.theme-pagi{
    background:linear-gradient(180deg,#6fb8dd 0%,#a9d8ea 30%,#ffd9a0 72%,#ffb877 100%);
}
.theme-pagi .hero-sky{
    background:
        radial-gradient(650px 400px at 22% 30%, rgba(255,224,168,.45), transparent 70%),
        radial-gradient(900px 500px at 80% 100%, rgba(255,255,255,.18), transparent 65%);
}
.theme-pagi .hero-stars,
.theme-pagi .hero-moon{ display:none; }
.theme-pagi .hero-sun{
    display:block; top:20%; left:14%; right:auto; width:76px; height:76px;
    background:radial-gradient(circle at 35% 32%, #fff7e0, #ffd98a 55%, #ffb35c 100%);
    box-shadow:0 0 60px 18px rgba(255,199,120,.5), 0 0 120px 46px rgba(255,199,120,.2);
}
.theme-pagi .hero-clouds .cloud{ fill:rgba(255,255,255,.55); }
.theme-pagi .hero-mountains.layer-back polygon{ fill:#89b3c9; }
.theme-pagi .hero-mountains.layer-mid polygon{ fill:#4f7f8c; }
.theme-pagi .hero-trees .tree-row polygon{ fill:#274a3a; }
.theme-pagi .hero-overlay{
    background:linear-gradient(180deg, rgba(20,30,20,.08) 0%, rgba(20,30,20,.04) 40%, rgba(20,30,20,.32) 100%);
}

/* --- SIANG (11:00 - 14:59): langit biru cerah, matahari tinggi terik --- */
.hero-camp.theme-siang,
.auth-bg-scene.theme-siang{
    background:linear-gradient(180deg,#3f9fdc 0%,#78c3ef 45%,#c7e8fa 100%);
}
.theme-siang .hero-sky{
    background:
        radial-gradient(650px 400px at 78% 14%, rgba(255,255,255,.5), transparent 70%),
        radial-gradient(900px 500px at 20% 100%, rgba(255,255,255,.12), transparent 65%);
}
.theme-siang .hero-stars,
.theme-siang .hero-moon{ display:none; }
.theme-siang .hero-sun{
    display:block; top:7%; right:14%; width:96px; height:96px;
    background:radial-gradient(circle at 35% 32%, #ffffff, #fff2b8 45%, #ffd35c 100%);
    box-shadow:0 0 70px 22px rgba(255,238,170,.6), 0 0 140px 55px rgba(255,238,170,.22);
}
.theme-siang .hero-clouds .cloud{ fill:rgba(255,255,255,.65); }
.theme-siang .hero-mountains.layer-back polygon{ fill:#6fa6bf; }
.theme-siang .hero-mountains.layer-mid polygon{ fill:#357464; }
.theme-siang .hero-trees .tree-row polygon{ fill:#1f4d3a; }
.theme-siang .hero-overlay{
    background:linear-gradient(180deg, rgba(10,20,20,.05) 0%, rgba(10,20,20,.02) 40%, rgba(10,20,20,.22) 100%);
}

/* --- SORE (15:00 - 17:59): langit senja keemasan menjelang matahari terbenam --- */
.hero-camp.theme-sore,
.auth-bg-scene.theme-sore{
    background:linear-gradient(180deg,#2c4f6e 0%,#c6704a 45%,#ff8a5c 72%,#ffb347 100%);
}
.theme-sore .hero-sky{
    background:
        radial-gradient(650px 400px at 76% 55%, rgba(255,150,90,.4), transparent 70%),
        radial-gradient(900px 500px at 15% 100%, rgba(255,120,60,.18), transparent 65%);
}
.theme-sore .hero-stars,
.theme-sore .hero-moon{ display:none; }
.theme-sore .hero-sun{
    display:block; top:38%; right:18%; width:92px; height:92px;
    background:radial-gradient(circle at 35% 32%, #fff3d6, #ffab5c 55%, #ff7043 100%);
    box-shadow:0 0 70px 22px rgba(255,140,80,.55), 0 0 140px 55px rgba(255,120,60,.22);
}
.theme-sore .hero-clouds .cloud{ fill:rgba(255,200,160,.4); }
.theme-sore .hero-mountains.layer-back polygon{ fill:#6a4f6b; }
.theme-sore .hero-mountains.layer-mid polygon{ fill:#3d2f4a; }
.theme-sore .hero-trees .tree-row polygon{ fill:#1c1526; }
.theme-sore .hero-overlay{
    background:linear-gradient(180deg, rgba(20,10,15,.12) 0%, rgba(20,10,15,.06) 40%, rgba(20,10,15,.4) 100%);
}

@media (max-width:768px){
    .hero-sun{ width:56px; height:56px; }
    .theme-pagi .hero-sun{ top:14%; left:10%; }
    .theme-siang .hero-sun{ top:6%; right:10%; }
    .theme-sore .hero-sun{ top:32%; right:12%; }
}

/* page-hero (inner pages) */
.page-hero{
    position:relative; overflow:hidden;
    background:linear-gradient(120deg,var(--primary-dark),var(--primary));
    color:#fff; padding:5.5rem 1.5rem 3rem; text-align:center;
}
.page-hero::before{
    content:''; position:absolute; inset:0; opacity:.15;
    background-image:radial-gradient(rgba(255,255,255,.6) 1px,transparent 1px);
    background-size:22px 22px;
}
.page-hero h1, .page-hero h2{ color:#fff; position:relative; }
.page-hero p{ color:rgba(255,255,255,.85); position:relative; }
.breadcrumb{ position:relative; font-size:.82rem; color:rgba(255,255,255,.75); margin-bottom:.75rem; }
.breadcrumb a{ color:#fff; }

.section-title{ text-align:center; margin-bottom:2rem; }

/* CTA */
.cta-section{
    position:relative; overflow:hidden; text-align:center; padding:4rem 1.5rem;
    background:linear-gradient(120deg,var(--primary),var(--accent)); color:#fff;
    border-radius:var(--radius-xl); margin:3rem auto; max-width:1100px;
}
.cta-section::before{
    content:''; position:absolute; inset:0; opacity:.18;
    background-image:radial-gradient(circle,rgba(255,255,255,.7) 1.5px,transparent 1.5px);
    background-size:26px 26px;
}
.cta-section > *{ position:relative; }

/* feature / grid cards with accent line */
.feature-card{
    position:relative; background:#fff; border:1px solid var(--border);
    border-radius:var(--radius-lg); padding:1.75rem; box-shadow:var(--shadow-xs);
    transition:var(--transition); overflow:hidden;
}
.feature-card::before{
    content:''; position:absolute; top:0; left:0; right:0; height:3px;
    background:linear-gradient(90deg,var(--primary),var(--accent));
    transform:scaleX(0); transform-origin:left; transition:var(--transition);
}
.feature-card:hover::before{ transform:scaleX(1); }
.feature-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-4px); }

/* ================================ FOOTER ================================ */
.footer{
    background:var(--gray-900); color:rgba(255,255,255,.65);
    padding:2.25rem 1.5rem; text-align:center; font-size:.85rem;
}
.footer .container{ max-width:1240px; margin:0 auto; }
.footer p{ margin:.25rem 0; }
.footer-grid{
    display:grid; grid-template-columns:2fr 1fr 1fr; gap:2rem; text-align:left;
    max-width:1240px; margin:0 auto 2rem;
}

/* =========================== ADMIN LAYOUT =========================== */
.admin-body{ background:var(--body-bg); }
.admin-container{ display:flex; min-height:100vh; }
.sidebar{
    width:260px; flex:0 0 260px; background:var(--gray-900); color:#fff;
    display:flex; flex-direction:column; position:fixed; top:0; left:0; bottom:0;
    z-index:1100; overflow-y:auto; transition:var(--transition);
}
.sidebar-header{ padding:1.5rem 1.25rem; border-bottom:1px solid rgba(255,255,255,.08); }
.sidebar-header-inner{ display:flex; align-items:center; gap:.75rem; }
.sidebar-logo{ width:44px; height:44px; object-fit:contain; border-radius:var(--radius-sm); background:#fff; padding:3px; }
.sidebar-logo-icon{
    width:44px; height:44px; border-radius:var(--radius-md); display:flex; align-items:center; justify-content:center;
    background:linear-gradient(135deg,var(--primary),var(--primary-light)); color:#fff; font-size:1.2rem;
}
.sidebar-header h2{ font-size:.9rem; font-weight:800; color:#fff; margin:0; line-height:1.3; }
.sidebar-header .tagline{ font-size:.68rem; color:rgba(255,255,255,.4); }

.sidebar-nav{ padding:.9rem .6rem; flex:1; }
.nav-item{
    display:flex; align-items:center; gap:.75rem; padding:.65rem .9rem; margin-bottom:.15rem;
    border-radius:var(--radius-md); color:rgba(255,255,255,.68); font-size:.85rem; font-weight:500;
    border-left:3px solid transparent; transition:var(--transition);
}
.nav-item i{ width:18px; text-align:center; color:rgba(255,255,255,.5); }
.nav-item:hover{ background:rgba(255,255,255,.06); color:#fff; }
.nav-item.active{
    background:rgba(21,101,192,.25); color:#fff; border-left-color:var(--primary-light);
}
.nav-item.active i{ color:var(--primary-light); }
.nav-sub-item{ padding-left:2.4rem; font-size:.8rem; }
.nav-group-title{
    display:flex; align-items:center; justify-content:space-between; gap:.5rem;
    padding:.65rem .9rem; border-radius:var(--radius-md); color:rgba(255,255,255,.68);
    font-size:.85rem; font-weight:500; cursor:pointer; transition:var(--transition);
}
.nav-group-title:hover, .nav-group-title.active{ background:rgba(255,255,255,.06); color:#fff; }
.nav-group-arrow{ transition:var(--transition); font-size:.7rem; }
.nav-group.open .nav-group-arrow{ transform:rotate(180deg); }
.nav-group-items{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.nav-group.open .nav-group-items{ max-height:200px; }

.sidebar-footer{ padding:.9rem .75rem 1.25rem; border-top:1px solid rgba(255,255,255,.08); }
.user-info{ display:flex; align-items:center; gap:.6rem; padding:.4rem .4rem .9rem; color:#fff; }
.user-info i{ font-size:1.7rem; color:rgba(255,255,255,.5); }
.user-info strong{ display:block; font-size:.82rem; }
.user-info small{ color:rgba(255,255,255,.45); font-size:.7rem; }

.main-content{ flex:1; margin-left:260px; min-height:100vh; display:flex; flex-direction:column; }
.topbar{
    position:sticky; top:0; z-index:900; background:#fff; border-bottom:1px solid var(--border);
    padding:1rem 1.75rem; display:flex; align-items:center; gap:1rem; box-shadow:var(--shadow-xs);
}
.topbar h1{ font-size:1.15rem; margin:0; flex:1; }
.topbar-right{ display:flex; align-items:center; gap:.75rem; }
.menu-toggle{
    display:none; background:var(--gray-100); border:none; width:38px; height:38px;
    border-radius:var(--radius-md); color:var(--gray-700); cursor:pointer; font-size:1rem;
}

.stat-card{
    position:relative; background:#fff; border:1px solid var(--border);
    border-radius:var(--radius-lg); padding:1.4rem; box-shadow:var(--shadow-xs);
    border-top:4px solid var(--gray-300); transition:var(--transition); overflow:hidden;
}
.stat-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md); }
.stat-card.stat-primary{ border-top-color:var(--primary); }
.stat-card.stat-success{ border-top-color:var(--success); }
.stat-card.stat-warning{ border-top-color:var(--warning); }
.stat-card.stat-danger{ border-top-color:var(--danger); }
.stat-card.stat-info{ border-top-color:var(--accent); }
.stat-icon{
    width:46px; height:46px; border-radius:var(--radius-md); display:flex; align-items:center;
    justify-content:center; font-size:1.2rem; margin-bottom:.85rem; color:#fff;
}
.stat-primary .stat-icon{ background:linear-gradient(135deg,var(--primary),var(--primary-light)); }
.stat-success .stat-icon{ background:linear-gradient(135deg,var(--success),#4caf50); }
.stat-warning .stat-icon{ background:linear-gradient(135deg,var(--warning),#ffb300); }
.stat-danger .stat-icon{ background:linear-gradient(135deg,var(--danger),#e53935); }
.stat-info .stat-icon{ background:linear-gradient(135deg,var(--accent),#26c6da); }

@media (max-width:768px){
    .sidebar{ transform:translateX(-100%); }
    .sidebar.active{ transform:translateX(0); box-shadow:var(--shadow-xl); }
    .main-content{ margin-left:0; }
    .menu-toggle{ display:flex; align-items:center; justify-content:center; }
}

/* =========================== AUTH / LOGIN PAGE =========================== */
body.auth-page{
    min-height:100vh; display:flex; align-items:center; justify-content:center;
    background:#03070f;
    padding:2rem 1rem;
}
/* Animated outdoor camping scene used as a fixed full-page backdrop.
   Reuses the same .hero-sky/.hero-stars/.hero-moon/... pieces from the
   homepage hero (see the HERO — CAMPING SCENE block below). */
.auth-bg-scene{
    position:fixed; inset:0; z-index:0; overflow:hidden;
    background:linear-gradient(180deg,#040b18 0%,#0a1c33 35%,#123a5e 68%,#1b5686 100%);
}
.auth-container{ position:relative; z-index:1; width:100%; max-width:440px; }
.auth-box{
    background:rgba(255,255,255,.96); backdrop-filter:blur(10px);
    border-radius:var(--radius-xl); overflow:hidden; box-shadow:var(--shadow-xl);
}
.auth-header{
    background:linear-gradient(135deg,var(--primary-dark),var(--primary));
    color:#fff; text-align:center; padding:2.25rem 1.5rem 2rem;
}
.auth-header i{
    width:70px; height:70px; border-radius:50%; background:rgba(255,255,255,.15);
    display:inline-flex; align-items:center; justify-content:center; font-size:1.8rem; margin-bottom:1rem;
}
.auth-header h1{ color:#fff; font-size:1.3rem; margin-bottom:.25rem; }
.auth-header p{ color:rgba(255,255,255,.8); font-size:.85rem; margin:0; }
.auth-form{ padding:1.75rem 1.75rem .5rem; }
.auth-footer{ padding:0 1.75rem 1.75rem; text-align:center; font-size:.85rem; color:var(--gray-600); }
.auth-footer a{ font-weight:600; }

/* ================================= MODAL ================================= */
.modal{
    display:none; position:fixed; inset:0; background:rgba(15,27,45,.55);
    backdrop-filter:blur(4px); z-index:2000; align-items:center; justify-content:center;
}
.modal.show, .modal[style*="block"]{ display:flex; }
.modal-content{
    background:#fff; border-radius:var(--radius-lg); max-width:640px; width:92%;
    max-height:88vh; overflow-y:auto; padding:1.75rem; position:relative;
    box-shadow:var(--shadow-xl); animation:actModalIn .28s cubic-bezier(.34,1.56,.64,1);
}
.modal .close{
    position:absolute; top:1rem; right:1.1rem; font-size:1.4rem; cursor:pointer;
    color:var(--gray-400); line-height:1;
}
.modal .close:hover{ color:var(--danger); }

/* ============================ CUSTOM MODAL/TOAST ============================ */
.act-overlay{
    position:fixed; inset:0; background:rgba(15,27,45,.55); backdrop-filter:blur(4px);
    z-index:5000; display:flex; align-items:center; justify-content:center; opacity:0;
    animation:actFadeIn .2s ease forwards;
}
@keyframes actFadeIn{ to{ opacity:1; } }
.act-modal{
    background:#fff; border-radius:var(--radius-lg); width:92%; max-width:400px;
    padding:2rem 1.75rem 1.75rem; text-align:center; box-shadow:var(--shadow-xl);
    animation:actModalIn .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes actModalIn{ from{ opacity:0; transform:translateY(24px) scale(.92); } to{ opacity:1; transform:translateY(0) scale(1); } }
.act-modal-icon{
    width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    font-size:1.5rem; margin:0 auto 1rem;
}
.act-modal.type-danger .act-modal-icon{ background:var(--danger-light); color:var(--danger); }
.act-modal.type-warning .act-modal-icon{ background:var(--warning-light); color:var(--warning); }
.act-modal.type-info .act-modal-icon{ background:var(--info-light); color:var(--info); }
.act-modal.type-success .act-modal-icon{ background:var(--success-light); color:var(--success); }
.act-modal h3{ font-size:1.05rem; margin-bottom:.4rem; }
.act-modal p{ font-size:.87rem; color:var(--gray-600); margin-bottom:1.5rem; }
.act-modal-actions{ display:flex; gap:.75rem; justify-content:center; }
.act-modal-actions .btn{ flex:1; }

.act-toast-wrap{
    position:fixed; top:calc(var(--nav-h) + 16px); right:16px; z-index:6000;
    display:flex; flex-direction:column; gap:.6rem; max-width:340px; width:calc(100% - 32px);
}
.act-toast{
    position:relative; background:#fff; border-radius:var(--radius-md); box-shadow:var(--shadow-lg);
    padding:.9rem 2rem .9rem 1rem; display:flex; align-items:center; gap:.7rem; overflow:hidden;
    animation:actToastIn .3s cubic-bezier(.34,1.56,.64,1);
    border-left:4px solid var(--gray-400);
}
@keyframes actToastIn{ from{ opacity:0; transform:translateX(40px); } to{ opacity:1; transform:translateX(0); } }
.act-toast.type-success{ border-left-color:var(--success); }
.act-toast.type-danger{ border-left-color:var(--danger); }
.act-toast.type-warning{ border-left-color:var(--warning); }
.act-toast.type-info{ border-left-color:var(--info); }
.act-toast-icon{
    width:32px; height:32px; border-radius:50%; flex:0 0 32px; display:flex; align-items:center;
    justify-content:center; font-size:.9rem; color:#fff;
}
.act-toast.type-success .act-toast-icon{ background:var(--success); }
.act-toast.type-danger .act-toast-icon{ background:var(--danger); }
.act-toast.type-warning .act-toast-icon{ background:var(--warning); }
.act-toast.type-info .act-toast-icon{ background:var(--info); }
.act-toast-msg{ font-size:.83rem; color:var(--gray-800); line-height:1.4; }
.act-toast-close{ position:absolute; top:8px; right:10px; cursor:pointer; color:var(--gray-400); font-size:.85rem; }
.act-toast-bar{
    position:absolute; bottom:0; left:0; height:3px; background:var(--primary);
    animation:actToastBar 3.2s linear forwards;
}
@keyframes actToastBar{ from{ width:100%; } to{ width:0%; } }

/* ================================ REVEAL ================================= */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in-view{ opacity:1; transform:translateY(0); }
.fadeInUp{ animation:actFadeInUp .6s ease both; }
.delay-1{ animation-delay:.1s; } .delay-2{ animation-delay:.2s; } .delay-3{ animation-delay:.3s; }
.delay-4{ animation-delay:.4s; } .delay-5{ animation-delay:.5s; }
@keyframes actFadeInUp{ from{ opacity:0; transform:translateY(24px); } to{ opacity:1; transform:translateY(0); } }

/* =============================== RESPONSIVE =============================== */
@media (max-width:1024px){
    .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:768px){
    .hero{ min-height:auto; padding:7rem 1.25rem 3rem; }
    .footer-grid{ grid-template-columns:1fr; }
    .navbar-container, .navbar .container{ padding:0 1rem; }
}
@media (max-width:480px){
    .auth-form{ padding:1.25rem 1.25rem .25rem; }
    .hero-stats{ gap:1.5rem; }
}
@media (max-width:375px){
    .btn{ padding:.6rem 1.2rem; font-size:.85rem; }
}
@media (max-width:768px){
    .form-control, input[type=text], input[type=email], input[type=password],
    input[type=number], input[type=date], input[type=tel], select, textarea{
        font-size:16px;
    }
}

/* =========================================================================
   FIX: kelas layout yang belum didefinisikan di theme.css
   (menyebabkan section "Alat Camping Tersedia" & "Blog & Berita Terbaru"
   tampil berantakan karena tidak ada .container, .product-grid, .blog-grid, dst)
   ========================================================================= */

/* ------------------------------- CONTAINER ------------------------------- */
.container{
    width:100%; max-width:1240px; margin:0 auto; padding:0 1.5rem;
}

/* ---------------------------- PRODUCTS SECTION ---------------------------- */
.products{ padding:5rem 0; }
.product-grid{
    display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; margin-top:1.5rem;
}
.product-card{ display:flex; flex-direction:column; }
.product-image img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.product-card:hover .product-image img{ transform:scale(1.06); }
.product-info{ display:flex; flex-direction:column; flex:1; }
.product-info h3{
    font-size:.95rem; font-weight:700; color:var(--gray-900); margin-bottom:.3rem;
    cursor:pointer; transition:var(--transition); line-height:1.35;
}
.product-info h3:hover{ color:var(--primary); }
.product-info .price{ font-size:1.15rem; font-weight:800; color:var(--primary); margin-bottom:.25rem; display:block; }
.product-info .stock{ color:var(--gray-600); margin-bottom:.75rem; font-size:.8rem; display:flex; align-items:center; gap:.35rem; }
.product-info .stock i{ color:var(--success); }

/* Quantity control (- / input / +) */
.quantity-control{
    display:flex; justify-content:center; align-items:center; gap:.5rem; margin-bottom:.875rem;
    background:var(--blue-pale); border-radius:var(--radius-full); padding:.3rem .5rem; border:1.5px solid var(--blue-mid);
}
.quantity-control button{
    width:32px; height:32px; border:none; background:#fff; color:var(--primary); border-radius:50%;
    cursor:pointer; font-size:1.1rem; font-weight:700; transition:var(--transition);
    display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-xs); flex-shrink:0;
}
.quantity-control button:hover{ background:var(--primary); color:#fff; transform:scale(1.08); }
.quantity-control button:active{ transform:scale(.95); }
.quantity-control input{
    width:32px; text-align:center; border:none; background:transparent; font-size:.95rem;
    font-weight:700; color:var(--gray-900); font-family:inherit; outline:none;
    padding:0; margin:0; -moz-appearance:textfield; flex-shrink:0;
}
.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }

/* ------------------------------ BLOG SECTION ------------------------------ */
.blog-section{ padding:5rem 0; background:var(--gray-50); }
.blog-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1.5rem; margin-top:1.5rem; }
.blog-image{ height:200px; overflow:hidden; background:var(--gray-100); }
.blog-image img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.blog-card:hover .blog-image img{ transform:scale(1.06); }
.blog-info{ padding:1.25rem; }
.blog-info h3{
    font-size:1rem; font-weight:700; color:var(--gray-900); margin-bottom:.5rem;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.blog-excerpt{
    color:var(--gray-600); font-size:.85rem; margin-bottom:.75rem;
    display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.blog-meta{ display:flex; gap:1rem; font-size:.78rem; color:var(--gray-400); margin-bottom:.75rem; }

/* ------------------------------ TESTIMONIALS ------------------------------ */
.testimonials{ padding:5rem 0; }
.testimonial-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:1.5rem; margin-top:1.5rem; }
.testimonial-card{ padding:1.625rem; border-top:3px solid var(--primary); }
.testimonial-header{ display:flex; align-items:center; gap:.875rem; margin-bottom:1rem; }
.testimonial-header img{ width:52px; height:52px; border-radius:50%; object-fit:cover; border:2.5px solid var(--blue-mid); }
.rating{ display:flex; gap:.2rem; }
.rating i{ color:var(--gray-300); font-size:.9rem; }
.rating i.active{ color:var(--warning); }
.testimonial-text{ color:var(--gray-600); font-style:italic; line-height:1.75; font-size:.9rem; }

/* ------------------------------- RESPONSIVE ------------------------------- */
@media (max-width:1100px){
    .product-grid{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:860px){
    .product-grid{ grid-template-columns:repeat(2,1fr); }
    .blog-grid, .testimonial-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
    .product-grid{ grid-template-columns:repeat(2,1fr); gap:.75rem; }
    .blog-grid, .testimonial-grid{ grid-template-columns:1fr; }
    .products, .blog-section, .testimonials{ padding:3rem 0; }
}

/* =========================================================================
   FIX MOBILE: mencegah layout meluber / tidak fit di layar HP
   ========================================================================= */

/* Jaring pengaman: jangan sampai ada scroll horizontal di HP manapun */
html, body{ max-width:100%; overflow-x:hidden; }
* { min-width:0; }

/* --------------------------- GALERI FOTO / VIDEO / MODAL --------------------------- */
.gallery-photo-grid{
    display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    gap:30px; margin-top:10px;
}
.gallery-video-grid{
    display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:24px;
}
.gallery-modal-grid{
    display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:15px;
}

/* --------------------------- PANEL KONTROL PETA WISATA --------------------------- */
.map-controls-panel{
    background:#fff; padding:2rem; border-radius:20px; box-shadow:var(--shadow-md); margin-bottom:2rem;
}
.map-controls-grid{
    display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1.5rem;
}
.wisata-map-el{ width:100%; height:600px; border-radius:20px; z-index:1; }
.map-layer-controls{
    position:absolute; top:20px; left:20px; background:#fff; padding:15px;
    border-radius:12px; box-shadow:var(--shadow-md); z-index:1000; max-width:calc(100% - 40px);
}

@media (max-width:768px){
    .gallery-photo-grid{ grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:18px; }
    .gallery-video-grid{ grid-template-columns:1fr; gap:18px; }
    .map-controls-panel{ padding:1.25rem; }
    .wisata-map-el{ height:420px; }
    .map-layer-controls{ padding:10px; top:12px; left:12px; }
    .map-layer-controls .btn{ padding:.4rem .7rem; font-size:.75rem; }
}
@media (max-width:480px){
    .gallery-photo-grid{ grid-template-columns:1fr 1fr; gap:12px; }
    .gallery-modal-grid{ grid-template-columns:1fr 1fr; gap:10px; }
    .map-controls-grid{ grid-template-columns:1fr; gap:1rem; }
    .wisata-map-el{ height:340px; }
}

/* Mode mobile: tombol "Tambah ke Keranjang" cukup ikon keranjang saja (tulisan disembunyikan)
   supaya tidak makan tempat di kartu produk yang sempit (grid 2 kolom di HP). */
@media (max-width:768px){
    .product-card .btn-block.btn-primary[id^="btn-cart-"]{
        display:flex; align-items:center; justify-content:center;
        width:44px; height:44px; min-width:44px; padding:0; margin:0 auto; border-radius:50%;
    }
    .product-card .btn-block.btn-primary[id^="btn-cart-"] i{ font-size:1.05rem; margin:0; }
    .product-card .cart-btn-text{
        display:inline-block; width:0; height:0; overflow:hidden;
        white-space:nowrap; font-size:0; line-height:0;
    }
}

/* --------------------------------- NAVBAR --------------------------------- */
@media (max-width:640px){
    .navbar-container, .navbar .container{ padding:0 .85rem; gap:.5rem; }
    .nav-brand{ gap:.5rem; min-width:0; }
    .nav-brand .logo{ width:34px; height:34px; }
    .nav-brand img, .nav-logo, .nav-logo-fallback{ width:34px; height:34px; font-size:1rem; }
    .nav-brand-text .tagline{ display:none; }
    .nav-brand-text h2{ font-size:.9rem; max-width:38vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .nav-brand .tagline{ display:none; }
    .nav-brand .brand-name{
        font-size:.9rem; max-width:38vw; overflow:hidden; text-overflow:ellipsis;
        white-space:nowrap;
    }
    .nav-menu{ gap:.4rem; }
    .nav-menu .btn .btn-text{ display:none; }
    .nav-menu .btn{ padding:.55rem .7rem; font-size:.8rem; }
    .username-text{ display:none; }
    .user-dropdown-btn{
        padding:0; width:38px; height:38px; border-radius:50%;
        justify-content:center; gap:0;
    }
}

/* ------------------------------- HERO / SECTIONS ------------------------------- */
@media (max-width:640px){
    .hero h1{ font-size:1.6rem; }
    .hero p{ font-size:.95rem; }
    .hero-buttons .btn{ width:100%; max-width:280px; }
    .section-title{ font-size:1.4rem; padding:0 .5rem; }
}

/* --------------------------------- MODALS --------------------------------- */
@media (max-width:640px){
    .modal-content{ padding:1.25rem; width:94%; }
    #modalGallery > div{ padding:16px !important; width:94% !important; margin:10px !important; }
}

/* ------------------------------- LOKASI / MAPS ------------------------------- */
.maps{ padding:5rem 0; }
.map-container{
    border-radius:16px; overflow:hidden; box-shadow:var(--shadow-md);
    border:1px solid var(--border);
}
.map-container iframe{ display:block; width:100%; }
@media (max-width:640px){
    .maps{ padding:3rem 0; }
    .map-container iframe{ height:280px !important; }
}

/* ------------------------------ WHATSAPP BUTTON ------------------------------ */
@media (max-width:480px){
    a[href^="https://wa.me/"]{
        width:50px !important; height:50px !important; bottom:16px !important; right:16px !important;
    }
    a[href^="https://wa.me/"] i{ font-size:1.5rem !important; }
}
