﻿:root {
  --green: #1b7d3a;
  --green-dark: #115127;
  --green-soft: #e8f6ed;
  --text: #172018;
  --muted: #56655c;
  --bg: #ffffff;
  --line: #d3e1d7;
  --danger: #b92828;
  --red: #c42026;
  --red-dark: #94191d;
  --red-soft: #fdecee;
  --shadow: 0 10px 30px rgba(17, 36, 22, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: "Segoe UI", "Helvetica Neue", sans-serif; color: var(--text); background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%); -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font: inherit; }

.container { width: min(1200px, 92vw); margin: 0 auto; }
.section-title { margin: 0 0 16px; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; }
.tagline { color: var(--muted); font-size: .95rem; margin: 0; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--red);
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "logo . tools"
    "nav nav nav";
  align-items: center;
  gap: 10px 14px;
  min-height: 88px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo {
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: .3px;
  font-size: 1.78rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex: 0 0 auto;
  grid-area: logo;
}
.main-nav {
  grid-area: nav;
  margin-left: 0;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  min-width: 0;
  overflow: visible;
  background: linear-gradient(120deg, #2fb877 0%, #1b9e63 45%, #17844f 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(15, 71, 42, 0.3);
  border-radius: 0;
  padding: 0;
}
.logo span { color: var(--green); }
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d9e5dc;
  background: #fff;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0 auto;
  padding: 0 20px;
  width: min(1200px, 92vw);
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}
.main-nav li {
  display: flex;
  align-items: center;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-weight: 600;
  font-size: 1.03rem;
  padding: 12px 4px;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a:focus-visible {
  color: #fff;
  background: rgba(196, 32, 38, 0.28);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.85);
}

.dropdown { position: relative; }
.dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}
.dropdown-panel {
  position: absolute; left: 0; top: 100%; width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 10px 8px 8px; display: none;
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { display: grid; gap: 4px; }
.dropdown-panel a { padding: 8px 10px; border-radius: 8px; }
.dropdown-panel a { color: var(--text); text-shadow: none; background: #fff; }
.dropdown-panel a:hover, .dropdown-panel a:focus-visible { background: var(--red-soft); color: var(--red-dark); }
.producers-dropdown .dropdown-panel {
  width: 320px;
}
.producers-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px !important;
}
.producers-panel a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  min-height: 90px;
}
.producers-panel a:hover,
.producers-panel a:focus-visible {
  background: #fff;
  border-color: #e0b9bc;
}
.producers-panel img {
  max-width: 100%;
  height: 42px;
  object-fit: contain;
}
.producer-label {
  font-size: .78rem;
  color: #314238;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-left: 0; flex: 0 0 auto; min-width: 56px; grid-area: tools; }
.mobile-nav-toggle {
  display: none;
  border: 0;
  width: 46px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(120deg, #2fb877 0%, #1b9e63 45%, #17844f 100%);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
}
.mobile-nav-toggle span::before,
.mobile-nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.mobile-nav-toggle span::before { top: -6px; }
.mobile-nav-toggle span::after { top: 6px; }
.mobile-submenu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #9aa7a0;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 14px;
}
.mobile-submenu {
  display: none;
  grid-column: 1 / -1;
  background: #fff;
  border-top: 1px dashed #d9e2dc;
  padding: 4px 0 8px;
}
.mobile-submenu a {
  display: block;
  padding: 11px 16px 11px 26px;
  color: #214336;
  font-weight: 500;
  font-size: .98rem;
  border-bottom: 1px dashed #e2e9e4;
}
.mobile-submenu a:last-child { border-bottom: 0; }
.mobile-submenu a::before {
  content: "›";
  color: #94a79c;
  margin-right: 8px;
}
.search-wrap { position: relative; width: min(320px, 28vw); }
.search-wrap input {
  width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px;
}
.search-wrap input:focus,
.search-wrap input:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27, 125, 58, 0.22);
}
.search-results {
  position: absolute; width: 100%; top: calc(100% + 8px); left: 0; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: none;
  max-height: 320px; overflow: auto;
}
.search-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; padding: 10px; border-bottom: 1px solid #eef4f0; align-items: center; }
.search-item:last-child { border-bottom: 0; }
.search-item small { color: var(--muted); display: block; }
.search-item strong { color: var(--red-dark); }

.cart-btn {
  position: relative; border: 1px solid var(--line); width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; cursor: pointer;
}
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: .72rem; display: grid; place-items: center; padding: 0 5px;
}

.hero-stack { position: relative; overflow: clip; }
.hero-part {
  min-height: clamp(320px, 62vh, 680px);
  position: relative; background-size: cover; background-position: center;
  display: grid; place-items: end start;
}
.hero-click {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 2;
}
.hero-part.is-collapsed {
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden;
}
.hero-overlay {
  width: 100%; padding: 40px 0; background: linear-gradient(180deg, rgba(7,18,10,0) 0%, rgba(7,18,10,.7) 100%);
}
.hero-copy { color: #fff; }
.hero-copy h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
.hero-copy p { margin: 0 0 16px; max-width: 60ch; }
.cta { background: linear-gradient(120deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(17, 81, 39, 0.25); }
.cta:hover { filter: brightness(1.05); }

.main-section {
  padding: 42px 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.category-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px;
}
.category-card {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff;
  transition: transform .24s ease, box-shadow .24s ease;
  display: flex;
  flex-direction: column;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e0b9bc; }
.category-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  flex: 0 0 auto;
}
.category-card h3 { margin: 12px; font-size: 1rem; }

.product-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.product-card {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff;
  position: relative;
}
.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}
.card-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
}
.badge-new { background: var(--green-dark); }
.badge-sale { background: var(--red); }
.badge-limited { background: linear-gradient(120deg, #8a6d1f 0%, #c29c3d 100%); color: #fff; }
.badge-occasion { background: linear-gradient(120deg, #0e5d2e 0%, #c42026 100%); color: #fff; }
.badge-out { background: #616a66; }
.product-card.is-limited {
  border-color: #d3b467;
  box-shadow: 0 0 0 1px rgba(138, 109, 31, 0.25);
}
.product-card.is-occasional {
  border-color: #9ec9ad;
  box-shadow: 0 0 0 1px rgba(27, 125, 58, 0.2);
}
.product-card img { aspect-ratio: 1 / 1; object-fit: cover; }
.product-body { padding: 12px; }
.product-body h3 { margin: 0 0 8px; font-size: 1rem; min-height: 2.7em; }
.producer-logo-wrap { margin: 0 0 8px; }
.producer-logo {
  height: 24px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: inline-block;
}
.product-body p { margin: 0 0 10px; color: var(--muted); font-size: .92rem; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price-stack { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 800; color: var(--red-dark); }
.price-old { color: var(--muted); font-weight: 600; text-decoration: line-through; font-size: .9em; }
.btn { border: 0; border-radius: 10px; padding: 9px 12px; font-weight: 700; cursor: pointer; }
.btn-primary { background: linear-gradient(120deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { border: 1px solid var(--line); background: #fff; }

.quick-menu {
  position: absolute;
  right: 10px;
  left: auto;
  top: 10px;
  z-index: 3;
  display: inline-flex;
  justify-content: flex-end;
  padding: 0;
  background: transparent;
  border: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.product-card:hover .quick-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.quick-menu .quick-icon-btn {
  pointer-events: auto;
}
.quick-menu .btn {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.quick-menu a {
  display: none;
}
.quick-icon-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background:
    conic-gradient(
      from 210deg,
      var(--green) 0 36%,
      #ffffff 36% 68%,
      var(--red) 68% 100%
    );
  box-shadow: 0 10px 22px rgba(10, 30, 18, 0.28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.quick-icon-btn:hover,
.quick-icon-btn:focus-visible {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 14px 26px rgba(10, 30, 18, 0.34);
  filter: saturate(1.05);
}
.quick-icon-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.quick-icon-plus {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 0;
  position: relative;
  font-size: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}
.quick-icon-plus::before,
.quick-icon-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
}
.quick-icon-plus::before {
  width: 16px;
  height: 16px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: transparent;
  transform: translate(-62%, -62%);
}
.quick-icon-plus::after {
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
  transform: translate(5px, 6px) rotate(45deg);
  transform-origin: left center;
}

.footer {
  margin-top: 46px; border-top: 2px solid var(--red); background: linear-gradient(180deg, #f8fcf9 0%, #ffffff 100%);
}
.footer-grid {
  display: grid; gap: 24px; padding: 32px 0; grid-template-columns: 1.4fr 1fr 1fr;
}
.footer h4 { margin: 0 0 10px; }
.footer p, .footer li { color: var(--muted); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.socials { display: flex; gap: 8px; }
.socials a {
  border: 1px solid var(--line);
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}
.socials a::before {
  content: "f";
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  font-family: Arial, sans-serif;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.drawer {
  position: fixed; top: 0; right: 0; width: min(420px, 96vw); height: 100vh; background: #fff;
  border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .28s ease;
  z-index: 200; display: grid; grid-template-rows: auto 1fr auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head, .drawer-foot { padding: 14px; }
.drawer-head { border-bottom: 1px solid var(--line); }
.drawer-foot {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  background: #fff;
}
.drawer-foot > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}
.drawer-foot strong {
  color: var(--red-dark);
}
.drawer-foot .btn {
  display: block;
  width: 100%;
  text-align: center;
}
.cart-items { padding: 12px; overflow: auto; display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }

.layout-shop { display: grid; grid-template-columns: 270px 1fr; gap: 20px; align-items: start; }
.filters {
  border: 1px solid #cfe3d5;
  border-radius: 16px;
  padding: 16px;
  position: sticky;
  top: 92px;
  background: linear-gradient(160deg, #ffffff 0%, #edf7f1 100%);
  box-shadow: 0 12px 28px rgba(23, 61, 34, 0.08);
  border-top: 3px solid var(--red);
}
.filters h3 {
  margin: 0 0 12px;
  font-size: 1.02rem;
  color: var(--green-dark);
}
.filter-group { margin-bottom: 12px; }
.filter-group label {
  display: block;
  margin-bottom: 6px;
  font-size: .83rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #3a5a45;
  font-weight: 700;
}
.filter-group select {
  width: 100%;
  border: 1px solid #bfd6c6;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.filter-group select:hover { border-color: #9fbea9; }
.filter-group select:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 122, 61, 0.18);
  transform: translateY(-1px);
}

.product-page { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; }
.gallery-main {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #fff;
}
.gallery-main img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: zoom-in;
  transform-origin: center center;
  transition: transform .18s ease-out;
  will-change: transform;
}
.gallery-main.is-zoomed img {
  transform: scale(1.85);
}
.gallery-thumbs { margin-top: 10px; display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.gallery-thumbs button { border: 1px solid var(--line); border-radius: 8px; padding: 0; overflow: hidden; background: #fff; }
.gallery-thumbs img { aspect-ratio: 1 / 1; object-fit: cover; }
.size-list { display: flex; flex-wrap: wrap; gap: 8px; }
.size-pill { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.size-pill.active { background: var(--green); color: #fff; border-color: var(--green); }
.size-pill:disabled { opacity: .95; cursor: not-allowed; }
.size-pill.sold-out:disabled {
  background: #eceeed;
  border-color: #c9d0cc;
  color: #6a7470;
  text-decoration: line-through;
}
.stock-ok { color: var(--green-dark); }
.stock-out { color: var(--danger); }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { border: 0; background: #fff; width: 36px; height: 36px; cursor: pointer; }
.qty input { width: 44px; text-align: center; border: 0; }
.tabs { margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tab-head { display: flex; }
.tab-head button { flex: 1; padding: 10px; border: 0; background: #f5faf7; cursor: pointer; }
.tab-head button.active { background: #fff; font-weight: 700; color: var(--red-dark); }
.tab-panel { display: none; padding: 14px; }
.tab-panel.active { display: block; }

.modal, .lightbox {
  position: fixed; inset: 0; background: rgba(8,17,11,.65); z-index: 250;
  display: none; place-items: center; padding: 24px;
}
.modal.open, .lightbox.open { display: grid; }
.modal-box, .lightbox-box { background: #fff; border-radius: 14px; width: min(980px, 97vw); max-height: 92vh; overflow: auto; }
.modal-body { padding: 14px; }
.lightbox-box {
  position: relative;
  overflow: hidden;
  padding: 64px 56px 20px;
}
.lightbox-box img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: calc(92vh - 96px);
  object-fit: contain;
  margin: 0 auto;
  border-radius: 10px;
}
.lightbox-box.is-panoramic {
  overflow: hidden;
}
.lightbox-box.is-panoramic img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 620px);
  object-fit: contain;
}
.lightbox-close { position: absolute; top: 12px; left: 12px; z-index: 4; }
.lightbox-nav {
  position: absolute;
  top: calc(50% + 18px);
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.92);
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: .93rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px;
}
.req { color: var(--red); font-weight: 700; }

.account-layout {
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 16px;
}
.account-card {
  border: 1px solid #cfe3d5;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}
.account-card h3 {
  margin: 0 0 12px;
}
.account-subtitle {
  margin: 8px 0 4px;
  padding-left: 10px;
  border-left: 4px solid #35b26b;
  font-size: 1.05rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.3fr .8fr;
  gap: 20px;
  align-items: start;
}
.checkout-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.checkout-steps li {
  text-align: center;
  color: #8a938d;
  font-size: .9rem;
  position: relative;
  padding-top: 42px;
}
.checkout-steps li::before {
  content: "✓";
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #b5bbb7;
  display: grid;
  place-items: center;
  color: #b5bbb7;
  font-weight: 800;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.checkout-steps li.done,
.checkout-steps li.active {
  color: var(--text);
}
.checkout-steps li.done::before,
.checkout-steps li.active::before {
  border-color: #4c5350;
  color: #4c5350;
}
.checkout-form {
  display: grid;
  gap: 14px;
}
.checkout-panel {
  border: 1px solid #cfe3d5;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}
.checkout-panel h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}
.checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.checkout-fields .full {
  grid-column: 1 / -1;
}
.checkout-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.checkout-summary {
  border: 1px solid #cfe3d5;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  position: sticky;
  top: 92px;
}
.checkout-summary h2 {
  margin: 0 0 10px;
}
.checkout-confirm-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.checkout-confirm-grid h3 {
  margin: 0 0 8px;
}
.checkout-confirm-grid p {
  margin: 0 0 4px;
}
#checkoutSummary {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.payment-options {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfe3d5;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
.payment-option:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(27, 125, 58, 0.12);
}

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 2px solid var(--red); padding: 8px; text-align: left; font-size: .94rem; }

.notice { padding: 10px; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); margin: 10px 0; }
.store-notice-bar {
  background: #8b1118;
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 9px 12px;
  border-bottom: 2px solid #5f0a0f;
}
.hidden { display: none !important; }

.orders-report-list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.orders-report-list li {
  margin: 6px 0;
  display: grid;
  grid-template-columns: 120px 1.2fr 170px 110px 1.4fr 1.5fr 1.4fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #dbe8df;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.orders-report-list li span {
  display: block;
  margin-right: 0;
  font-size: .92rem;
}

@media (max-width: 1080px) {
  .orders-report-list li {
    grid-template-columns: 1fr;
  }
}

.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1200;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  font-size: .92rem;
}

.order-history-item {
  border: 1px solid #cfe3d5;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  list-style: none;
  background: #fff;
}

.order-history-highlight {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(34, 138, 76, 0.2);
}

.order-history-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.order-status {
  font-weight: 700;
  color: #7b6000;
}

.order-items-list {
  margin: 6px 0 10px 18px;
}

.order-items-empty {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: .92rem;
}

@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

.to-top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  z-index: 240;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.94);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  background: conic-gradient(from 215deg, var(--green) 0 38%, #fff 38% 70%, var(--red) 70% 100%);
  box-shadow: 0 10px 22px rgba(10, 30, 18, 0.32);
}
.to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.to-top-btn:hover,
.to-top-btn:focus-visible {
  transform: translateY(-1px) scale(1.04);
}
.to-top-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.to-top-btn .to-top-core {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
}
.to-top-btn .to-top-core::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 14px;
  height: 14px;
  border-top: 4px solid #fff;
  border-left: 4px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

@media (max-width: 1080px) {
  .main-nav ul { gap: 12px; }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 1024px) {
  .container { width: min(1200px, 94vw); }
  .site-header { backdrop-filter: none; }
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 66px;
  }
  .logo {
    flex: 1 1 auto;
    min-width: 0;
  }
  .mobile-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .header-tools {
    margin-left: 0;
    flex: 0 0 100%;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .logo { font-size: 1rem; gap: 8px; }
  .logo-mark { width: 34px; height: 34px; }
  .main-nav {
    display: none;
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    margin-inline: 0;
    margin-left: 0;
    overflow: hidden;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .site-header.mobile-nav-open .main-nav {
    display: block;
  }
  .main-nav ul {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    background: #fff;
    border-top: 4px solid #2fb877;
    border-bottom: 1px solid #e6ebe8;
  }
  .main-nav li {
    display: block;
    border-bottom: 1px dashed #d9e2dc;
  }
  .main-nav li.dropdown {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
  }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 13px 16px;
    font-size: 1.02rem;
    text-shadow: none;
    color: var(--green-dark) !important;
  }
  .mobile-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .site-header.mobile-nav-open .main-nav li.dropdown.mobile-expanded > .mobile-submenu {
    display: block;
  }
  .site-header.mobile-nav-open .main-nav li.dropdown.mobile-expanded > .mobile-submenu-toggle {
    transform: rotate(90deg);
    color: #2b8a58;
  }
  .site-header.mobile-nav-open .main-nav li.dropdown > .dropdown-panel {
    display: none !important;
  }
  .main-nav > ul > li > a:hover,
  .main-nav > ul > li > a:focus-visible {
    background: #f3faf6;
    box-shadow: none;
    color: #145f38 !important;
  }
  .dropdown::after { display: none; }
  .dropdown-panel,
  .dropdown:hover .dropdown-panel,
  .dropdown:focus-within .dropdown-panel {
    display: none !important;
  }
  .search-wrap {
    display: block;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }
  .search-wrap input { padding: 9px 12px; }
  .hero-part {
    min-height: clamp(180px, 34vw, 280px);
    background-size: cover;
    background-position: center 22% !important;
  }
  .hero-copy p { font-size: .95rem; }
  .main-section { padding: 28px 0; }
  .layout-shop, .product-page { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 14px;
  }
  .checkout-summary { position: static; }
  .checkout-fields { grid-template-columns: 1fr; }
  .checkout-confirm-grid { grid-template-columns: 1fr; }
  .filters { position: static; }
  .drawer { width: 100vw; max-width: 100vw; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-card img { height: 165px; }
  .product-body h3 { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { position: sticky; top: 0; }
  .header-inner { min-height: 60px; }
  .logo { font-size: .92rem; gap: 6px; }
  .logo-mark { width: 30px; height: 30px; }
  .header-tools { margin-right: 0; gap: 6px; }
  .main-nav a {
    padding: 12px 14px;
    font-size: .98rem;
  }
  .search-wrap input { font-size: .95rem; }
  .cart-btn {
    width: 40px;
    height: 40px;
  }
  .hero-overlay { padding: 18px 0; }
  .hero-part {
    min-height: 130px;
    height: clamp(130px, 34vw, 180px);
    background-size: cover;
    background-position: center 18% !important;
  }
  .hero-copy h1 { font-size: 1.55rem; }
  .hero-copy p { font-size: .9rem; margin-bottom: 12px; }
  .cta { width: 100%; text-align: center; }
  .section-head { align-items: start; flex-direction: column; gap: 4px; }
  .section-title { font-size: 1.35rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .category-card img { height: 170px; }
  .product-card img { aspect-ratio: 1 / 1; }
  .product-body { padding: 10px; }
  .product-body h3 { font-size: .95rem; margin-bottom: 6px; }
  .card-badges {
    top: 6px;
    left: 6px;
    gap: 4px;
    max-width: calc(100% - 12px);
  }
  .card-badge {
    padding: 3px 7px;
    font-size: .67rem;
  }
  .card-badges .card-badge:nth-child(n+3) {
    display: none;
  }
  .product-body p { font-size: .86rem; margin-bottom: 8px; }
  .price { font-size: 1.08rem; }
  .btn { padding: 8px 10px; }
  .gallery-thumbs { grid-template-columns: repeat(2,1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .drawer-head, .drawer-foot { padding: 12px; }
  .lightbox-box {
    width: 98vw;
    padding: 54px 42px 14px;
  }
  .lightbox-box img {
    max-height: calc(90vh - 80px);
  }
  .lightbox-box.is-panoramic img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(58vh, 360px);
  }
  .lightbox-nav {
    width: 34px;
    height: 34px;
    top: calc(50% + 12px);
  }
  .lightbox-close { top: 8px; left: 8px; }
  .cart-items { padding: 10px; }
  .cart-item { grid-template-columns: 58px 1fr; }
  .cart-item img { width: 58px; height: 58px; }
  .qty { width: 100%; max-width: 170px; justify-content: space-between; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
  .main-section .btn, .form-grid .btn { width: 100%; }
  .quick-menu { display: none; }
  .quick-icon-btn {
    width: 46px;
    height: 46px;
  }
  .quick-icon-plus {
    width: 34px;
    height: 34px;
  }
  .to-top-btn {
    width: 58px;
    height: 58px;
    right: 12px;
    bottom: 12px;
  }
  .to-top-btn .to-top-core {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 390px) {
  .product-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) {
  .site-header,
  .drawer,
  .product-card,
  .category-card {
    box-shadow: none !important;
  }
  .category-card:hover,
  .product-card:hover {
    transform: none;
    box-shadow: none;
  }
  .quick-menu { display: none; }
}


