/*
Theme Name: ФитоТехнологии
Description: Лёгкая тема магазина товаров для растений.
Version: 1.0
Requires PHP: 8.1
*/

:root {
	--ink: #17251c;
	--muted: #5c6b60;
	--paper: #f5f6f0;
	--card: #fff;
	--line: #dde2d8;
	--leaf: #2f7d32;
	--leaf-dark: #1f5a23;
	--night: #101a15;
	--sodium: #ffb02e;
	--warm: #fff0c9;
	--radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--paper); overflow-wrap: break-word; }
img, iframe, video { max-width: 100%; }
img { height: auto; }
a { color: var(--leaf-dark); }
a:hover { color: var(--leaf); }
h1, h2, h3 { line-height: 1.2; margin: 1.2em 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); margin-top: .3em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 20; }

.spectrum { height: 4px; background: linear-gradient(90deg, #4a35c9, #1f8fd6 20%, #2fae5b 40%, #e8c22b 62%, #ef7d1a 80%, #d3304c); }

.topline { background: var(--night); color: #cfdccf; font-size: .82rem; }
.topline .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; flex-wrap: wrap; }
.head { background: var(--card); }
.head .wrap { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: auto; }
.brand b { display: block; font-size: 1.25rem; letter-spacing: -.01em; }
.brand small { display: block; color: var(--muted); font-size: .8rem; }
.search { flex: 1; display: flex; max-width: 420px; margin-left: auto; }
.search input[type=search] { flex: 1; min-width: 0; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); padding: 9px 12px; font: inherit; }
.search button { border: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--leaf); color: #fff; padding: 0 16px; font: inherit; cursor: pointer; }
.head-contact { text-align: right; font-size: .85rem; white-space: nowrap; }
.head-contact a { display: block; }
.phone { font-weight: 700; font-size: 1.15rem; text-decoration: none; white-space: nowrap; }
.cart-link { white-space: nowrap; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; text-decoration: none; }
.cart-link b { background: var(--leaf); color: #fff; border-radius: 99px; padding: 0 8px; margin-left: 4px; font-size: .85rem; }
.burger { display: none; }

.mainnav { background: var(--card); border-top: 1px solid var(--line); }
.menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.menu li { position: relative; }
.menu a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.menu a:hover, .menu .current-menu-item > a { color: var(--leaf); box-shadow: inset 0 -2px var(--leaf); }
.menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 10; min-width: 280px; max-height: 70vh; overflow: auto; list-style: none; margin: 0; padding: 6px 0; background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 30px rgb(16 26 21 / .14); }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { display: block; }
.menu .sub-menu a { padding: 7px 16px; font-size: .93rem; }

.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; padding: 24px 0 48px; }
.layout--wide { grid-template-columns: minmax(0, 1fr); }
.side h2 { font-size: 1rem; margin: 0 0 8px; }
.side-menu + h2 { margin-top: 18px; }
.side-menu { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side-menu li + li { border-top: 1px solid var(--line); }
.side-menu a { display: block; padding: 9px 14px; text-decoration: none; }
.side-menu a:hover, .side-menu .current-menu-item > a { background: #eaf2e6; }
.side-menu .sub-menu { list-style: none; margin: 0; padding: 0 0 6px 14px; }
.side-menu .sub-menu li { border: 0; }
.side-menu .sub-menu a { padding: 4px 14px; font-size: .9rem; }
.side-call { margin-top: 16px; padding: 14px; border-radius: var(--radius); background: var(--night); color: #dbe7db; }
.side-call p { margin: 0 0 6px; font-size: .9rem; }
.side-call a { color: var(--sodium); }

.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.text { max-width: 78ch; }
.text img { border-radius: 6px; }
.text iframe { aspect-ratio: 16 / 9; width: 100%; height: auto; border: 0; }
.text table { border-collapse: collapse; display: block; overflow-x: auto; margin: 16px 0; background: var(--card); }
.text td, .text th { border: 1px solid var(--line); padding: 6px 10px; vertical-align: top; }
.text caption { text-align: left; font-weight: 600; padding: 6px 0; }
.date { color: var(--muted); font-size: .85rem; margin-top: 0; }
.kids { columns: 3 190px; padding: 0; list-style: none; }
.kids li { break-inside: avoid; padding: 2px 0; }
.post-list { list-style: none; padding: 0; }
.post-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; }
.post-list li > a { font-weight: 700; display: block; }
.post-list time { color: var(--muted); font-size: .82rem; }
.post-list p { margin: 6px 0 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.menu .sub-menu:has(> li:nth-child(24)) { columns: 3; min-width: 620px; }
.contacts { background: var(--card); }
.contacts th { text-align: left; }
.feedback { display: grid; gap: 12px; max-width: 460px; margin: 28px 0; }
.feedback h2 { margin: 0; }
.feedback input:not([type=checkbox]), .feedback textarea { display: block; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; font: inherit; }
.feedback .hp { position: absolute; left: -9999px; }
.feedback .agree { font-size: .86rem; }
.feedback .btn { justify-self: start; }
.feedback .sent { background: #eaf2e6; border-radius: var(--radius); padding: 10px 14px; margin: 0; }

.btn { display: inline-block; background: var(--leaf); color: #fff; border: 0; border-radius: var(--radius); padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--leaf-dark); color: #fff; }

/* Подбор света */
.picker { background: var(--night); color: #e8f0e6; padding: 28px 0 36px; }
.picker-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.picker h1 { color: #fff; margin-top: 0; }
.picker fieldset { border: 0; margin: 0 0 16px; padding: 0; }
.picker legend { font-size: .9rem; color: #9fb4a2; margin-bottom: 6px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: block; height: 100%; border: 1px solid #34493a; border-radius: var(--radius); padding: 8px 14px; cursor: pointer; }
.chip b { display: block; font-weight: 600; }
.chip small { display: block; color: #9fb4a2; font-size: .76rem; }
.chip input:checked + span { background: #e8f0e6; color: var(--night); border-color: #e8f0e6; }
.chip input:checked + span small { color: #45604b; }
.chip input:focus-visible + span { outline: 2px solid var(--sodium); outline-offset: 2px; }
.beam { --glow: var(--sodium); --spread: 70%; text-align: center; }
.beam[data-tone=warm] { --glow: var(--warm); }
.beam[data-watt="70"] { --spread: 45%; }
.beam[data-watt="250"] { --spread: 98%; }
.beam-lamp { display: inline-block; min-width: 110px; background: #263a2c; border-radius: 60px 60px 8px 8px; padding: 12px 20px 8px; font-weight: 800; letter-spacing: .06em; border-bottom: 5px solid var(--glow); }
.beam-cone { height: 96px; margin: 0 auto; width: var(--spread); background: linear-gradient(color-mix(in srgb, var(--glow) 70%, transparent), color-mix(in srgb, var(--glow) 6%, transparent)); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); transition: width .25s; }
.beam-floor { width: var(--spread); margin: 0 auto 16px; border-top: 3px solid var(--glow); font-size: .85rem; padding-top: 4px; transition: width .25s; }
.beam-card { text-align: left; background: #1a2a20; border: 1px solid #2c4033; border-radius: var(--radius); padding: 14px 18px; }
.beam-card p { margin: 0 0 8px; }
.beam-spec b { font-size: 1.15rem; margin-right: 8px; }
.beam-spec span { color: #9fb4a2; }
.beam-buy { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.beam-buy strong { font-size: 1.3rem; white-space: nowrap; }
.beam-card a:not(.btn) { color: var(--sodium); }

.block { margin: 36px 0; }
.about { max-width: 85ch; }

/* WooCommerce */
.woocommerce ul.products, .woocommerce-page ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product, .woocommerce ul.products[class*=columns-] li.product { width: auto; margin: 0; float: none; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; text-align: left; padding: 0; line-height: 1.5; }
.woocommerce div.product form.cart .variations select { width: 100%; }
.woocommerce .quantity .qty { width: 4.5em; padding: 8px; font: inherit; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: left; display: flex; flex-direction: column; }
.woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: contain; background: #fff; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .woocommerce-loop-category__title { font-size: .98rem; padding: 4px 0; }
.woocommerce ul.products li.product .price { color: var(--ink); font-size: 1.1rem; font-weight: 700; margin-top: auto; }
.woocommerce ul.products li.product .button { align-self: flex-start; }
.woocommerce ul.products li.product mark.count { background: none; color: var(--muted); font-weight: 400; }
.card-note { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; margin-bottom: 8px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce input.button, .woocommerce #respond input#submit { background: var(--leaf); color: #fff; border-radius: var(--radius); }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover, .woocommerce input.button:hover { background: var(--leaf-dark); color: #fff; }
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce div.product .woocommerce-variation-price .price { color: var(--ink); font-weight: 700; font-size: 1.5rem; }
.woocommerce div.product form.cart .variations select { max-width: 100%; padding: 9px; font: inherit; }
.price-note, .ask { color: var(--muted); font-size: .9rem; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--leaf) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--leaf) !important; }
.term-bottom { margin-top: 32px; }
.woocommerce .content .term-description { max-width: 78ch; }

.comments { margin-top: 32px; max-width: 78ch; }
.comment-list, .comment-list .children { list-style: none; padding: 0; }
.comment-list .children { padding-left: 24px; }
.comment-body { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; }
.comment-meta .avatar { display: none; }

.foot { background: var(--night); color: #cfdccf; margin-top: 24px; }
.foot a { color: #e8f0e6; }
.foot h2 { font-size: 1rem; color: #fff; }
.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 12px 0 8px; }
.foot-menu { list-style: none; padding: 0; margin: 0; }
.foot-menu a { text-decoration: none; display: inline-block; padding: 2px 0; }
.foot-legal { border-top: 1px solid #2c4033; padding: 14px 0 20px; font-size: .82rem; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgb(16 26 21 / .2); padding: 12px 16px; font-size: .86rem; z-index: 30; }

@media (max-width: 900px) {
	.head .wrap { flex-wrap: wrap; gap: 10px; }
	.search { order: 5; flex-basis: 100%; max-width: none; }
	.head-contact { margin-left: auto; }
	.head-contact a + a { display: none; }
	.burger { display: block; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 8px 14px; font: inherit; }
	.mainnav { display: none; }
	.menu-open .mainnav { display: block; }
	.menu { flex-direction: column; }
	.menu .sub-menu { display: block; position: static; box-shadow: none; border: 0; min-width: 0; max-height: 240px; padding-left: 14px; }
	.layout { grid-template-columns: minmax(0, 1fr); }
	.side { order: 2; }
	.picker-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
	.brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
