: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(430px, 66%);
  aspect-ratio: 1 / 1.05;
  right: 22%;
  top: 54px;
  border-radius: 36px;
  transform: rotate(-1deg);
}
.hero-product-small {
  width: min(228px, 36%);
  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: repeat(4, minmax(0, 1fr));
  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 1fr;
  gap: 2px 10px;
  align-items: start;
}
.benefit-grid-v2 div span {
  grid-row: 1 / span 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: minmax(0, 1.1fr) 440px;
  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: repeat(3, minmax(0, 1fr));
  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: minmax(220px,1.4fr) minmax(190px,.7fr) minmax(220px,.9fr) auto;
  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 minmax(0, 1fr);
  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-content;
  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: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}
.admin-edit-form.one-column {
  grid-template-columns: minmax(0, 920px);
}
.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 !important;
  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 !important;
  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 minmax(0, 1fr);
  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: minmax(260px, 1fr) minmax(190px, .45fr) auto;
}
.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: minmax(280px, 1fr) minmax(190px, .42fr) minmax(210px, .48fr) auto;
}
.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: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}
.order-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  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: minmax(0, 1fr) 360px;
  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; }
}
