:root {
  --green: #193b21;
  --green-2: #315b38;
  --leaf: #6b8f50;
  --milk: #fbfaf6;
  --soft: #f3f4ef;
  --line: #e4e6df;
  --text: #1b211b;
  --muted: #70766c;
  --danger: #a53a35;
  --shadow: 0 18px 50px rgba(22, 42, 25, .08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: var(--milk);
  font-family: var(--sans);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.container { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 54px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.muted { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 250, 246, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: -.05em; line-height: .86; }
.logo-mark { width: 25px; height: 39px; display: inline-block; background: repeating-linear-gradient(90deg, #111 0 4px, transparent 4px 7px); }
.logo-text { font-size: 20px; }
.main-nav { display: flex; align-items: center; gap: 44px; color: #222; font-size: 15px; }
.main-nav a:hover, .main-nav a:focus { color: var(--green-2); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-link { font-size: 28px; line-height: 1; }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.cart-link b { position: absolute; right: -9px; top: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--green); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.burger { display: none; border: 0; background: transparent; font-size: 28px; }
.mobile-nav { display: none; }

.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 75% 20%, #eaf0e5 0, transparent 36%), linear-gradient(90deg, #fbfaf7 0%, #f7f8f2 100%); border-bottom: 1px solid var(--line); }
.hero-grid { min-height: 620px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 42px; }
.hero-copy h1, .page-hero h1, .article-hero h1 { margin: 0 0 18px; color: var(--green); font-family: var(--serif); font-size: clamp(48px, 7vw, 92px); line-height: .94; font-weight: 500; letter-spacing: -.05em; }
.eyebrow { margin: 0 0 14px; color: var(--green-2); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; }
.hero-lead { max-width: 520px; font-size: 22px; color: #384136; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin: 34px 0; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--green); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px rgba(25, 59, 33, .12); transition: transform .15s ease, background .15s ease, opacity .15s ease; }
.btn:hover, .btn:focus { background: #0f2a16; transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-small { min-height: 34px; padding: 0 18px; font-size: 13px; border-radius: 10px; }
.btn-wide { width: 100%; }
.link-accent { color: var(--green); font-weight: 800; border-bottom: 1px solid rgba(25,59,33,.3); }
.hero-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 720px; }
.hero-features span { display: flex; align-items: center; min-height: 54px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); font-size: 13px; }
.hero-visual { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.hero-visual img { width: min(560px, 100%); max-height: 580px; object-fit: cover; border-radius: 36px; box-shadow: var(--shadow); }

h2 { margin: 0 0 18px; font-family: var(--serif); color: var(--green); font-size: clamp(30px, 4vw, 48px); line-height: 1.02; font-weight: 500; letter-spacing: -.035em; }
h3 { margin: 0 0 8px; color: var(--green); line-height: 1.2; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head a { color: var(--green); font-weight: 800; border-bottom: 1px solid rgba(25,59,33,.24); }
.split-card, .feature-band, .static-card, .success-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.78); box-shadow: var(--shadow); }
.split-card { display: grid; grid-template-columns: 1fr .65fr; gap: 28px; padding: 42px; }
.mini-info-card { padding: 32px; border-radius: 22px; background: linear-gradient(135deg, #f4f6f0, #fff); }
.mini-info-card a { color: var(--green); font-weight: 800; }

.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.category-card { min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(22,42,25,.04); transition: transform .15s ease, box-shadow .15s ease; }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.category-card img { height: 116px; width: 100%; object-fit: contain; }
.category-card h3 { font-family: var(--serif); font-size: 20px; text-align: center; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 35px rgba(22,42,25,.05); }
.product-image-wrap { display: block; background: #f6f8f3; aspect-ratio: 1 / .86; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 16px; }
.product-title { display: block; min-height: 48px; font-weight: 800; line-height: 1.22; }
.product-volume { margin: 5px 0 12px; color: var(--muted); font-size: 14px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-bottom strong { font-size: 20px; white-space: nowrap; }
.feature-band { display: grid; grid-template-columns: 1fr .8fr; align-items: center; overflow: hidden; padding: 42px; background: linear-gradient(90deg, #fff 0%, #f4f6f0 100%); }
.feature-band img { width: 100%; max-height: 270px; object-fit: cover; border-radius: 20px; }
.feature-band a { color: var(--green); font-weight: 800; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.review-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(22,42,25,.04); }
.stars { color: #d6a222; letter-spacing: 2px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.article-grid.large { grid-template-columns: repeat(3, minmax(0,1fr)); }
.article-card { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(22,42,25,.04); }
.article-card img { height: 170px; width: 100%; object-fit: cover; border-radius: 14px; background: #f4f6f0; }
.article-card span { display: block; margin-top: 16px; color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: .12em; }
.article-card h3, .article-card h2 { margin-top: 8px; font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.article-card p { color: var(--muted); }
.article-card b { color: var(--green); }

.page-hero { padding: 76px 0; background: radial-gradient(circle at 80% 20%, #e7efe3 0, transparent 32%), #fbfaf6; border-bottom: 1px solid var(--line); }
.page-hero.compact { padding: 46px 0; }
.page-hero p { max-width: 640px; font-size: 20px; color: var(--muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--green); }
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 34px; align-items: start; }
.catalog-sidebar { position: sticky; top: 96px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.catalog-sidebar h2 { font-size: 26px; }
.category-filter { display: block; padding: 12px 14px; border-radius: 12px; color: var(--muted); }
.category-filter.active, .category-filter:hover { background: var(--soft); color: var(--green); font-weight: 800; }
.empty-state { padding: 46px; border: 1px dashed var(--line); border-radius: 22px; background: #fff; text-align: center; }

.product-page-section { padding-top: 34px; }
.product-page-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 58px; align-items: start; }
.product-gallery { display: grid; grid-template-columns: 76px 1fr; gap: 18px; }
.thumbs { display: flex; flex-direction: column; gap: 12px; }
.thumbs img, .video-thumb { width: 76px; height: 88px; border: 1px solid var(--line); border-radius: 14px; background: #fff; object-fit: cover; display: flex; align-items: center; justify-content: center; }
.video-thumb { color: var(--green); font-size: 24px; }
.main-product-image { position: relative; min-height: 600px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 24px; background: #f7f8f3; overflow: hidden; }
.main-product-image img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 22px; top: 22px; z-index: 2; padding: 9px 16px; border-radius: 999px; background: #e7efdc; color: var(--green); font-weight: 800; text-transform: uppercase; font-size: 12px; }
.video-card { grid-column: 2; display: flex; align-items: center; gap: 16px; min-height: 106px; padding: 20px; border-radius: 18px; background: linear-gradient(90deg, rgba(25,59,33,.8), rgba(25,59,33,.45)), url('/static/img/product-serum.jpg') center/cover; color: #fff; }
.video-card span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.28); }
.product-meta { display: flex; gap: 12px; color: var(--muted); font-size: 14px; }
.product-info h1 { margin: 18px 0; color: var(--green); font-family: var(--serif); font-size: clamp(40px, 5vw, 68px); line-height: .96; font-weight: 500; letter-spacing: -.05em; }
.lead-text { font-size: 20px; color: #333d32; }
.product-price { margin: 28px 0; font-size: 44px; font-weight: 900; color: #0d130e; }
.product-price span { margin-left: 16px; color: var(--muted); font-size: 16px; font-weight: 400; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 24px 0; }
.benefit-grid div { min-height: 72px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.buy-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; margin: 28px 0 20px; }
.buy-row input { width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.service-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; color: var(--muted); }
.small { font-size: 13px; }
.tabs-like { padding-top: 18px; border-top: 2px solid var(--green); }
.tabs-like h2 { margin-top: 28px; font-size: 34px; }
.tabs-like p { max-width: 980px; }

.cart-hero { background: radial-gradient(circle at 78% 25%, #e1eadb 0, transparent 30%), #fbfaf6; }
.cart-grid, .checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.cart-main, .checkout-form, .order-summary { border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.cart-main { padding: 18px; }
.cart-item { display: grid; grid-template-columns: 132px 1fr 140px 130px; gap: 22px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 132px; height: 132px; object-fit: cover; border-radius: 16px; background: #f5f7f2; }
.cart-item h2 { margin: 0 0 8px; font-size: 24px; }
.qty-form { display: flex; align-items: center; justify-content: center; height: 48px; border: 1px solid var(--line); border-radius: 12px; }
.qty-form button { width: 40px; height: 46px; border: 0; background: transparent; cursor: pointer; font-size: 20px; }
.qty-form span { min-width: 36px; text-align: center; }
.line-sum { text-align: right; }
.text-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.promocode-card { display: grid; grid-template-columns: auto auto 1fr auto; gap: 14px; align-items: center; margin-top: 18px; padding: 16px; border-radius: 16px; background: var(--soft); }
.promocode-card input, .checkout-form input, .checkout-form textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; }
.checkout-form textarea { padding: 14px; resize: vertical; }
.order-summary { padding: 32px; position: sticky; top: 96px; }
.summary-row, .summary-total, .checkout-mini-item { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.summary-total { margin: 12px 0 20px; border: 0; font-size: 22px; }
.summary-total b { font-size: 34px; color: var(--green); }
.summary-benefits { margin-top: 24px; color: #4c584c; }
.checkout-form { padding: 32px; }
.form-grid.two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.checkout-form label { display: block; margin: 0 0 16px; color: #384136; font-weight: 700; }
.checkout-form label input, .checkout-form label textarea { margin-top: 7px; font-weight: 400; }
.form-note { padding: 14px 16px; border-radius: 12px; background: var(--soft); color: var(--muted); }
.success-section { min-height: 60vh; display: flex; align-items: center; }
.success-card { max-width: 720px; padding: 50px; text-align: center; }
.success-card h1 { margin: 0 0 14px; font-family: var(--serif); color: var(--green); font-size: 64px; }

.article-hero { padding: 42px 0 56px; background: radial-gradient(circle at 70% 25%, #e6efe1 0, transparent 30%), #fbfaf6; border-bottom: 1px solid var(--line); }
.article-hero-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 42px; align-items: center; }
.article-hero p { max-width: 700px; font-size: 21px; color: var(--muted); }
.article-hero img { width: 100%; max-height: 470px; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); }
.article-content-grid { display: grid; grid-template-columns: minmax(0, 820px) 360px; gap: 48px; align-items: start; }
.article-body { font-size: 19px; }
.article-body h2 { margin-top: 44px; font-size: 40px; }
.article-body blockquote { margin: 34px 0; padding: 28px; border-left: 4px solid var(--green); border-radius: 18px; background: var(--soft); color: var(--green); font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.quote-card { position: sticky; top: 96px; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.quote-card span { color: var(--green); font-family: var(--serif); font-size: 74px; line-height: .7; }
.quote-card p { font-family: var(--serif); color: var(--green); font-size: 28px; line-height: 1.2; }

.static-card { padding: 42px; font-size: 20px; }
.admin-stats { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.admin-stats div, .admin-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(22,42,25,.04); }
.admin-stats b { display: block; color: var(--green); font-size: 42px; }
.admin-card { margin-bottom: 18px; overflow-x: auto; }
.admin-card table { width: 100%; border-collapse: collapse; }
.admin-card th, .admin-card td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }


.admin-meta-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; color: var(--muted); font-size: 14px; }
.admin-meta-line-wrap { max-width: 380px; }
.admin-slug-text { word-break: break-word; }
.admin-row-actions-icons { display: flex; align-items: center; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.admin-row-actions-icons form { margin: 0; }
.icon-action { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--green); font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; transition: .2s ease; text-decoration: none; box-shadow: 0 6px 20px rgba(21, 48, 24, .06); }
.icon-action:hover { transform: translateY(-1px); border-color: #9cb08f; background: #f3f7ee; }
.icon-action-inline { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; box-shadow: none; }
.icon-action.copied { background: #e8f1df; border-color: #9db287; }
.products-table td:last-child, .admin-table td:last-child { min-width: 148px; }

.site-footer { margin-top: 60px; padding: 48px 0 24px; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid h3 { font-size: 16px; }
.footer-grid a, .footer-grid p { display: block; color: #4d584d; margin: 7px 0; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.footer-bottom { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 1100px) {
  .main-nav { gap: 22px; }
  .hero-grid, .product-page-grid, .article-hero-grid, .feature-band { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid, .catalog-grid, .compact-grid { grid-template-columns: repeat(3, 1fr); }
  .cart-grid, .checkout-grid, .article-content-grid { grid-template-columns: 1fr; }
  .order-summary, .quote-card, .catalog-sidebar { position: static; }
}

@media (max-width: 820px) {
  .container { width: min(100% - 28px, 720px); }
  .main-nav, .icon-link { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav.is-open { display: grid; gap: 4px; padding: 8px 14px 18px; border-top: 1px solid var(--line); background: var(--milk); }
  .mobile-nav a { padding: 12px 8px; }
  .header-inner { height: 64px; }
  .hero-grid { min-height: auto; padding: 42px 0; }
  .hero-copy h1, .page-hero h1, .article-hero h1 { font-size: 45px; }
  .hero-lead, .page-hero p, .article-hero p { font-size: 17px; }
  .hero-features { grid-template-columns: repeat(2, 1fr); }
  .split-card { grid-template-columns: 1fr; padding: 24px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .catalog-grid, .compact-grid, .article-grid, .article-grid.large, .review-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .catalog-layout { grid-template-columns: 1fr; }
  .product-gallery { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; }
  .video-card { grid-column: auto; }
  .main-product-image { min-height: 420px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 96px 1fr; }
  .qty-form, .line-sum { grid-column: 2; justify-self: start; text-align: left; }
  .cart-item img { width: 96px; height: 96px; }
  .promocode-card, .form-grid.two, .buy-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .logo-text { font-size: 16px; }
  .section { padding: 36px 0; }
  .hero-copy h1, .page-hero h1, .article-hero h1 { font-size: 39px; }
  h2 { font-size: 32px; }
  .hero-features, .category-grid, .product-grid, .catalog-grid, .compact-grid, .article-grid, .article-grid.large, .review-grid, .footer-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 170px; }
  .product-image-wrap { aspect-ratio: 1 / .72; }
  .checkout-form, .order-summary, .cart-main, .success-card, .static-card { padding: 22px; }
  .product-info h1 { font-size: 38px; }
  .product-price { font-size: 36px; }
  .main-product-image { min-height: 330px; }
  .article-body { font-size: 17px; }
  .article-body blockquote, .quote-card p { font-size: 23px; }
}

/* patch_003_visual_products */
.hero-v2 {
  background:
    radial-gradient(circle at 82% 10%, rgba(106, 143, 80, .20) 0, transparent 27%),
    radial-gradient(circle at 60% 85%, rgba(217, 227, 214, .85) 0, transparent 34%),
    linear-gradient(90deg, #fbfaf7 0%, #f6f8f4 100%);
}
.hero-v2::before {
  content: "";
  position: absolute;
  inset: auto -60px -130px auto;
width:520px;
  height: 420px;
  background: radial-gradient(circle, rgba(77, 119, 61, .23), transparent 64%);
  filter: blur(8px);
  pointer-events: none;
}
.hero-v2 .hero-copy h1 {
max-width:700px;
}
.hero-visual-v2 {
  min-height: 620px;
  isolation: isolate;
}
.hero-visual-v2::before {
  content: "";
  position: absolute;
  left: 0;
  right: 2%;
  bottom: 62px;
  height: 34px;
  border-radius: 50%;
  background: rgba(39, 62, 40, .13);
  filter: blur(20px);
  z-index: -1;
}
.hero-product {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(218, 224, 214, .9);
  background: #fff;
  box-shadow: 0 28px 70px rgba(22, 42, 25, .14);
}
.hero-product img {
width:100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  box-shadow: none;
}
.hero-product-main {
width:min(…%);
  aspect-ratio: 1 / 1.05;
  right: 22%;
  top: 54px;
  border-radius: 36px;
  transform: rotate(-1deg);
}
.hero-product-small {
width:min(…%);
  aspect-ratio: 1 / 1;
  border-radius: 28px;
}
.hero-product-powder {
  right: 0;
  top: 210px;
  transform: rotate(3deg);
}
.hero-product-cream {
  left: 4%;
  bottom: 88px;
  transform: rotate(-4deg);
}
.hero-leaf-note {
  position: absolute;
  right: 8%;
  bottom: 48px;
max-width:240px;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(25, 59, 33, .94);
  color: #fff;
  font-weight: 800;
  line-height: 1.22;
  box-shadow: 0 20px 45px rgba(25, 59, 33, .18);
}
.hero-features-v2 span {
  justify-content: center;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 22px rgba(22,42,25,.04);
}
.split-card-v2 {
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(244,246,240,.86)),
    radial-gradient(circle at 84% 18%, rgba(107,143,80,.12), transparent 28%);
}
.mini-info-card-v2 {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-card-v2 {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.product-card-v2:hover {
  transform: translateY(-4px);
  border-color: #d5decf;
  box-shadow: 0 22px 55px rgba(22,42,25,.10);
}
.product-card-v2 .product-image-wrap {
  aspect-ratio: 1 / 1;
  padding: 0;
  background:
    radial-gradient(circle at 50% 42%, #fff 0, #f3f7f0 52%, #eaf1e5 100%);
}
.product-card-v2 .product-image-wrap img {
  object-fit: cover;
}
.product-card-kicker {
  min-height: 16px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.benefit-strip {
  display: grid;
grid-template-columns:repe…));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
}
.benefit-strip > div {
  min-height: 170px;
  padding: 28px;
  border-right: 1px solid var(--line);
}
.benefit-strip > div:last-child { border-right: 0; }
.benefit-icon {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 34px;
}
.benefit-strip h3 {
  font-family: var(--serif);
  font-size: 23px;
}
.benefit-strip p {
  margin-bottom: 0;
  color: var(--muted);
}
.feature-band-v2 {
  background:
    radial-gradient(circle at 82% 26%, rgba(107,143,80,.14), transparent 30%),
    linear-gradient(90deg, #fff 0%, #f4f6f0 100%);
}
.product-page-grid-v2 {
  gap: 64px;
}
.product-gallery-v2 .main-product-image-v2 {
  background:
    radial-gradient(circle at 50% 40%, #fff 0, #f7faf5 52%, #edf4e8 100%);
}
.main-product-image-v2 img {
  object-fit: contain;
  padding: 10px;
}
.product-gallery-v2 .thumbs img {
  object-fit: cover;
  background: #f5f8f2;
}
.video-card-v2 {
  background:
    linear-gradient(90deg, rgba(25,59,33,.86), rgba(25,59,33,.54)),
    url('/static/img/product-serum-photo.svg') center/cover;
}
.product-info-v2 .lead-text {
max-width:620px;
}
.benefit-grid-v2 div {
  display: grid;
grid-template-columns:34px…fr;
  gap: 2px 10px;
  align-items: start;
}
.benefit-grid-v2 div span {
grid-row:1 / … 2;
  display: grid;
  place-items: center;
width:34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
}
.benefit-grid-v2 small {
  color: var(--muted);
}
.tabs-like-v2 {
max-width:1080px;
  padding: 0;
  border-top: 0;
}
.tabs-nav-static {
  display: flex;
  gap: 36px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.tabs-nav-static span {
  padding: 0 0 14px;
  color: var(--muted);
  font-weight: 800;
}
.tabs-nav-static span:first-child {
  color: var(--green);
  border-bottom: 2px solid var(--green);
}
.tabs-like-v2 h2:first-of-type {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .hero-visual-v2 { min-height: 540px; }
  .benefit-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-strip > div:nth-child(2) { border-right: 0; }
  .benefit-strip > div:nth-child(1), .benefit-strip > div:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .hero-visual-v2 { min-height: 430px; }
  .hero-product-main { width: 62%; right: 18%; top: 18px; }
  .hero-product-small { width: 34%; }
  .hero-product-powder { top: 155px; }
  .hero-product-cream { bottom: 56px; }
  .hero-leaf-note { right: 4%; bottom: 12px; max-width: 210px; font-size: 13px; padding: 13px 16px; }
  .benefit-strip { grid-template-columns: 1fr; }
  .benefit-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .benefit-strip > div:last-child { border-bottom: 0; }
  .product-card-kicker { display: none; }
  .tabs-nav-static { gap: 18px; overflow-x: auto; }
}

@media (max-width: 540px) {
  .hero-features-v2 { grid-template-columns: 1fr; }
  .product-bottom { align-items: stretch; flex-direction: column; }
  .product-bottom .btn-small { width: 100%; }
  .buy-row { grid-template-columns: 1fr; }
}

/* patch_004_admin_login_visual_depth */
:root {
  --green: #12351d;
  --green-2: #244f2c;
  --leaf: #5f8b45;
  --milk: #fbf8ef;
  --soft: #edf3e7;
  --line: #d8dfd2;
  --shadow: 0 22px 70px rgba(18, 53, 29, .13);
}
body {
  background:
    radial-gradient(circle at 90% 0%, rgba(95, 139, 69, .13) 0, transparent 30%),
    linear-gradient(180deg, #fffefa 0%, #fbf8ef 100%);
}
.site-header {
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 30px rgba(18, 53, 29, .06);
}
.btn {
  box-shadow: 0 10px 24px rgba(18, 53, 29, .18);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(18, 53, 29, .22);
}
.btn-light {
  border: 1px solid rgba(18,53,29,.18);
  background: #fff;
  color: var(--green);
  box-shadow: none;
}
.btn-wide { width: 100%; }
.hero-v2,
.page-hero,
.article-hero,
.cart-hero {
  background:
    radial-gradient(circle at 82% 12%, rgba(95, 139, 69, .28) 0, transparent 29%),
    radial-gradient(circle at 58% 86%, rgba(210, 224, 198, .95) 0, transparent 36%),
    linear-gradient(90deg, #fffdf7 0%, #eef5e9 100%);
}
.hero-copy h1,
.page-hero h1,
.article-hero h1,
h2 {
  color: #12351d;
}
.eyebrow {
  color: #476f36;
  font-weight: 900;
}
.hero-lead,
.page-hero p,
.article-hero p {
  color: #3c4a3b;
}
.hero-product,
.product-card,
.category-card,
.article-card,
.review-card,
.admin-card,
.order-summary,
.cart-main,
.checkout-form,
.split-card,
.feature-band {
  border-color: rgba(18,53,29,.13);
  box-shadow: 0 18px 55px rgba(18,53,29,.09);
}
.hero-product-main {
  box-shadow: 0 34px 90px rgba(18, 53, 29, .18);
}
.hero-leaf-note {
  background: linear-gradient(135deg, #12351d, #2b5b31);
  box-shadow: 0 22px 55px rgba(18, 53, 29, .26);
}
.hero-features-v2 span,
.hero-features span {
  border-color: rgba(18,53,29,.15);
  background: rgba(255,255,255,.92);
  color: #12351d;
}
.category-card {
  background:
    radial-gradient(circle at 70% 16%, rgba(95,139,69,.16) 0, transparent 33%),
    linear-gradient(180deg, #fff 0%, #f1f6ec 100%);
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(18,53,29,.24);
  box-shadow: 0 24px 60px rgba(18,53,29,.14);
}
.product-card-v2 .product-image-wrap,
.product-image-wrap {
  background:
    radial-gradient(circle at 50% 38%, #fff 0, #f4f8ef 45%, #dfead7 100%);
}
.product-card-body strong,
.product-price,
.summary-total b,
.admin-stats b {
  color: #12351d;
}
.benefit-strip {
  background: linear-gradient(180deg, #fff 0%, #f7faf3 100%);
}
.benefit-strip > div:hover,
.benefit-grid div:hover {
  background: #f3f8ee;
}
.feature-band-v2 {
  background:
    radial-gradient(circle at 84% 22%, rgba(95,139,69,.22), transparent 31%),
    linear-gradient(90deg, #fff 0%, #edf4e7 100%);
}
.site-footer {
  background: linear-gradient(180deg, #fff 0%, #f6f8f1 100%);
}

.admin-login-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 64px 0;
  background:
    radial-gradient(circle at 83% 12%, rgba(95, 139, 69, .24) 0, transparent 31%),
    radial-gradient(circle at 18% 84%, rgba(18, 53, 29, .10) 0, transparent 28%),
    linear-gradient(135deg, #fffdf7 0%, #eef5e9 100%);
}
.admin-login-wrap {
  display: grid;
grid-template-columns:minm…px;
  gap: 44px;
  align-items: center;
}
.admin-login-copy h1 {
  margin: 0 0 18px;
max-width:720px;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 72px);
  line-height: .96;
  letter-spacing: -.045em;
  color: #12351d;
}
.admin-login-copy p {
max-width:680px;
  color: #3c4a3b;
  font-size: 20px;
}
.admin-login-note {
  display: grid;
  gap: 8px;
max-width:620px;
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid rgba(18,53,29,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 40px rgba(18,53,29,.07);
}
.admin-login-note code {
  padding: 2px 6px;
  border-radius: 7px;
  background: rgba(18,53,29,.08);
  color: #12351d;
}
.admin-login-card {
  padding: 34px;
  border: 1px solid rgba(18,53,29,.15);
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 28px 80px rgba(18,53,29,.16);
}
.admin-login-card h2 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 40px;
}
.admin-login-card label {
  display: block;
  margin-bottom: 16px;
  color: #25372a;
  font-weight: 800;
}
.admin-login-card input {
width:100%;
  height: 52px;
  margin-top: 8px;
  padding: 0 15px;
  border: 1px solid rgba(18,53,29,.18);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
}
.admin-login-card input:focus {
  outline: 3px solid rgba(95,139,69,.18);
  border-color: rgba(18,53,29,.42);
}
.form-error {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(165,58,53,.25);
  border-radius: 12px;
  background: rgba(165,58,53,.08);
  color: var(--danger);
  font-weight: 800;
}
.admin-head-row {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}
.admin-hero-v2 {
  border-bottom: 1px solid rgba(18,53,29,.12);
}
.admin-stats-v2 div {
  background:
    radial-gradient(circle at 84% 10%, rgba(95,139,69,.18), transparent 35%),
    #fff;
}
.admin-card-v2 h2 {
  color: #12351d;
}
.admin-next-grid {
  display: grid;
grid-template-columns:repe…));
  gap: 16px;
}
.admin-next-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7faf3;
}
.admin-next-grid b {
  display: inline-flex;
width:42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}
.admin-next-grid span {
  display: block;
  font-weight: 900;
  color: #12351d;
}
.admin-next-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .admin-login-wrap { grid-template-columns: 1fr; }
  .admin-login-card { max-width: 520px; }
  .admin-head-row { align-items: flex-start; flex-direction: column; }
  .admin-next-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .admin-login-section { padding: 36px 0; }
  .admin-login-card { padding: 24px; border-radius: 22px; }
  .admin-login-copy h1 { font-size: 40px; }
  .admin-login-copy p { font-size: 17px; }
}

/* patch_005_admin_catalog_crud */
.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.admin-head-actions form { margin: 0; }
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.admin-tabs a,
.admin-tabs span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 15px;
  border: 1px solid rgba(18,53,29,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #12351d;
  font-weight: 850;
}
.admin-tabs span {
  opacity: .48;
}
.admin-tabs a.active {
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 34px rgba(18,53,29,.18);
}
.admin-filter-card {
  display: grid;
grid-template-columns:minm…to;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(18,53,29,.13);
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 45px rgba(18,53,29,.07);
}
.admin-filter-card label,
.admin-edit-form label {
  display: grid;
  gap: 8px;
  color: #233929;
  font-weight: 850;
}
.admin-filter-card input,
.admin-filter-card select,
.admin-edit-form input,
.admin-edit-form select,
.admin-edit-form textarea {
width:100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(18,53,29,.18);
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.admin-edit-form textarea {
  min-height: auto;
  resize: vertical;
  line-height: 1.55;
}
.admin-edit-form input,
.admin-edit-form select,
.admin-edit-form textarea {
  font-weight: 400;
}
.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.btn-danger-soft {
  background: #fff2f2;
  color: #9f2121;
  border: 1px solid rgba(159,33,33,.18);
}
.btn-danger-soft:hover {
  background: #ffe4e4;
}
.admin-upload-card {
  display: grid;
  gap: 8px;
}
.current-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.current-upload-row a {
  font-size: 14px;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 10px;
}
.editor-tool {
min-width:42px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(18,53,29,.18);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.editor-tool:hover {
  border-color: rgba(18,53,29,.35);
  box-shadow: 0 8px 18px rgba(18,53,29,.08);
}
.admin-edit-form code {
  padding: 1px 6px;
  border-radius: 6px;
  background: #edf2ea;
  color: #21412a;
}
.admin-filter-card input:focus,
.admin-filter-card select:focus,
.admin-edit-form input:focus,
.admin-edit-form select:focus,
.admin-edit-form textarea:focus {
  outline: 3px solid rgba(95,139,69,.17);
  border-color: rgba(18,53,29,.4);
}
.admin-table {
min-width:920px;
}
.admin-table th {
  color: #4a5b49;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.admin-product-mini {
  display: grid;
grid-template-columns:66px…r);
  gap: 14px;
  align-items: center;
min-width:320px;
}
.admin-product-mini img {
width:66px;
  height: 66px;
  object-fit: contain;
  border: 1px solid rgba(18,53,29,.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #eef5e9 100%);
}
.admin-product-mini b {
  display: block;
  color: #12351d;
  line-height: 1.25;
}
.admin-product-mini span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.admin-product-mini em {
  display: inline-flex;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(95,139,69,.13);
  color: #274d2b;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}
.status-pill.ok {
  background: rgba(95,139,69,.14);
  color: #244f2c;
}
.status-pill.muted-pill {
  background: rgba(76,88,76,.10);
  color: #5a6558;
}
.admin-row-actions {
min-width:170px;
}
.admin-row-actions,
.admin-row-actions form {
  display: grid;
  gap: 7px;
}
.link-button {
  display: inline-flex;
  justify-content: flex-start;
width:fit-…nt;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-decoration: underline;
  cursor: pointer;
}
.link-button:hover { color: var(--green-2); }
.empty-state {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 34px;
  border: 1px dashed rgba(18,53,29,.18);
  border-radius: 20px;
  background: #f7faf3;
}
.empty-state h2 { margin: 0; }
.admin-edit-form {
  display: grid;
grid-template-columns:minm…px;
  gap: 20px;
  align-items: start;
}
.admin-edit-form.one-column {
grid-template-columns:minm…x);
}
.admin-form-main,
.admin-form-side {
  display: grid;
  gap: 18px;
}
.form-grid {
  display: grid;
  gap: 14px;
}
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-edit-form .admin-card {
  display: grid;
  gap: 16px;
}
.admin-edit-form .admin-card h2 {
  margin: 0;
}
.check-row {
  display: flex !important;
grid-template-columns:none…nt;
  align-items: center;
  gap: 10px !important;
  padding: 12px 14px;
  border: 1px solid rgba(18,53,29,.12);
  border-radius: 13px;
  background: #f7faf3;
}
.check-row input {
width:18px…nt;
  min-height: 18px !important;
  accent-color: var(--green);
}
.sticky-card {
  position: sticky;
  top: 92px;
}
.admin-form-error {
max-width:920px;
  margin-bottom: 18px;
}
.small { font-size: 13px; }

@media (max-width: 1040px) {
  .admin-filter-card { grid-template-columns: 1fr 1fr; }
  .admin-filter-card .btn { width: 100%; }
  .admin-edit-form { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
}

@media (max-width: 720px) {
  .admin-filter-card,
  .form-grid.two,
  .form-grid.three { grid-template-columns: 1fr; }
  .admin-head-actions { justify-content: flex-start; }
  .admin-product-mini { min-width: 250px; }
}

/* patch_007_admin_tables_compact_ui */
.admin-table-clean {
width:100%;
min-width:1080px;
  table-layout: fixed;
}
.admin-table-clean th,
.admin-table-clean td {
  vertical-align: top;
  padding-top: 16px;
  padding-bottom: 16px;
}
.admin-table-clean th {
  white-space: nowrap;
}
.products-table-v2 th:nth-child(1) { width: 43%; }
.products-table-v2 th:nth-child(2) { width: 11%; }
.products-table-v2 th:nth-child(3) { width: 10%; }
.products-table-v2 th:nth-child(4) { width: 7%; text-align: center; }
.products-table-v2 th:nth-child(5) { width: 7%; text-align: center; }
.products-table-v2 th:nth-child(6) { width: 22%; }
.products-table-v2 td:nth-child(4),
.products-table-v2 td:nth-child(5) {
  text-align: center;
}
.categories-table-v2 th:nth-child(1) { width: 39%; }
.categories-table-v2 th:nth-child(2) { width: 24%; }
.categories-table-v2 th:nth-child(3) { width: 8%; text-align: center; }
.categories-table-v2 th:nth-child(4) { width: 7%; text-align: center; }
.categories-table-v2 th:nth-child(5) { width: 7%; text-align: center; }
.categories-table-v2 th:nth-child(6) { width: 15%; }
.categories-table-v2 td:nth-child(3),
.categories-table-v2 td:nth-child(4),
.categories-table-v2 td:nth-child(5) {
  text-align: center;
}
.admin-product-mini-v2 {
grid-template-columns:72px…r);
  align-items: flex-start;
min-width:0;
}
.admin-product-mini-v2 img {
width:72px;
  height: 72px;
}
.admin-product-mini-v2 b {
  font-size: 16px;
  line-height: 1.22;
}
.admin-row-subline {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.admin-sku-cell,
.admin-price-cell,
.admin-sort-cell {
  white-space: nowrap;
}
.admin-price-cell strong {
  display: inline-block;
min-width:74px;
}
.admin-status-cell {
  white-space: nowrap;
}
.admin-status-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
width:28px;
  height: 28px;
  font-size: 18px;
  line-height: 1;
}
.admin-actions-head {
  text-align: left;
}
.admin-row-actions-icons-v2 {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 7px;
min-width:0;
  white-space: nowrap;
}
.admin-row-actions-icons-v2 form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}
.admin-row-actions-icons-v2 .icon-action {
  flex: 0 0 36px;
}
.admin-row-actions-icons-v2 .icon-action,
.icon-action {
width:36px;
  height: 36px;
  border-radius: 12px;
  font-size: 15px;
  text-decoration: none;
}
.admin-row-actions-icons-v2 .icon-action:hover {
  transform: translateY(-1px);
}
.admin-row-actions-icons-v2 .icon-action.copied {
  background: #e8f1df;
  border-color: #7d9a66;
}
.admin-slug-text {
  display: inline-block;
max-width:100%;
  line-height: 1.45;
  word-break: break-word;
}
.admin-card-v2 {
  overflow-x: auto;
}
@media (max-width: 1180px) {
  .admin-table-clean { min-width: 1060px; }
}

/* patch_008_admin_table_border_fix */
.admin-table-clean td.admin-actions-cell {
  display: table-cell;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
min-width:0;
}
.admin-actions-cell .admin-row-actions-icons,
.admin-actions-cell .admin-row-actions-icons-v2 {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 7px;
min-width:0;
  white-space: nowrap;
}
.admin-actions-cell .admin-row-actions-icons form,
.admin-actions-cell .admin-row-actions-icons-v2 form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}
.admin-status-dot {
  display: inline-block;
width:14px;
  height: 14px;
  border-radius: 50%;
  vertical-align: middle;
  box-shadow: 0 4px 12px rgba(18, 53, 29, .18), inset 0 0 0 1px rgba(255,255,255,.45);
}
.admin-status-dot.is-green {
  background: radial-gradient(circle at 34% 28%, #8af0a6 0, #43c66e 48%, #19934c 100%);
}
.admin-status-dot.is-red {
  background: radial-gradient(circle at 34% 28%, #ffb5a8 0, #e44e3c 50%, #a92620 100%);
}
.products-table-v2 td.admin-status-cell,
.products-table-v2 td.admin-sort-cell,
.categories-table-v2 td.admin-status-cell,
.categories-table-v2 td.admin-sort-cell {
  vertical-align: top;
  padding-top: 21px;
}
.products-table-v2 td.admin-actions-cell,
.categories-table-v2 td.admin-actions-cell {
  padding-top: 16px;
}
.products-table-v2 td.admin-actions-cell,
.products-table-v2 th.admin-actions-head {
width:238px;
}
.categories-table-v2 td.admin-actions-cell,
.categories-table-v2 th.admin-actions-head {
width:188px;
}

/* patch_009_admin_content_crud */
.admin-filter-card-small {
grid-template-columns:minm…to;
}
.content-table-v2 {
min-width:1040px;
}
.articles-table-v2 th:nth-child(1) { width: 56%; }
.articles-table-v2 th:nth-child(2) { width: 12%; }
.articles-table-v2 th:nth-child(3) { width: 10%; text-align: center; }
.articles-table-v2 th:nth-child(4) { width: 22%; }
.reviews-table-v2 th:nth-child(1) { width: 36%; }
.reviews-table-v2 th:nth-child(2) { width: 24%; }
.reviews-table-v2 th:nth-child(3) { width: 10%; }
.reviews-table-v2 th:nth-child(4) { width: 8%; text-align: center; }
.reviews-table-v2 th:nth-child(5) { width: 8%; text-align: center; }
.reviews-table-v2 th:nth-child(6) { width: 14%; }
.content-table-v2 td.admin-status-cell,
.content-table-v2 td.admin-sort-cell {
  vertical-align: top;
  padding-top: 21px;
  text-align: center;
}
.content-table-v2 td.admin-actions-cell {
  display: table-cell;
  vertical-align: top;
  padding-top: 16px;
  border-bottom: 1px solid var(--line);
}
.content-table-v2 .admin-row-actions-icons-v2 {
  align-items: flex-start;
}
.admin-row-description {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.admin-date-cell {
  white-space: nowrap;
  color: #243829;
}
@media (max-width: 1040px) {
  .admin-filter-card-small { grid-template-columns: 1fr 1fr; }
  .admin-filter-card-small .btn { width: 100%; }
}
@media (max-width: 720px) {
  .admin-filter-card-small { grid-template-columns: 1fr; }
}

/* patch_011_article_rich_editor_preview */
.rich-editor-source {
  display: none !important;
}
.rich-editor {
  min-height: 420px;
  max-height: 620px;
  overflow: auto;
  padding: 16px 18px;
  border: 1px solid rgba(18,53,29,.18);
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(18,53,29,.03);
}
.rich-editor:focus {
  border-color: rgba(18,53,29,.45);
  box-shadow: 0 0 0 4px rgba(18,53,29,.08), inset 0 1px 0 rgba(18,53,29,.03);
}
.rich-editor p {
  margin: 0 0 14px;
}
.rich-editor h1,
.rich-editor h2,
.rich-editor h3,
.rich-editor h4,
.rich-editor h5,
.rich-editor h6 {
  margin: 18px 0 10px;
  color: var(--green);
  font-family: var(--serif);
  line-height: 1.12;
  font-weight: 700;
}
.rich-editor h1 { font-size: 34px; }
.rich-editor h2 { font-size: 28px; }
.rich-editor h3 { font-size: 23px; }
.rich-editor h4 { font-size: 20px; }
.rich-editor h5 { font-size: 18px; }
.rich-editor h6 { font-size: 16px; }
.rich-editor blockquote {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  border-radius: 0 16px 16px 0;
  background: #f3f7ef;
  color: #24392a;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
}
.rich-editor strong,
.rich-editor b {
  font-weight: 800;
}
.rich-editor em,
.rich-editor i {
  font-style: italic;
}
.rich-editor u {
  text-underline-offset: 3px;
}

/* patch_012_orders_checkout_admin */
.orders-filter-card {
grid-template-columns:minm…to;
}
.orders-table-v2 {
min-width:1120px;
}
.orders-table-v2 th:nth-child(1) { width: 14%; }
.orders-table-v2 th:nth-child(2) { width: 24%; }
.orders-table-v2 th:nth-child(3) { width: 11%; }
.orders-table-v2 th:nth-child(4) { width: 16%; }
.orders-table-v2 th:nth-child(5) { width: 18%; }
.orders-table-v2 th:nth-child(6) { width: 12%; }
.orders-table-v2 th:nth-child(7) { width: 5%; min-width: 112px; }
.orders-table-v2 td { vertical-align: top; }
.order-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef3e9;
  color: #173d20;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}
.order-status-pill::before {
  content: "";
  display: inline-block;
width:8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #8aa07f;
}
.order-payment-pending::before,
.order-delivery-not_sent::before,
.order-delivery-preparing::before { background: #d4a323; }
.order-payment-paid::before,
.order-delivery-handed_over::before,
.order-delivery-delivering::before,
.order-delivery-delivered::before { background: #32b463; }
.order-payment-failed::before,
.order-payment-cancelled::before,
.order-delivery-cancelled::before { background: #d84b3b; }
.order-payment-paid,
.order-delivery-delivered { background: #eaf5e7; color: #1f5b2c; }
.order-payment-failed,
.order-payment-cancelled,
.order-delivery-cancelled { background: #faece9; color: #7c2720; }
.order-detail-grid {
  display: grid;
grid-template-columns:minm…px;
  gap: 20px;
  align-items: start;
}
.order-info-grid {
  display: grid;
grid-template-columns:repe…));
  gap: 12px;
}
.order-info-grid div,
.order-comment-box {
  padding: 14px 16px;
  border: 1px solid rgba(18,53,29,.12);
  border-radius: 14px;
  background: #f8faf5;
}
.order-info-grid .wide {
grid-column:1 / -1;
}
.order-info-grid span,
.order-comment-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.order-info-grid b,
.order-comment-box p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}
.order-items-table {
min-width:720px;
}
.order-items-table th:nth-child(1) { width: 52%; }
.order-items-table th:nth-child(2) { width: 16%; }
.order-items-table th:nth-child(3) { width: 12%; }
.order-items-table th:nth-child(4) { width: 20%; }
.order-current-statuses {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.order-total-card .summary-row,
.order-total-card .summary-total {
  margin: 0;
}
.admin-card-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.admin-card-headline h2 { margin: 0; }
.orders-mini-table {
min-width:980px;
}
.success-grid {
  display: grid;
grid-template-columns:minm…px;
  gap: 20px;
  align-items: start;
}
.success-card-wide {
  text-align: left;
}
.success-status-card {
  position: sticky;
  top: 96px;
}
.order-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.danger-light {
  color: #9f2d24 !important;
  background: #fff3f1 !important;
}
@media (max-width: 1040px) {
  .orders-filter-card { grid-template-columns: 1fr 1fr; }
  .orders-filter-card .btn { width: 100%; }
  .order-detail-grid,
  .success-grid { grid-template-columns: 1fr; }
  .success-status-card { position: static; }
}
@media (max-width: 720px) {
  .orders-filter-card,
  .order-info-grid { grid-template-columns: 1fr; }
}

/* patch_013_admin_wide_pagination_order_ui */
.admin-section > .container,
.admin-hero-v2 > .container,
.admin-wide-container {
width:min(…));
}
.admin-card-v2 {
  overflow-x: visible;
}
.admin-card-v2:has(table) {
  overflow-x: auto;
}
.orders-table-v2 {
min-width:0;
  table-layout: fixed;
}
.orders-table-v2 th:nth-child(1) { width: 17%; }
.orders-table-v2 th:nth-child(2) { width: 22%; }
.orders-table-v2 th:nth-child(3) { width: 11%; }
.orders-table-v2 th:nth-child(4) { width: 15%; }
.orders-table-v2 th:nth-child(5) { width: 18%; }
.orders-table-v2 th:nth-child(6) { width: 11%; }
.orders-table-v2 th:nth-child(7) { width: 6%; }
.orders-table-v2 td,
.orders-table-v2 th {
  overflow-wrap: anywhere;
}
.orders-table-v2 .admin-row-actions-icons-v2 {
  gap: 5px;
}
.orders-table-v2 .icon-action {
width:34px;
  height: 34px;
}
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.admin-pagination-info {
  color: var(--muted);
  font-size: 14px;
}
.admin-pagination-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.admin-pagination-nav a,
.admin-pagination-nav span,
.admin-pagination-nav strong {
min-width:36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}
.admin-pagination-nav strong {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.admin-pagination-nav span {
  opacity: .45;
}
.order-detail-grid-v2 {
grid-template-columns:minm…x);
  gap: 24px;
}
.order-side-v2 {
  display: grid;
  gap: 18px;
  align-content: start;
}
.order-side-v2 .admin-card {
  margin-bottom: 0;
}
.order-processing-form,
.order-total-card-v2 {
  position: static !important;
}
.order-info-grid-v2 {
  gap: 16px;
  margin-bottom: 16px;
}
.order-comment-box {
  margin-top: 16px;
}
.order-info-grid-v2 div,
.order-comment-box {
  min-height: 72px;
}
.order-processing-form {
  display: grid;
  gap: 14px;
}
.order-processing-form h2,
.order-total-card-v2 h2 {
  margin-bottom: 2px;
}
.order-current-statuses-v2 {
  display: grid;
grid-template-columns:1fr;
  gap: 8px;
  margin: 0 0 4px;
}
.order-current-statuses-v2 .order-status-pill {
width:100%;
  justify-content: flex-start;
  min-height: 34px;
}
.order-processing-form .admin-field {
  display: grid;
  gap: 7px;
  color: #233929;
  font-weight: 850;
}
.order-processing-form .admin-field > span {
  font-size: 14px;
}
.order-processing-form select,
.order-processing-form textarea {
width:100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(18,53,29,.18);
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}
.order-processing-form textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.55;
}
.order-processing-form select:focus,
.order-processing-form textarea:focus {
  outline: 3px solid rgba(95,139,69,.17);
  border-color: rgba(18,53,29,.4);
}
.order-total-card-v2 .summary-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.order-total-card-v2 .summary-total {
  padding-top: 16px;
}
.order-total-card-v2 .summary-total b {
  font-size: 34px;
  color: var(--green);
}
@media (max-width: 1180px) {
  .admin-section > .container,
  .admin-hero-v2 > .container,
  .admin-wide-container {
width:min(…x);
  }
  .orders-table-v2 { min-width: 1040px; }
  .order-detail-grid-v2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .admin-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-section > .container,
  .admin-hero-v2 > .container,
  .admin-wide-container {
width:min(…x);
  }
}

/* patch_014_product_media_upload */
.media-admin-card input[type="file"] {
  padding: 12px;
  background: #fff;
  cursor: pointer;
}
.admin-image-preview {
  display: grid;
  gap: 9px;
  margin: 0 0 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(248,250,245,.85);
}
.admin-image-preview img {
width:100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}
.admin-image-preview span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.category-preview img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.product-media-manager {
  margin-top: 22px;
}
.admin-media-grid {
  display: grid;
grid-template-columns:repe…));
  gap: 16px;
}
.admin-media-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(18,53,29,.06);
}
.admin-media-item.is-main {
  border-color: rgba(18,53,29,.34);
  box-shadow: 0 16px 42px rgba(18,53,29,.12);
}
.admin-media-item img {
width:100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f6f8f4;
  display: block;
}
.admin-media-item-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.admin-media-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.status-dot {
width:12px;
  height: 12px;
  display: inline-block;
  border-radius: 999px;
  margin-right: 7px;
  vertical-align: -1px;
}
.status-dot.green {
  background: linear-gradient(135deg, #83dc9e, #1b8c4a);
  box-shadow: 0 0 0 4px rgba(49,154,90,.12);
}
.danger-icon {
  color: #9f2d24 !important;
}
.compact-empty {
grid-column:1 / -1;
  min-height: auto;
  padding: 22px;
}
.product-gallery-managed .managed-thumbs {
  gap: 10px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.gallery-thumb {
width:76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px;
  background: #fff;
  cursor: pointer;
  transition: .18s ease;
}
.gallery-thumb img {
width:100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}
.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: rgba(18,53,29,.5);
  box-shadow: 0 10px 24px rgba(18,53,29,.13);
  transform: translateY(-1px);
}
.product-gallery-managed .video-thumb {
width:76px;
  height: 76px;
  text-decoration: none;
}
.muted-video-card {
  opacity: .72;
}
.review-screenshot {
width:100%;
  max-height: 180px;
  margin-top: 12px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
}
@media (max-width: 720px) {
  .admin-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-gallery-managed .managed-thumbs {
    max-height: none;
    overflow-y: hidden;
    padding-right: 0;
  }
  .gallery-thumb,
  .product-gallery-managed .video-thumb {
width:62px;
    height: 62px;
  }
}

/* patch_016_promocodes_cart_discount */
.promo-message {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
}
.promo-message.is-success {
  border: 1px solid rgba(36, 138, 71, .22);
  background: #eef8ef;
  color: #135322;
}
.promo-message.is-error {
  border: 1px solid rgba(170, 55, 48, .22);
  background: #fff3f1;
  color: #8b241d;
}
.promo-remove-form {
  margin-top: 8px;
}
.promocode-card-v2 {
grid-template-columns:auto…to;
}
.promocode-card-v2 .promo-icon { font-size: 22px; }
.promocodes-table-v2 {
min-width:1040px;
  table-layout: fixed;
}
.promocodes-table-v2 th:nth-child(1) { width: 15%; }
.promocodes-table-v2 th:nth-child(2) { width: 14%; }
.promocodes-table-v2 th:nth-child(3) { width: 14%; }
.promocodes-table-v2 th:nth-child(4) { width: 16%; }
.promocodes-table-v2 th:nth-child(5) { width: 20%; }
.promocodes-table-v2 th:nth-child(6) { width: 8%; }
.promocodes-table-v2 th:nth-child(7) { width: 13%; }
.admin-form-main .admin-field,
.admin-form-side .admin-field {
  display: grid;
  gap: 7px;
  color: #233929;
  font-weight: 850;
}
.admin-form-main .admin-field > span,
.admin-form-side .admin-field > span {
  font-size: 14px;
}
.admin-form-main input,
.admin-form-main select,
.admin-form-main textarea,
.admin-form-side input,
.admin-form-side select,
.admin-form-side textarea {
width:100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(18,53,29,.18);
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}
.admin-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.promo-stats-box {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}
.promo-stats-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.promo-stats-box b {
  color: var(--green);
  font-size: 22px;
}
@media (max-width: 720px) {
  .promocode-card-v2 { grid-template-columns: 1fr; }
  .promocodes-table-v2 { min-width: 920px; }
}

/* patch_017_promocode_field_height_fix */
.admin-form-main .form-grid.two,
.admin-form-side .form-grid.two {
  align-items: start;
}
.admin-form-main .form-grid.two > .admin-field,
.admin-form-side .form-grid.two > .admin-field {
  align-self: start;
}
.admin-form-main .admin-field input,
.admin-form-main .admin-field select,
.admin-form-side .admin-field input,
.admin-form-side .admin-field select {
  height: 48px;
}
.admin-form-main .admin-field textarea,
.admin-form-side .admin-field textarea {
  min-height: 120px;
  height: auto;
}

/* Patch 018: settings, contacts, legal pages */
.admin-notice {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 18px;
    margin: 0 0 18px;
    font-weight: 800;
    background: rgba(255,255,255,.8);
}

.admin-notice.success {
    border-color: rgba(15, 93, 50, .22);
    background: rgba(221, 239, 218, .72);
    color: var(--green);
}

.settings-form {
    display: grid;
    gap: 22px;
}

.settings-section-card {
    overflow: visible;
}

.settings-fields-grid {
    display: grid;
grid-template-columns:repe…));
    gap: 18px 20px;
}

.settings-fields-grid .field {
    display: grid;
    gap: 8px;
    align-self: start;
}

.settings-fields-grid .field-wide {
grid-column:1 / -1;
}

.settings-fields-grid input,
.settings-fields-grid textarea {
width:100%;
}

.settings-fields-grid textarea:not(.rich-editor-source) {
    min-height: 96px;
    resize: vertical;
}

.settings-rich-editor {
    min-height: 220px;
    max-height: 460px;
    overflow: auto;
    background: #fff;
}

.settings-save-card {
    position: sticky;
    bottom: 18px;
    z-index: 5;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
}

.settings-save-card .btn {
width:100%;
}

.static-card {
    font-size: 18px;
    line-height: 1.72;
}

.static-card h2,
.static-card h3 {
    margin-top: 26px;
    margin-bottom: 10px;
    font-family: var(--serif);
    color: var(--green);
}

.static-card h2 {
    font-size: clamp(28px, 3vw, 42px);
}

.static-card h3 {
    font-size: clamp(22px, 2.4vw, 30px);
}

.static-card p + p {
    margin-top: 14px;
}

.contacts-page-grid {
    display: grid;
grid-template-columns:repe…));
    gap: 16px;
}

.contact-line {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    background: var(--milk);
    display: grid;
    gap: 6px;
}

.contact-line span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.contact-line b {
    color: var(--text);
    font-size: 17px;
    white-space: pre-line;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.site-footer .socials a {
    color: var(--green);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 50%;
width:32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    background: #fff;
}

@media (max-width: 760px) {
    .settings-fields-grid,
    .contacts-page-grid {
grid-template-columns:1fr;
    }

    .settings-save-card {
        position: static;
    }
}


/* PATCH 019: footer logo and active links */
.footer-logo-link {
  display: inline-flex;
  align-items: center;
width:190px;
max-width:100%;
  margin-bottom: 10px;
}
.footer-logo-img {
width:170px;
  height: auto;
  display: block;
}
.site-footer .socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}
.site-footer .socials a {
  color: var(--green);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 50%;
width:34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  background: #fff;
  box-shadow: 0 8px 20px rgba(22, 42, 25, .06);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.site-footer .socials a:hover,
.site-footer .socials a:focus {
  transform: translateY(-1px);
  border-color: #a7b99b;
  background: #f3f8ee;
}
.footer-bottom .footer-dev-link {
  display: inline;
  color: var(--green);
  font-weight: 800;
  border-bottom: 1px solid rgba(25, 59, 33, .28);
}


/* PATCH 020: settings page UI polish and stable secondary buttons */
.btn-light,
a.btn-light,
button.btn-light {
  background: #fff;
  color: var(--green);
  border: 1px solid rgba(18, 53, 29, .18);
  box-shadow: 0 8px 20px rgba(18, 53, 29, .06);
}

.btn-light:hover,
.btn-light:focus,
.btn-light:active,
a.btn-light:hover,
a.btn-light:focus,
a.btn-light:active,
button.btn-light:hover,
button.btn-light:focus,
button.btn-light:active {
  background: #f7fbf3;
  color: var(--green);
  border-color: rgba(18, 53, 29, .26);
  box-shadow: 0 12px 28px rgba(18, 53, 29, .10);
  transform: translateY(-1px);
  outline: none;
}

.danger-light,
a.danger-light,
button.danger-light {
  background: #fff7f5;
  color: #9b1c14;
  border-color: rgba(155, 28, 20, .20);
}

.danger-light:hover,
.danger-light:focus,
.danger-light:active,
a.danger-light:hover,
a.danger-light:focus,
a.danger-light:active,
button.danger-light:hover,
button.danger-light:focus,
button.danger-light:active {
  background: #fff0ed;
  color: #8c170f;
  border-color: rgba(155, 28, 20, .32);
  box-shadow: 0 12px 28px rgba(155, 28, 20, .08);
}

.admin-head-actions .btn-light {
min-width:128px;
  min-height: 46px;
}

.settings-section-card {
  padding: 28px 30px;
}

.settings-section-card .admin-card-headline {
  margin-bottom: 18px;
}

.settings-fields-grid {
  gap: 20px 24px;
}

.settings-fields-grid .field span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.settings-fields-grid input,
.settings-fields-grid select,
.settings-fields-grid textarea {
  box-sizing: border-box;
  display: block;
width:100%;
  min-height: 48px;
  padding: 13px 16px;
  border: 1px solid #cfd8ca;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.settings-fields-grid input:focus,
.settings-fields-grid select:focus,
.settings-fields-grid textarea:focus,
.settings-rich-editor:focus {
  outline: none;
  border-color: rgba(18,53,29,.42);
  box-shadow: 0 0 0 4px rgba(95,139,69,.12);
  background: #fff;
}

.settings-fields-grid textarea:not(.rich-editor-source) {
  min-height: 112px;
  resize: vertical;
}

.settings-rich-editor {
  box-sizing: border-box;
  min-height: 220px;
  max-height: 480px;
  padding: 16px 18px;
  border: 1px solid #cfd8ca;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  overflow: auto;
}

.settings-rich-editor h2,
.settings-rich-editor h3 {
  margin: 18px 0 10px;
}

.settings-rich-editor p {
  margin: 0 0 12px;
}

.settings-rich-editor blockquote {
  margin: 16px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--green);
  border-radius: 12px;
  background: #f4f8ef;
}

.settings-form .mini-editor-toolbar {
  margin: 2px 0 8px;
}

.settings-save-card {
  padding: 18px;
}

@media (min-width: 1200px) {
  .settings-form {
    gap: 26px;
  }
}

/* Patch 021: VK notification settings */
.admin-notice.error {
  border-color: rgba(165, 49, 49, .22);
  background: rgba(255, 236, 236, .82);
  color: #8f1f1f;
}

.settings-checkbox-card {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
width:100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #cfd8ca;
  border-radius: 14px;
  background: rgba(244, 248, 239, .86);
  font-weight: 800;
}

.settings-checkbox-card input {
width:18px…nt;
  height: 18px !important;
  min-height: 18px !important;
  accent-color: var(--green);
}

.vk-test-card .admin-card-headline {
  align-items: flex-start;
}

.vk-status-grid {
  display: grid;
grid-template-columns:1.3f…fr;
  gap: 14px;
  margin-top: 18px;
}

.status-tile {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(244, 248, 239, .7);
}

.status-tile span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.status-tile b {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .vk-status-grid {
grid-template-columns:1fr;
  }
}

/* PATCH 022: drawer help for admin blocks */
.admin-card-headline.with-help,
.admin-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.admin-card-title-row {
    margin-bottom: 18px;
}

.admin-card-title-row h2,
.admin-card-headline.with-help h2 {
    margin: 0;
}

.admin-help-button {
    flex: 0 0 auto;
width:34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(12, 63, 34, 0.22);
    background: #fffef8;
    color: var(--green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(12, 63, 34, 0.08);
    transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.admin-help-button:hover,
.admin-help-button:focus-visible {
    background: #f0f7e9;
    border-color: rgba(12, 63, 34, 0.42);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(12, 63, 34, 0.14);
    outline: none;
}

.admin-help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 20, 11, 0.28);
    z-index: 1200;
    opacity: 0;
    transition: opacity .18s ease;
}

.admin-help-overlay.is-open {
    opacity: 1;
}

.admin-help-drawer {
    position: fixed;
    z-index: 1201;
    top: 0;
    right: 0;
width:min(…));
    height: 100vh;
    background: #fffef8;
    border-left: 1px solid rgba(12, 63, 34, 0.16);
    box-shadow: -22px 0 60px rgba(12, 63, 34, 0.18);
    transform: translateX(105%);
    transition: transform .2s ease;
    display: flex;
    flex-direction: column;
}

.admin-help-drawer.is-open {
    transform: translateX(0);
}

.admin-help-drawer-head {
    padding: 28px 28px 20px;
    background: linear-gradient(135deg, #f8f6ed 0%, #dcebd3 100%);
    border-bottom: 1px solid rgba(12, 63, 34, 0.16);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.admin-help-drawer-head h2 {
    margin: 4px 0 0;
    color: var(--green-dark);
    font-family: var(--serif);
    font-size: 34px;
    line-height: 1;
}

.admin-help-close {
width:38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(12, 63, 34, 0.18);
    background: #fff;
    color: var(--green-dark);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.admin-help-drawer-body {
    padding: 24px 28px 32px;
    overflow-y: auto;
    color: var(--text);
    font-size: 16px;
    line-height: 1.58;
}

.admin-help-drawer-body p {
    margin: 0 0 14px;
}

.admin-help-drawer-body ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.admin-help-drawer-body li {
    margin-bottom: 8px;
}

.admin-help-drawer-body b {
    color: var(--green-dark);
}

@media (max-width: 640px) {
    .admin-help-drawer {
width:100vw;
    }

    .admin-help-drawer-head h2 {
        font-size: 28px;
    }
}

.admin-list-help-row {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 8px;
}

.compact-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* patch_023_admin_product_media_sidebar_fix */
.product-edit-form .admin-form-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.product-edit-form .admin-form-side .sticky-card {
  position: static;
  top: auto;
  z-index: auto;
}
.product-edit-form .media-admin-card {
  margin-top: 0;
}
.product-edit-form .admin-image-preview {
  position: relative;
  z-index: 0;
}
.product-edit-form .admin-card-v2 {
  overflow: visible;
}
.product-edit-form .media-admin-card input[type="file"] {
width:100%;
}
@media (min-width: 1041px) {
  .product-edit-form {
grid-template-columns:minm…px;
  }
}

/* patch_024_service_pages_mobile_check */
.service-error-hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 12%, rgba(95, 139, 69, .26) 0, transparent 30%),
    radial-gradient(circle at 20% 88%, rgba(18, 53, 29, .08) 0, transparent 28%),
    linear-gradient(135deg, #fffdf7 0%, #edf5e8 100%);
}
.service-error-grid {
  display: grid;
grid-template-columns:minm…px;
  gap: 44px;
  align-items: center;
}
.service-error-copy h1 {
max-width:780px;
  margin: 0 0 18px;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 86px);
  line-height: .94;
  font-weight: 500;
  letter-spacing: -.055em;
}
.service-error-copy p {
max-width:680px;
  color: #3c4a3b;
  font-size: 20px;
}
.service-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.service-error-card {
  padding: 34px;
  border: 1px solid rgba(18,53,29,.14);
  border-radius: 28px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 24px 70px rgba(18,53,29,.12);
}
.service-error-card span {
  display: inline-flex;
width:86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--serif);
  font-size: 36px;
}
.service-error-card h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 36px;
}
.service-error-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.service-error-card li { margin-bottom: 8px; }
.static-card-v2 {
  border: 1px solid rgba(18,53,29,.12);
  border-radius: 26px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 55px rgba(18,53,29,.08);
}
.static-content {
max-width:980px;
}
.static-content h2,
.static-content h3 {
  margin: 28px 0 10px;
  color: var(--green);
  font-family: var(--serif);
  line-height: 1.1;
}
.static-content h2 { font-size: 36px; }
.static-content h3 { font-size: 28px; }
.static-content p { margin: 0 0 14px; }
.static-content ul,
.static-content ol { padding-left: 22px; }
.contacts-page-grid {
  display: grid;
grid-template-columns:repe…));
  gap: 14px;
}
.contact-line {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7faf3;
}
.contact-line span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.contact-line b { overflow-wrap: anywhere; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.empty-state {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border-style: solid;
  background:
    radial-gradient(circle at 86% 16%, rgba(95,139,69,.14), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f4f8ef 100%);
}
.empty-state h2 {
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
}
.empty-state p { max-width: 620px; color: var(--muted); }

@media (max-width: 980px) {
  .service-error-grid { grid-template-columns: 1fr; }
  .service-error-card { max-width: 620px; }
  .contacts-page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  html, body { overflow-x: hidden; }
  .container,
  .admin-section > .container,
  .admin-hero-v2 > .container,
  .admin-wide-container {
width:min(…x);
  }
  .site-header { position: sticky; }
  .header-inner { gap: 12px; }
  .logo-mark { width: 22px; height: 34px; }
  .cart-link { margin-left: auto; }
  .page-hero,
  .page-hero.compact,
  .article-hero,
  .cart-hero {
    padding: 34px 0;
  }
  .hero-copy h1,
  .page-hero h1,
  .article-hero h1,
  .service-error-copy h1 {
    font-size: clamp(38px, 12vw, 54px);
    line-height: .98;
  }
  .hero-actions,
  .service-error-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .hero-actions .btn,
  .hero-actions .btn-light,
  .service-error-actions .btn,
  .service-error-actions .btn-light {
width:100%;
  }
  .product-page-grid-v2 { gap: 28px; }
  .main-product-image { min-height: 360px; }
  .managed-thumbs {
    overflow-x: auto;
    padding-bottom: 4px;
scrollbar-width:thin;
  }
  .managed-thumbs .gallery-thumb,
  .thumbs img,
  .video-thumb {
    flex: 0 0 74px;
  }
  .tabs-nav-static {
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .cart-grid,
  .checkout-grid,
  .order-detail-grid-v2,
  .success-grid {
    gap: 18px;
  }
  .order-summary {
    position: static;
    top: auto;
  }
  .cart-item {
grid-template-columns:92px…r);
    gap: 14px;
  }
  .cart-item h2 { font-size: 20px; }
  .qty-form,
  .line-sum {
grid-column:1 / -1;
width:100%;
  }
  .line-sum { text-align: left; }
  .promocode-card-v2 {
grid-template-columns:1fr;
  }
  .checkout-form h2,
  .order-summary h2 {
    font-size: 30px;
  }
  .admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
scrollbar-width:thin;
  }
  .admin-tabs a,
  .admin-tabs span {
    flex: 0 0 auto;
  }
  .admin-filter-card,
  .orders-filter-card,
  .form-grid.two,
  .form-grid.three,
  .admin-edit-form,
  .admin-edit-form.one-column,
  .product-edit-form,
  .product-edit-form .admin-form-side,
  .admin-settings-grid,
  .settings-grid {
grid-template-columns:1fr …nt;
  }
  .admin-head-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-head-actions {
width:100%;
    justify-content: flex-start;
  }
  .admin-head-actions .btn,
  .admin-head-actions .btn-light,
  .admin-head-actions .danger-light {
width:100%;
  }
  .admin-card-v2:has(table),
  .admin-card:has(table) {
    margin-left: -2px;
    margin-right: -2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table-clean,
  .products-table-v2,
  .orders-table-v2,
  .promocodes-table-v2 {
min-width:880px;
  }
  .admin-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-pagination-nav {
width:100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .admin-help-drawer { width: 100vw; }
}

@media (max-width: 560px) {
  .container,
  .admin-section > .container,
  .admin-hero-v2 > .container,
  .admin-wide-container {
width:min(…x);
  }
  .section { padding: 30px 0; }
  .header-inner { height: 58px; }
  .logo-text { font-size: 14px; }
  .cart-link b { right: -7px; top: -8px; }
  .mobile-nav.is-open { padding-left: 9px; padding-right: 9px; }
  .hero-grid { padding: 30px 0; }
  .hero-features,
  .hero-features-v2 { grid-template-columns: 1fr; }
  .category-card,
  .product-card,
  .article-card,
  .review-card,
  .cart-main,
  .checkout-form,
  .order-summary,
  .static-card,
  .admin-card,
  .admin-login-card,
  .service-error-card {
    border-radius: 18px;
  }
  .checkout-form,
  .order-summary,
  .cart-main,
  .success-card,
  .static-card,
  .admin-card,
  .service-error-card {
    padding: 20px;
  }
  .main-product-image { min-height: 300px; border-radius: 18px; }
  .product-info h1 { font-size: 34px; }
  .product-price { font-size: 32px; }
  .buy-row { grid-template-columns: 1fr; }
  .benefit-grid-v2 div { grid-template-columns: 1fr; }
  .footer-grid { gap: 24px; }
  .footer-bottom { gap: 12px; flex-direction: column; }
  .service-error-hero { min-height: auto; padding: 44px 0; }
  .service-error-card span { width: 70px; height: 70px; font-size: 30px; }
  .service-error-card h2 { font-size: 30px; }
  .empty-state { padding: 26px; }
  .contacts-page-grid { gap: 10px; }
  .contact-line { padding: 14px; }
}

/* patch_025_cart_ajax_no_scroll */
.cart-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
max-width:min(…));
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 18px 45px rgba(13, 59, 35, .24);
  font-weight: 800;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

button.is-loading,
button.is-done,
button.is-error {
  cursor: wait;
}

button.is-done {
  filter: brightness(1.04);
}

button.is-error {
  background: #9d302a !important;
}

@media (max-width: 640px) {
  .cart-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
max-width:none;
    text-align: center;
  }
}

/* PATCH 026: center text in hero feature pills on the first screen */
.hero-features span,
.hero-features-v2 span {
  justify-content: center;
  text-align: center;
  line-height: 1.22;
  gap: 6px;
}

@media (max-width: 720px) {
  .hero-features span,
  .hero-features-v2 span {
    min-height: 50px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* patch 027: Alfa-Bank payment blocks */
.payment-action-form {
    margin: 18px 0 10px;
}

.payment-notice {
    margin: 14px 0;
}

.order-payment-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.payment-meta-list {
    display: grid;
    gap: 8px;
}

.payment-meta-list > div {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(245, 248, 241, 0.8);
    overflow-wrap: anywhere;
}

.payment-meta-list span {
    color: var(--muted);
    font-size: 0.82rem;
}

.payment-meta-list b {
    color: var(--green);
    font-size: 0.92rem;
}

.payment-admin-actions {
    display: grid;
grid-template-columns:1fr 1fr;
    gap: 10px;
}

.payment-admin-actions form,
.payment-admin-actions button {
width:100%;
}

.alfa-test-card .status-tile b {
    overflow-wrap: anywhere;
}

@media (max-width: 680px) {
    .payment-admin-actions {
grid-template-columns:1fr;
    }
}


/* patch_029_alpha_payment_polish */
.orders-payment-cell {
  border-radius: 14px;
}
.orders-payment-cell-paid {
  background: linear-gradient(90deg, rgba(50,180,99,.12), transparent 92%);
}
.orders-payment-cell-failed,
.orders-payment-cell-cancelled {
  background: linear-gradient(90deg, rgba(216,75,59,.12), transparent 92%);
}
.orders-payment-cell-pending {
  background: linear-gradient(90deg, rgba(212,163,35,.10), transparent 92%);
}
.payment-meta-list-v2 {
  display: grid;
grid-template-columns:1fr;
  gap: 10px;
}
.payment-meta-list-v2 div {
min-width:0;
  padding: 10px 12px;
  border: 1px solid rgba(18,53,29,.12);
  border-radius: 12px;
  background: #f8faf5;
}
.payment-meta-list-v2 span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.payment-meta-list-v2 b,
.payment-meta-list-v2 a {
  display: block;
  overflow-wrap: anywhere;
  color: var(--green);
  font-weight: 850;
}
.order-events-card {
  margin-top: 20px;
}
.order-events-list {
  display: grid;
  gap: 12px;
}
.order-event-item {
  display: grid;
grid-template-columns:145p…r);
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(18,53,29,.12);
  border-radius: 16px;
  background: #f8faf5;
}
.order-event-item::before {
  content: "";
width:10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #8aa07f;
grid-column:1;
grid-row:1;
  justify-self: end;
}
.order-event-time {
grid-column:1;
grid-row:1;
  padding-right: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-align: left;
}
.order-event-body {
grid-column:2;
}
.order-event-body b {
  display: block;
  color: var(--green);
}
.order-event-body p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.order-event-payment_paid::before,
.order-event-vk_paid::befo…; }
.order-event-payment_failed_return::before,
.order-event-vk_error::before { background: #d84b3b; }
.order-event-payment_link::before,
.order-event-payment_check::before,
.order-event-payment_return::before { background: #d4a323; }
@media (max-width: 720px) {
  .order-event-item {
grid-template-columns:1fr;
    gap: 8px;
  }
  .order-event-item::before { display: none; }
  .order-event-time,
  .order-event-body {
grid-column:auto;
grid-row:auto;
    padding-right: 0;
  }
}

/* patch_032_product_images_layout_fix */
/* Карточки каталога: фотографии показываются полностью в вертикальной пропорции,
   а цена и кнопка закреплены у нижнего края карточки. */
.product-card,
.product-card-v2 {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-v2 .product-image-wrap,
.product-image-wrap {
  aspect-ratio: 3 / 4;
  background: #fff;
}

.product-card-v2 .product-image-wrap img,
.product-image-wrap img {
  object-fit: contain;
  object-position: center;
}

.product-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.product-bottom {
  margin-top: auto;
}

/* Карточка товара: высоту задаёт главное фото, а длинная колонка миниатюр
   прокручивается внутри той же высоты и больше не растягивает блок. */
.product-gallery-managed {
  display: block;
}

.product-gallery-stage {
  position: relative;
  padding-left: 94px;
}

.product-gallery-stage .managed-thumbs {
  position: absolute;
  inset: 0 auto 0 0;
  width: 80px;
  max-height: none;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1px 4px 1px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(25,59,33,.35) transparent;
}

.product-gallery-stage .managed-thumbs::-webkit-scrollbar {
  width: 6px;
}

.product-gallery-stage .managed-thumbs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(25,59,33,.28);
}

.product-gallery-stage .main-product-image,
.product-gallery-stage .main-product-image-v2 {
  width: 100%;
  min-height: 0;
  aspect-ratio: 3 / 4;
}

.product-gallery-stage .main-product-image img,
.product-gallery-stage .main-product-image-v2 img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.product-gallery-managed .video-card-v2 {
  margin-top: 18px;
  margin-left: 94px;
}

/* Статические псевдовкладки удалены: описание, состав и применение
   сразу выводятся единым читаемым блоком. */
.product-description-content {
  max-width: 1080px;
}

.product-description-content h2 {
  margin-top: 30px;
  font-size: 34px;
}

.product-description-content h2:first-child {
  margin-top: 0;
}

.product-description-content p {
  max-width: 980px;
}

@media (max-width: 820px) {
  .product-gallery-stage {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 0;
  }

  .product-gallery-stage .main-product-image,
  .product-gallery-stage .main-product-image-v2 {
    order: 1;
    width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .product-gallery-stage .managed-thumbs {
    position: static;
    order: 2;
    width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 5px;
  }

  .product-gallery-managed .video-card-v2 {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .product-card-v2 .product-image-wrap,
  .product-image-wrap {
    aspect-ratio: 3 / 4;
  }

  .product-gallery-stage .main-product-image,
  .product-gallery-stage .main-product-image-v2 {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }
}


/* patch_033_home_hero_products_collage */
.hero-collage-wrap {
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 8px 0;
}

.hero-collage-wrap::before {
  left: 7%;
  right: 2%;
  bottom: 52px;
  height: 42px;
}

.hero-collage-image {
  position: relative;
  z-index: 1;
  display: block;
  width: min(760px, 118%);
  max-width: none;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  transform: translateY(8px);
}

.hero-collage-wrap .hero-leaf-note {
  z-index: 2;
  right: 6%;
  bottom: 62px;
}

@media (max-width: 1100px) {
  .hero-collage-image {
    width: min(700px, 112%);
  }
}

@media (max-width: 900px) {
  .hero-collage-wrap {
    min-height: auto;
    padding: 0 0 12px;
  }

  .hero-collage-image {
    width: min(760px, 100%);
    transform: none;
  }

  .hero-collage-wrap .hero-leaf-note {
    right: 7%;
    bottom: 28px;
  }
}

@media (max-width: 600px) {
  .hero-collage-image {
    width: 108%;
    margin-left: -4%;
  }

  .hero-collage-wrap .hero-leaf-note {
    right: 4%;
    bottom: 14px;
    max-width: 190px;
  }
}


/* patch_034_home_reviews_articles */
.benefit-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-band-v2 > img {
  width: 100%;
  max-height: none;
  aspect-ratio: 5 / 3;
  object-fit: contain;
  border-radius: 24px;
  background: transparent;
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 36%, #fff 0, #f3f7ef 58%, #e7efe1 100%);
}

.article-card b {
  margin-top: auto;
  padding-top: 12px;
}

.article-hero img {
  width: min(100%, 470px);
  max-height: none;
  aspect-ratio: 3 / 4;
  justify-self: center;
  object-fit: contain;
  background: radial-gradient(circle at 50% 36%, #fff 0, #f3f7ef 58%, #e7efe1 100%);
}

.article-body a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-body li {
  margin-bottom: 8px;
}

.review-disclaimer {
  max-width: 920px;
  margin: -8px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .benefit-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .benefit-strip {
    grid-template-columns: 1fr;
  }
}


/* patch_035_home_reviews_carousel */
.reviews-home-section {
  overflow: hidden;
}

.reviews-section-head {
  align-items: flex-end;
  margin-bottom: 14px;
}

.reviews-section-copy {
  min-width: 0;
}

.reviews-section-copy h2 {
  margin-bottom: 12px;
}

.reviews-section-copy .review-disclaimer {
  margin: 0;
}

.review-carousel {
  position: relative;
  margin-top: 12px;
}

.review-carousel-viewport {
  overflow: hidden;
  padding: 8px 4px 22px;
}

.review-carousel-track {
  display: flex;
  gap: 18px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform .42s cubic-bezier(.22, .61, .36, 1);
}

.review-carousel-track.is-jumping {
  transition: none;
}

.review-carousel-card {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  height: 304px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(22, 42, 25, .07);
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 7px;
}

.review-card-top time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.review-carousel-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.2;
}

.review-product-link {
  min-height: 42px;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.review-product-link:hover {
  color: #52703f;
}

.review-card-text {
  margin: 0;
  color: #263126;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.review-carousel-controls {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.review-carousel-controls button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(22, 42, 25, .06);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.review-carousel-controls button:hover,
.review-carousel-controls button:focus-visible {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

.review-carousel-counter {
  min-width: 54px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.review-carousel-counter b {
  color: var(--green);
  font-size: 17px;
}

@media (max-width: 900px) {
  .review-carousel-track {
    gap: 16px;
  }

  .review-carousel-card {
    flex-basis: calc((100% - 16px) / 2);
    height: 294px;
  }
}

@media (max-width: 620px) {
  .reviews-section-head {
    align-items: flex-start;
  }

  .review-carousel-controls {
    margin-bottom: 2px;
  }

  .review-carousel-card {
    flex-basis: 100%;
    height: 292px;
    padding: 20px;
  }

  .review-carousel-controls button {
    width: 40px;
    height: 40px;
  }

  .review-card-text {
    -webkit-line-clamp: 6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-carousel-track {
    transition: none;
  }
}


/* patch_036_home_reviews_carousel_fix */
.review-carousel-viewport {
  perspective: 1200px;
  perspective-origin: center center;
}

.review-carousel-track {
  transform-style: preserve-3d;
}

.review-carousel-card {
  opacity: .88;
  transform: perspective(1000px) scale(.97) translateZ(0);
  transform-origin: center center;
  backface-visibility: hidden;
  transition:
    transform .46s cubic-bezier(.22, .61, .36, 1),
    opacity .46s ease,
    box-shadow .46s ease;
}

.review-carousel-card.is-review-leading {
  opacity: .96;
  transform: perspective(1000px) rotateY(2.4deg) scale(.985) translateZ(5px);
}

.review-carousel-card.is-review-center {
  opacity: 1;
  transform: perspective(1000px) scale(1.018) translateZ(22px);
  box-shadow: 0 18px 46px rgba(22, 42, 25, .12);
}

.review-carousel-card.is-review-trailing {
  opacity: .96;
  transform: perspective(1000px) rotateY(-2.4deg) scale(.985) translateZ(5px);
}

.review-carousel-controls {
  gap: 12px;
}

.review-carousel-controls button {
  position: relative;
  z-index: 5;
  touch-action: manipulation;
  user-select: none;
}

.review-carousel-controls button:active {
  transform: translateY(0) scale(.94);
}

@media (max-width: 900px) {
  .review-carousel-card.is-review-leading {
    transform: perspective(1000px) rotateY(1.8deg) scale(.99);
  }

  .review-carousel-card.is-review-trailing {
    transform: perspective(1000px) rotateY(-1.8deg) scale(.99);
  }
}

@media (max-width: 620px) {
  .review-carousel-card,
  .review-carousel-card.is-review-leading,
  .review-carousel-card.is-review-center,
  .review-carousel-card.is-review-trailing {
    opacity: 1;
    transform: perspective(1000px) scale(.99) translateZ(0);
  }

  .review-carousel-card.is-review-center {
    transform: perspective(1000px) scale(1) translateZ(8px);
  }
}
