:root {
    --green: #075f42;
    --green-dark: #04412e;
    --gold: #d5a642;
    --ink: #1b2923;
    --muted: #66746e;
    --paper: #f7f5ef;
    --line: #e8e2d3;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: "Poppins", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; object-fit: cover; }

.topbar {
    background: var(--green-dark);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}
.topbar span { display: inline-flex; gap: 6px; align-items: center; }

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}
.header-grid {
    display: grid;
    grid-template-columns: 260px minmax(260px, 1fr) auto;
    gap: 22px;
    align-items: center;
}
.brand { display: inline-flex; gap: 12px; align-items: center; }
.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green);
    color: var(--gold);
    font-family: "Amiri", serif;
    font-size: 30px;
}
.brand strong { display: block; color: var(--green-dark); font-size: 19px; }
.brand small { color: var(--muted); }

.search-form {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: var(--paper);
}
.search-form input {
    border: 0;
    flex: 1;
    padding: 13px 18px;
    background: transparent;
    outline: 0;
}
.search-form button {
    border: 0;
    padding: 0 20px;
    color: #fff;
    background: var(--green);
}
.header-actions { display: flex; gap: 12px; }
.icon-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-dark);
    font-weight: 600;
}

.nav-shell {
    background: var(--green);
    padding: 0;
}
.nav-shell .nav-link {
    color: rgba(255,255,255,.88);
    font-weight: 600;
    padding: 15px 18px;
}
.nav-shell .nav-link.active,
.nav-shell .nav-link:hover { color: var(--gold); }
.navbar-toggler { background: #fff; margin: 8px 0; }
.category-dropdown > .nav-link {
    background: var(--gold);
    color: var(--green-dark);
    border-radius: 0;
}

.hero-slide {
    min-height: 520px;
    display: flex;
    align-items: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}
.default-hero {
    background:
        linear-gradient(90deg, rgba(4,65,46,.92), rgba(7,95,66,.72)),
        repeating-linear-gradient(45deg, rgba(213,166,66,.25) 0 2px, transparent 2px 24px),
        var(--green);
}
.hero-slide .container { max-width: 1180px; }
.eyebrow,
.section-title p,
.best-seller-banner p {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0;
    font-weight: 700;
    font-size: 13px;
}
.hero-slide h1,
.page-hero h1 {
    font-family: "Amiri", serif;
    font-size: clamp(44px, 7vw, 86px);
    line-height: 1;
    margin: 10px 0 16px;
}
.hero-slide p { max-width: 590px; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { border-radius: 8px; font-weight: 700; }
.btn-gold { background: var(--gold); color: var(--green-dark); border: 0; }
.btn-green { background: var(--green); color: #fff; border: 0; }
.btn-green:hover, .btn-gold:hover { filter: brightness(.94); }

.section { padding: 70px 0; }
.muted { background: var(--paper); }
.section-title {
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
}
.section-title h2 {
    font-family: "Amiri", serif;
    color: var(--green-dark);
    font-size: 42px;
    margin: 0;
}
.section-title.with-link a { color: var(--green); font-weight: 700; }

.scroll-row,
.scroll-products {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
}
.category-card {
    min-height: 220px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #ddd;
    box-shadow: 0 12px 26px rgba(20, 38, 31, .1);
    scroll-snap-align: start;
}
.category-card img { width: 100%; height: 100%; position: absolute; inset: 0; }
.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(4,65,46,.82));
}
.category-card span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 1;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(20, 38, 31, .08);
}
.product-image {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--paper);
}
.product-image img { width: 100%; height: 100%; }
.product-body { padding: 18px; }
.product-code {
    display: inline-block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
}
.product-card h3 {
    font-size: 18px;
    line-height: 1.35;
    margin: 8px 0;
}
.product-card p {
    color: var(--muted);
    font-size: 14px;
    min-height: 42px;
}
.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.product-bottom strong { color: var(--green-dark); }

.best-seller-banner {
    padding: 86px 0;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(4,65,46,.94), rgba(4,65,46,.7)),
        repeating-linear-gradient(135deg, rgba(213,166,66,.22) 0 2px, transparent 2px 26px),
        #0a6a4a;
}
.best-seller-banner h2 {
    font-family: "Amiri", serif;
    font-size: clamp(38px, 6vw, 64px);
    max-width: 700px;
}
.scroll-products { grid-auto-columns: 280px; }

.page-hero {
    padding: 86px 0;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(4,65,46,.92), rgba(7,95,66,.78)),
        repeating-linear-gradient(45deg, rgba(213,166,66,.2) 0 2px, transparent 2px 24px);
}
.filter-bar {
    display: grid;
    grid-template-columns: 1fr 220px 170px auto auto;
    gap: 12px;
    margin-bottom: 30px;
}
.filter-bar input,
.filter-bar select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
}
.empty-state {
    padding: 35px;
    text-align: center;
    background: var(--paper);
    border-radius: 8px;
}
.detail-gallery {
    background: var(--paper);
    border-radius: 8px;
    padding: 14px;
}
.main-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
}
.thumb-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.thumb-row img {
    width: 76px;
    height: 76px;
    border-radius: 8px;
    cursor: pointer;
}
.product-detail h1 {
    font-family: "Amiri", serif;
    color: var(--green-dark);
    font-size: 54px;
}
.product-detail h2 { color: var(--gold); }
.stock { font-weight: 700; color: var(--green); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}
.contact-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
}
.narrow { max-width: 820px; }

.footer {
    background: #12261e;
    color: rgba(255,255,255,.82);
    padding: 56px 0 20px;
}
.footer h3,
.footer h4 { color: #fff; }
.footer a { display: block; color: rgba(255,255,255,.78); margin: 8px 0; }
.socials { display: flex; gap: 14px; }
.copyright {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 34px;
    padding-top: 18px;
    text-align: center;
    font-size: 14px;
}
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #25d366;
    font-size: 26px;
    box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        linear-gradient(90deg, rgba(4,65,46,.95), rgba(7,95,66,.82)),
        repeating-linear-gradient(45deg, rgba(213,166,66,.22) 0 2px, transparent 2px 24px);
}
.login-card {
    width: min(420px, calc(100% - 30px));
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.login-card h1 { color: var(--green-dark); }
.login-card label,
.admin-panel label { display: block; margin: 14px 0 7px; font-weight: 700; }
.login-card button { margin-top: 18px; }

.admin-body {
    min-height: 100vh;
    background: #f3f5f1;
}
.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    background: #10231c;
    padding: 22px;
    color: #fff;
}
.admin-brand {
    color: var(--gold);
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 22px;
    display: block;
}
.admin-sidebar a {
    display: flex;
    gap: 10px;
    color: rgba(255,255,255,.78);
    padding: 12px;
    border-radius: 8px;
    margin: 4px 0;
}
.admin-sidebar a.active,
.admin-sidebar a:hover { color: #fff; background: rgba(255,255,255,.1); }
.admin-main {
    margin-left: 250px;
    padding: 30px;
}
.admin-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 22px;
}
.admin-title h1 { color: var(--green-dark); margin: 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}
.stat-card,
.admin-panel {
    background: #fff;
    border: 1px solid #e2e8df;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(20, 38, 31, .06);
}
.stat-card span { color: var(--muted); }
.stat-card strong { display: block; font-size: 38px; color: var(--green); }
.admin-grid {
    display: grid;
    grid-template-columns: 410px 1fr;
    gap: 22px;
    align-items: start;
}
.admin-thumb {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background: var(--paper);
}
.admin-thumb.wide { width: 94px; }
.check-row {
    display: flex !important;
    align-items: center;
    gap: 9px;
}
.image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.image-list span { position: relative; display: inline-block; }
.image-list img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
}
.image-list a {
    position: absolute;
    right: -7px;
    top: -9px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #c62828;
    font-size: 18px;
}

@media (max-width: 991px) {
    .header-grid { grid-template-columns: 1fr; }
    .header-actions { justify-content: space-between; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-bar,
    .contact-grid,
    .admin-grid,
    .stats-grid { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; width: auto; }
    .admin-main { margin-left: 0; padding: 18px; }
}

@media (max-width: 575px) {
    .section { padding: 46px 0; }
    .hero-slide { min-height: 460px; }
    .product-grid { grid-template-columns: 1fr; }
    .section-title { display: block; }
    .header-actions { flex-wrap: wrap; }
}
