:root {
  --honey: #F0B429;
  --amber: #E08700;
  --forest: #1F5C45;
  --cream: #FFFCF5;
  --sky: #7EC8B8;
  --ink: #2A2418;
  --card: #ffffff;
  --shadow: 0 12px 28px rgba(42, 36, 24, .08);
  --radius: 20px;
  --font: "Nunito", system-ui, sans-serif;
  --display: "Fredoka", "Nunito", sans-serif;
  --page: #FFFEFA;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  min-height: 100vh;
  position: relative;
}

/* Соты только по углам / краям, не сплошным фоном */
.hive-bg { display: none; }
.comb-deco {
  pointer-events: none;
  position: fixed;
  z-index: 0;
  opacity: .55;
  width: min(280px, 42vw);
  height: auto;
}
.comb-deco--tl { top: -20px; left: -30px; }
.comb-deco--tr { top: 80px; right: -40px; transform: rotate(18deg); }
.comb-deco--bl { bottom: 40px; left: -50px; transform: rotate(-12deg); opacity: .4; }
.comb-deco--br { bottom: -10px; right: -20px; transform: rotate(8deg); opacity: .45; }
.comb-deco svg { width: 100%; height: auto; display: block; }

.top, .breadcrumbs-bar, .main, .foot, .bee-hero { position: relative; z-index: 1; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255,254,250,.9);
  border-bottom: 1px solid rgba(240,180,41,.28);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); }
.brand-name { font-family: var(--display); font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; }
.bee { font-size: 1.6rem; }
.nav { display: flex; flex-wrap: wrap; gap: 14px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.nav a:hover { color: var(--amber); }
.cart-link span { background: var(--honey); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.main { padding: 12px clamp(16px, 4vw, 48px) 64px; }

.breadcrumbs-bar { padding: 10px clamp(16px, 4vw, 48px) 0; }
.breadcrumbs {
  background: #fff;
  border: 1px solid rgba(240,180,41,.35);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 6px 16px rgba(42,36,24,.06);
  display: inline-block;
  max-width: 100%;
}
.breadcrumbs-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;
  font-size: .92rem; font-weight: 700;
}
.breadcrumbs-item { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.breadcrumbs-sep { color: var(--amber); font-weight: 800; margin: 0 2px; }
.breadcrumbs a { color: var(--forest); text-decoration: none; }
.breadcrumbs a:hover { color: var(--amber); text-decoration: underline; }
.breadcrumbs-current {
  color: #6a5c45; font-weight: 800;
  max-width: min(48vw, 320px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.foot {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px clamp(16px, 4vw, 48px);
  border-top: 1px solid rgba(31,92,69,.12);
  background: #fff;
}
.foot-links { display: flex; gap: 16px; }
.foot a { color: var(--forest); font-weight: 700; }

.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center;
  min-height: min(68vh, 560px); margin: 8px 0 36px;
}
.hero-copy h1 {
  font-family: var(--display); font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.05; margin: 8px 0 14px; color: var(--forest);
}
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--amber); font-weight: 800; margin: 0; }
.lead { font-size: 1.12rem; max-width: 36rem; color: #4a4030; margin: 0; }
.hero-art { display: flex; justify-content: center; align-items: center; }
.hive-svg { width: min(100%, 360px); filter: drop-shadow(0 14px 24px rgba(224,135,0,.2)); }

/* Лёгкие карточки: белый фон без тяжёлой «сотовой» заливки */
.panel-frame {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(240, 180, 41, .28);
}
.panel-frame::before,
.panel-frame::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid rgba(240,180,41,.65);
  pointer-events: none;
}
.panel-frame::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.panel-frame::after { right: 8px; bottom: 8px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }
.panel-frame--art {
  padding: 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.panel-frame--art::before, .panel-frame--art::after { display: none; }
.panel-frame--tight { padding: 0; overflow: hidden; background: transparent; border: 0; box-shadow: none; }
.panel-frame--tight::before, .panel-frame--tight::after { display: none; }
.panel-frame--soft {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.panel-frame--soft::before, .panel-frame--soft::after { display: none; }
.panel-frame h2, .panel-frame h3 { font-family: var(--display); color: var(--forest); margin: 0 0 10px; }
.panel-frame p { margin: 0; color: #4a4030; line-height: 1.55; }
.section-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.section-panel::before, .section-panel::after { display: none; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 800;
  text-decoration: none; cursor: pointer; font-family: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-honey { background: linear-gradient(135deg, var(--honey), var(--amber)); color: #2a1800; box-shadow: var(--shadow); }
.btn-wb { background: #cb11ab; color: #fff; }
.btn-ghost { background: #fff; border: 1.5px solid var(--forest); color: var(--forest); }
.btn-soft { background: #e8f7f1; color: var(--forest); }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }

.section { margin: 36px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section h1, .section h2 { font-family: var(--display); color: var(--forest); }
.cat-grid, .product-grid { display: grid; gap: 18px; }
.cat-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.product-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cat-card {
  background: #fff; border-radius: 16px; padding: 16px; text-decoration: none; color: inherit;
  display: flex; gap: 10px; align-items: center; font-weight: 800;
  border: 1px solid rgba(240,180,41,.35);
  box-shadow: 0 8px 20px rgba(42,36,24,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cat-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 28px rgba(224,135,0,.18);
}
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 12px 26px rgba(42,36,24,.09);
  border: 1px solid rgba(31,92,69,.08); display: flex; flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(31,92,69,.16);
}
.pic-wrap, .gallery-wrap { position: relative; background: transparent; }
.product-card .pic {
  aspect-ratio: 1; display: block; overflow: hidden; position: relative;
  background: linear-gradient(145deg, rgba(255,231,168,.22), rgba(126,200,184,.16));
}
.product-card .pic::before { content: ""; display: block; padding-top: 100%; }
.product-card .carousel-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  opacity: 0; transition: opacity .9s ease, transform 1.05s ease;
  transform: scale(1.02);
  background: transparent;
  pointer-events: none;
}
.product-card .carousel-slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.product-card:hover .carousel-slide.is-active { transform: scale(1.04); }
.product-card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.product-card h3 a { color: inherit; text-decoration: none; }
.price { font-weight: 800; color: var(--amber); font-size: 1.15rem; }
.price.big { font-size: 1.8rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.actions .btn { padding: 8px 12px; font-size: .9rem; }

.layout-2 { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.filters { display: flex; flex-direction: column; gap: 8px; }
.filters a { text-decoration: none; color: var(--ink); padding: 10px 12px; border-radius: 12px; font-weight: 700; background: #fff; border: 1px solid transparent; }
.filters a.on, .filters a:hover { background: #fff8e8; color: var(--forest); border-color: rgba(240,180,41,.35); }

.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; margin-top: 18px; }
.gallery-wrap {
  border-radius: 24px; padding: 0; background: transparent;
  box-shadow: 0 16px 34px rgba(42,36,24,.12);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-wrap:hover { transform: translateY(-4px); box-shadow: 0 22px 42px rgba(224,135,0,.18); }
.gallery-stage {
  position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,231,168,.28), rgba(126,200,184,.18));
}
.gallery-stage .carousel-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: transparent;
  opacity: 0; transition: opacity 1s ease, transform 1.15s ease;
  transform: scale(1.03);
}
.gallery-stage .carousel-slide.is-active { opacity: 1; transform: scale(1); }
.prose { line-height: 1.55; color: #4a4030; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--forest); font-size: 22px; font-weight: 800;
  cursor: pointer; box-shadow: 0 8px 18px rgba(0,0,0,.12); z-index: 3;
  transition: transform .2s ease, background .2s ease;
}
.carousel-btn:hover { transform: translateY(-50%) scale(1.08); background: #fff; }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 6px; z-index: 3;
}
.carousel-dots .dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(42,36,24,.25); cursor: pointer;
}
.carousel-dots .dot.is-active { background: var(--amber); transform: scale(1.2); }
.carousel-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding: 0 4px 4px; }
.carousel-thumbs .thumb {
  width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid transparent;
  padding: 0; background: #fff; cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,.1);
  transition: transform .2s ease, border-color .2s ease;
}
.carousel-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; background: transparent; }
.carousel-thumbs .thumb:hover { transform: translateY(-2px); }
.carousel-thumbs .thumb.is-active { border-color: var(--honey); }

.bee-hero {
  position: fixed; z-index: 60; left: 18%; top: 28%;
  width: 96px; height: 76px; pointer-events: auto;
  cursor: grab;
  filter: drop-shadow(0 8px 14px rgba(42,36,24,.32));
  will-change: left, top, transform;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.bee-hero.is-paused {
  cursor: grab;
  filter: drop-shadow(0 6px 10px rgba(42,36,24,.22)) grayscale(.15);
}
.bee-hero.is-dragging {
  cursor: grabbing;
  filter: drop-shadow(0 14px 20px rgba(42,36,24,.35));
  z-index: 80;
}
.bee-hero svg { display: block; overflow: visible; }
.bee-hero .wing-l,
.bee-hero .wing-r {
  transform-box: fill-box;
  transform-origin: 70% 90%;
  animation: flap .12s ease-in-out infinite alternate;
}
.bee-hero .wing-r {
  transform-origin: 30% 90%;
  animation-delay: .04s;
}
.bee-hero.is-landed .wing-l,
.bee-hero.is-landed .wing-r {
  animation-duration: .55s;
  opacity: .92;
}
.bee-hero.is-paused .wing-l,
.bee-hero.is-paused .wing-r,
.bee-hero.is-calm .wing-l,
.bee-hero.is-calm .wing-r {
  animation: none;
}
.bee-hero.is-idle {
  animation: bee-float 4.5s ease-in-out infinite;
}
@keyframes flap {
  from { transform: rotate(-28deg) scaleY(.72); }
  to { transform: rotate(22deg) scaleY(1.08); }
}
@keyframes bee-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-14px); }
}

.narrow { max-width: 720px; }
.center { text-align: center; }
.stack { display: grid; gap: 12px; }
.stack label, .checkout label { display: grid; gap: 6px; font-weight: 700; }
input, select, textarea {
  border: 1.5px solid rgba(31,92,69,.18); border-radius: 12px; padding: 10px 12px; font: inherit; background: #fff;
}
.admin-box .panel, .admin-box .table { margin-top: 24px; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 12px; margin: 18px 0 28px; }
.stat { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); display: grid; }
.stat b { font-size: 1.4rem; color: var(--forest); }
.table .row { display: grid; grid-template-columns: 1.5fr .5fr .3fr .5fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.muted { color: #7a6e5a; font-size: .9rem; }
.error { color: #9b1c1c; font-weight: 700; }
.ok { color: var(--forest); font-weight: 700; }
.hint { color: #7a6e5a; font-size: .92rem; }
.cart-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.check { display: flex !important; align-items: center; gap: 8px; font-weight: 700; }

@media (max-width: 900px) {
  .hero, .product-page, .layout-2 { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .top { flex-direction: column; align-items: flex-start; }
  .comb-deco--tr, .comb-deco--bl { opacity: .28; width: min(180px, 48vw); }
}
@media (prefers-reduced-motion: reduce) {
  .bee-hero, .product-card, .cat-card, .gallery-wrap, .btn { transition: none !important; }
  .bee-hero .wing-l, .bee-hero .wing-r { animation: none; }
}
