/* ============================================
   MILLE CONTAINER — Main Stylesheet
   Design: Professional / Ecological / B2B
   Palette: Forest Green + White + Warm Off-White
   Fonts: Cormorant Garamond (display) + DM Sans (body)
============================================ */

/* Fonts loaded dynamically via customizer */

/* ── Variables ─────────────────────────── */
:root {
  --green-900: #0F3D22;
  --green-800: #1A5C34;
  --green-700: #1D6B3E;
  --green-600: #237A47;
  --green-500: #2E9B5C;
  --green-200: #A8D5B5;
  --green-100: #D6EDE0;
  --green-50:  #F0F8F3;

  --white:     #FFFFFF;
  --off-white: #F8FAF8;
  --grey-100:  #EDEEED;
  --grey-300:  #C2C9C4;
  --grey-500:  #7A8A7E;
  --grey-700:  #3D4D42;
  --text:      #1A2A1E;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  4px;
  --radius-md:  10px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 8px rgba(15, 61, 34, 0.08);
  --shadow-md:  0 8px 32px rgba(15, 61, 34, 0.12);
  --shadow-lg:  0 20px 60px rgba(15, 61, 34, 0.16);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1440px;
  --section-pad: 100px 0;
  --section-pad-sm: 60px 0;
}

/* ── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ────────────────────────── */
h1, h2 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h3, h4, h5, h6 { font-family: var(--font-body); }
h4 { font-size: 1.2rem; }
p  { font-size: 1rem; line-height: 1.75; color: var(--grey-700); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-600);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--green-500);
  border-radius: 2px;
}

/* ── Layout ─────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green-700);
  color: var(--white);
  border-color: var(--green-700);
}
.btn-primary:hover {
  background: var(--green-800);
  border-color: var(--green-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-700);
}
.btn-outline:hover {
  background: var(--green-700);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--green-800);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
#site-header.scrolled {
  border-bottom-color: var(--grey-100);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.site-logo img { height: 62px; width: auto; }
.site-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--green-800);
  letter-spacing: -0.02em;
}
.site-logo .logo-text span { color: var(--green-500); }

/* Navigation */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-nav a {
  padding: 6px 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-700);
  transition: color 0.2s;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--green-700);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--green-700); }
.main-nav a:hover::after,
.main-nav a.current-menu-item::after { width: 100%; }
.main-nav a.current-menu-item { color: var(--green-700); }
.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-phone {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey-700);
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-phone svg { color: var(--green-600); }

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px 20px;
    border-bottom: 1px solid var(--grey-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: var(--transition);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { display: block; padding: 12px 16px; }
  .header-phone { display: none; }
}

/* ═══════════════════════════════════════════
   HERO BLOCK
═══════════════════════════════════════════ */
.block-hero {
  position: relative;
  overflow: hidden;
  background: var(--off-white);
}
.block-hero > .container {
  max-width: 100%;
  padding: 0;
  width: 100%;
}
.block-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 75% 40%, rgba(46,155,92,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 15% 85%, rgba(29,107,62,0.07) 0%, transparent 55%),
    linear-gradient(150deg, #f8faf8 0%, #eef7f2 60%, #e4f2ea 100%);
  pointer-events: none;
  z-index: 0;
}
/* Коли є фонове зображення — overlay для читабельності тексту */
.block-hero[style*="background-image"]::before {
  background: rgba(255,255,255,0.82);
}
.block-hero::after { display: none; }
/* Packaging decorations - use CSS vars so they follow palette */
.hero-deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-deco svg {
  position: absolute;
  fill: none;
  stroke: var(--green-700);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* 15 іконок по всьому hero — хаотично зліва і зправа */
.hero-deco svg:nth-child(1)  { width: 160px; height: 160px; top: 4%;    right: 3%;   opacity: 0.11; transform: rotate(12deg); }
.hero-deco svg:nth-child(2)  { width: 85px;  height: 85px;  top: 58%;   right: 1%;   opacity: 0.09; transform: rotate(-8deg); }
.hero-deco svg:nth-child(3)  { width: 65px;  height: 65px;  bottom: 8%; right: 20%;  opacity: 0.10; transform: rotate(22deg); }
.hero-deco svg:nth-child(4)  { width: 105px; height: 105px; top: 10%;   left: 53%;   opacity: 0.09; transform: rotate(-5deg); }
.hero-deco svg:nth-child(5)  { width: 52px;  height: 52px;  top: 70%;   left: 30%;   opacity: 0.11; transform: rotate(18deg); }
.hero-deco svg:nth-child(6)  { width: 90px;  height: 90px;  top: 10%;   left: 3%;    opacity: 0.10; transform: rotate(-18deg); }
.hero-deco svg:nth-child(7)  { width: 48px;  height: 48px;  bottom: 22%; left: 13%;  opacity: 0.11; transform: rotate(32deg); }
.hero-deco svg:nth-child(8)  { width: 72px;  height: 72px;  top: 42%;   left: 1%;    opacity: 0.09; transform: rotate(-22deg); }
.hero-deco svg:nth-child(9)  { width: 115px; height: 115px; bottom: 4%; right: 8%;   opacity: 0.09; transform: rotate(9deg); }
.hero-deco svg:nth-child(10) { width: 58px;  height: 58px;  top: 28%;   left: 22%;   opacity: 0.10; transform: rotate(-12deg); }
.hero-deco svg:nth-child(11) { width: 78px;  height: 78px;  bottom: 28%; right: 32%; opacity: 0.09; transform: rotate(28deg); }
.hero-deco svg:nth-child(12) { width: 44px;  height: 44px;  top: 82%;   left: 43%;   opacity: 0.10; transform: rotate(-38deg); }
.hero-deco svg:nth-child(13) { width: 95px;  height: 95px;  top: 35%;   right: 15%;  opacity: 0.08; transform: rotate(-15deg); }
.hero-deco svg:nth-child(14) { width: 55px;  height: 55px;  bottom: 35%; left: 48%;  opacity: 0.09; transform: rotate(42deg); }
.hero-deco svg:nth-child(15) { width: 68px;  height: 68px;  top: 18%;   left: 38%;   opacity: 0.08; transform: rotate(-28deg); }
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 44vw;
  min-height: calc(100vh - 68px);
  align-items: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px clamp(32px, 4vw, 80px) 60px clamp(20px, calc((100vw - 1440px) / 2 + 48px), 180px);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-100);
  color: var(--green-800);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
  align-self: flex-start;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero-title {
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  font-weight: 700;
  line-height: 1.06;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  color: var(--green-700);
  display: block;
}
.hero-description {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--grey-500);
  margin-bottom: 40px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--grey-100);
}
.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--green-800);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--grey-500);
  margin-top: 6px;
}
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px 60px 32px;
  gap: 24px;
}
.hero-image-main {
  width: 100%;
  position: relative;
  padding: 0 20px;
}
.hero-image-main img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(15,61,34,0.15));
}
/* Card info - no box styling, integrated look */
.hero-image-card {
  display: flex;
  align-items: center;
  gap: 18px;
  /* Іконка починається з центру логотипу (50% від лівого краю visual) */
  align-self: flex-start;
  margin-left: calc(50% - 32px);
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}
.hero-image-card-icon {
  width: 64px;
  height: 64px;
  background: var(--green-700);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.hero-image-card-text strong {
  display: block;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  font-family: var(--font-display);
}
.hero-image-card-text span {
  font-size: 1rem;
  color: var(--grey-500);
}


@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .block-hero::after { display: none; }
  .hero-content { padding: 100px 24px 40px; text-align: left; }
  .hero-visual { padding: 40px 24px 60px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-image-card { align-self: flex-start; }
}

/* ═══════════════════════════════════════════
   ABOUT BLOCK
═══════════════════════════════════════════ */
.block-about {
  padding: var(--section-pad);
  background: var(--white);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}
.about-image-main img { width: 100%; height: 100%; object-fit: cover; }
.about-image-accent {
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  bottom: -30px;
  right: -30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--white);
}
.about-image-accent img { width: 100%; height: 100%; object-fit: cover; }
.about-floater {
  position: absolute;
  top: 40px;
  right: -20px;
  background: var(--green-800);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-floater-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}
.about-floater-text {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 4px;
}
.about-content { padding-right: 20px; }
.about-features {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.about-feature-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  margin-top: 2px;
}
.about-feature-icon svg { width: 20px; height: 20px; }
.about-feature-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.about-feature p { font-size: 0.875rem; margin: 0; }

@media (max-width: 960px) {
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-content { padding-right: 0; }
  .about-image-main { aspect-ratio: 4/3; }
}

/* ═══════════════════════════════════════════
   SERVICES BLOCK
═══════════════════════════════════════════ */
.block-services {
  padding: var(--section-pad);
  background: var(--off-white);
}
.services-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}
.services-header .section-label { justify-content: center; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--grey-100);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--green-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  border-color: var(--green-200);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px;
  height: 60px;
  background: var(--green-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  margin-bottom: 24px;
  transition: var(--transition);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card:hover .service-icon {
  background: var(--green-700);
  color: var(--white);
}
.service-card h3 { margin-bottom: 12px; font-size: 1.25rem; font-weight: 700; }
.service-card p { font-size: 0.92rem; line-height: 1.7; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green-700);
  transition: var(--transition);
}
.service-link:hover { gap: 10px; }
.service-link svg { width: 16px; height: 16px; }

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .services-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
/* ═══════════════════════════════════════════
   CATEGORY CARDS — Full image style
   Фото на весь блок, назва внизу overlay
═══════════════════════════════════════════ */

/* Slider section */
.block-categories {
    padding: var(--section-pad);
    background: var(--white);
    overflow: visible;
}
.categories-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 24px;
    flex-wrap: wrap;
}
.swiper-categories {
    overflow: hidden;
    padding: 12px 8px !important;
    margin: -12px -8px !important;
    clip-path: none;
}

/* ── The card ───────────────────────────── */
.category-card {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--grey-100);
    transition: var(--transition);
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-200);
}

/* Image area — квадрат зверху */
.category-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--off-white);
    overflow: hidden;
    flex-shrink: 0;
}
.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}
.category-card:hover .category-card-image img {
    transform: scale(1.06);
}

/* Placeholder when no image */
.category-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--green-50);
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-card-image-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--green-300);
    opacity: 0.6;
}

.category-card::after { display: none; }
.category-card:hover::after { display: none; }

/* Product count badge — top right */
.category-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--green-700);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    z-index: 2;
}

/* Text block — під картинкою */
.category-card-body {
    padding: 14px 16px;
    border-top: 1px solid var(--grey-100);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.category-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    margin: 0 0 6px;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.category-card-body p {
    font-size: 0.8rem;
    color: var(--grey-700);
    line-height: 1.5;
    margin: 0;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Arrow row — завжди внизу */
.category-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
}
.category-card-count {
    font-size: 0.72rem;
    color: var(--green-700);
    font-weight: 600;
    letter-spacing: 0.03em;
}
.category-card-arrow {
    width: 28px;
    height: 28px;
    background: var(--green-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.category-card-arrow svg {
    width: 12px;
    height: 12px;
    color: var(--white);
}
.category-card:hover .category-card-arrow {
    background: var(--green-600);
    transform: translateX(3px);
}

/* ── Swiper navigation ───────────────────── */
/* Стрілки слайдера категорій */
.swiper-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}
.swiper-btn, .cat-nav-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--green-700);
    border: 2px solid var(--green-700);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}
.swiper-btn:hover, .cat-nav-btn:hover {
    background: var(--green-800);
    border-color: var(--green-800);
    box-shadow: var(--shadow-lg);
    transform: scale(1.08);
}
.swiper-btn.disabled, .swiper-btn.swiper-button-disabled,
.cat-nav-btn.disabled, .cat-nav-btn.swiper-button-disabled {
    opacity: 0.25;
    pointer-events: none;
}
.cat-pagination { display: none; }

.cat-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--grey-200);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}
.cat-nav-btn:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    color: var(--white);
    box-shadow: var(--shadow-md);
}
.cat-nav-btn.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}
.cat-pagination.swiper-pagination {
    position: static !important;
    display: flex;
    gap: 6px;
    align-items: center;
}
.cat-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--grey-300);
    opacity: 1;
    transition: var(--transition);
    margin: 0 !important;
}
.cat-pagination .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background: var(--green-700);
}
   CONTACT FORM BLOCK
═══════════════════════════════════════════ */
.block-contact {
  padding: var(--section-pad);
  background: var(--off-white);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-info { padding-top: 8px; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p {
  font-size: 1rem;
  margin-bottom: 40px;
  line-height: 1.8;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: center;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--green-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
}
.contact-item-icon svg { width: 20px; height: 20px; }
.contact-item-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--green-600);
  margin-bottom: 2px;
  line-height: 1;
}
.contact-item-value {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
}
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-100);
}
.contact-form-wrap h3 {
  font-size: 1.5rem;
  margin-bottom: 28px;
  color: var(--text);
}

/* CF7 form overrides */
.wpcf7-form .form-group { margin-bottom: 20px; }
.wpcf7-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-700);
  margin-bottom: 8px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--grey-100);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--off-white);
  transition: var(--transition);
  outline: none;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(29, 107, 62, 0.08);
}
.wpcf7-form textarea { height: 140px; resize: vertical; }
.wpcf7-form .wpcf7-submit {
  width: 100%;
  padding: 16px 32px;
  background: var(--green-700);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition);
}
.wpcf7-form .wpcf7-submit:hover {
  background: var(--green-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.wpcf7-not-valid-tip { color: #dc2626; font-size: 0.8rem; margin-top: 4px; }
.wpcf7-response-output {
  margin: 16px 0 0 !important;
  border: none !important;
  padding: 12px 16px !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.9rem !important;
}

@media (max-width: 960px) {
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-form-wrap { padding: 32px 24px; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   MAP BLOCK
═══════════════════════════════════════════ */
.block-map {
  padding: 0;
  overflow: hidden;
}
.map-wrap {
  position: relative;
}
.map-embed-wrap {
  height: 480px;
  position: relative;
}
.map-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.map-info-card {
  position: absolute;
  bottom: 32px;
  right: 40px;
  left: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  max-width: 340px;
  z-index: 10;
  border-top: 4px solid var(--green-700);
}
.map-info-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.map-info-card p {
  font-size: 0.95rem;
  color: var(--grey-600);
  margin: 0 0 20px;
  line-height: 1.6;
}
.map-info-card .btn { font-size: 0.9rem; padding: 12px 22px; width: 100%; justify-content: center; }

@media (max-width: 768px) {
  .map-info-card { position: static; margin: 0; border-radius: 0; box-shadow: none; max-width: 100%; border-top: 3px solid var(--green-700); min-width: unset; }
  .map-embed-wrap { height: 320px; }
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
#site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.85);
}
.footer-top {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  display: block;
}
.footer-brand .logo-text span { color: var(--green-500); }
.footer-brand p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 24px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--green-600); color: var(--white); }
.footer-social a svg { width: 16px; height: 16px; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-200);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  transition: var(--transition);
  line-height: 1.5;
}
.footer-col a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 14px;
  line-height: 1.5;
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--green-400); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.footer-bottom a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-bottom a:hover { color: var(--white); }
.footer-legal { display: flex; gap: 24px; }

@media (max-width: 1024px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .footer-top { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   PAGE TEMPLATES
═══════════════════════════════════════════ */
.page-hero {
  padding: calc(76px + 60px) 0 60px;
  background: var(--off-white);
  border-bottom: 1px solid var(--grey-100);
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { font-size: 1.05rem; max-width: 560px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--grey-400);
}
.breadcrumb a {
  color: var(--grey-500);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--green-700); }
.breadcrumb svg { color: var(--grey-300); flex-shrink: 0; }
.breadcrumb-current {
  color: var(--green-700);
  font-weight: 600;
}

/* ── Archive Hero ──────────────────────────── */
.archive-hero {
  padding: calc(88px + 48px) 0 48px;
  background: linear-gradient(135deg, var(--green-50) 0%, #fff 60%);
  border-bottom: 1px solid var(--grey-100);
}
.archive-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
}
.archive-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.1;
  margin: 0 0 12px;
}
.archive-desc {
  font-size: 1.05rem;
  color: var(--grey-500);
  margin: 0;
  max-width: 500px;
}
.archive-count-badge {
  flex-shrink: 0;
  background: var(--green-700);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  text-align: center;
  line-height: 1;
}
.archive-count-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-display);
}
.archive-count-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-top: 4px;
}

/* ── Filter Tabs ───────────────────────────── */
.archive-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--grey-100);
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--grey-200);
  background: var(--white);
  color: var(--grey-600);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}
.filter-btn:hover {
  border-color: var(--green-600);
  color: var(--green-700);
  background: var(--white);
}
.filter-btn.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}
.filter-btn.active .filter-count { opacity: 0.7; }
.filter-count {
  background: rgba(0,0,0,0.08);
  border-radius: 100px;
  padding: 1px 7px;
  font-size: 0.75rem;
}
.filter-btn.active .filter-count { background: rgba(255,255,255,0.2); }

/* ── Products Grid ─────────────────────────── */
.archive-wrap { padding: 60px 0 var(--section-pad); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--grey-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--green-200);
}
.product-card-image-link { display: block; }
.product-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
/* contain без padding — фото заповнює повністю */
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.06); }
.product-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green-700);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
}
.product-card-body {
  padding: 18px 20px 12px;
  flex: 1;
}
.product-cat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-600);
  margin-bottom: 6px;
}
.product-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}
.product-card-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.product-card-title a:hover { color: var(--green-700); }
.product-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--grey-100);
  display: flex;
  justify-content: flex-end;
}
.btn-sm { padding: 9px 18px !important; font-size: 0.85rem !important; }

/* Pagination */
.archive-pagination { margin-top: 56px; text-align: center; }
.archive-pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.archive-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--grey-200); color: var(--grey-600);
  font-size: 0.9rem; text-decoration: none; transition: var(--transition);
}
.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
  background: var(--green-700); border-color: var(--green-700); color: #fff;
}

/* Empty state */
.archive-empty { text-align: center; padding: 80px 0; }
.archive-empty svg { margin: 0 auto 20px; display: block; }
.archive-empty h3 { font-size: 1.4rem; margin-bottom: 10px; }
.archive-empty p { color: var(--grey-500); }

@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .archive-hero-inner { flex-direction: column; align-items: flex-start; }
  .archive-count-badge { align-self: flex-start; }
}

/* ═══════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════ */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }

/* Scroll reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }
[data-reveal-delay="3"] { transition-delay: 0.36s; }
[data-reveal-delay="4"] { transition-delay: 0.48s; }

/* ═══════════════════════════════════════════
   RESPONSIVE GLOBAL
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --section-pad: 64px 0; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
}

/* ─── Swiper category: portrait card sizing ─── */
.swiper-categories .swiper-slide {
    height: auto;
}
.category-card {
    min-height: unset;
}
@media (max-width: 768px) {
    .category-card { min-height: 280px; }
    .category-card-body h3 { font-size: 1.15rem; }
}

/* ═══════════════════════════════════════════
   WP ADMIN BAR — зсув хедера вниз
═══════════════════════════════════════════ */
body.admin-bar #site-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar #site-header {
        top: 46px;
    }
}




/* ═══════════════════════════════════════════
   CONTACT FORM 7
═══════════════════════════════════════════ */

/* CF7 <p> — НЕ ховаємо, просто прибираємо margin */
.contact-form-wrap .wpcf7 p {
    margin: 0;
    padding: 0;
}
/* Прибираємо порожні <br> між полями */
.contact-form-wrap .wpcf7 br {
    display: none;
}

/* Форма — flex колонка */
.contact-form-wrap .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* cf7-row — 2 колонки */
.wpcf7-form .cf7-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.wpcf7-form .cf7-row p {
    margin: 0;
}
/* Span всередині row — прозорий для grid */
.wpcf7-form .cf7-row p .wpcf7-form-control-wrap,
.wpcf7-form .cf7-row .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}
@media (max-width: 560px) {
    .wpcf7-form .cf7-row { grid-template-columns: 1fr; }
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 13px 16px;
    background: #F4F5F6;
    border: 1.5px solid #E2E4E8;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
    outline: none;
    box-sizing: border-box;
    display: block;
}
.wpcf7-form input[type="text"]:hover,
.wpcf7-form input[type="email"]:hover,
.wpcf7-form input[type="tel"]:hover,
.wpcf7-form textarea:hover {
    border-color: #C0C5CC;
    background: #fff;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    border-color: var(--green-600);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29,107,62,0.10);
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #9EA5B0;
    font-size: 0.875rem;
}
.wpcf7-form textarea {
    resize: vertical;
    min-height: 108px;
}

/* Acceptance */
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.82rem;
    color: var(--grey-600);
}
.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    accent-color: var(--green-700);
    cursor: pointer;
    margin: 0;
}
.wpcf7-form .wpcf7-acceptance a {
    color: var(--green-700);
    text-decoration: underline;
    font-weight: 500;
}

/* Submit */
.wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 15px 24px;
    background: var(--green-700);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: var(--transition);
}
.wpcf7-form input[type="submit"]:hover {
    background: var(--green-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(29,107,62,0.25);
}

/* Validation messages */
.wpcf7-not-valid-tip {
    font-size: 0.75rem;
    color: #dc3545;
    margin-top: 3px;
    display: block;
}
.wpcf7-form.sent .wpcf7-response-output {
    background: var(--white);
    color: var(--green-800);
    border: 1px solid var(--green-200) !important;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.88rem;
    margin-top: 8px;
}
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output {
    background: #fff5f5;
    color: #dc3545;
    border: 1px solid #fca5a5 !important;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.88rem;
    margin-top: 8px;
}

/* WP Admin Bar */
body.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar #site-header { top: 46px; }
}

/* ═══════════════════════════════════════════
   SINGLE PRODUCT PAGE
═══════════════════════════════════════════ */
.single-product-breadcrumb {
  padding: calc(88px + 20px) 0 0;
  background: var(--off-white);
}
.single-product-wrap {
  padding: 32px 0 80px;
  background: var(--off-white);
  min-height: 60vh;
}
.single-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Gallery */
.product-gallery { position: sticky; top: 108px; }
.product-gallery-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--grey-100);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-gallery-main .gallery-main-img,
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}
.product-gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 360px;
  background: var(--green-50);
}
.product-gallery-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.product-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--grey-200);
  cursor: pointer;
  transition: border-color 0.2s;
  background: var(--white);
}
.product-thumb:hover { border-color: var(--green-600); }
.product-thumb.active { border-color: var(--green-700); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* Info */
.product-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.product-cat-chip {
  display: inline-block;
  padding: 5px 14px;
  background: var(--green-100);
  color: var(--green-800);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  transition: background 0.2s;
}
.product-cat-chip:hover { background: var(--green-200); }
.product-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 16px;
}
.product-availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--green-50);
  color: var(--green-700);
}
.product-availability.unavailable { background: #fff5f5; color: #dc3545; }
.availability-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-600);
  flex-shrink: 0;
}
.product-availability.unavailable .availability-dot { background: #dc3545; }
.product-description {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--grey-600);
  margin-bottom: 32px;
}
.product-description p { margin: 0 0 12px; }

/* Specs */
.product-specs { margin-bottom: 32px; }
.specs-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-500);
  margin-bottom: 12px;
}
.specs-table {
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.spec-row {
  display: flex;
  border-bottom: 1px solid var(--grey-100);
  font-size: 0.9rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-label {
  width: 45%;
  padding: 12px 16px;
  background: var(--grey-50);
  color: var(--grey-600);
  font-weight: 500;
  flex-shrink: 0;
}
.spec-value {
  padding: 12px 16px;
  color: var(--text);
  font-weight: 500;
}

/* CTA */
.product-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-lg { padding: 16px 28px !important; font-size: 1rem !important; }

/* Related */
.related-products { margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--grey-100); }
.related-title { font-size: 1.6rem; margin-bottom: 32px; }

@media (max-width: 900px) {
  .single-product-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: static; }
}

/* Gallery arrows — в thumb strip, завжди видимі */
.gallery-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}
.gallery-arrow:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}
.gallery-arrow:disabled { opacity: 0.3; pointer-events: none; }

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.gallery-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
#lb-clip-wrap {
  position: relative;
  overflow: hidden;
  width: 80vw;
  height: 80vh;
  max-width: 1000px;
  max-height: 800px;
  border-radius: var(--radius-lg);
  background: var(--white);
  flex-shrink: 0;
}
.gallery-lightbox-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.gallery-lightbox-close:hover { background: rgba(255,255,255,0.25); }
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover { background: rgba(255,255,255,0.28); }
.gallery-lightbox-prev { left: 24px; }
.gallery-lightbox-next { right: 24px; }
.gallery-lightbox-prev:disabled,
.gallery-lightbox-next:disabled { opacity: 0.25; pointer-events: none; }

/* ── Scroll to top button ──────────────────── */
/* Keyframes для переходу на футер — пульс без ротації */
@keyframes btnToFooter {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.8); }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
@keyframes btnFromFooter {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.8); }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(29,107,62,0.3);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.5s ease, color 0.5s ease,
              border-color 0.5s ease, box-shadow 0.5s ease;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-btn:hover {
  background: var(--white);
  color: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29,107,62,0.4);
}

/* На футері — flip анімація + інвертований колір */
.scroll-top-btn.on-footer {
  background: var(--white);
  color: var(--green-700);
  border-color: var(--green-700);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: btnToFooter 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.scroll-top-btn.off-footer {
  animation: btnFromFooter 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.scroll-top-btn.on-footer:hover {
  background: var(--off-white);
  transform: translateY(-2px);
}

/* Cat nav disabled state */
.cat-nav-btn.disabled {
    opacity: 0.25;
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   PARTNERS SECTION
═══════════════════════════════════════════ */
.block-partners {
  padding: var(--section-pad-sm);
  background: var(--off-white);
  overflow: hidden;
}
.partners-header {
  text-align: center;
  margin-bottom: 48px;
}
.partners-header .section-label { justify-content: center; }
.partners-header .section-label::before { display: none; }
.partners-header h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin-top: 8px; }

/* Partners marquee — CSS animation, pause on hover */
@keyframes partners-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--partners-scroll-dist))); }
}

.partners-marquee-wrap {
  overflow: hidden;
  padding: 20px 0;
}
.partners-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: max-content;
  will-change: transform;
}
.partners-track.no-autoplay {
  animation: none;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  gap: 16px;
  padding: 0 24px;
}
.partner-logo-item {
  width: 260px;
  flex-shrink: 0;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-100);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.partner-logo:hover { transform: scale(1.03); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(0.15) opacity(0.92);
  transition: filter 0.3s ease;
  display: block;
}
.partner-logo:hover img { filter: grayscale(0) opacity(1); }

@media (max-width: 768px) {
  .block-partners { padding: 48px 0; }
  .partners-header { margin-bottom: 32px; }
  .partner-logo { height: 180px; padding: 8px; }
  .partner-logo-item { width: 180px; }
}
/* Admin placeholder shown only if no partners configured — hidden on frontend */
.partners-empty-hint {
  display: none;
}
