:root {
  --olive: #344422;
  --olive-dark: #243016;
  --olive-soft: #4a5c32;
  --amber: #b76800;
  --amber-soft: #c97a1a;
  --amber-deep: #8f5200;
  --surface: #eef0eb;
  --surface-2: #f7f8f5;
  --ink: #1b1e16;
  --muted: #5c6156;
  --line: #d5d9cf;
  --danger: #9b2c2c;
  --success: #2f5d3a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(36, 48, 22, 0.08);
  --font:"PasandKoodak",Tahoma,sans-serif;
  --nav-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}



*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 100% -10%, rgba(183, 104, 0, 0.12), transparent 55%),
    radial-gradient(90% 60% at -10% 10%, rgba(52, 68, 34, 0.18), transparent 50%),
    linear-gradient(180deg, #f4f5f1 0%, var(--surface) 40%, #e8ebe3 100%);
  min-height: 100dvh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(72px + var(--safe-bottom));
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
.container {
  width: min(100% - 1.5rem, 720px);
  margin-inline: auto;
}

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mark-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.rise { animation: rise .55s ease both; }
.rise-delay-1 { animation-delay: .08s; }
.rise-delay-2 { animation-delay: .16s; }
.rise-delay-3 { animation-delay: .24s; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .85rem;
  backdrop-filter: blur(14px);
  background: rgba(238, 240, 235, 0.82);
  border-bottom: 1px solid rgba(52, 68, 34, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.brand-mark {
  width: 34px;
  height: 48px;
  object-fit: contain;
  animation: mark-float 4.5s ease-in-out infinite;
}
.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--olive);
  line-height: 1;
}
.brand-en {
  display: block;
  font-size: .68rem;
  color: var(--amber);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: .2rem;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  position: relative;
}
.badge {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--amber);
  color: #fff;
  font-size: .68rem;
  display: grid;
  place-items: center;
}

/* Bottom nav — mobile primary chrome */
.bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .25rem;
  padding: .45rem .55rem calc(.45rem + var(--safe-bottom));
  background: rgba(36, 48, 22, 0.96);
  color: #eef0eb;
  border-top: 1px solid rgba(183, 104, 0, 0.35);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  font-size: .72rem;
  opacity: .78;
  padding: .35rem .2rem;
  border-radius: 10px;
}
.bottom-nav a.active,
.bottom-nav a:hover {
  opacity: 1;
  background: rgba(183, 104, 0, 0.18);
  color: #ffd39a;
}
.bottom-nav svg { width: 22px; height: 22px; }

/* Hero — one composition */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-h) - 72px);
  display: grid;
  align-content: end;
  overflow: hidden;
  color: #f7f8f5;
  background: var(--olive-dark);
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(36,48,22,.15) 0%, rgba(36,48,22,.55) 45%, rgba(26,30,22,.92) 100%),
    url("/assets/images/logo/pasand-on-green.png") center 28% / min(70vw, 320px) no-repeat,
    radial-gradient(circle at 70% 20%, rgba(183,104,0,.35), transparent 45%),
    var(--olive);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.1rem 2rem;
}
.hero-brand {
  font-size: clamp(2.6rem, 12vw, 4rem);
  line-height: 1;
  margin: 0 0 .55rem;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.hero-text {
  margin: 0 0 1.25rem;
  max-width: 28ch;
  color: rgba(247,248,245,.88);
  font-size: 1.02rem;
}
.cta-row { display: flex; gap: .65rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 46px;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 8px 20px rgba(183, 104, 0, 0.28);
}
.btn-primary:hover { background: var(--amber-soft); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.btn-olive {
  background: var(--olive);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border-color: var(--olive);
  color: var(--olive);
}
.btn-block { width: 100%; }

.section {
  padding: 2rem 0 1rem;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--olive-dark);
}
.section-head p {
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: .92rem;
}
.link-amber { color: var(--amber); font-weight: 600; }

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.product-card .thumb {
  aspect-ratio: 3/4;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(52,68,34,.12), rgba(183,104,0,.1)),
    var(--surface-2);
  border: 1px solid rgba(52,68,34,.08);
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card h3 {
  margin: 0;
  font-size: .98rem;
  line-height: 1.35;
}
.price {
  color: var(--amber-deep);
  font-weight: 700;
  font-size: .95rem;
}
.price s {
  color: var(--muted);
  font-weight: 500;
  margin-right: .35rem;
  font-size: .8rem;
}

.chips {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: .86rem;
}
.chip.active {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}

.panel {
  background: rgba(247, 248, 245, 0.9);
  border: 1px solid rgba(52,68,34,.08);
  border-radius: var(--radius);
  padding: 1rem;
}
.field { margin-bottom: .9rem; }
.field label {
  display: block;
  margin-bottom: .35rem;
  color: var(--olive-dark);
  font-size: .9rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: .7rem .85rem;
  outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(183,104,0,.15);
}
.hint { color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.error-text { color: var(--danger); font-size: .86rem; margin-top: .4rem; }
.success-text { color: var(--success); font-size: .86rem; margin-top: .4rem; }

.size-row, .color-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.size-opt, .color-opt {
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.size-opt.active, .color-opt.active {
  border-color: var(--olive);
  background: rgba(52,68,34,.08);
  box-shadow: inset 0 0 0 1px var(--olive);
}
.color-opt span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15);
}

.sticky-buy {
  position: sticky;
  bottom: calc(72px + var(--safe-bottom));
  z-index: 20;
  margin-top: 1rem;
  padding: .75rem;
  background: rgba(247,248,245,.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: .65rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface);
}
.qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qty-ctrl button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.qty-ctrl span { min-width: 28px; text-align: center; }

.empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}
.footer-mini {
  padding: 2rem 0 1rem;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + var(--safe-bottom));
  transform: translateX(-50%) translateY(20px);
  background: var(--olive-dark);
  color: #fff;
  padding: .7rem 1rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 80;
  white-space: nowrap;
  max-width: calc(100vw - 2rem);
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .container { width: min(100% - 2rem, 980px); }
  .hero { min-height: 78vh; align-content: center; }
  .hero-copy { padding: 3rem; max-width: 520px; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .sticky-buy { bottom: 1rem; }
}
