/* ==========================================================================
   Picha Pet Shop — main stylesheet (RTL first, logical properties)
   Colors come from the Customizer as CSS variables (see customizer-css.php).
   ========================================================================== */

:root {
	--p-primary: #1d5a3c;
	--p-primary-dark: #0e3a2a;
	--p-primary-soft: #e8f0eb;
	--p-primary-tint: #cfe0d6;
	--p-accent: #f28b30;
	--p-accent-soft: #fdeede;
	--p-purple: #8b7fd4;
	--p-sale: #f26d5b;
	--p-text: #1f2a24;
	--p-bg: #f6f7f3;
	--p-footer: #0b3a2c;
	--p-font: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
	--p-font-size: 15px;
	--p-hero-h: 440px;

	--p-muted: #6b7a72;
	--p-line: #e7ebe4;
	--p-card: #ffffff;
	--p-radius: 16px;
	--p-radius-sm: 10px;
	--p-radius-lg: 22px;
	--p-shadow: 0 1px 2px rgba(16, 40, 28, .04), 0 4px 16px rgba(16, 40, 28, .05);
	--p-shadow-lg: 0 12px 40px rgba(16, 40, 28, .14);
	--p-container: 1280px;
	--p-gutter: 24px;
	--p-ease: cubic-bezier(.2, .7, .2, 1);
	--p-header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--p-font);
	font-size: var(--p-font-size);
	line-height: 1.8;
	color: var(--p-text);
	background: var(--p-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
svg.picha-icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
a { color: var(--p-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--p-primary-dark); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.45; font-weight: 800; color: var(--p-text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--p-primary); color: #fff; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; inset-inline-start: 8px;
	background: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--p-shadow-lg);
}
.hp-field { position: absolute !important; inset-inline-start: -9999px; opacity: 0; pointer-events: none; }

.container { width: 100%; max-width: var(--p-container); margin-inline: auto; padding-inline: var(--p-gutter); }
.section { padding-block: 32px 56px; }
.card { background: var(--p-card); border: 1px solid var(--p-line); border-radius: var(--p-radius); padding: 24px; }
.text-success { color: #1f8a4c; } .text-muted { color: var(--p-muted); }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="password"],
input[type="search"], input[type="number"], input[type="date"], select, textarea {
	width: 100%; min-height: 46px; padding: 10px 14px; background: #fff;
	border: 1px solid var(--p-line); border-radius: var(--p-radius-sm);
	transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
textarea { min-height: 120px; resize: vertical; }
select {
	padding-inline-end: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a72' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-size: 16px; background-position: left 14px center;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--p-primary); box-shadow: 0 0 0 3px var(--p-primary-soft); }
label { font-weight: 600; font-size: .93em; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Buttons ---------- */
.btn, .button, button.button, input[type="submit"], .wp-block-button__link, .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 10px 24px; border-radius: 999px; border: 1px solid transparent;
	font-weight: 700; font-size: .95rem; line-height: 1.4; text-align: center; cursor: pointer;
	background: var(--p-primary); color: #fff;
	transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover, .button:hover, input[type="submit"]:hover { background: var(--p-primary-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--white { background: #fff; color: var(--p-primary); border-color: rgba(255, 255, 255, .8); }
.btn--white:hover { background: var(--p-primary-soft); color: var(--p-primary-dark); }
.btn--light { background: var(--p-primary-soft); color: var(--p-primary); }
.btn--light:hover { background: var(--p-primary-tint); color: var(--p-primary-dark); }
.btn--accent { background: var(--p-accent); }
.btn--sm { min-height: 36px; padding: 6px 16px; font-size: .85rem; }
.btn--block { width: 100%; }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; position: relative;
	width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--p-text);
	transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--p-primary-soft); color: var(--p-primary); }
.pill { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--p-accent); color: #fff; font-size: 11px; align-items: center; justify-content: center; }

/* ---------- Top bar ---------- */
.topbar { background: var(--p-primary); color: #fff; font-size: 12.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar__text { margin: 0; display: flex; align-items: center; gap: 8px; }
.topbar a { color: #fff; opacity: .9; }
.topbar a:hover { opacity: 1; color: #fff; }
.topbar__link { background: rgba(255, 255, 255, .14); padding: 2px 12px; border-radius: 999px; }
.topbar__menu { display: flex; gap: 18px; list-style: none; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 60; background: #fff; border-bottom: 1px solid var(--p-line); }
.has-sticky-header .site-header { position: sticky; top: 0; }
.admin-bar.has-sticky-header .site-header { top: 32px; }
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(16, 40, 28, .08); }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--p-header-h); }
.menu-toggle { display: none; }

.site-logo { margin: 0; flex-shrink: 0; line-height: 1; }
.site-logo .custom-logo { max-height: 52px; width: auto; }
.logo-text { display: flex; align-items: center; gap: 8px; color: var(--p-primary-dark); }
.logo-text:hover { color: var(--p-primary-dark); }
.logo-mark { color: var(--p-primary-dark); display: flex; }
.logo-words { display: flex; flex-direction: column; direction: ltr; text-align: left; }
.logo-name { font-size: 26px; font-weight: 900; letter-spacing: -.5px; line-height: 1; font-family: var(--p-font); }
.logo-sub { font-size: 12px; font-weight: 600; color: var(--p-primary); margin-top: 2px; }

.main-nav { flex: 1; min-width: 0; }
.main-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-menu > li { position: relative; display: flex; align-items: center; }
.main-menu a { display: block; padding: 10px 12px; color: var(--p-text); font-weight: 600; font-size: 14.5px; border-radius: 10px; white-space: nowrap; }
.main-menu a:hover, .main-menu .current-menu-item > a, .main-menu .current-menu-ancestor > a { color: var(--p-primary); }
.main-menu > li > .submenu-toggle { display: none; }
.main-menu > .menu-item-has-children > a { padding-inline-end: 26px; }
.main-menu > .menu-item-has-children > a::after {
	content: ""; position: absolute; inset-inline-end: 10px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
	border: solid currentColor; border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg); opacity: .6;
}
.main-menu .sub-menu {
	position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px; padding: 8px; list-style: none;
	background: #fff; border: 1px solid var(--p-line); border-radius: 14px; box-shadow: var(--p-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s var(--p-ease); z-index: 10;
}
.main-menu .sub-menu .sub-menu { top: 0; inset-inline-start: 100%; }
.main-menu li:hover > .sub-menu, .main-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-menu .sub-menu a { font-weight: 500; padding: 8px 12px; }
.main-menu .sub-menu a:hover { background: var(--p-primary-soft); }
.main-menu .sub-menu .submenu-toggle { display: none; }

.site-header__search { width: min(340px, 30vw); }
.header-search { position: relative; display: flex; align-items: center; }
.header-search input {
	min-height: 44px; padding-inline: 44px 16px; background: var(--p-bg); border-color: transparent; border-radius: 999px; font-size: 13.5px;
}
.header-search input:focus { background: #fff; }
.header-search__btn {
	position: absolute; inset-inline-start: 6px; width: 34px; height: 34px; border: 0; border-radius: 50%;
	background: transparent; color: var(--p-muted); display: flex; align-items: center; justify-content: center;
}
.header-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.search-toggle { display: none; }
.cart-count {
	position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 999px; background: var(--p-accent); color: #fff; font-size: 10.5px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; line-height: 1; border: 2px solid #fff;
}
.cart-count.is-empty { display: none; }
.mobile-search { display: none; padding-bottom: 12px; }
.site-header.search-open .mobile-search { display: block; }

/* ---------- Drawers ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(10, 30, 20, .45); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer__panel {
	position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(380px, 88vw);
	background: #fff; display: flex; flex-direction: column; overflow: hidden;
	transform: translateX(100%); transition: transform .35s var(--p-ease); box-shadow: var(--p-shadow-lg);
}
[dir="ltr"] .drawer__panel { transform: translateX(-100%); }
.drawer--cart .drawer__panel { inset-inline-start: auto; inset-inline-end: 0; transform: translateX(-100%); }
[dir="ltr"] .drawer--cart .drawer__panel { transform: translateX(100%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--p-line); }
.drawer__head h2 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.drawer__head .cart-count { position: static; border: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 12px 18px 24px; }
.mobile-menu { list-style: none; }
.mobile-menu li { position: relative; border-bottom: 1px solid var(--p-line); }
.mobile-menu a { display: block; padding: 13px 0; color: var(--p-text); font-weight: 600; padding-inline-end: 44px; }
.mobile-menu .submenu-toggle {
	position: absolute; top: 6px; inset-inline-end: 0; width: 38px; height: 38px; border: 0; border-radius: 10px;
	background: var(--p-bg); display: flex; align-items: center; justify-content: center; transition: transform .2s;
}
.mobile-menu .submenu-toggle[aria-expanded="true"] { transform: rotate(180deg); }
.mobile-menu .sub-menu { display: none; list-style: none; padding-inline-start: 14px; padding-bottom: 8px; }
.mobile-menu .sub-menu.is-open { display: block; }
.mobile-menu .sub-menu li { border: 0; }
.mobile-menu .sub-menu a { padding: 8px 0; font-weight: 500; color: var(--p-muted); }
.drawer__contact { margin-top: 20px; display: grid; gap: 14px; }
.drawer__contact > a { display: flex; align-items: center; gap: 8px; font-weight: 700; }

/* ---------- Section heads ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title { margin: 0; font-size: 21px; font-weight: 800; }
.section-subtitle { margin: 4px 0 0; color: var(--p-muted); font-size: 13.5px; }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--p-primary); white-space: nowrap; }
.section-link svg { transition: transform .2s; }
.section-link:hover svg { transform: translateX(-4px); }
[dir="ltr"] .section-link svg { transform: scaleX(-1); }

/* ---------- Hero ---------- */
.home-hero { padding-top: 20px; }
.hero-slider { position: relative; height: var(--p-hero-h); border-radius: var(--p-radius-lg); overflow: hidden; background: var(--p-primary-dark); isolation: isolate; }
.hero-slider__track { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--p-ease), visibility .8s; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s linear; }
.hero-slide.is-active .hero-slide__img { transform: scale(1); }
.hero-slide::after {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(to left, rgba(8, 36, 24, .78) 0%, rgba(8, 36, 24, .45) 38%, rgba(8, 36, 24, 0) 62%);
}
[dir="ltr"] .hero-slide::after { background: linear-gradient(to right, rgba(8, 36, 24, .78) 0%, rgba(8, 36, 24, .45) 38%, rgba(8, 36, 24, 0) 62%); }
.hero-slide__content {
	position: absolute; z-index: 2; top: 50%; inset-inline-start: clamp(24px, 6vw, 72px); transform: translateY(-50%);
	width: min(460px, 80%); color: #fff;
}
.hero-slide__title { margin: 0 0 12px; color: #fff; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.3; font-weight: 900; }
.hero-slide__title span { display: block; }
.hero-slide__accent { color: var(--p-accent); }
.hero-slide__text { font-size: clamp(14px, 1.4vw, 17px); opacity: .95; margin-bottom: 22px; max-width: 380px; }
.hero-slide__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-slide.is-active .hero-slide__content > * { animation: picha-rise .8s var(--p-ease) both; }
.hero-slide.is-active .hero-slide__text { animation-delay: .1s; }
.hero-slide.is-active .hero-slide__btns { animation-delay: .2s; }
@keyframes picha-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-slider__arrow {
	position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
	border: 0; background: rgba(255, 255, 255, .92); color: var(--p-text); display: flex; align-items: center; justify-content: center;
	box-shadow: var(--p-shadow); transition: background .2s, transform .2s;
}
.hero-slider__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hero-slider__arrow--prev { inset-inline-start: 16px; }
.hero-slider__arrow--next { inset-inline-end: 16px; }
[dir="ltr"] .hero-slider__arrow svg { transform: scaleX(-1); }
.hero-slider__dots { position: absolute; z-index: 3; bottom: 18px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; }
.hero-slider__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); transition: width .3s, background .3s; }
.hero-slider__dots button.is-active { width: 28px; background: #fff; }

/* ---------- Category circles ---------- */
.home-cats { padding-block: 28px 8px; }
.cat-circles { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-circle { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--p-text); text-align: center; }
.cat-circle__img {
	width: min(128px, 100%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
	background: #fff; border: 1px solid var(--p-line); box-shadow: var(--p-shadow); color: var(--p-primary);
	transition: transform .3s var(--p-ease), box-shadow .3s, border-color .3s;
}
.cat-circle__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle__name { font-weight: 700; font-size: 14px; }
.cat-circle:hover { color: var(--p-primary); }
.cat-circle:hover .cat-circle__img { transform: translateY(-4px); border-color: var(--p-primary-tint); box-shadow: var(--p-shadow-lg); }

/* ---------- Products (shared) ---------- */
.home-products { padding-block: 28px 8px; }
ul.products { list-style: none; display: grid; gap: 18px; margin: 0; padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
ul.products::before, ul.products::after { display: none !important; }
ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }

.rail { position: relative; }
ul.products.products--rail {
	display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 3 * 18px) / 4);
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; overscroll-behavior-x: contain;
}
ul.products.products--rail::-webkit-scrollbar { display: none; }
ul.products.products--rail > li { scroll-snap-align: start; }
.rail__arrow {
	position: absolute; z-index: 4; top: 38%; width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--p-line); background: #fff; color: var(--p-text); box-shadow: var(--p-shadow);
	display: flex; align-items: center; justify-content: center; transition: opacity .2s, background .2s;
}
.rail__arrow:hover { background: var(--p-primary); color: #fff; }
.rail__arrow--prev { inset-inline-start: -18px; }
.rail__arrow--next { inset-inline-end: -18px; }
.rail__arrow[disabled] { opacity: 0; pointer-events: none; }
[dir="ltr"] .rail__arrow svg { transform: scaleX(-1); }

.product-card {
	position: relative; display: flex; flex-direction: column; background: var(--p-card); border: 1px solid var(--p-line);
	border-radius: var(--p-radius); padding: 12px; transition: box-shadow .3s, transform .3s var(--p-ease), border-color .3s;
}
.product-card:hover { box-shadow: var(--p-shadow-lg); transform: translateY(-3px); border-color: transparent; }
.product-card__media { position: relative; }
.product-card__img { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff; }
.product-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .4s, transform .5s var(--p-ease); }
.product-card:hover .product-card__main { transform: scale(1.04); }
.product-card__alt { opacity: 0; }
.product-card:hover .has-hover .product-card__main { opacity: 0; }
.product-card:hover .has-hover .product-card__alt { opacity: 1; }
.badge-sale, .woocommerce span.onsale, .product-card .onsale {
	position: absolute; z-index: 2; top: 6px; inset-inline-start: 6px; inset-inline-end: auto; left: auto; right: auto;
	min-width: 0; min-height: 0; margin: 0; padding: 2px 10px; border-radius: 999px; line-height: 1.8;
	background: var(--p-sale); color: #fff; font-size: 12px; font-weight: 800;
}
.product-card .onsale { inset-inline-start: 6px; }
.badge-stock { position: absolute; z-index: 2; top: 6px; inset-inline-start: 6px; padding: 2px 10px; border-radius: 999px; background: #eceeea; color: var(--p-muted); font-size: 12px; font-weight: 700; }
.card-wish {
	position: absolute; z-index: 2; top: 6px; inset-inline-end: 6px; width: 34px; height: 34px; border-radius: 50%;
	border: 1px solid var(--p-line); background: #fff; color: var(--p-muted);
	display: flex; align-items: center; justify-content: center; transition: color .2s, background .2s, transform .2s;
}
.card-wish:hover { color: var(--p-sale); transform: scale(1.08); }
.js-list-toggle.is-active { color: var(--p-sale); }
.js-list-toggle.is-active svg { fill: currentColor; }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 10px 4px 2px; }
.product-card__title { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.7; }
.product-card__title a { color: var(--p-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__title a:hover { color: var(--p-primary); }
.product-card__sub { margin: 0; font-size: 12px; color: var(--p-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card__rating { margin-top: 4px; }
.product-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.product-card .price { display: flex; flex-direction: column; align-items: flex-start; gap: 0; font-weight: 800; color: var(--p-text); font-size: 15px; line-height: 1.5; }
.product-card .price del { order: -1; font-size: 12px; font-weight: 500; color: #a3aea7; }
.product-card .price ins { text-decoration: none; }
.product-card .price .woocommerce-Price-currencySymbol { font-size: 11px; font-weight: 600; color: var(--p-muted); }
.card-cart {
	flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
	background: var(--p-primary-soft); color: var(--p-primary); transition: background .2s, color .2s;
}
.card-cart:hover { background: var(--p-primary); color: #fff; }
.card-cart.loading { opacity: .6; pointer-events: none; }
.card-cart.added { background: var(--p-primary); color: #fff; }
.product-card .added_to_cart { display: none !important; }
[dir="ltr"] .card-cart .icon-arrow-left { transform: scaleX(-1); }

.picha-stars { position: relative; display: inline-flex; vertical-align: middle; color: #e2e6e0; line-height: 0; }
.picha-stars__base, .picha-stars__fill { display: inline-flex; gap: 1px; }
.picha-stars__fill { position: absolute; top: 0; inset-inline-start: 0; overflow: hidden; color: #f5a524; white-space: nowrap; }
.picha-stars svg { fill: currentColor; stroke: none; }
.picha-stars__count { font-size: 12px; color: var(--p-muted); margin-inline-start: 6px; }

/* ---------- Promo banners ---------- */
.home-banners { padding-block: 28px 8px; }
.promo-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.promo-grid--2 { grid-template-columns: repeat(2, 1fr); }
.promo-grid--1 { grid-template-columns: 1fr; }
.promo {
	position: relative; display: flex; align-items: center; min-height: 176px; padding: 22px; overflow: hidden;
	border-radius: var(--p-radius-lg); background: var(--promo-bg, var(--p-primary)); color: #fff; isolation: isolate;
	transition: transform .3s var(--p-ease), box-shadow .3s;
}
.promo::before {
	content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; border-radius: 50%;
	background: rgba(255, 255, 255, .1); inset-inline-end: -40px; bottom: -80px;
}
.promo:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--p-shadow-lg); }
.promo__text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 58%; }
.promo__title { font-size: 20px; font-weight: 900; line-height: 1.4; }
.promo__sub { font-size: 15px; font-weight: 700; opacity: .95; }
.promo__desc { font-size: 12.5px; opacity: .85; }
.promo__btn {
	margin-top: 10px; display: inline-flex; padding: 4px 18px; border-radius: 999px; background: #fff;
	color: var(--promo-bg, var(--p-primary)); font-size: 12.5px; font-weight: 800;
}
.promo__img { position: absolute; z-index: 1; bottom: 0; inset-inline-end: 0; height: 100%; width: 46%; object-fit: cover; object-position: center; transition: transform .5s var(--p-ease); }
.promo:hover .promo__img { transform: scale(1.05); }

/* ---------- Features ---------- */
.home-features { padding-block: 28px 8px; }
.features { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); padding: 18px 8px; }
.feature { display: flex; align-items: center; gap: 12px; padding: 4px 18px; }
.feature + .feature { border-inline-start: 1px solid var(--p-line); }
.feature__icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--p-primary); background: var(--p-primary-soft); }
.feature__text { display: flex; flex-direction: column; line-height: 1.6; }
.feature__text strong { font-size: 14.5px; }
.feature__text span { font-size: 12.5px; color: var(--p-muted); }

/* ---------- Posts ---------- */
.home-blog { padding-block: 36px 8px; }
.post-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); overflow: hidden; transition: box-shadow .3s, transform .3s var(--p-ease); }
.post-card:hover { box-shadow: var(--p-shadow-lg); transform: translateY(-3px); }
.post-card__thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--p-primary-soft); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--p-ease); }
.post-card:hover .post-card__thumb img { transform: scale(1.06); }
.post-card__placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--p-primary-tint); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.post-card__cat { align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--p-primary-soft); color: var(--p-primary); margin-bottom: 8px; }
.post-card__title { font-size: 15px; font-weight: 800; line-height: 1.7; margin: 0 0 10px; }
.post-card__title a { color: var(--p-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__title a:hover { color: var(--p-primary); }
.post-card__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--p-muted); }
.post-card__more { font-weight: 700; }

/* ---------- Newsletter ---------- */
.home-newsletter { padding-block: 40px 48px; }
.newsletter-box {
	position: relative; display: grid; grid-template-columns: 1fr minmax(280px, 460px); align-items: center; gap: 24px;
	padding: 26px clamp(20px, 4vw, 48px); border-radius: var(--p-radius-lg); background: var(--p-primary-soft); overflow: hidden;
}
.newsletter-box__deco { position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); display: flex; gap: 6px; color: var(--p-primary); opacity: .14; pointer-events: none; }
.newsletter-box__deco svg:first-child { fill: currentColor; }
.newsletter-box__text { position: relative; padding-inline-start: 90px; }
.newsletter-box__text h2 { font-size: 20px; margin-bottom: 4px; }
.newsletter-box__text p { margin: 0; color: var(--p-muted); font-size: 13.5px; }
.newsletter-form { position: relative; display: flex; flex-wrap: wrap; gap: 0; background: #fff; border-radius: 999px; padding: 5px; border: 1px solid var(--p-line); }
.newsletter-form input[type="email"] { flex: 1; min-width: 0; border: 0; min-height: 42px; background: transparent; box-shadow: none; }
.newsletter-form .btn { min-height: 42px; padding-inline: 26px; }
.newsletter-msg { flex-basis: 100%; margin: 0; padding-inline: 14px; font-size: 12.5px; }
.newsletter-msg:empty { display: none; }
.newsletter-msg.is-error { color: #c0392b; }
.newsletter-msg.is-success { color: var(--p-primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--p-footer); color: rgba(255, 255, 255, .78); font-size: 13.5px; margin-top: 24px; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr 1.4fr; gap: 32px; padding-block: 48px 36px; }
.site-logo--footer .logo-text, .site-logo--footer .logo-mark { color: #fff; }
.site-logo--footer .logo-sub { color: var(--p-accent); }
.site-logo--footer .custom-logo { filter: brightness(0) invert(1); }
.footer-about { margin: 14px 0; line-height: 2; }
.footer-title { color: #fff; font-size: 15.5px; font-weight: 800; margin-bottom: 14px; }
.footer-menu { list-style: none; display: grid; gap: 8px; }
.footer-contact { list-style: none; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact svg { margin-top: 4px; color: var(--p-accent); }
.site-footer .newsletter-form { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); }
.site-footer .newsletter-form input { color: #fff; }
.site-footer .newsletter-form input::placeholder { color: rgba(255, 255, 255, .5); }
.site-footer .newsletter-form .btn { width: 42px; padding: 0; background: var(--p-accent); }
.site-footer .newsletter-msg { color: #fff; }
.footer-trust { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.footer-trust img { background: #fff; border-radius: 10px; padding: 4px; max-height: 90px; width: auto; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 16px; font-size: 12.5px; }
.site-footer__bottom p { margin: 0; }
.social-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a {
	width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: var(--p-primary-soft); color: var(--p-primary); transition: background .2s, color .2s, transform .2s;
}
.social-links a:hover { background: var(--p-primary); color: #fff; transform: translateY(-2px); }
.social-links--footer a { background: rgba(255, 255, 255, .1); color: #fff; }
.social-links--footer a:hover { background: var(--p-accent); }

/* ---------- Bottom nav / utilities ---------- */
.bottom-nav { display: none; }
.back-to-top {
	position: fixed; z-index: 90; bottom: 24px; inset-inline-end: 24px; width: 44px; height: 44px; border-radius: 50%; border: 0;
	background: var(--p-primary); color: #fff; box-shadow: var(--p-shadow-lg); display: flex; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--p-ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.toast {
	position: fixed; z-index: 300; bottom: 24px; left: 50%; transform: translate(-50%, 20px); max-width: calc(100vw - 32px);
	background: var(--p-text); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px; box-shadow: var(--p-shadow-lg);
	opacity: 0; visibility: hidden; transition: .3s var(--p-ease); display: flex; align-items: center; gap: 12px;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast a { color: var(--p-accent); font-weight: 700; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--p-muted); background: #fff; border: 1px dashed var(--p-line); border-radius: var(--p-radius); }
.empty-state svg { color: var(--p-primary-tint); margin-bottom: 8px; }
.empty-state p { font-size: 15px; }
.empty-state .search-form { max-width: 420px; margin: 0 auto; }
.empty-state--sm { padding: 28px 16px; }
.notice { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; }
.notice--success { background: var(--p-primary-soft); color: var(--p-primary-dark); }
.notice--error { background: #fdecea; color: #a5281b; }

/* ---------- Page header / breadcrumbs ---------- */
.page-header { padding-block: 26px; background: linear-gradient(180deg, #fff, var(--p-bg)); border-bottom: 1px solid var(--p-line); }
.page-title { font-size: clamp(22px, 3vw, 30px); margin: 4px 0 0; }
.page-subtitle { color: var(--p-muted); margin-top: 6px; }
.page-subtitle p { margin: 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12.5px; color: var(--p-muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: "/"; opacity: .5; margin-inline-end: 2px; }
.breadcrumbs a { color: var(--p-muted); }
.breadcrumbs a:hover { color: var(--p-primary); }
.breadcrumbs [aria-current] { color: var(--p-text); font-weight: 600; }
.breadcrumbs--light ol, .breadcrumbs--light a, .breadcrumbs--light [aria-current] { color: rgba(255, 255, 255, .85); }

/* ---------- Layout with sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.layout--sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
.layout--narrow { max-width: 860px; margin-inline: auto; }
.sidebar .widget { background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); padding: 18px; margin-bottom: 18px; }
.widget-title { font-size: 16px; margin-bottom: 12px; }
.widget ul { list-style: none; display: grid; gap: 8px; }
.widget a { color: var(--p-text); }
.widget a:hover { color: var(--p-primary); }
.search-form { position: relative; display: flex; }
.search-form input { padding-inline-end: 48px; border-radius: 999px; }
.search-form button { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--p-primary); color: #fff; display: flex; align-items: center; justify-content: center; }

/* ---------- Single post / content ---------- */
.single-post { min-width: 0; }
.single-post__head { margin: 16px 0 20px; }
.single-post__title { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.5; margin: 6px 0 12px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--p-muted); }
.post-meta > * { display: inline-flex; align-items: center; gap: 6px; color: var(--p-muted); }
.single-post__thumb { margin: 0 0 24px; border-radius: var(--p-radius-lg); overflow: hidden; }
.single-post__thumb img { width: 100%; }
.entry-content { font-size: 1.04em; line-height: 2.05; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: 1.45em; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.2em; margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content img { border-radius: 12px; }
.page-content .entry-content a:not(.btn):not(.button), .single-post .entry-content a:not(.btn):not(.button) { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 1.4em 0; padding: 16px 20px; border-inline-start: 4px solid var(--p-accent); background: var(--p-accent-soft); border-radius: 12px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95em; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--p-line); }
.entry-content pre { direction: ltr; text-align: left; background: #0e1f17; color: #e2efe7; padding: 16px; border-radius: 12px; overflow: auto; }
.entry-content--full > * + * { margin-top: 0; }
.alignwide { max-width: var(--p-container); margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.page-content, .page-woo { background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); padding: clamp(18px, 3vw, 36px); }
.page-woo { background: transparent; border: 0; padding: 0; }
.single-post__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0; padding-top: 20px; border-top: 1px solid var(--p-line); }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-tags a { font-size: 12.5px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--p-line); color: var(--p-muted); }
.share { display: flex; align-items: center; gap: 6px; }
.share__label { font-size: 13px; color: var(--p-muted); margin-inline-end: 4px; }
.share a, .share button { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--p-line); background: #fff; color: var(--p-text); }
.share a:hover, .share button:hover { background: var(--p-primary); color: #fff; border-color: var(--p-primary); }
.related-posts { margin-top: 32px; }
.page-links { margin-top: 20px; display: flex; gap: 6px; }

/* ---------- Comments ---------- */
.comments { margin-top: 36px; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); padding: clamp(18px, 3vw, 28px); }
.comments__title { font-size: 18px; }
.comment-list { list-style: none; margin-bottom: 24px; }
.comment-list .children { list-style: none; padding-inline-start: clamp(16px, 4vw, 48px); }
.comment-body { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--p-line); }
.comment-avatar img { border-radius: 50%; }
.comment-main { flex: 1; min-width: 0; }
.comment-meta { display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: var(--p-muted); }
.comment-author { color: var(--p-text); font-size: 14px; }
.comment-content p { margin: 6px 0; }
.comment-reply a { font-size: 12.5px; font-weight: 700; }
.comment-awaiting { color: var(--p-accent); font-size: 13px; }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 6px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-reply-title { font-size: 17px; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 28px; }
.pagination ul, .woocommerce-pagination ul.page-numbers { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; border: 0 !important; margin: 0; }
.pagination li, .woocommerce-pagination ul.page-numbers li { border: 0 !important; float: none !important; }
.pagination .page-numbers, .woocommerce-pagination ul.page-numbers .page-numbers {
	min-width: 40px; height: 40px; padding: 0 10px !important; border-radius: 12px; display: inline-flex !important; align-items: center; justify-content: center;
	background: #fff; border: 1px solid var(--p-line); color: var(--p-text); font-weight: 700; line-height: 1;
}
.pagination .page-numbers.current, .woocommerce-pagination ul.page-numbers .page-numbers.current { background: var(--p-primary) !important; color: #fff !important; border-color: var(--p-primary); }
.pagination a.page-numbers:hover, .woocommerce-pagination ul.page-numbers a.page-numbers:hover { border-color: var(--p-primary); color: var(--p-primary); background: #fff; }
[dir="ltr"] .pagination .prev svg, [dir="ltr"] .pagination .next svg { transform: scaleX(-1); }

/* ---------- Magazine ---------- */
.mag-hero { padding-top: 20px; }
.mag-hero .container > .mag-hero__box {
	position: relative; min-height: 280px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
	padding: 32px clamp(20px, 5vw, 56px); border-radius: var(--p-radius-lg); color: #fff; overflow: hidden;
	background: linear-gradient(to left, rgba(8, 36, 24, .82), rgba(8, 36, 24, .25) 70%), var(--mag-img) center / cover no-repeat, var(--p-primary-dark);
}
.mag-hero__title { color: #fff; font-size: clamp(28px, 4vw, 42px); margin: 8px 0 4px; font-weight: 900; }
.mag-hero__text { opacity: .92; max-width: 420px; }
.mag-search { position: relative; width: min(380px, 100%); }
.mag-search input { border-radius: 999px; border: 0; padding-inline-end: 52px; min-height: 48px; }
.mag-search button { position: absolute; inset-inline-end: 5px; top: 5px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--p-primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.mag-cats { padding-block: 22px 4px; }
.mag-cats__list { list-style: none; display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.mag-cats__list::-webkit-scrollbar { display: none; }
.mag-cat { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 104px; padding: 14px 10px; border-radius: var(--p-radius); background: #fff; border: 1px solid var(--p-line); color: var(--p-text); font-size: 13px; font-weight: 700; text-align: center; transition: .2s; }
.mag-cat__icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--p-accent-soft); color: var(--p-accent); overflow: hidden; }
.mag-cat__icon img { width: 100%; height: 100%; object-fit: cover; }
.mag-cat.is-active .mag-cat__icon, .mag-cat:hover .mag-cat__icon { background: var(--p-primary); color: #fff; }
.mag-cat:hover { border-color: var(--p-primary-tint); color: var(--p-primary); }
.mag-latest { padding-block: 26px 40px; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 24px; }
.contact-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 16px; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); color: var(--p-text); }
.contact-card:hover { border-color: var(--p-primary-tint); color: var(--p-text); }
.contact-card__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--p-primary-soft); color: var(--p-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.contact-card span:last-child { color: var(--p-muted); font-size: 13.5px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.contact-side { display: grid; gap: 16px; }
.contact-hours { display: flex; gap: 12px; align-items: flex-start; }
.contact-hours svg { color: var(--p-primary); }
.contact-hours p { margin: 4px 0 0; color: var(--p-muted); }
.contact-map { padding: 0; overflow: hidden; }
.contact-map iframe { display: block; width: 100%; height: 300px; border: 0; }
.contact-side .social-links { margin-top: 10px; }

/* ---------- 404 ---------- */
.error-404 { max-width: 560px; margin: 24px auto; text-align: center; padding: 40px 24px; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius-lg); }
.error-404__icon { display: inline-flex; color: var(--p-primary); }
.error-404__icon svg { fill: currentColor; stroke: none; }
.error-404__code { font-size: 72px; font-weight: 900; color: var(--p-accent); line-height: 1; margin: 6px 0 10px; }
.error-404 .header-search { margin: 18px auto; max-width: 420px; }
.error-404__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Gutenberg colors ---------- */
.has-primary-color { color: var(--p-primary); } .has-primary-background-color { background-color: var(--p-primary); }
.has-accent-color { color: var(--p-accent); } .has-accent-background-color { background-color: var(--p-accent); }
.has-purple-color { color: var(--p-purple); } .has-purple-background-color { background-color: var(--p-purple); }
.has-dark-color { color: var(--p-text); } .has-dark-background-color { background-color: var(--p-text); }
.has-light-background-color { background-color: var(--p-bg); } .has-white-background-color { background-color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
	.site-header__inner { gap: 16px; }
	.site-header__search { display: none; }
	.search-toggle { display: inline-flex; }
	.site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
	.footer-col--news { grid-column: 1 / -1; max-width: 520px; }
}

@media (max-width: 1024px) {
	:root { --p-gutter: 20px; --p-header-h: 64px; }
	.menu-toggle { display: inline-flex; margin-inline-start: -8px; }
	.main-nav { display: none; }
	.site-header__inner { gap: 6px; }
	.cat-circles { grid-template-columns: repeat(6, minmax(92px, 1fr)); overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
	.cat-circles::-webkit-scrollbar { display: none; }
	ul.products.columns-4, ul.products.columns-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	ul.products.products--rail { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
	.post-grid, .post-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.features { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
	.feature:nth-child(3) { border-inline-start: 0; }
	.promo-grid { grid-template-columns: 1fr 1fr; }
	.promo-grid > .promo:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.layout--sidebar { grid-template-columns: 1fr; }
	.rail__arrow { display: none; }
}

@media (max-width: 782px) {
	.admin-bar.has-sticky-header .site-header { top: 0; }
}

@media (max-width: 768px) {
	:root { --p-gutter: 16px; --p-hero-h: 380px; }
	.section { padding-block: 22px 40px; }
	.topbar__inner { justify-content: center; text-align: center; }
	.topbar__link, .topbar__menu { display: none; }
	.logo-name { font-size: 22px; }
	.logo-mark svg { width: 34px; height: 34px; }
	.site-header__inner > .site-logo { margin-inline: auto; }
	.header-actions { margin-inline-start: 0; }
	.hero-slider { border-radius: var(--p-radius); }
	.hero-slide::after { background: linear-gradient(to top, rgba(8, 36, 24, .85) 0%, rgba(8, 36, 24, .45) 50%, rgba(8, 36, 24, 0) 80%); }
	.hero-slide__content { top: auto; bottom: 44px; transform: none; inset-inline: 20px; width: auto; }
	.hero-slider__arrow { display: none; }
	.section-title { font-size: 18px; }
	ul.products, ul.products.columns-3, ul.products.columns-4, ul.products.columns-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	ul.products.products--rail { grid-auto-columns: 46%; gap: 12px; }
	.product-card { padding: 8px; border-radius: 14px; }
	.product-card__title { font-size: 13px; }
	.product-card .price { font-size: 14px; }
	.card-cart { width: 34px; height: 34px; border-radius: 10px; }
	.promo-grid { grid-template-columns: 1fr; }
	.promo { min-height: 150px; }
	.features { grid-template-columns: 1fr 1fr; padding: 12px 4px; }
	.feature { flex-direction: column; text-align: center; padding: 8px; gap: 8px; }
	.feature + .feature { border: 0; }
	.feature__icon { width: 46px; height: 46px; }
	.newsletter-box { grid-template-columns: 1fr; text-align: center; }
	.newsletter-box__text { padding: 0; }
	.newsletter-box__deco { display: none; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block: 36px 24px; }
	.footer-col--brand, .footer-col--news { grid-column: 1 / -1; }
	.site-footer__bottom-inner { flex-direction: column; text-align: center; gap: 4px; }
	.contact-grid, .form-row { grid-template-columns: 1fr; }
	.single-post__foot { flex-direction: column; align-items: flex-start; }

	.has-bottom-nav { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.has-bottom-nav .back-to-top { bottom: calc(80px + env(safe-area-inset-bottom)); inset-inline-end: 16px; }
	.has-bottom-nav .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
	.bottom-nav {
		position: fixed; z-index: 95; bottom: 0; inset-inline: 0; display: flex; justify-content: space-around;
		background: #fff; border-top: 1px solid var(--p-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
		box-shadow: 0 -6px 20px rgba(16, 40, 28, .06);
	}
	.bottom-nav a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--p-muted); padding: 4px 0; }
	.bottom-nav a.is-active { color: var(--p-primary); }
	.bottom-nav .cart-count { top: 0; inset-inline-end: calc(50% - 22px); }
}

@media (max-width: 480px) {
	.post-grid, .post-grid--3, .post-grid--4, .post-grid--2 { grid-template-columns: 1fr; }
	.cat-circles { grid-template-columns: repeat(6, 84px); gap: 12px; }
	.cat-circle__name { font-size: 12.5px; }
	.promo__title { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
	.topbar, .site-header, .site-footer, .bottom-nav, .back-to-top, .drawer, .toast { display: none !important; }
}

/* Card cart button must win over generic .button rules */
a.card-cart.button, .woocommerce a.card-cart.button { min-height: 0; padding: 0; border-radius: 12px; background: var(--p-primary-soft); color: var(--p-primary); border: 0; }
a.card-cart.button:hover, .woocommerce a.card-cart.button:hover { background: var(--p-primary); color: #fff; }
.product-card .price .price-from { display: inline; }
@media (max-width: 480px) {
	.product-card__foot { flex-wrap: wrap; }
	.product-card .price { flex: 1 1 100%; }
	.product-card__foot .card-cart { margin-inline-start: auto; }
}
