:root {
    --green-dark: #145c2d;
    --green-medium: #1e7a3d;
    --green: #1e7a3d;
    --green-light: #2d9a52;
    --green-pale: #eef6f1;
    --green-soft: #dceee3;
    --green-mist: #c5dfcb;
    --brown: #8b5a2b;
    --gold: #c08e3a;
    --gold-light: #d4a84b;
    --cream: #f5f0e8;
    --cream-warm: #faf7f2;
    --cream-dark: #ebe4d6;
    --white: #ffffff;
    --text: #2c3e2d;
    --text-muted: #5a6b5c;
    --shadow: 0 4px 20px rgba(20, 92, 45, 0.1);
    --shadow-soft: 0 8px 32px rgba(20, 92, 45, 0.08);
    --radius: 12px;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--green-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; }

/* Header */
.site-header {
    --header-height: 68px;
    background: linear-gradient(90deg, var(--green-pale) 0%, var(--green-soft) 22%, var(--green-medium) 58%, var(--green-dark) 100%);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.site-header .header-inner {
    position: relative;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-dark);
    text-decoration: none;
}

.logo-link:hover { color: var(--green-medium); }

.logo-img {
    width: 88px;
    height: auto;
    aspect-ratio: 512 / 279;
    object-fit: contain;
    display: block;
    background: transparent;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.7rem;
    opacity: 0.75;
    font-weight: 400;
    color: var(--text-muted);
}

.logo-text-wrap {
    min-width: 0;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.header-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.nav-main a {
    color: rgba(255,255,255,0.9);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-main a:hover, .nav-main a.active {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255,255,255,0.9);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.active > .nav-dropdown-toggle,
.nav-dropdown.open > .nav-dropdown-toggle,
.nav-dropdown.hover-open > .nav-dropdown-toggle {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.nav-caret {
    font-size: 0.65rem;
    opacity: 0.85;
    transition: transform 0.2s;
}

.nav-dropdown.open .nav-caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 0.35rem;
    z-index: 1100;
}

/* Jembatan tak terlihat agar kursor tidak putus saat pindah ke submenu */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.nav-dropdown-menu a {
    display: block;
    color: var(--green-dark) !important;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: var(--cream);
    color: var(--green-dark) !important;
}

@media (min-width: 901px) {
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu,
    .nav-dropdown.hover-open .nav-dropdown-menu {
        display: block;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-toggle {
    display: inline-flex;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    gap: 2px;
}

.lang-toggle button {
    flex: 1 1 0;
    min-width: 2.75rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.lang-toggle button:hover:not(.active) {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.lang-toggle button.active {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--green-dark);
    border: 2px solid var(--green-dark);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    z-index: 1002;
    position: relative;
}

.menu-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle.open .menu-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .menu-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--white); }

.btn-gold {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--white); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.btn-green {
    background: var(--green-dark);
    color: var(--white);
    border-color: var(--green-dark);
}
.btn-green:hover { background: var(--green-medium); color: var(--white); }

.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-danger { background: #c0392b; border-color: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; }

/* Hero - Natural Premium */
.hero {
    background: linear-gradient(160deg, var(--cream-warm) 0%, var(--cream) 30%, var(--green-pale) 100%);
    color: var(--green-dark);
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(20, 92, 45, 0.08);
    min-height: 520px;
}

.hero-has-video {
    background: #1a3d28;
    min-height: calc(100vh - var(--header-height, 68px));
    min-height: calc(100dvh - var(--header-height, 68px));
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    display: none;
}

.hero-has-video .hero-video-wrap {
    display: block;
    height: 100%;
    min-height: 100%;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0.82;
    filter: saturate(1.1) brightness(1.05) contrast(1.03);
    transform: scale(1.04);
    transform-origin: center center;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(250, 247, 242, 0.22) 0%,
        rgba(238, 246, 241, 0.14) 40%,
        rgba(220, 238, 227, 0.18) 100%
    );
}

.hero-has-video::before,
.hero-has-video::after {
    opacity: 0.08;
}

.hero-has-video .hero-content {
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.hero-has-video .hero-content h1 {
    text-shadow: 0 2px 16px rgba(255, 255, 255, 0.95);
}

.hero-has-video .hero-content p {
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.9);
    color: var(--text);
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 55%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(192, 142, 58, 0.1) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 45%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(45, 154, 82, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.hero-content {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.65);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.1vw, 2rem);
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--green-dark);
}

.hero p {
    font-size: 1.1rem;
    color: #3d5240;
    margin-bottom: 2rem;
    max-width: none;
    line-height: 1.75;
    flex: 1;
}

.hero .btn-outline {
    color: var(--green-dark);
    border-color: var(--green-dark);
    background: rgba(255, 255, 255, 0.75);
}

.hero .btn-outline:hover {
    background: var(--white);
    color: var(--green-dark);
    border-color: var(--brown);
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    min-height: 0;
}

/* Hero product slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: var(--white);
}

.hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(transparent, rgba(20, 92, 45, 0.92));
    color: var(--white);
}

.hero-slide-caption strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.hero-slide-caption p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
    max-width: none;
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--green-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 3;
    transition: background 0.2s;
}

.hero-slider-btn:hover {
    background: var(--white);
}

.hero-slider-prev { left: 12px; }
.hero-slider-next { right: 12px; }

.hero-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.hero-slider-dot.active {
    background: var(--gold);
    border-color: var(--gold);
}

.hero-slider-empty {
    height: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border: 2px dashed rgba(20, 92, 45, 0.2);
    border-radius: var(--radius);
}

.hero-slider-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-size: 0.95rem;
}

/* Sections */
.section {
    padding: 4rem 1.5rem;
}

.section-cream {
    background: var(--cream-warm);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(20, 92, 45, 0.18);
}

.product-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--green-pale);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body { padding: 1.5rem; }

.card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

.card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0.75rem 0;
}

.card-stock {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-green { background: #d4edda; color: #155724; }
.badge-gold { background: #fff3cd; color: #856404; }
.badge-red { background: #f8d7da; color: #721c24; }
.badge-blue { background: #cce5ff; color: #004085; }

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(20, 92, 45, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(20, 92, 45, 0.12);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--gold-light);
    box-shadow: 0 4px 12px rgba(20, 92, 45, 0.15);
}

.feature-item h3 {
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background: linear-gradient(90deg, #0d4522 0%, var(--green-dark) 28%, var(--green-medium) 62%, #1a6b38 100%);
    color: rgba(255,255,255,0.85);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 1.5rem 2rem;
}

.footer-brand h3 {
    font-family: var(--font-display);
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-links h4 {
    color: var(--gold-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.75);
    padding: 0.25rem 0;
    font-size: 0.9rem;
}
.footer-links a:hover { color: var(--gold-light); }

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Forms */
.form-container {
    max-width: 480px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.form-card h2 {
    font-family: var(--font-display);
    color: var(--green-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.captcha-box {
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    background: #f9faf9;
    padding: 0.85rem 1rem;
}
.captcha-loading {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.captcha-check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}
.captcha-check input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--green-dark);
}
.captcha-challenge {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--cream-dark);
}
.captcha-q {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.captcha-answer-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.captcha-answer-row .form-control {
    max-width: 140px;
    font-size: 1.05rem;
    font-weight: 600;
}
.captcha-box .g-recaptcha {
    transform-origin: left center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 2px solid var(--cream-dark);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--green-light);
}

textarea.form-control { resize: vertical; min-height: 100px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--cream-dark);
}

.form-tab {
    flex: 1;
    padding: 0.65rem;
    text-align: center;
    background: var(--cream);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

.form-tab.active {
    background: var(--green-dark);
    color: var(--white);
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    scroll-margin-top: 6rem;
}

.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
.alert-info { background: #cce5ff; color: #004085; }

/* Dashboard */
.dashboard-topbar {
    --dashboard-topbar-height: 64px;
    background: linear-gradient(90deg, var(--green-pale) 0%, var(--green-soft) 22%, var(--green-medium) 58%, var(--green-dark) 100%);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: var(--shadow);
}

.dashboard-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--cream);
    padding-top: var(--dashboard-topbar-height, 64px);
}

.dashboard-header-inner {
    max-width: none;
    padding: 0.65rem 1.25rem;
}

.dashboard-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
    flex-shrink: 0;
}

.dashboard-topbar .sidebar-menu-toggle {
    display: none;
    margin-left: auto;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
}

.dashboard {
    display: flex;
    flex: 1;
    align-items: stretch;
}

.sidebar {
    width: 260px;
    background: var(--green-dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.08);
}

.sidebar-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    background: var(--gold);
}

.sidebar-user-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sidebar-user-name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sidebar-user-email {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-change-password {
    margin-top: 0.45rem;
    align-self: flex-start;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.92);
    border-radius: 6px;
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}
.sidebar-change-password:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--gold-light);
    color: var(--white);
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0 0;
    overflow-y: auto;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border-left-color: var(--gold);
}

.sidebar-group {
    margin: 0.15rem 0;
}

.sidebar-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.92);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.sidebar-group-toggle:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}

.sidebar-group.has-active > .sidebar-group-toggle {
    color: var(--gold-light);
}

.sidebar-group-label {
    min-width: 0;
}

.sidebar-group-chevron {
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    opacity: 0.85;
}

.sidebar-group.open .sidebar-group-chevron {
    transform: rotate(45deg);
}

.sidebar-submenu {
    display: none;
    padding: 0.15rem 0 0.35rem;
    background: rgba(0, 0, 0, 0.12);
}

.sidebar-group.open .sidebar-submenu {
    display: block;
}

.sidebar-submenu a {
    padding: 0.6rem 1.25rem 0.6rem 2.25rem;
    font-size: 0.86rem;
    font-weight: 400;
}

.sidebar-submenu a.active {
    background: rgba(255,255,255,0.16);
    border-left: 3px solid var(--gold-light);
    padding-left: calc(2.25rem - 3px);
}

.sidebar-footer {
    padding: 0.75rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: auto;
}

.dashboard-mobile-actions {
    display: none;
}

.sidebar-lang {
    display: flex;
    width: 100%;
    margin-bottom: 0.75rem;
}

.sidebar-lang button {
    text-align: center;
}

.sidebar-footer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-footer-actions .btn {
    width: 100%;
    justify-content: center;
}

.dashboard-content {
    flex: 1;
    min-width: 0;
    padding: 2rem;
    overflow-x: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-family: var(--font-display);
    color: var(--green-dark);
    font-size: 1.75rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--gold);
}

.stat-card h3 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-dark);
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.chart-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(20, 92, 45, 0.08);
}

.chart-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--green-dark);
    margin-bottom: 1rem;
}

.chart-wrap {
    position: relative;
    height: 260px;
}

.chart-wrap canvas {
    max-height: 260px;
}
    margin-top: 0.25rem;
}

/* Table */
.table-wrap {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    background: var(--cream);
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--green-dark);
    white-space: nowrap;
}

.data-table td {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--cream-dark);
}

.data-table tr:hover td { background: rgba(245,240,232,0.5); }

.table-actions {
    display: flex;
    gap: 0.5rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal.modal-wide {
    max-width: 860px;
}

.modal h2 {
    font-family: var(--font-display);
    color: var(--green-dark);
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-secondary {
    background: var(--cream);
    color: var(--text);
    border-color: var(--cream-dark);
}
.btn-secondary:hover {
    background: var(--cream-dark);
    color: var(--green-dark);
}

/* App dialogs (alert / confirm) */
.dialog-overlay {
    background: rgba(20, 40, 25, 0.45);
    backdrop-filter: blur(3px);
    animation: dialogFadeIn 0.18s ease;
}
@keyframes dialogFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.dialog-modal {
    max-width: 420px;
    text-align: center;
    padding: 2rem 1.75rem 1.5rem;
    animation: dialogPop 0.22s ease;
}
@keyframes dialogPop {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to { opacity: 1; transform: none; }
}
.dialog-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}
.dialog-info .dialog-icon {
    background: var(--green-pale);
    color: var(--green-dark);
}
.dialog-success .dialog-icon {
    background: #d4edda;
    color: #155724;
}
.dialog-error .dialog-icon {
    background: #f8d7da;
    color: #c0392b;
}
.dialog-warning .dialog-icon {
    background: #fff3cd;
    color: #856404;
}
.dialog-danger .dialog-icon {
    background: #f8d7da;
    color: #c0392b;
    font-size: 1.15rem;
}
.dialog-title {
    font-family: var(--font-display);
    color: var(--green-dark);
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
}
.dialog-message {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.dialog-actions {
    justify-content: center;
    margin-top: 1.5rem;
}
.dialog-actions .btn {
    min-width: 6.5rem;
}

/* Cart */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--cream-dark);
    flex-wrap: wrap;
}

.cart-item-info {
    flex: 1 1 160px;
    min-width: 0;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cart-item-subtotal {
    min-width: 6.5rem;
    text-align: right;
    color: var(--green-dark);
}

.cart-item-actions .btn {
    flex: 0 0 auto;
}

.cart-total {
    padding: 1rem;
    text-align: right;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-dark);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.qty-control > button:not(.btn) {
    width: 32px;
    height: 32px;
    border: 2px solid var(--cream-dark);
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    flex-shrink: 0;
}

.qty-control .btn {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
}

.product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.product-card-actions .btn {
    width: 100%;
    justify-content: center;
}

.qty-control input {
    width: 60px;
    text-align: center;
    border: 2px solid var(--cream-dark);
    border-radius: 6px;
    padding: 0.35rem;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.about-block {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.about-block h3 {
    color: var(--green-dark);
    font-family: var(--font-display);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-block h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gold);
    border-radius: 2px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info {
    background: var(--green-dark);
    color: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-info h3 {
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        padding: 0.5rem 1rem;
        gap: 0.75rem;
        flex-wrap: nowrap;
    }

    .logo-link {
        flex: 1;
        min-width: 0;
        gap: 0.5rem;
    }

    .logo-img {
        width: 52px;
        flex-shrink: 0;
    }

    .logo-text {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo-tagline {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .header-panel {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
        background: linear-gradient(180deg, var(--green-medium) 0%, var(--green-dark) 100%);
        box-shadow: 0 12px 24px rgba(20, 92, 45, 0.2);
        z-index: 1001;
    }

    .header-panel.open {
        display: flex;
    }

    .nav-main {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        width: 100%;
    }

    .nav-main a {
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        text-align: left;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.12);
        margin-top: 0.25rem;
        padding: 0.35rem;
    }

    .nav-dropdown-menu a {
        color: rgba(255,255,255,0.95) !important;
        padding: 0.65rem 1rem;
    }

    .nav-dropdown-menu a:hover,
    .nav-dropdown-menu a.active {
        background: rgba(255,255,255,0.12);
        color: var(--white) !important;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        width: 100%;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .header-actions .lang-toggle {
        align-self: center;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-has-video {
        min-height: calc(100vh - var(--header-height, 68px));
        min-height: calc(100dvh - var(--header-height, 68px));
    }
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-content { padding: 1.5rem; min-height: auto; }
    .hero p { flex: none; margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero h1 { font-size: 1.65rem; }
    .hero-slider-track { min-height: 260px; }
    .hero-slider-empty { min-height: 260px; }
    .footer-inner { grid-template-columns: 1fr; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .dashboard { flex-direction: column; }
    .dashboard-shell {
        padding-top: var(--dashboard-topbar-height, 64px);
    }
    .dashboard-topbar {
        position: fixed;
    }
    .dashboard-header-inner {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.55rem 0.85rem;
    }
    .dashboard-topbar .logo-link {
        flex: 1;
        min-width: 0;
    }
    .dashboard-topbar .logo-img {
        width: 52px;
    }
    .dashboard-topbar .logo-text {
        font-size: 0.82rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .dashboard-topbar .logo-tagline {
        display: none;
    }
    .dashboard-topbar .sidebar-menu-toggle {
        display: inline-flex;
        margin-left: auto;
        order: 2;
    }
    .dashboard-desktop-actions {
        display: none;
    }
    .dashboard-mobile-actions {
        display: block;
    }
    .sidebar {
        display: none;
        width: 100%;
        position: static;
        left: auto;
        top: auto;
        bottom: auto;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow-y: visible;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }
    .sidebar.open {
        display: flex;
    }
    .sidebar-nav {
        flex: 0 0 auto;
    }
    .sidebar-footer-actions {
        flex-direction: row;
    }
    .sidebar-footer-actions .btn {
        flex: 1;
    }
    .sidebar-nav a {
        white-space: normal;
        border-left: 3px solid transparent;
    }
    .sidebar-nav a.active {
        border-left-color: var(--gold);
    }
    .dashboard-content {
        margin-left: 0;
        padding: 1.25rem 1rem 2rem;
        min-height: 0;
    }
    .dashboard-charts { grid-template-columns: 1fr; }
}

/* Product category filter */
.product-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.75rem;
}
.product-filter-tab {
    padding: 0.5rem 1.1rem;
    border: 2px solid var(--green-dark);
    background: var(--white);
    color: var(--green-dark);
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.product-filter-tab:hover:not(.active) {
    background: var(--green-pale);
    border-color: var(--green-medium);
    color: var(--green-dark);
}
.product-filter-tab.active {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(20, 92, 45, 0.22);
}
.product-cat-badge {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 999;
    transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* Product specs */
.spec-table {
    width: 100%;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
    border-collapse: collapse;
}
.spec-table td {
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    color: var(--text-muted);
}
.spec-table td:first-child { font-weight: 600; color: var(--green-dark); width: 40%; }

/* FAQ */
.faq-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.faq-tab {
    padding: 0.5rem 1rem;
    border: 2px solid var(--green-dark);
    background: var(--white);
    color: var(--green-dark);
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.faq-tab:hover:not(.active) {
    background: var(--green-pale);
    border-color: var(--green-medium);
    color: var(--green-dark);
}
.faq-tab.active {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(20, 92, 45, 0.22);
}
.faq-panel { display: none; }
.faq-panel.active { display: block; }
.faq-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    padding: 0.25rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--green-dark);
    padding: 0.75rem 0;
}
.faq-answer {
    padding-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-card:hover { transform: translateY(-3px); }
.blog-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #d8e5d4, #efe8d8);
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-card-image.is-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #eef5ea 0%, #f5f0e8 55%, #ebe3d4 100%);
    padding: 1.25rem;
}
.blog-card-image.is-logo img {
    width: auto;
    height: auto;
    max-width: 58%;
    max-height: 72%;
    object-fit: contain;
}
.blog-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    padding-bottom: 3rem;
}
.blog-date { font-size: 0.8rem; color: var(--text-muted); }
.blog-card h3 { margin: 0.5rem 0; font-size: 1.1rem; }
.blog-card h3 a { color: var(--green-dark); text-decoration: none; }
.blog-card-excerpt {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-read-more {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    position: absolute;
    right: 1.25rem;
    bottom: 1.1rem;
}
.blog-article { max-width: 760px; }
.blog-back { color: var(--green); text-decoration: none; font-size: 0.9rem; }
.blog-article-title { font-family: 'Playfair Display', serif; color: var(--green-dark); margin: 0.5rem 0 1.25rem; }
.blog-article-cover {
    margin: 0 0 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}
.blog-article-cover img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}
.blog-content { line-height: 1.8; color: var(--text); }
.blog-content p { margin-bottom: 1rem; }
.blog-content h2, .blog-content h3 {
    font-family: var(--font-display);
    color: var(--green-dark);
    margin: 1.5rem 0 0.75rem;
}
.blog-content ul, .blog-content ol { margin: 0 0 1rem 1.25rem; }
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
    display: block;
}
.blog-content a { color: var(--green-dark); }
.blog-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: 1.25rem 0;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}
.blog-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Rich text editor */
.rte-wrap {
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.45rem;
    background: #f3efe6;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.rte-btn {
    border: 1px solid transparent;
    background: transparent;
    border-radius: 6px;
    min-width: 32px;
    height: 32px;
    padding: 0 0.45rem;
    cursor: pointer;
    color: var(--green-dark);
    font-size: 0.85rem;
}
.rte-btn:hover { background: #fff; border-color: rgba(20,92,45,0.2); }
.rte-sep {
    width: 1px;
    align-self: stretch;
    background: rgba(0,0,0,0.12);
    margin: 0 0.2rem;
}
.rte-editor {
    min-height: 180px;
    max-height: 320px;
    overflow-y: auto;
    padding: 0.85rem 1rem;
    line-height: 1.7;
    outline: none;
}
.rte-editor:empty:before {
    content: attr(data-placeholder);
    color: var(--text-muted);
}
.rte-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.5rem 0;
}
.rte-editor .blog-video {
    max-width: 100%;
}

/* Order timeline */
.order-timeline {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}
.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}
.timeline-step.done .timeline-dot { background: var(--green); color: #fff; }
.timeline-step.active .timeline-dot { background: var(--gold); color: #fff; box-shadow: 0 0 0 3px rgba(192,142,58,0.3); }
.timeline-label { font-size: 0.75rem; margin-top: 0.35rem; color: var(--text-muted); text-align: center; }
.timeline-step.active .timeline-label { color: var(--green-dark); font-weight: 600; }
.timeline-line { flex: 1; height: 3px; background: #e0e0e0; min-width: 20px; max-width: 60px; }
.timeline-line.done { background: var(--green); }
.order-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.order-card-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.order-card-items { font-size: 0.9rem; color: var(--text-muted); margin: 0.5rem 0; }
.order-card-total { font-weight: 700; color: var(--green-dark); }

/* Supplier map */
.supplier-map {
    height: 480px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    z-index: 1;
}
.map-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: middle;
}
.legend-dot.high { background: #145c2d; }
.legend-dot.mid { background: #c08e3a; }
.legend-dot.low { background: #8b5a2b; }

.location-coords-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.location-picker-map {
    height: 260px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    z-index: 1;
}
.form-hint {
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}
@media (max-width: 600px) {
    .location-coords-row { grid-template-columns: 1fr; }
}
