/*
Theme Name: LeafCraft
Theme URI: https://leafcraft.com.ua/
Description: Крафтова тема магазину LeafCraft. Дочірня тема Twenty Twenty-Five, оптимізована для WooCommerce.
Author: LeafCraft
Template: twentytwentyfive
Version: 1.22.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: leafcraft
*/

:root {
	--lc-base: #F4ECDF;
	--lc-paper: #FBF7F0;
	--lc-sand: #E6D7BF;
	--lc-line: #E2D6C3;
	--lc-ink: #2B231D;
	--lc-muted: #5E5146;
	--lc-green: #2E4636;
	--lc-tobacco: #6B4426;
	--lc-amber: #D49A4A;
	--lc-radius: 16px;
	--lc-serif: 'Cormorant Garamond', Georgia, serif;
}

/* ---------- Top strip & header ---------- */
.lc-topbar { background: var(--lc-green); color: var(--lc-base); font-size: 13px; padding-top: 8px !important; padding-bottom: 8px !important; margin: 0 !important; }
.lc-topbar__text { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; text-align: center; }
.lc-header { background: var(--lc-paper); border-bottom: 1px solid var(--lc-line); padding-top: 14px !important; padding-bottom: 14px !important; margin-top: 0 !important; }
.lc-header__row { gap: 14px 28px; max-width: 1240px; margin-left: auto !important; margin-right: auto !important; }
.lc-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--lc-green); text-decoration: none; }
.lc-logo span { font-family: var(--lc-serif); font-size: 30px; font-weight: 700; letter-spacing: .5px; line-height: 1; }
.lc-logo:hover { color: var(--lc-tobacco); }
.lc-nav { font-size: 15px; font-weight: 500; gap: 6px 22px; }
.lc-nav a { color: var(--lc-ink); text-decoration: none; }
.lc-nav a:hover { color: var(--lc-tobacco); }
.lc-header__tools { gap: 12px; }
.lc-header__tools .wp-block-search__button { width: 44px; height: 44px; border-radius: 999px; background: transparent; border: 1px solid #CDBEA6; color: var(--lc-ink); padding: 0; display: flex; align-items: center; justify-content: center; }
.lc-header__tools .wp-block-search__button svg { fill: currentColor; }
.lc-minicart .wc-block-mini-cart__button { height: 44px; padding: 0 16px; border-radius: 999px; background: var(--lc-tobacco); color: var(--lc-paper); }
.lc-minicart .wc-block-mini-cart__badge { background: var(--lc-amber); color: var(--lc-ink); }

/* TranslatePress switcher (shortcode) */
.lc-header__tools .trp-language-switcher { width: auto; }
.lc-header__tools .trp-language-switcher > div { border: 1px solid #CDBEA6; border-radius: 999px; background: var(--lc-paper); padding: 6px 12px; font-size: 13px; font-weight: 600; }

/* ---------- Layout helpers ---------- */
.lc-main { margin-top: 0 !important; }
.lc-section { padding-top: 64px !important; padding-bottom: 64px !important; margin-top: 0 !important; }
.lc-section__title { margin-bottom: 8px !important; }
.lc-section__lead { color: var(--lc-muted); margin-top: 0; }
.lc-band { background: var(--lc-paper); border-top: 1px solid var(--lc-line); border-bottom: 1px solid var(--lc-line); }
.lc-dark { background: var(--lc-green); color: var(--lc-base); }
.lc-dark .lc-section__title { color: var(--lc-base); }
.lc-grid { display: grid; gap: 18px; margin-top: 24px; }
.lc-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lc-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.lc-badge { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--lc-tobacco); border: 1px dashed var(--lc-tobacco); border-radius: 999px; padding: 6px 14px; margin: 0; }

/* ---------- Hero ---------- */
.lc-hero { padding-top: 56px !important; padding-bottom: 32px !important; margin-top: 0 !important; }
.lc-hero__title { margin: 18px 0 16px !important; }
.lc-hero__lead { font-size: 18px; color: var(--lc-muted); max-width: 540px; }
.lc-hero__art { position: relative; aspect-ratio: 5 / 4; border-radius: 18px; background: var(--lc-sand); border: 1px solid #D6C3A4; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lc-hero__art::before { content: ""; position: absolute; inset: 14px; border: 1.5px dashed #B8996E; border-radius: 12px; pointer-events: none; }
.lc-hero__art img { width: 62%; height: auto; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--lc-green); border: 2px solid var(--lc-green); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--lc-green); color: var(--lc-paper); }

/* ---------- Benefits ---------- */
.lc-benefits { padding-top: 8px !important; }
.lc-benefit { background: var(--lc-paper); border: 1px solid var(--lc-line); border-radius: 14px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.lc-benefit__mark { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: var(--lc-green); color: var(--lc-base); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.lc-benefit strong { display: block; font-size: 16px; margin-bottom: 2px; }
.lc-benefit p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--lc-muted); }

/* ---------- Category / strength / sort cards ---------- */
.lc-cat, .lc-strength, .lc-sort { text-decoration: none; color: var(--lc-ink); background: var(--lc-base); border: 1px solid var(--lc-line); border-radius: var(--lc-radius); transition: transform .2s ease, border-color .2s ease; }
.lc-cat:hover, .lc-strength:hover, .lc-sort:hover { transform: translateY(-3px); border-color: #CDBEA6; color: var(--lc-ink); }
.lc-cat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 20px 16px; }
.lc-cat img { width: 128px; height: 128px; }
.lc-cat__name { font-weight: 700; font-size: 17px; }
.lc-cat__note { font-size: 13px; color: var(--lc-muted); }
.lc-strength { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--lc-paper); }
.lc-strength img { width: 96px; height: 96px; }
.lc-strength__name, .lc-sort__name { font-family: var(--lc-serif); font-size: 30px; font-weight: 700; color: var(--lc-green); line-height: 1.1; }
.lc-strength__text, .lc-sort__note { font-size: 15px; color: var(--lc-muted); line-height: 1.55; }
.lc-sort { display: flex; gap: 16px; align-items: center; padding: 16px; background: var(--lc-paper); }
.lc-sort img { width: 96px; height: 96px; flex: 0 0 auto; }
.lc-sort > span { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Product cards (shortcode + blocks) ---------- */
.woocommerce ul.products, .wc-block-product-template { gap: 18px !important; }
.woocommerce ul.products li.product,
.wc-block-product-template .wc-block-product,
.wp-block-woocommerce-product-template .wc-block-product {
	background: var(--lc-paper); color: var(--lc-ink); border: 1px solid var(--lc-line); border-radius: var(--lc-radius); padding: 14px 14px 18px !important; overflow: hidden;
}
.woocommerce ul.products li.product a img,
.wc-block-product .wc-block-components-product-image img { border-radius: 12px; background: var(--lc-sand); }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-product .wp-block-post-title { font-family: var(--lc-serif); font-size: 22px !important; font-weight: 700; color: var(--lc-green); line-height: 1.15; }
.woocommerce ul.products li.product .price,
.wc-block-product .wc-block-components-product-price { color: var(--lc-ink) !important; font-weight: 700; font-size: 18px !important; }
.woocommerce ul.products li.product .button,
.wc-block-product .wp-block-button__link,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wc-block-components-button:not(.is-link) {
	background: var(--lc-tobacco) !important; color: var(--lc-paper) !important; border-radius: 10px !important; font-weight: 600; border: 0;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.wc-block-components-button:not(.is-link):hover { background: var(--lc-green) !important; }
.woocommerce span.onsale, .wc-block-components-product-sale-badge { background: var(--lc-amber) !important; color: var(--lc-ink) !important; border: 0; border-radius: 999px; }
.lc-dark .woocommerce ul.products li.product { border-color: transparent; }

/* ---------- Single product ---------- */
.single-product .product_title, .wp-block-post-title { color: var(--lc-green); }
.woocommerce div.product form.cart .variations select,
.wc-block-add-to-cart-form select { border: 2px solid #CDBEA6; border-radius: 10px; padding: 10px 12px; background: var(--lc-paper); min-height: 48px; font-size: 15px; }
.woocommerce div.product form.cart .button,
.wc-block-add-to-cart-form .single_add_to_cart_button { min-height: 54px; padding: 0 28px; font-size: 16px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--lc-sand); border-color: var(--lc-line); border-radius: 10px 10px 0 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--lc-paper); }
.woocommerce-Tabs-panel, .wp-block-woocommerce-product-details { background: var(--lc-paper); border: 1px solid var(--lc-line); border-radius: var(--lc-radius); padding: 28px !important; }
.woocommerce-product-details__short-description { font-size: 17px; color: var(--lc-muted); }
.woocommerce table.shop_attributes th { font-weight: 600; color: var(--lc-muted); }
.woocommerce table.shop_attributes td, .woocommerce table.shop_attributes th { border-color: var(--lc-line); }

/* Text inside descriptions */
.woocommerce-Tabs-panel h2, .term-description h2, .entry-content h2 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 28px; }
.woocommerce-Tabs-panel h3, .term-description h3, .entry-content h3 { font-family: inherit; font-size: 17px; color: var(--lc-ink); margin-top: 20px; }
.term-description { background: var(--lc-paper); border: 1px solid var(--lc-line); border-radius: var(--lc-radius); padding: 28px; margin-top: 40px; }

/* Notices, inputs */
.woocommerce-message, .woocommerce-info { border-top-color: var(--lc-green) !important; background: var(--lc-paper) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--lc-green) !important; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], textarea, select {
	border: 1px solid #CDBEA6; border-radius: 10px; background: var(--lc-paper); color: var(--lc-ink);
}

/* ---------- Footer ---------- */
.lc-footer { background: var(--lc-ink); color: #E9DFCF; padding-top: 48px !important; padding-bottom: 24px !important; margin-top: 0 !important; font-size: 14px; }
.lc-footer a { color: #E9DFCF; text-decoration: none; }
.lc-footer a:hover { color: var(--lc-amber); }
.lc-footer__brand { font-family: var(--lc-serif); font-size: 30px; font-weight: 700; color: var(--lc-base); margin: 0; }
.lc-footer__title { font-weight: 700; color: var(--lc-base); margin-bottom: 6px; }
.lc-footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.lc-footer__bottom { border-top: 1px solid #4A3D33; padding-top: 16px; margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; color: #CBBFAE; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
	.lc-section { padding-top: 44px !important; padding-bottom: 44px !important; }
	.lc-hero { padding-top: 32px !important; }
	.lc-hero__lead { font-size: 16px; }
	.lc-logo span { font-size: 26px; }
	.lc-sort { flex-direction: row; }
	.lc-cat img { width: 104px; height: 104px; }
}

/* ---------- v1.1.1: compact product grid ---------- */
.wc-block-product-template,
.wp-block-woocommerce-product-template,
.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
	gap: 16px !important;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.wc-block-product-template .wc-block-product,
.woocommerce ul.products li.product { padding: 10px 10px 14px !important; text-align: center; display: flex; flex-direction: column; }
.wc-block-product .wc-block-components-product-image,
.woocommerce ul.products li.product a img { max-width: 100%; }
.wc-block-product .wc-block-components-product-image img,
.woocommerce ul.products li.product a img { aspect-ratio: 1 / 1; object-fit: contain; background: #fff; margin-bottom: 8px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-product .wp-block-post-title { font-size: 19px !important; margin: 6px 0 4px !important; }
.woocommerce ul.products li.product .price,
.wc-block-product .wc-block-components-product-price { font-size: 16px !important; margin-bottom: 8px !important; }
.woocommerce ul.products li.product .button,
.wc-block-product .wp-block-button__link { font-size: 14px !important; padding: 9px 16px !important; margin-top: auto !important; }
@media (max-width: 600px) {
	.wc-block-product-template, .wp-block-woocommerce-product-template, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title, .wc-block-product .wp-block-post-title { font-size: 16px !important; }
}

/* ---------- v1.2: catalog header, sidebar, chips, language switcher ---------- */
.lc-lang { display: flex; align-items: center; }
.lc-lang .trp_language_switcher_shortcode, .lc-lang .trp-language-switcher { width: auto !important; min-width: 0 !important; }
.lc-lang .trp-language-switcher > div { border: 1px solid #CDBEA6 !important; border-radius: 999px !important; background: var(--lc-paper) !important; padding: 6px 12px !important; font-size: 13px; font-weight: 600; background-image: none !important; }
.lc-lang .trp-language-switcher a { color: var(--lc-ink) !important; padding: 4px 6px !important; }
.lc-lang .trp-language-switcher img.trp-flag-image { border-radius: 2px; }
#trp-floater-ls { display: none !important; }

.lc-shop-hero { background: var(--lc-paper); border-bottom: 1px solid var(--lc-line); padding: 28px 24px 30px; }
.lc-shop-hero__inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 32px; position: relative; }
.lc-shop-hero__text { flex: 1 1 auto; min-width: 0; }
.lc-shop-hero .woocommerce-breadcrumb { font-size: 13px; color: var(--lc-muted); margin: 0 0 10px; }
.lc-shop-hero .woocommerce-breadcrumb a { color: var(--lc-muted); }
.lc-bc-sep { margin: 0 8px; opacity: .6; }
.lc-shop-hero__title { font-family: var(--lc-serif); font-size: clamp(36px, 4.4vw, 58px); line-height: 1.02; color: var(--lc-green); margin: 0 0 10px; }
.lc-shop-hero__lead { font-size: 17px; color: var(--lc-muted); max-width: 640px; margin: 0 0 14px; }
.lc-shop-hero__perks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lc-shop-hero__perks li { font-size: 13px; font-weight: 600; color: var(--lc-tobacco); border: 1px dashed #B8996E; border-radius: 999px; padding: 5px 12px; background: var(--lc-base); }
.lc-shop-hero__art { flex: 0 0 170px; width: 170px; height: 170px; border-radius: 50%; position: relative; }
.lc-shop-hero__art::before { content: ""; position: absolute; inset: -10px; border: 1.5px dashed #CDBEA6; border-radius: 50%; }
.lc-shop-hero__art img { width: 100%; height: 100%; }

.lc-shop__body { max-width: 1240px; margin: 0 auto !important; padding: 28px 24px 64px; display: flex; gap: 28px; align-items: flex-start; }
.lc-shop__content { flex: 1 1 auto; min-width: 0; margin: 0 !important; }
.lc-sidebar { flex: 0 0 250px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }
.lc-sidebar__box { background: var(--lc-paper); border: 1px solid var(--lc-line); border-radius: 14px; padding: 16px; }
.lc-sidebar__title { font-family: var(--lc-serif); font-size: 22px; font-weight: 700; color: var(--lc-green); margin: 0 0 10px; line-height: 1.1; }
.lc-sidebar__cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lc-sidebar__cats a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--lc-ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.lc-sidebar__cats a:hover { background: var(--lc-base); color: var(--lc-tobacco); }
.lc-sidebar__cats .is-active a { background: var(--lc-green); color: var(--lc-paper); }
.lc-count { font-size: 12px; font-weight: 600; background: var(--lc-sand); color: var(--lc-tobacco); border-radius: 999px; padding: 1px 8px; }
.lc-sidebar__cats .is-active .lc-count { background: rgba(255,255,255,.18); color: var(--lc-paper); }
.lc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-chip { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--lc-ink); border: 1px solid #CDBEA6; border-radius: 999px; padding: 6px 12px; background: var(--lc-base); }
.lc-chip:hover { border-color: var(--lc-tobacco); color: var(--lc-tobacco); }
.lc-chip.is-active { background: var(--lc-tobacco); border-color: var(--lc-tobacco); color: var(--lc-paper); }
.lc-sidebar__note p { font-size: 14px; color: var(--lc-muted); margin: 0 0 6px; }

/* toolbar above products */
.lc-shop__content .woocommerce-result-count { color: var(--lc-muted); font-size: 14px; margin: 6px 0 16px; }
.lc-shop__content .woocommerce-ordering select { border: 1px solid #CDBEA6; border-radius: 10px; padding: 8px 12px; background: var(--lc-paper); font-size: 14px; }
.lc-shop__content .woocommerce-pagination ul { border: 0 !important; display: flex; gap: 6px; justify-content: center; }
.lc-shop__content .woocommerce-pagination ul li { border: 0 !important; }
.lc-shop__content .woocommerce-pagination ul li a, .lc-shop__content .woocommerce-pagination ul li span { border-radius: 10px; padding: 10px 14px !important; background: var(--lc-paper); }
.lc-shop__content .woocommerce-pagination ul li span.current { background: var(--lc-green); color: var(--lc-paper); }

/* cards: tags + hover */
.lc-card-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 2px 0 8px; }
.lc-card-tags span { font-size: 11.5px; font-weight: 600; color: var(--lc-tobacco); background: #EFE4D2; border-radius: 999px; padding: 3px 9px; }
.woocommerce ul.products li.product { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-3px); border-color: #CDBEA6; box-shadow: 0 10px 24px -14px rgba(43,35,29,.35); }
.lc-shop__content .woocommerce ul.products, .lc-shop__content ul.products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; }

/* long category text below products */
.lc-shop__content .term-description { margin-top: 48px; }

@media (max-width: 900px) {
	.lc-shop__body { flex-direction: column; padding-top: 18px; }
	.lc-sidebar { position: static; flex: 0 0 auto; width: 100%; flex-direction: row; flex-wrap: wrap; }
	.lc-sidebar__box { flex: 1 1 260px; }
	.lc-sidebar__note { display: none; }
	.lc-shop-hero__art { display: none; }
}
.woocommerce ul.products { padding: 0 !important; margin: 0 !important; list-style: none !important; }
.woocommerce ul.products li.product a { text-decoration: none !important; }
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title { color: var(--lc-tobacco); }
.lc-footer__popular { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 24px; font-size: 13px; max-width: 1240px; margin-left: auto !important; margin-right: auto !important; }
.lc-footer__popular .lc-footer__title { margin: 0 4px 0 0; }
.lc-footer__popular a { color: #CBBFAE; }
.lc-sidebar__sub { list-style: none; margin: 2px 0 6px 12px; padding: 0 0 0 10px; border-left: 1.5px dashed #CDBEA6; display: flex; flex-direction: column; }
.lc-sidebar__sub a { font-size: 14px !important; padding: 6px 8px !important; }
.lc-sidebar__sub .is-active a { background: var(--lc-sand) !important; color: var(--lc-tobacco) !important; }
.lc-sidebar__cats .is-active .lc-sidebar__sub a { background: transparent; color: var(--lc-ink); }

/* ---------- v1.4: city pages ---------- */
.lc-city-shop, .lc-city-list { max-width: 1240px; margin: 0 auto !important; padding: 32px 24px 8px; }
.lc-city-shop__title { font-family: var(--lc-serif); font-size: clamp(26px, 2.6vw, 34px); color: var(--lc-green); margin: 0 0 16px; }
.lc-city-shop__more { margin-top: 14px; font-weight: 600; }
.lc-city__body { max-width: 860px; margin: 32px auto 0 !important; padding: 32px; background: var(--lc-paper); border: 1px solid var(--lc-line); border-radius: var(--lc-radius); }
.lc-city__body h2 { font-family: var(--lc-serif); color: var(--lc-green); font-size: clamp(24px, 2.4vw, 30px); margin-top: 28px; }
.lc-city__body h3 { font-size: 17px; margin-top: 18px; }
.lc-city-list { padding-bottom: 64px; }
.lc-footer__cities { margin-top: 10px; }
@media (max-width: 781px) { .lc-city__body { margin: 20px 16px 0 !important; padding: 22px; } }

/* ---------- v1.5.1: flags language switcher in top bar ---------- */
.lc-topbar { padding: 7px 24px !important; }
.lc-topbar__inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; }
.lc-topbar__inner .lc-topbar__text { justify-content: flex-start; text-align: left; }
.lc-flags { display: flex; gap: 6px; margin-left: auto; }
.lc-flag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; color: var(--lc-base) !important; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .5px; opacity: .75; }
.lc-flag img { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.lc-flag:hover { opacity: 1; }
.lc-flag.is-active { opacity: 1; background: rgba(255,255,255,.14); }
@media (max-width: 781px) { .lc-topbar__inner .lc-topbar__text { font-size: 12px; } }

/* 1.6: no product counters */
.lc-count, .woocommerce-loop-category__title mark.count, .wc-block-product-categories-list-item-count, .widget_product_categories .count { display: none !important; }

/* 1.6.1: product blocks (related products etc.) — cards fill their grid cell */
.wc-block-product-template > li,
.wp-block-woocommerce-product-template > li,
.wp-block-post-template.wc-block-product-template > li,
.wc-block-product-template .wc-block-product { width: auto !important; max-width: none !important; min-width: 0 !important; margin: 0 !important; float: none !important; }
.wc-block-product-template.columns-5, .wp-block-woocommerce-product-template.columns-5 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important; }

/* 1.6.3: footer phone */
.lc-footer__phone a { color: inherit; font-size: 18px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lc-footer__phone a:hover { text-decoration: underline; }

/* ---------- 1.8: classic checkout ---------- */
.lc-checkout { max-width: 1140px; margin: 0 auto; padding: 8px 0 48px; }
.lc-checkout .woocommerce-form-coupon-toggle, .lc-checkout .woocommerce-form-login-toggle { margin-bottom: 18px; }
.lc-checkout .woocommerce-info { background: var(--lc-paper); border: 1px solid var(--lc-line); border-radius: 12px; color: var(--lc-ink); padding: 12px 16px; list-style: none; }
.lc-checkout .woocommerce-info::before { display: none; }
.lc-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.lc-checkout #customer_details { grid-column: 1; width: 100%; }
.lc-checkout #customer_details .col-1, .lc-checkout #customer_details .col-2 { float: none; width: 100%; }
.lc-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; }
.lc-checkout #order_review { grid-column: 2; grid-row: 1; margin-top: 44px; background: var(--lc-paper); border: 1px solid var(--lc-line); border-radius: 14px; padding: 18px; }
.lc-checkout h3 { font-family: var(--lc-serif); font-size: 28px; color: var(--lc-green); margin: 0 0 14px; }
.lc-checkout .form-row { margin: 0 0 14px; padding: 0; }
.lc-checkout .form-row-first, .lc-checkout .form-row-last { width: 48.5%; }
.lc-checkout label { font-size: 14px; font-weight: 600; color: var(--lc-ink); margin-bottom: 5px; display: block; }
.lc-checkout .required { color: #A4442B; text-decoration: none; }
.lc-checkout input.input-text, .lc-checkout textarea, .lc-checkout select, .lc-checkout .select2-container .select2-selection--single {
	width: 100%; border: 1px solid #CDBEA6; border-radius: 10px; background: var(--lc-paper); padding: 11px 13px; font-size: 16px; color: var(--lc-ink); box-sizing: border-box; min-height: 46px;
}
.lc-checkout .select2-container .select2-selection--single .select2-selection__rendered { line-height: 22px; padding: 0; }
.lc-checkout .select2-container .select2-selection--single .select2-selection__arrow { top: 10px; right: 8px; }
.lc-checkout input.input-text:focus, .lc-checkout textarea:focus { outline: 2px solid var(--lc-green); outline-offset: 0; border-color: var(--lc-green); }
.lc-checkout table.shop_table { border: 0; border-collapse: collapse; width: 100%; margin: 0 0 14px; }
.lc-checkout table.shop_table th, .lc-checkout table.shop_table td { border: 0; border-bottom: 1px solid var(--lc-line); padding: 10px 4px; font-size: 15px; text-align: left; }
.lc-checkout table.shop_table td:last-child, .lc-checkout table.shop_table th:last-child { text-align: right; }
.lc-checkout .order-total th, .lc-checkout .order-total td { font-size: 18px; font-weight: 700; border-bottom: 0; }
.lc-checkout #shipping_method { list-style: none; margin: 0; padding: 0; }
.lc-checkout #payment { background: transparent; border-radius: 0; }
.lc-checkout #payment ul.payment_methods { border: 0; padding: 0 0 10px; margin: 0; list-style: none; }
.lc-checkout #payment div.payment_box { background: var(--lc-base); color: var(--lc-ink); border-radius: 10px; font-size: 14px; }
.lc-checkout #payment div.payment_box::before { border-bottom-color: var(--lc-base); }
.lc-checkout #payment div.form-row { padding: 6px 0 0; }
.lc-checkout #lc_age_18_field label, .lc-checkout .woocommerce-terms-and-conditions-wrapper label { font-weight: 600; display: inline; }
.lc-checkout #place_order { width: 100%; padding: 15px 20px !important; font-size: 17px !important; float: none; }
.lc-checkout .woocommerce-privacy-policy-text { font-size: 13px; color: var(--lc-muted); }
@media (max-width: 900px) {
	.lc-checkout form.checkout { grid-template-columns: 1fr; }
	.lc-checkout #order_review_heading, .lc-checkout #order_review { grid-column: 1; grid-row: auto; margin-top: 0; }
	.lc-checkout .form-row-first, .lc-checkout .form-row-last { width: 100%; float: none; }
}

/* 1.9.4: no long product description inside mini cart / cart lines */
.wc-block-mini-cart__drawer .wc-block-components-product-metadata__description,
.wc-block-cart .wc-block-components-product-metadata__description { display: none !important; }

/* 1.9.5: on /ru/ checkout labels appear only once translated (no Ukrainian flash) */
html[lang^="ru"]:not(.lc-ru-ready) form.checkout label { visibility: hidden; }

/* 1.10: account icon in header */
.lc-account { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--lc-ink); text-decoration: none; }
.lc-account:hover { background: var(--lc-sand); color: var(--lc-tobacco); }
/* account page */
.woocommerce-account .woocommerce { max-width: 1140px; margin: 24px auto 56px; padding: 0 24px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--lc-ink); font-weight: 500; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a, .woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--lc-green); color: var(--lc-paper); }
.woocommerce-account input.input-text { border: 1px solid #CDBEA6; border-radius: 10px; background: var(--lc-paper); padding: 11px 13px; font-size: 16px; }

/* 1.10.1: reserve the scrollbar space so the page does not jump sideways on load */
html { overflow-y: scroll; scrollbar-gutter: stable; }

/* ---------- 1.11 ---------- */
/* footer phone fits on tablets */
.lc-footer__phone a { font-size: clamp(16px, 1.6vw, 18px); }
@media (max-width: 1100px) {
	.lc-footer__cols { flex-wrap: wrap !important; }
	.lc-footer__cols > .wp-block-column { flex-basis: calc(50% - 20px) !important; flex-grow: 0 !important; }
}
@media (max-width: 600px) {
	.lc-footer__cols > .wp-block-column { flex-basis: 100% !important; }
}
/* cart: no «Безкоштовно» next to Nova Poshta (delivery is paid on receipt) */
.wc-block-components-totals-shipping .wc-block-components-totals-item__value,
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label,
.wc-block-components-totals-shipping .wc-block-components-totals-shipping__via { display: none !important; }
/* coupon panel (if any block still renders it) */
.wc-block-components-totals-coupon, .wp-block-woocommerce-cart-order-summary-coupon-form-block, .wp-block-woocommerce-checkout-order-summary-coupon-form-block { display: none !important; }

/* 1.12: «create account» is greyed out until an e-mail is entered */
.lc-checkout .create-account.lc-disabled label, .woocommerce-account-fields .lc-disabled label { opacity: .45; cursor: not-allowed; }
.lc-account-hint { display: block; font-size: 13px; color: var(--lc-muted); margin-top: 4px; }

/* ---------- 1.13: information pages ---------- */
.lc-info-hero { background: var(--lc-sand); border-bottom: 1px solid var(--lc-line); position: relative; overflow: hidden; }
.lc-info-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border: 1.5px dashed #CDBEA6; border-radius: 50%; pointer-events: none; }
.lc-info-hero__inner { max-width: 860px; margin: 0 auto; padding: 40px 24px 36px; position: relative; z-index: 1; }
.lc-info-hero .woocommerce-breadcrumb { font-size: 13px; color: var(--lc-muted); margin: 0 0 12px; }
.lc-info-hero .woocommerce-breadcrumb a { color: var(--lc-muted); }
.lc-info-hero__title { font-family: var(--lc-serif); font-size: clamp(38px, 5vw, 60px); line-height: 1.02; color: var(--lc-green); margin: 0 0 12px; }
.lc-info-hero__lead { font-size: 18px; line-height: 1.55; color: var(--lc-ink); max-width: 680px; margin: 0; }

.lc-info { max-width: 860px; margin: 0 auto !important; padding: 36px 24px 64px; font-size: 17px; line-height: 1.65; color: var(--lc-ink); }
.lc-info h2 { font-family: var(--lc-serif); color: var(--lc-green); font-size: clamp(26px, 2.8vw, 34px); line-height: 1.1; margin: 44px 0 14px; }
.lc-info h2:first-child { margin-top: 0; }
.lc-info h3 { font-size: 17px; margin: 0 0 6px; color: var(--lc-ink); }
.lc-info p { margin: 0 0 14px; }
.lc-info a { color: var(--lc-tobacco); text-underline-offset: 3px; }
.lc-info .lc-big { font-size: 20px; line-height: 1.55; }

.lc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 8px 0 10px; }
.lc-card { background: var(--lc-paper); border: 1px solid var(--lc-line); border-radius: var(--lc-radius); padding: 18px 18px 16px; }
.lc-card p { font-size: 15px; line-height: 1.55; color: var(--lc-muted); margin: 0; }
.lc-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lc-green); color: var(--lc-paper); font-family: var(--lc-serif); font-weight: 700; font-size: 18px; margin-bottom: 10px; }

.lc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 6px 0 22px; }
.lc-facts > div { background: var(--lc-green); color: var(--lc-paper); border-radius: var(--lc-radius); padding: 16px 16px 14px; }
.lc-facts b { display: block; font-family: var(--lc-serif); font-size: 28px; line-height: 1.05; margin-bottom: 4px; }
.lc-facts span { font-size: 14px; opacity: .85; }

.lc-steps { list-style: none; margin: 8px 0 10px; padding: 0; counter-reset: lcstep; display: grid; gap: 10px; }
.lc-steps li { counter-increment: lcstep; position: relative; padding: 14px 16px 14px 64px; background: var(--lc-paper); border: 1px solid var(--lc-line); border-radius: var(--lc-radius); }
.lc-steps li::before { content: counter(lcstep); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--lc-tobacco); color: var(--lc-paper); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.lc-steps b { display: block; margin-bottom: 2px; }
.lc-steps span { font-size: 15px; color: var(--lc-muted); line-height: 1.5; }

.lc-ticks { list-style: none; padding: 0; margin: 6px 0 14px; }
.lc-ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.lc-ticks li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--lc-green); border-bottom: 2px solid var(--lc-green); transform: rotate(-45deg); }

.lc-note { background: #F6E7CD; border-left: 4px solid var(--lc-amber); border-radius: 10px; padding: 14px 16px; margin: 18px 0; font-size: 15px; }

.lc-faq { background: var(--lc-paper); border: 1px solid var(--lc-line); border-radius: 12px; margin: 0 0 8px; }
.lc-faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 600; position: relative; }
.lc-faq summary::-webkit-details-marker { display: none; }
.lc-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--lc-tobacco); }
.lc-faq[open] summary::after { content: "−"; }
.lc-faq > div { padding: 0 16px 6px; font-size: 15px; color: var(--lc-muted); }

.lc-cta { margin: 36px 0 0; padding: 22px; border-radius: var(--lc-radius); background: var(--lc-sand); text-align: center; }
.lc-cta p { margin: 0 0 6px; font-weight: 600; }
.lc-bigphone { font-family: var(--lc-serif); font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--lc-green) !important; text-decoration: none; white-space: nowrap; }
.lc-bigphone:hover { color: var(--lc-tobacco) !important; }

.lc-contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.lc-contact__main { background: var(--lc-paper); border: 1px solid var(--lc-line); border-radius: var(--lc-radius); padding: 24px; }
.lc-contact__main p { color: var(--lc-muted); font-size: 15px; margin: 8px 0 0; }
.lc-contact__label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--lc-muted); margin-bottom: 4px; }
.lc-contact__side { display: grid; gap: 12px; }
@media (max-width: 700px) {
	.lc-contact { grid-template-columns: 1fr; }
	.lc-info { padding: 26px 16px 48px; font-size: 16px; }
	.lc-info-hero__inner { padding: 28px 16px 26px; }
	.lc-facts b { font-size: 22px; }
}
.lc-footer__bottom a { color: inherit; }

/* ---------- 1.14: 18+ age gate ---------- */
.lc-age { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(43, 35, 29, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html.lc-age-ok .lc-age { display: none !important; }
html:not(.lc-age-ok) body { overflow: hidden; }
.lc-age__box { width: 100%; max-width: 440px; background: var(--lc-paper); border: 1px solid var(--lc-line); border-radius: 22px; padding: 30px 26px 22px; text-align: center; box-shadow: 0 30px 60px -20px rgba(43, 35, 29, .45); }
.lc-age__leaf { color: var(--lc-green); }
.lc-age__brand { font-family: var(--lc-serif); font-size: 22px; font-weight: 700; color: var(--lc-green); margin: 4px 0 14px; }
.lc-age__title { font-family: var(--lc-serif); font-size: clamp(30px, 6vw, 38px); line-height: 1.05; color: var(--lc-ink); margin: 0 0 10px; }
.lc-age__text { font-size: 16px; line-height: 1.5; color: var(--lc-muted); margin: 0 0 22px; }
.lc-age__btns { display: grid; gap: 10px; }
.lc-age__btns button { font: inherit; font-weight: 600; font-size: 17px; border-radius: 12px; padding: 14px 18px; cursor: pointer; }
.lc-age__yes { background: var(--lc-green); color: var(--lc-paper); border: 0; }
.lc-age__yes:hover { background: var(--lc-tobacco); }
.lc-age__no { background: transparent; color: var(--lc-ink); border: 1.5px solid #CDBEA6; }
.lc-age__no:hover { border-color: var(--lc-tobacco); }
.lc-age__deny { background: #F6E7CD; border-radius: 12px; padding: 14px; margin: 0; font-weight: 600; }
.lc-age__small { font-size: 12px; color: var(--lc-muted); margin: 18px 0 0; }

/* 1.15: out-of-stock product cards */
.woocommerce ul.products li.product.outofstock a img { opacity: .55; filter: grayscale(.4); }
.woocommerce ul.products li.product { position: relative; }
.lc-oos-badge { position: absolute; top: 18px; left: 18px; z-index: 2; background: var(--lc-ink); color: var(--lc-paper); font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 10px; }
.woocommerce ul.products li.product .button.lc-oos-btn { background: #D9CDBA !important; color: var(--lc-muted) !important; }
.woocommerce ul.products li.product .button.lc-oos-btn:hover { background: #CDBEA6 !important; }

/* ---------- 1.17: blog articles ---------- */
.lc-post-date { font-size: 13px; color: var(--lc-muted); margin: 10px 0 0; }
.lc-post-hero .lc-shop-hero__art img { border-radius: 50%; object-fit: cover; background: #fff; }
.lc-post ol { padding-left: 22px; margin: 8px 0 16px; }
.lc-post ol li { margin-bottom: 8px; }
.lc-post ul { padding-left: 20px; margin: 8px 0 16px; }
.lc-post ul li { margin-bottom: 6px; }
.lc-post-note { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--lc-line); font-size: 14px; color: var(--lc-muted); }
.lc-post-more { max-width: 1240px; margin: 0 auto !important; padding: 8px 24px 64px; }
.lc-post-more__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.lc-post-card { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--lc-paper); border: 1px solid var(--lc-line); border-radius: var(--lc-radius); text-decoration: none; color: var(--lc-ink); transition: transform .2s, box-shadow .2s; }
.lc-post-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(43,35,29,.4); }
.lc-post-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #fff; }
.lc-post-card b { display: block; font-family: var(--lc-serif); font-size: 20px; line-height: 1.15; color: var(--lc-green); margin-bottom: 4px; }
.lc-post-card em { font-style: normal; font-size: 14px; color: var(--lc-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 1.18: slim one-line top bar on phones */
.lc-topbar__short { display: none; }
@media (max-width: 781px) {
	.lc-topbar { padding: 5px 12px !important; }
	.lc-topbar__inner { flex-wrap: nowrap; gap: 10px; }
	.lc-topbar__inner .lc-topbar__text { flex: 1 1 auto; min-width: 0; font-size: 12px; }
	.lc-topbar__long { display: none; }
	.lc-topbar__short { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.lc-flags { flex: 0 0 auto; gap: 2px; }
	.lc-flag { padding: 3px 5px; }
	.lc-flag span { display: none; }
}

/* 1.19: contextual links inside texts */
.term-description a, .lc-city__body a, .woocommerce-Tabs-panel--description a { color: var(--lc-tobacco); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.term-description a:hover, .lc-city__body a:hover, .woocommerce-Tabs-panel--description a:hover { color: var(--lc-green); }
/* 1.20: links in short descriptions and anywhere the theme adds them; «see also» line */
a.lc-autolink, .lc-also a { color: var(--lc-tobacco); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a.lc-autolink:hover, .lc-also a:hover { color: var(--lc-green); }
.lc-also { margin-top: 1.25em; padding-top: .75em; border-top: 1px solid rgba(0,0,0,.08); font-size: .95em; }

/* 1.21: home — reviews / why trust us */
.lc-trust__item, .lc-review { background: var(--lc-paper); border: 1px solid var(--lc-line); border-radius: 14px; padding: 18px 20px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.lc-trust__item strong { font-size: 16px; color: var(--lc-ink); }
.lc-trust__item p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--lc-muted); flex: 1; }
.lc-trust__item a { font-size: 14px; font-weight: 600; color: var(--lc-tobacco); text-decoration: none; }
.lc-trust__item a:hover { color: var(--lc-green); text-decoration: underline; }
.lc-review__stars { color: var(--lc-amber); letter-spacing: 2px; font-size: 16px; }
.lc-review__text { margin: 0; padding: 0; border: 0; font-size: 15px; line-height: 1.55; color: var(--lc-ink); flex: 1; }
.lc-review__meta { font-size: 13px; color: var(--lc-muted); }
.lc-review__meta a { color: var(--lc-tobacco); }

/* 1.22: long blog articles — contents, tables, tips */
.lc-post h3 { font-size: 19px; line-height: 1.3; margin: 26px 0 8px; color: var(--lc-green); }
.lc-post h2 + h3 { margin-top: 6px; }
.lc-post h2[id], .lc-post h3[id] { scroll-margin-top: 90px; }
.lc-toc { background: var(--lc-paper); border: 1px solid var(--lc-line); border-radius: var(--lc-radius); padding: 16px 20px 6px; margin: 4px 0 28px; font-size: 16px; }
.lc-toc p { margin: 0 0 6px; }
.lc-post .lc-toc ol { margin: 0 0 10px; }
.lc-post .lc-toc li { margin-bottom: 4px; }
.lc-tip { background: #EEF2EC; border-left: 4px solid var(--lc-green); border-radius: 0 var(--lc-radius) var(--lc-radius) 0; padding: 14px 18px 2px; margin: 20px 0 24px; }
.lc-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0 22px; border: 1px solid var(--lc-line); border-radius: var(--lc-radius); background: var(--lc-paper); }
.lc-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.lc-table--wide table { min-width: 560px; }
.lc-table th, .lc-table td { padding: 10px 12px; border-bottom: 1px solid var(--lc-line); text-align: left; vertical-align: top; }
.lc-table thead th { background: var(--lc-sand); color: var(--lc-ink); font-weight: 700; }
.lc-table tbody th { font-weight: 600; color: var(--lc-muted); white-space: nowrap; }
.lc-table tbody tr:last-child th, .lc-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) { .lc-table table { font-size: 14px; } .lc-table th, .lc-table td { padding: 8px 10px; } }

/* 1.22: blog page */
.lc-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin: 24px 0 8px; }
.lc-info .lc-blog-grid a.lc-post-card { color: var(--lc-ink); text-decoration: none; }
@media (max-width: 600px) { .lc-blog-grid { grid-template-columns: 1fr; } }
.lc-blog-all { text-align: center; margin: 22px 0 0; font-weight: 600; }
.lc-blog-all a { color: var(--lc-tobacco); text-underline-offset: 3px; }
