﻿:root {
  --bg: #f4f1e8;
  --surface: #fffdf9;
  --surface-2: #f8f4ec;
  --line: #e2dccf;
  --text: #1f2933;
  --muted: #6b7280;
  --brand: #577231;
  --brand-dark: #3b4c1f;
  --brand-soft: #e9efd8;
  --accent: #d98d3d;
  --danger: #be3c3c;
  --success: #1f7a52;
  --shadow: 0 18px 40px rgba(31, 41, 51, 0.08);
  --radius: 24px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: var(--text); background: linear-gradient(180deg, #f6f0e4 0, #f4f1e8 240px, #f7f5ef 100%); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1440px, calc(100% - 24px)); margin: 0 auto; }
.page-shell, .section { padding: 18px 0 26px; }
.topbar { background: var(--brand); color: #fff; text-align: center; font-size: 14px; padding: 10px 12px; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 253, 249, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(87, 114, 49, 0.1); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'logo search lang' 'nav nav nav'; gap: 14px 18px; align-items: center; padding: 14px 0; }
.mobile-menu-toggle { display: none; }
.logo-wrap { grid-area: logo; display: flex; align-items: center; gap: 12px; }
.logo-wrap img { width: 56px; height: 56px; object-fit: contain; border-radius: 18px; background: #fff; border: 1px solid var(--line); padding: 5px; }
.site-name { font-size: 22px; font-weight: 800; color: var(--brand-dark); letter-spacing: 0.02em; }
.site-sub { color: var(--muted); font-size: 12px; }
.searchbar { grid-area: search; }
.searchbar form { border: 1px solid var(--line); background: rgba(255,255,255,0.9); border-radius: 18px; overflow: hidden; }
.searchbar input { width: 100%; border: 0; padding: 15px 18px; background: transparent; outline: none; font: inherit; }
.header-lang-switch { grid-area: lang; justify-self: end; }
.lang-divider { display: inline-flex; align-items: center; color: var(--muted); font-weight: 700; padding: 0 2px; }
.lang-switch, .nav, .actions, .footer-links, .stack { display: flex; gap: 10px; flex-wrap: wrap; }
.stack { flex-direction: column; }
.nav-main { grid-area: nav; }
.nav a, .btn, .lang-btn { border: 1px solid var(--line); background: rgba(255,255,255,0.92); border-radius: 999px; padding: 10px 15px; font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.nav a:hover, .btn:hover, .lang-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(87, 114, 49, 0.1); border-color: #cdd6b9; }
.nav a.active, .lang-btn.active, .chip.selected { background: var(--brand-soft); border-color: #c8d4ab; color: var(--brand-dark); }
.inline-form { display: inline-flex; }
.nav-count { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; }
.card { background: var(--surface); border: 1px solid rgba(87, 114, 49, 0.12); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel, .sidebar { padding: 22px; }
.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; margin-top: 12px; padding: 0; border-radius: 34px; overflow: hidden; background: linear-gradient(135deg, rgba(233,239,216,0.9), rgba(255,253,249,0.95)); }
.hero-single { grid-template-columns: 1fr; max-width: 100%; }
.hero-left, .hero-right { padding: 34px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 4.3rem); line-height: 1.02; margin: 16px 0 12px; }
.hero p { color: var(--muted); line-height: 1.7; max-width: 720px; }
.home-banner { margin-top: 12px; overflow: hidden; border-radius: 34px; padding: 0; }
.home-banner-link { display: block; }
.home-banner img { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; }
.featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.featured-grid .featured-product-card { position: relative; border-radius: 0; box-shadow: none; border: 0; background: transparent; overflow: visible; }
.featured-grid .featured-badge { position: absolute; top: 0; left: 0; z-index: 3; background: #67b100; color: #fff; font-size: 13px; font-weight: 800; padding: 10px 16px; border-radius: 14px 0 14px 0; }
.featured-grid .product-image-wrap { height: 320px; padding: 0; background: #fff; border: 1px solid #e6e6df; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 18px rgba(31, 41, 51, 0.04); }
.featured-grid .product-card img { width: 100%; height: 100%; object-fit: cover; }
.featured-grid .product-content { padding: 14px 0 0; gap: 10px; }
.featured-grid .product-title { font-size: 1rem; line-height: 1.35; min-height: 2.7rem; text-align: center; }
.featured-grid .featured-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.featured-grid .featured-tag { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 14px; background: #dceac1; color: #23573c; font-size: 12px; font-weight: 700; }
.featured-grid .featured-tag.warm-tag { background: #f3d2b3; color: #386345; }
.featured-grid .product-meta-line { display: grid; gap: 4px; justify-items: center; margin-top: 0; }
.featured-grid .price-row { justify-content: center; gap: 8px; }
.featured-grid .price { font-size: 1.12rem; }
.featured-grid .mrp { font-size: 0.92rem; }
.featured-grid .featured-actions { margin-top: 2px; }
.featured-grid .featured-actions form { width: 100%; }
.featured-grid .featured-actions .btn { width: 100%; min-height: 60px; border-radius: 8px; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; }
.admin-banner-preview { width: 100%; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.badge, .product-category { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: 12px; }
.hero-grid, .product-grid, .panel-grid, .summary-grid { display: grid; gap: 12px; }
.hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-products-panel { display: grid; align-content: start; gap: 16px; background: rgba(255,255,255,0.72); border: 1px solid var(--line); border-radius: 26px; padding: 18px; }
.popular-strip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(226,220,207,0.85); }
.popular-strip-head strong { font-size: 1.15rem; color: var(--brand-dark); }
.popular-strip-title { display: flex; align-items: center; gap: 8px; }
.popular-strip-title span { color: var(--muted); font-weight: 700; }
.popular-strip-actions { display: flex; align-items: center; gap: 10px; }
.popular-more { font-size: 14px; font-weight: 700; color: var(--brand-dark); }
.popular-strip-controls { display: flex; gap: 8px; }
.scroll-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.95); cursor: pointer; font-size: 22px; line-height: 1; }
.popular-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 200px); gap: 14px; overflow-x: auto; padding-bottom: 4px; scroll-behavior: smooth; }
.popular-strip::-webkit-scrollbar { height: 8px; }
.popular-strip::-webkit-scrollbar-thumb { background: #d5d8cc; border-radius: 999px; }
.popular-card { display: grid; gap: 10px; background: #fff; border: 1px solid #ece6d8; border-radius: 16px; padding: 12px; min-height: 100%; box-shadow: 0 10px 22px rgba(31, 41, 51, 0.05); }
.popular-card img { width: 100%; height: 120px; object-fit: contain; padding: 0; }
.popular-title { font-weight: 700; font-size: .98rem; line-height: 1.35; min-height: 2.7rem; }
.popular-price { color: var(--brand-dark); font-size: 1rem; font-weight: 800; }
.compact-products-section { padding-top: 4px; }
.strip-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #efefec; border: 1px solid #e3e3de; border-radius: 6px; padding: 12px 18px; margin-bottom: 12px; }
.strip-section-title { font-size: 1.15rem; font-weight: 800; }
.rail-wrap { position: relative; padding: 0 40px; }
.marketplace-strip { grid-auto-columns: minmax(190px, 205px); gap: 14px; }
.marketplace-card { position: relative; border-radius: 4px; padding: 6px 6px 12px; box-shadow: 0 6px 14px rgba(31, 41, 51, 0.05); min-height: 100%; align-content: start; }
.marketplace-card img { height: 180px; object-fit: contain; border-radius: 2px; background: #f7f7f7; }
.marketplace-badge { position: absolute; top: 8px; left: 8px; background: #69bf45; color: #fff; font-weight: 700; font-size: 12px; padding: 6px 10px; border-radius: 0 0 10px 0; z-index: 2; }
.marketplace-card .popular-title { min-height: 3.5rem; font-size: 0.98rem; line-height: 1.35; }
.marketplace-card .popular-price { color: #0f5f2f; margin-top: 0; font-size: 1.02rem; }
.marketplace-cta { margin-top: 6px; width: 108px; text-align: center; border: 1px solid #20a84b; color: #20a84b; padding: 7px 10px; font-weight: 700; border-radius: 2px; font-size: 0.95rem; }
.testimonials-section { padding-top: 6px; }
.testimonials-head { align-items: center; }
.testimonials-strip { grid-auto-columns: minmax(320px, 1fr); gap: 18px; scroll-snap-type: x mandatory; }
.testimonial-card { display: grid; gap: 14px; min-height: 100%; padding: 24px; background: #fff; border: 1px solid #e2e2db; border-radius: 8px; box-shadow: 0 8px 20px rgba(31, 41, 51, 0.05); scroll-snap-align: start; }
.testimonial-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.testimonial-name { font-size: 1rem; font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase; }
.testimonial-verified { display: inline-flex; align-items: center; gap: 8px; color: #6f7b87; font-size: 0.95rem; }
.verified-tick { display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(180deg, #36a2ff, #1977f3); position: relative; box-shadow: 0 6px 14px rgba(25, 119, 243, 0.18); flex: 0 0 20px; }
.verified-tick::before { content: ''; position: absolute; left: 6px; top: 4px; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(42deg); }
.testimonial-rating-row { display: flex; align-items: center; gap: 14px; padding-top: 12px; border-top: 1px solid #eceae2; }
.testimonial-stars { color: #ffc915; font-size: 2rem; letter-spacing: 2px; line-height: 1; }
.testimonial-score { color: #7f8894; font-size: 1.25rem; font-weight: 700; }
.testimonial-title { font-size: 1.02rem; font-weight: 700; color: var(--brand-dark); }
.testimonial-review-box { display: grid; gap: 14px; padding: 18px 20px; border-radius: 12px; background: #fafafa; border: 1px solid #efede5; }
.testimonial-review-box p { margin: 0; color: #29313c; line-height: 1.7; }
.testimonial-foot { display: grid; gap: 8px; color: #7b8691; font-size: 0.94rem; }
.testimonial-verified-line { display: inline-flex; align-items: center; gap: 8px; color: #355f3e; font-weight: 700; }
.rail-btn { position: absolute; top: 38%; transform: translateY(-50%); z-index: 3; box-shadow: 0 8px 18px rgba(31, 41, 51, 0.16); }
.rail-btn-left { left: 0; }
.rail-btn-right { right: 0; }
.mini-card { background: rgba(255,255,255,0.92); border: 1px solid var(--line); border-radius: 22px; padding: 12px; }
.mini-card img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; }
.mini-title { font-weight: 700; margin-top: 10px; }
.mini-price { color: var(--brand-dark); margin-top: 6px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.compact-head { margin-bottom: 12px; }
.section-title { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.section-title.small { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-sub, .muted { color: var(--muted); }
.shop-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; }
.sidebar { position: sticky; top: 94px; align-self: start; }
.chips.column { display: flex; flex-direction: column; gap: 10px; }
.chip { padding: 11px 15px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,0.9); }
.sidebar-note { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.product-card { position: relative; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; height: 100%; width: 100%; max-width: none; margin: 0; border-radius: 20px; }
.product-image-wrap { background: linear-gradient(180deg, rgba(233,239,216,0.42), rgba(255,255,255,0.98)); height: 220px; display: flex; align-items: center; justify-content: center; padding: 14px 14px 8px; }
.product-card img { width: 100%; height: 100%; object-fit: contain; padding: 0; }
.product-content { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.product-title { margin: 2px 0 0; font-size: 1.12rem; line-height: 1.32; min-height: 2.9rem; }
.product-title-large { margin-top: 18px; }
.product-title-divider {
  width: 72px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0%, rgba(87, 114, 49, 0.25) 100%);
  margin: 10px 0 12px;
}
.product-desc { color: var(--muted); line-height: 1.52; min-height: 46px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta-line, .price-row, .summary-row, .summary-total, .order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.product-meta-line { margin-top: auto; display: grid; gap: 6px; }
.price-row { margin-top: 0; justify-content: flex-start; gap: 10px; flex-wrap: wrap; }
.price { font-size: 1.52rem; font-weight: 800; color: var(--brand-dark); }
.mrp { color: #8d99a7; text-decoration: line-through; }
.product-click-hint { display: none; }
.product-link-overlay { position: absolute; inset: 0; z-index: 1; }
.product-actions, .detail-actions { position: relative; z-index: 2; margin-top: 8px; align-items: stretch; gap: 8px; }
.product-actions form, .detail-actions form { flex: 1 1 0; min-width: 0; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.9); color: var(--brand-dark); }
.full-btn { width: 100%; }
.flash { padding: 14px 16px; border-radius: 18px; margin-bottom: 18px; }
.flash.success { background: rgba(31, 122, 82, 0.12); color: var(--success); }
.flash.error { background: rgba(190, 60, 60, 0.12); color: var(--danger); }
.compact-flash { margin-top: 0; }
.checkout-grid, .two-col, .admin-two, .account-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 18px; }
.cart-grid { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); }
.cart-item, .admin-item, .order-card { padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,0.95); }
.cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 12px; }
.cart-item img, .admin-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 18px; background: var(--surface-2); }
.cart-title { font-size: 1.05rem; font-weight: 700; }
.cart-total { font-size: 1.2rem; font-weight: 800; }
.summary-card { align-self: start; }
.summary-title { font-size: 1rem; font-weight: 800; margin-bottom: 12px; }
.summary-total { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 1.12rem; }
.qr-block { margin-top: 14px; padding: 14px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,0.92); text-align: center; }
.checkout-qr { width: min(220px, 100%); margin: 12px auto; border-radius: 16px; border: 1px solid var(--line); }
.payment-panel, .pay, .pay-option, .soft, .address-card { padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.85); }
.payment-panel { display: grid; gap: 10px; }
.pay-option { display: flex; gap: 10px; align-items: center; }
.field, textarea, select { width: 100%; padding: 13px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.96); font: inherit; }
textarea { min-height: 110px; resize: vertical; }
.form-grid, .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.narrow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-detail-card { padding: 30px; }
.product-detail-grid { display: grid; grid-template-columns: minmax(280px, 520px) minmax(0, 1fr); gap: 30px; }
.product-detail-image { width: 100%; background: rgba(255,255,255,0.95); border-radius: 24px; padding: 22px; border: 1px solid var(--line); }
.detail-block { margin-top: 18px; }
.detail-block h3 { margin: 0 0 10px; font-size: 1.15rem; }
.detail-block p { margin: 0; line-height: 1.75; color: var(--muted); }
.product-gallery-strip { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.product-thumb { width: 82px; height: 82px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; }
.product-thumb.active { border-color: var(--brand); box-shadow: 0 8px 18px rgba(87, 114, 49, 0.14); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.variant-block { margin-top: 12px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-chip { padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.variant-chip.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 10px 20px rgba(87, 114, 49, 0.18); }
.is-hidden { display: none !important; }
.video-embed { position: relative; width: 100%; padding-top: 56.25%; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.qty-buy-wrap { margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,0.85); display: inline-flex; flex-direction: column; gap: 8px; }
.qty-label { font-weight: 700; color: var(--muted); }
.qty-inline { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; }
.qty-input { width: 84px; height: 42px; border-radius: 999px; border: 1px solid var(--line); text-align: center; font: inherit; }
.footer { margin-top: 22px; border-top: 1px solid var(--line); background: rgba(255,255,255,0.72); }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 24px 0; }
.wa-float { position: fixed; right: 16px; bottom: 16px; width: 58px; height: 58px; border-radius: 999px; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); font-weight: 800; }
.narrow { max-width: 760px; margin: 0 auto; }
.auth-shell { min-height: calc(100vh - 54px); display: flex; flex-direction: column; justify-content: center; }
.auth-lang { justify-content: flex-end; margin-bottom: 16px; }
.auth-card { background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(248,244,236,0.95)); }
.account-grid.secondary-grid { margin-top: 18px; }
.info-list div { padding: 10px 0; border-bottom: 1px solid rgba(226, 220, 207, 0.8); }
.info-list div:last-child { border-bottom: 0; }
.order-stack { gap: 14px; }
.small-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-card { box-shadow: none; }
.small-title { font-size: 1rem; min-height: auto; }
.admin-shell .admin-topbar { margin-bottom: 18px; }
.wrap-right { justify-content: flex-end; }
.admin-list { display: grid; gap: 12px; }
.compact-admin-item { grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.admin-icon { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; }
.admin-summary { font-size: 1.05rem; font-weight: 800; cursor: pointer; list-style: none; padding-bottom: 6px; }
.admin-summary::-webkit-details-marker { display: none; }
.stat { font-size: 2rem; font-weight: 800; margin-top: 4px; }
.stat-card { display: grid; gap: 6px; text-align: center; }
.order-status-form { align-items: center; }
.admin-order-line { margin-top: 8px; color: var(--muted); }
.success-panel { max-width: 680px; margin: 0 auto; }
@keyframes mobileMenuDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .featured-grid .product-image-wrap { height: 280px; }
}
@media (max-width: 1100px) {
  .hero, .shop-layout, .checkout-grid, .two-col, .admin-two, .account-grid, .footer-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 860px) {
  .topbar { padding: 8px 10px; font-size: 12px; }
  .header { background: rgba(255, 252, 246, 0.98); }
  .header-inner { position: relative; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'logo' 'lang' 'search'; gap: 10px; padding: 10px 0 14px; }
  .logo-wrap { gap: 12px; padding: 10px 12px; border: 1px solid rgba(87, 114, 49, 0.08); border-radius: 22px; background: rgba(255,255,255,0.82); box-shadow: 0 12px 28px rgba(31, 41, 51, 0.05); }
  .logo-wrap img { width: 46px; height: 46px; border-radius: 14px; }
  .site-name { font-size: 1.75rem; line-height: 1; }
  .site-sub { font-size: 13px; }
  .header-lang-switch { width: 100%; justify-self: stretch; justify-content: flex-start; gap: 8px; align-items: center; flex-wrap: wrap; }
  .lang-btn { min-height: 42px; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,0.92); }
  .searchbar form { position: relative; border-radius: 18px; background: rgba(255,255,255,0.96); box-shadow: 0 10px 24px rgba(31, 41, 51, 0.06); }
  .searchbar input { padding: 14px 16px; font-size: 16px; }
  .mobile-menu-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.96); box-shadow: 0 10px 24px rgba(31, 41, 51, 0.08); cursor: pointer; margin-left: auto; }
  .mobile-menu-icon { display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; width: 18px; }
  .mobile-menu-icon span { display: block; width: 18px; height: 3px; border-radius: 999px; background: #2e71b8; transition: transform .18s ease, opacity .18s ease; }
  .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-main { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 50; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.99); box-shadow: 0 18px 36px rgba(31, 41, 51, 0.12); gap: 8px; }
  .nav-main.is-open { display: grid; grid-template-columns: 1fr; animation: mobileMenuDrop .22s ease; }
  .nav-main a, .nav-main form, .nav-main form .btn { width: 100%; }
  .nav-main a, .nav-main .btn { min-height: 46px; justify-content: flex-start; padding: 12px 16px; border-radius: 14px; font-weight: 700; background: #fff; }
  .nav-main .inline-form { display: block; }
  .section, .page-shell { padding: 12px 0 18px; }
  .hero { margin-top: 4px; border-radius: 28px; background: linear-gradient(180deg, #f4f8ea 0%, #fffdf8 100%); box-shadow: 0 18px 34px rgba(60, 83, 31, 0.08); }
  .home-banner { margin-top: 4px; border-radius: 26px; }
  .home-banner img { aspect-ratio: 16 / 8; }
  .hero-left { padding: 24px 22px 22px; position: relative; }
  .hero-left::before, .hero-left::after { content: ''; position: absolute; width: 92px; height: 92px; border-radius: 999px; background: radial-gradient(circle, rgba(136, 170, 101, 0.14), rgba(136, 170, 101, 0)); pointer-events: none; }
  .hero-left::before { top: -18px; right: -8px; }
  .hero-left::after { bottom: -18px; left: -18px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3.2rem); line-height: 1.05; margin: 10px 0 12px; max-width: 12ch; }
  .hero p { max-width: none; font-size: 16px; line-height: 1.55; }
  .actions { gap: 10px; }
  .actions .btn { flex: 1 1 calc(50% - 5px); min-height: 48px; }
  .section-head { margin-bottom: 12px; }
  .strip-section-head { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,0.94); }
  .strip-section-title { font-size: 1.35rem; }
  .popular-more { font-size: 15px; }
  .rail-btn { display: none; }
  .product-detail-grid, .cart-item { grid-template-columns: 1fr; }
  .cart-total { text-align: left; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 16px); }
  .hero-left, .hero-right, .panel, .sidebar, .product-detail-card { padding: 18px; }
  .hero-grid, .form-grid, .narrow-grid, .panel-grid, .summary-grid, .small-grid { grid-template-columns: 1fr; }
  .rail-wrap { padding: 0; }
  .marketplace-strip { grid-auto-columns: minmax(148px, 164px); gap: 10px; }
  .marketplace-card { padding: 8px 8px 12px; border-radius: 16px; }
  .marketplace-card img { height: 132px; }
  .testimonials-strip { grid-auto-columns: minmax(270px, 290px); gap: 12px; }
  .testimonial-card { padding: 18px; }
  .testimonial-stars { font-size: 1.5rem; }
  .marketplace-card .popular-title { min-height: 3rem; font-size: 0.95rem; }
  .marketplace-cta { width: 100%; border-radius: 999px; background: var(--brand); color: #fff; border-color: var(--brand); }
  .popular-strip { grid-auto-columns: minmax(150px, 172px); }
  .popular-card { border-radius: 18px; padding: 12px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; justify-content: stretch; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .featured-grid .product-image-wrap { height: 220px; }
  .featured-grid .featured-actions .btn { min-height: 48px; }
  .product-card { max-width: none; border-radius: 18px; }
  .product-image-wrap { height: 172px; padding: 12px 10px 6px; }
  .product-content { padding: 12px; gap: 6px; }
  .product-title { min-height: auto; font-size: 1rem; }
  .product-desc { min-height: auto; -webkit-line-clamp: 2; }
  .price { font-size: 1.28rem; }
  .product-actions { gap: 6px; }
  .product-actions .btn { min-height: 42px; padding: 10px 12px; }
  .section-title { font-size: clamp(1.65rem, 8vw, 2.3rem); }
  .logo-wrap { padding: 8px 10px; }
  .logo-wrap img { width: 42px; height: 42px; }
  .site-name { font-size: 1.55rem; }
  .site-sub { font-size: 12px; }
  .header-lang-switch { gap: 8px; }
  .lang-btn { padding: 10px 12px; font-size: 14px; }
  .footer-grid { padding: 18px 0; }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .product-image-wrap { height: 240px; }
  .testimonials-strip { grid-auto-columns: minmax(236px, 248px); }
  .testimonial-card { padding: 16px; gap: 12px; }
  .testimonial-stars { font-size: 1.28rem; }
  .testimonial-score { font-size: 1rem; }
  .logo-wrap { gap: 10px; }
  .logo-wrap img { width: 38px; height: 38px; }
  .header-inner { grid-template-columns: 1fr; grid-template-areas: 'logo' 'lang' 'search'; }
  .header-lang-switch { justify-content: flex-start; gap: 8px; }
  .lang-btn { min-height: 40px; }
  .hero-left { padding: 22px 18px 20px; }
  .hero h1 { font-size: clamp(1.9rem, 11vw, 2.9rem); }
  .actions .btn { flex-basis: 100%; }
  .strip-section-head { padding: 12px 14px; }
  .auth-lang { justify-content: flex-start; }
}


.admin-filter-bar {
  margin: 0 0 16px;
  align-items: center;
}

.admin-filter-bar .field {
  min-width: 240px;
  flex: 1 1 280px;
}

@media (max-width: 768px) {
  .stack-on-mobile {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-filter-bar .field,
  .admin-filter-bar .btn {
    width: 100%;
  }
}


.mobile-header-controls,
.mobile-search-toggle,
.mobile-cart-toggle {
  display: none;
}

.mobile-header-controls {
  align-items: center;
  gap: 10px;
}

.mobile-search-toggle,
.mobile-cart-toggle,
.mobile-menu-toggle {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 10px 24px rgba(31, 41, 51, 0.08);
  cursor: pointer;
}

.mobile-search-icon,
.mobile-cart-icon {
  position: relative;
  display: inline-block;
}

.mobile-search-icon {
  width: 16px;
  height: 16px;
  border: 2px solid #4f5e33;
  border-radius: 50%;
}

.mobile-search-icon::after {
  content: '';
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #4f5e33;
  transform: rotate(45deg);
  transform-origin: center;
}

.mobile-cart-icon {
  width: 16px;
  height: 14px;
  border: 2px solid #4f5e33;
  border-radius: 4px 4px 6px 6px;
  background: transparent;
}

.mobile-cart-icon::before {
  content: '';
  position: absolute;
  left: 2px;
  top: -6px;
  width: 8px;
  height: 6px;
  border: 2px solid #4f5e33;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.mobile-cart-icon::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 4px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(79, 94, 51, 0.18);
}

.mobile-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

@media (max-width: 860px) {
  .header-inner {
    position: relative;
    display: block;
    padding: 12px 0 14px;
    min-height: 78px;
  }

  .mobile-header-controls {
    display: inline-flex;
    position: absolute;
    left: 0;
    top: 14px;
    gap: 8px;
    align-items: center;
  }

  .mobile-menu-toggle,
  .mobile-search-toggle,
  .mobile-cart-toggle {
    display: inline-flex;
  }

  .logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 2px 88px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .logo-wrap img {
    width: 40px;
    height: 40px;
  }

  .site-brand {
    text-align: left;
  }

  .site-name {
    font-size: 1.18rem;
    line-height: 1.05;
  }

  .site-sub {
    display: none;
  }

  .header-lang-switch {
    position: absolute;
    right: 0;
    top: 16px;
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 5px;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(87, 114, 49, 0.12);
    box-shadow: 0 8px 18px rgba(31, 41, 51, 0.05);
  }

  .header-lang-switch .lang-btn {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
  }

  .header-lang-switch .lang-btn:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
  }

  .header-lang-switch .lang-btn.active {
    background: transparent;
    border-color: transparent;
    color: var(--brand-dark);
  }

  .header-lang-switch .lang-divider {
    font-size: 11px;
    color: #9aa28c;
    padding: 0;
  }

  .searchbar {
    display: none;
    margin-top: 10px;
  }

  .searchbar.is-open {
    display: block;
  }

  .searchbar input {
    padding: 14px 16px;
    font-size: 16px;
  }

  .nav-main {
    top: calc(100% + 6px);
  }
}

@media (max-width: 680px) {
  .mobile-header-controls {
    top: 12px;
    gap: 6px;
  }

  .mobile-search-toggle,
  .mobile-cart-toggle,
  .mobile-menu-toggle {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .logo-wrap {
    gap: 8px;
    padding: 0 82px 0 86px;
  }

  .logo-wrap img {
    width: 36px;
    height: 36px;
  }

  .site-name {
    font-size: 1.04rem;
  }

  .header-lang-switch {
    top: 14px;
    padding: 4px 7px;
  }

  .header-lang-switch .lang-btn {
    font-size: 11px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 72px;
  }

  .mobile-header-controls {
    top: 11px;
  }

  .logo-wrap {
    padding: 0 78px 0 82px;
  }

  .site-name {
    font-size: 0.98rem;
  }

  .header-lang-switch {
    top: 13px;
    padding: 3px 6px;
  }

  .header-lang-switch .lang-btn {
    font-size: 10px;
  }
}


/* Final compact mobile header override */
@media (max-width: 860px) {
  .header-inner {
    display: block !important;
    position: relative !important;
    min-height: 58px !important;
    padding: 8px 0 10px !important;
  }

  .mobile-header-controls {
    display: inline-flex !important;
    position: absolute !important;
    left: 0 !important;
    top: 8px !important;
    gap: 6px !important;
    align-items: center !important;
  }

  .mobile-menu-toggle,
  .mobile-search-toggle,
  .mobile-cart-toggle {
    display: inline-flex !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  .mobile-menu-icon {
    width: 15px !important;
  }

  .mobile-menu-icon span {
    width: 15px !important;
    height: 2px !important;
  }

  .mobile-search-icon {
    width: 13px !important;
    height: 13px !important;
  }

  .mobile-search-icon::after {
    width: 7px !important;
    right: -4px !important;
    bottom: -3px !important;
  }

  .mobile-cart-icon {
    width: 15px !important;
    height: 11px !important;
  }

  .mobile-cart-icon::before {
    width: 9px !important;
    height: 5px !important;
    top: -5px !important;
  }

  .mobile-cart-count {
    min-width: 16px !important;
    height: 16px !important;
    font-size: 10px !important;
    top: -4px !important;
    right: -4px !important;
  }

  .logo-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 8px !important;
    padding: 0 58px 0 44px !important;
    min-height: 34px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .logo-wrap img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
  }

  .site-name {
    font-size: 0.96rem !important;
    line-height: 1.02 !important;
  }

  .site-sub {
    display: none !important;
  }

  .header-lang-switch {
    position: absolute !important;
    right: 0 !important;
    top: 9px !important;
    padding: 2px 4px !important;
    gap: 4px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .header-lang-switch .lang-btn {
    font-size: 10px !important;
    line-height: 1 !important;
  }

  .header-lang-switch .lang-divider {
    font-size: 10px !important;
  }

  .searchbar {
    display: none !important;
    margin-top: 10px !important;
  }

  .searchbar.is-open {
    display: block !important;
  }

  .searchbar form {
    box-shadow: none !important;
  }

  .searchbar input {
    padding: 12px 14px !important;
    font-size: 15px !important;
  }

  .nav-main {
    top: calc(100% + 4px) !important;
  }
}

@media (max-width: 520px) {
  .logo-wrap {
    padding: 0 54px 0 42px !important;
  }

  .site-name {
    font-size: 0.9rem !important;
  }
}


.saved-addresses-block { display: grid; gap: 14px; }
.saved-address-list { display: grid; gap: 12px; }
.compact-address-list { max-height: 420px; overflow: auto; }
.saved-address-card { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.92); display: grid; gap: 10px; }
.saved-address-card.is-active { border-color: #b9cb8e; box-shadow: 0 10px 24px rgba(87, 114, 49, 0.08); }
.saved-address-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.address-badge { display: inline-flex; align-items: center; justify-content: center; padding: 5px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 700; }
.saved-address-lines { display: grid; gap: 4px; color: var(--muted); }
.checkbox-row { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--brand-dark); }
.checkbox-row input { width: 18px; height: 18px; }
.account-wide-card { grid-column: 1 / -1; }
@media (min-width: 861px) {
  .saved-address-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body.image-zoom-open {
  overflow: hidden;
}

.product-image-viewer {
  position: relative;
}

.product-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(31, 41, 51, 0.12);
}

.product-image-nav.prev { left: 10px; }
.product-image-nav.next { right: 10px; }
.product-image-nav:hover { background: #fff; }

.product-detail-image[data-product-zoom="true"] {
  cursor: zoom-in;
}

.product-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(18, 23, 29, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.product-image-lightbox[hidden] {
  display: none !important;
}

.product-lightbox-image {
  position: relative;
  z-index: 121;
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.product-lightbox-nav,
.product-lightbox-close {
  position: fixed;
  z-index: 122;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.product-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
}

.product-lightbox-nav.prev { left: 20px; }
.product-lightbox-nav.next { right: 20px; }

.product-lightbox-close {
  top: 16px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 28px;
  line-height: 1;
}

.product-lightbox-nav:hover,
.product-lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }

@media (max-width: 860px) {
  .product-image-nav {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .product-image-nav.prev { left: 8px; }
  .product-image-nav.next { right: 8px; }
}

@media (max-width: 680px) {
  .product-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .product-lightbox-nav.prev { left: 10px; }
  .product-lightbox-nav.next { right: 10px; }

  .product-lightbox-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }
}
