/* =========================================================================
   ANPOL theme – main.css
   Modern, clean fencing-manufacturer UI. Mobile-first.
   ========================================================================= */

/* ---------- Custom properties ---------- */
:root {
	--charcoal: #1a1a1a;
	--charcoal-soft: #2a2a2a;
	--accent: #b22222;
	--accent-dark: #8f1b1b;       /* hover (~10% darker) */
	--accent-tint: #f7e9e9;
	--white: #ffffff;
	--gray-50: #f5f5f5;
	--gray-100: #ededed;
	--gray-200: #e2e2e2;
	--gray-300: #cfcfcf;
	--gray-500: #8a8a8a;
	--gray-700: #4a4a4a;
	--text: #1a1a1a;
	--text-muted: #6b6b6b;
	--border: #e4e4e4;

	--font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--font-head: 'Archivo', 'Inter', system-ui, sans-serif;

	--maxw: 1200px;
	--radius: 4px;
	--radius-lg: 8px;
	--shadow-sm: 0 1px 3px rgba(0,0,0,.08);
	--shadow: 0 4px 16px rgba(0,0,0,.08);
	--shadow-lg: 0 12px 32px rgba(0,0,0,.14);
	--transition: all .3s ease;

	--header-h: 116px;
	--gap: 24px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4, h5 {
	font-family: var(--font-head);
	font-weight: 800;
	line-height: 1.12;
	margin: 0 0 .5em;
	color: var(--charcoal);
	letter-spacing: -.01em;
	text-wrap: balance;
}

p { margin: 0 0 1rem; text-wrap: pretty; }

ul, ol { margin: 0; padding: 0; }

.container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: 20px;
}

.muted { color: var(--text-muted); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 9999;
	background: var(--charcoal); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	padding: 13px 24px;
	border-radius: var(--radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: var(--transition);
	text-align: center;
	white-space: nowrap;
}
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn--outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }

.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--charcoal); border-color: #fff; }

/* ---------- Icons ---------- */
.icon { display: inline-block; vertical-align: middle; flex: none; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header { position: sticky; top: 0; z-index: 200; background: #fff; box-shadow: var(--shadow-sm); }

.topbar { background: var(--charcoal); color: rgba(255,255,255,.82); font-size: 13.5px; }
.topbar__inner { display: flex; justify-content: flex-end; align-items: center; min-height: 40px; }
.topbar__contacts { display: flex; gap: 26px; list-style: none; flex-wrap: wrap; }
.topbar__contacts a, .topbar__hours { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.82); }
.topbar__contacts a:hover { color: #fff; }
.topbar__contacts .icon { color: var(--accent); width: 15px; height: 15px; }

.navbar { background: #fff; }
.navbar__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.site-branding { flex: none; }
.custom-logo-link { display: block; }
.custom-logo { max-height: 56px; width: auto; }
.site-logo-text { display: flex; flex-direction: column; line-height: 1; color: var(--charcoal); }
.site-logo-text strong { font-family: var(--font-head); font-size: 28px; font-weight: 900; letter-spacing: .02em; }
.site-logo-text strong::after { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; margin-left: 3px; vertical-align: super; }
.site-logo-text span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }

.main-nav { margin-left: auto; }
.main-nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav__menu li { position: relative; }
.main-nav__menu a {
	display: block; padding: 12px 16px; color: var(--charcoal); font-weight: 600; font-size: 15px; border-radius: var(--radius);
}
.main-nav__menu > li > a:hover,
.main-nav__menu > li.current-menu-item > a,
.main-nav__menu > li.current_page_item > a { color: var(--accent); background: var(--gray-50); }
.main-nav__menu .menu-item-has-children > a::after {
	content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 7px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6;
}
/* dropdown */
.main-nav__menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 230px;
	background: #fff; box-shadow: var(--shadow); border-radius: var(--radius);
	padding: 8px; list-style: none; opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: var(--transition); border-top: 3px solid var(--accent); z-index: 50;
}
.main-nav__menu li:hover > .sub-menu,
.main-nav__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav__menu .sub-menu a { padding: 10px 14px; font-weight: 500; font-size: 14.5px; border-radius: 3px; }
.main-nav__menu .sub-menu a:hover { background: var(--gray-50); color: var(--accent); }

.navbar__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: none; background: transparent; color: var(--charcoal);
	border-radius: var(--radius); cursor: pointer; transition: var(--transition);
}
.icon-btn:hover { background: var(--gray-50); color: var(--accent); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; }
.menu-toggle__bar { width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: var(--transition); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* search drawer */
.search-drawer { border-top: 1px solid var(--border); background: var(--gray-50); padding: 18px 0; }
.search-drawer[hidden] { display: none; }

.search-form { display: flex; align-items: center; gap: 0; max-width: 560px; margin: 0; }
.search-form__input {
	flex: 1; height: 48px; padding: 0 16px; border: 1px solid var(--border); border-right: none;
	border-radius: var(--radius) 0 0 var(--radius); font-size: 15px; font-family: var(--font-body); outline: none;
}
.search-form__input:focus { border-color: var(--accent); }
.search-form__submit {
	height: 48px; width: 52px; border: none; background: var(--accent); color: #fff; cursor: pointer;
	border-radius: 0 var(--radius) var(--radius) 0; display: inline-flex; align-items: center; justify-content: center;
}
.search-form__submit:hover { background: var(--accent-dark); }

/* =========================================================================
   BREADCRUMBS
   ========================================================================= */
.breadcrumbs { background: var(--gray-50); border-bottom: 1px solid var(--border); font-size: 13.5px; }
.breadcrumbs .container { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-block: 12px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span:last-child { color: var(--charcoal); font-weight: 600; }
.breadcrumbs__sep { color: var(--gray-300); }

/* =========================================================================
   SECTIONS
   ========================================================================= */
.section { padding: 80px 0; }
.section--alt { background: var(--gray-50); }

.section__head { margin-bottom: 48px; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section__kicker {
	display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 13px;
	letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section__title { font-size: clamp(28px, 4vw, 44px); margin: 0; }
.section__title--sm { font-size: clamp(22px, 3vw, 30px); margin-bottom: 24px; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
	position: relative;
	min-height: clamp(480px, 72vh, 720px);
	display: flex; align-items: center;
	background: var(--charcoal) var(--hero-bg, none) center/cover no-repeat;
	color: #fff;
}
.hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.28) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 720px; padding-block: 64px; }
.hero__eyebrop { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); font-weight: 600; margin-bottom: 18px; }
.hero__eyebrop::before { content: ''; display: inline-block; width: 32px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 12px; }
.hero__title { color: #fff; font-size: clamp(34px, 6vw, 62px); margin-bottom: 20px; }
.hero__sub { font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,.9); max-width: 600px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================================
   WHY US
   ========================================================================= */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.why-card {
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
	padding: 32px 26px; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.why-card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 60px; height: 60px; border-radius: var(--radius); background: var(--accent-tint); color: var(--accent); margin-bottom: 20px;
}
.why-card__icon img { width: 32px; height: 32px; }
.why-card__title { font-size: 19px; margin-bottom: 8px; }
.why-card__desc { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* =========================================================================
   PRODUCT CATEGORIES
   ========================================================================= */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cat-card {
	position: relative; display: block; border-radius: var(--radius); overflow: hidden;
	background: #fff; box-shadow: var(--shadow-sm); transition: var(--transition); color: var(--charcoal);
	border: 1px solid var(--border);
}
.cat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); color: var(--charcoal); }
.cat-card__media { display: block; height: 200px; background: var(--gray-200) center/cover no-repeat; }
.cat-card__media--empty { display: flex; align-items: center; justify-content: center; color: var(--gray-500); background: var(--gray-100); }
.cat-card__body { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; }
.cat-card__name { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.cat-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; }
.cat-card:hover .cat-card__more .icon { transform: translateX(4px); }
.cat-card__more .icon { transition: var(--transition); }

/* =========================================================================
   PRODUCTS GRID (WooCommerce loop)
   ========================================================================= */
.products-grid,
ul.products {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); list-style: none; margin: 0; padding: 0;
}
.products-grid li.product,
ul.products li.product { margin: 0 !important; width: auto !important; float: none !important; }
/* WooCommerce adds ::before/::after clearfix on ul.products; in a grid they
   become stray cells (empty slot before the first card). Its selector
   (.woocommerce ul.products::before) outranks a plain one, so match specificity
   and force them off. */
.products-grid::before, .products-grid::after,
ul.products::before, ul.products::after,
.woocommerce ul.products::before, .woocommerce ul.products::after,
.woocommerce-page ul.products::before, .woocommerce-page ul.products::after {
	content: none !important; display: none !important;
}

li.product {
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition);
	display: flex; flex-direction: column;
}
li.product:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
li.product a.woocommerce-LoopProduct-link { display: block; color: var(--charcoal); }
li.product img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--gray-100); }
li.product .woocommerce-loop-product__title {
	font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.25;
	padding: 18px 18px 6px; margin: 0; color: var(--charcoal);
}
li.product .price { display: none; }
li.product > a.btn, li.product .btn { margin: auto auto 18px; align-self: center; }

/* WooCommerce notices, ratings minimal */
.star-rating { display: none; }
.onsale { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; padding: 4px 10px; border-radius: var(--radius); font-size: 12px; font-weight: 700; z-index: 2; }

/* =========================================================================
   ABOUT
   ========================================================================= */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 360px; background: var(--gray-200); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__media--empty { display: flex; align-items: center; justify-content: center; background: var(--gray-100); }
.about__body p { color: var(--text-muted); font-size: 16.5px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; list-style: none; margin: 28px 0 32px; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--font-head); font-size: 32px; font-weight: 800; color: var(--accent); line-height: 1; }
.stats span { font-size: 13px; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .04em; }

/* =========================================================================
   CTA BANNER
   ========================================================================= */
.cta-banner { background: var(--charcoal); color: #fff; padding: 64px 0; }
.cta-banner__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,.78); margin: 0; max-width: 520px; }
.cta-banner__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-banner__phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 24px; }
.cta-banner__phone .icon { color: var(--accent); }
.cta-banner__phone:hover { color: var(--accent); }

/* =========================================================================
   GALLERY PREVIEW (home)
   ========================================================================= */
.gallery-preview { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery-preview__item { display: block; border-radius: var(--radius); overflow: hidden; background: var(--gray-100); position: relative; }
.gallery-preview__item img, .gallery-preview__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-preview__item:hover img { transform: scale(1.07); }
.gallery-preview__item--empty { display: flex; align-items: center; justify-content: center; color: var(--gray-500); }
.gallery-preview__item:nth-child(1) { grid-row: span 2; }

/* =========================================================================
   CONTACT STRIP + MAP
   ========================================================================= */
.contact-strip { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; color: var(--text); }
.contact-list .icon { color: var(--accent); flex: none; margin-top: 2px; }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--accent); }
.contact-strip__map iframe { display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.72); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding: 64px 20px; }
.footer__logo strong { font-family: var(--font-head); font-size: 26px; font-weight: 900; color: #fff; letter-spacing: .02em; }
.footer__brand p { margin-top: 14px; font-size: 14.5px; line-height: 1.7; }
.footer__title { color: #fff; font-size: 16px; font-family: var(--font-head); font-weight: 700; margin-bottom: 18px; }
.footer__menu { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__menu a { color: rgba(255,255,255,.72); font-size: 14.5px; }
.footer__menu a:hover { color: #fff; padding-left: 5px; }
.footer__contact { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer__contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; }
.footer__contact .icon { color: var(--accent); flex: none; margin-top: 2px; }
.footer__contact a { color: rgba(255,255,255,.72); }
.footer__contact a:hover { color: #fff; }

.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 20px; flex-wrap: wrap; }
.footer__copy { margin: 0; font-size: 13px; color: rgba(255,255,255,.55); }
.footer__seo { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__seo a { color: rgba(255,255,255,.4); font-size: 12px; }
.footer__seo a:hover { color: rgba(255,255,255,.75); }

/* =========================================================================
   GENERIC PAGE LAYOUT
   ========================================================================= */
.page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding-block: 64px; align-items: start; }
.page-layout__content { min-width: 0; }
.entry__title { font-size: clamp(28px, 4vw, 42px); }
.entry__thumb { margin: 0 0 28px; border-radius: var(--radius-lg); overflow: hidden; }
.entry__content { font-size: 16.5px; }
.entry__content h2 { margin-top: 1.6em; }
.entry__content img { border-radius: var(--radius); margin: 1.4em 0; }
.entry__content a { text-decoration: underline; }
.entry__content ul, .entry__content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry__content blockquote { border-left: 4px solid var(--accent); margin: 1.4em 0; padding: 4px 0 4px 22px; color: var(--text-muted); font-style: italic; }

.widget-area .widget { margin-bottom: 32px; }
.widget__title { font-size: 17px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.widget ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.widget a { color: var(--text); }
.widget a:hover { color: var(--accent); }

/* post lists (blog / search) */
.post-list { display: flex; flex-direction: column; gap: 28px; }
.post-card { display: grid; grid-template-columns: 280px 1fr; gap: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.post-card:hover { box-shadow: var(--shadow); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px 24px; }
.post-card__type { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.post-card__title { font-size: 21px; margin: 6px 0 8px; }
.post-card__title a { color: var(--charcoal); }
.post-card__title a:hover { color: var(--accent); }
.post-card__meta { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.post-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 8px; }

/* pagination */
.pagination, .woocommerce-pagination { margin-top: 48px; }
.pagination .nav-links, .woocommerce-pagination ul { display: flex; gap: 8px; justify-content: center; list-style: none; flex-wrap: wrap; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
	border: 1px solid var(--border); border-radius: var(--radius); color: var(--charcoal); font-weight: 600; background: #fff;
}
.page-numbers:hover, .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.woocommerce-pagination ul li { border: none; margin: 0; }

/* =========================================================================
   SHOP (archive) layout
   ========================================================================= */
.shop { padding-block: 56px; }
.shop__head { margin-bottom: 36px; }
.shop__layout { display: grid; grid-template-columns: 270px 1fr; gap: 40px; align-items: start; }
.shop__filter-toggle { display: none; margin-bottom: 16px; }
.shop__filters { display: flex; flex-direction: column; gap: 28px; position: sticky; top: calc(var(--header-h) + 16px); }
.filter-block__title { font-size: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.filter-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.filter-list a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: var(--radius); color: var(--text); font-size: 14.5px; }
.filter-list a:hover, .filter-list a.is-active { background: var(--gray-50); color: var(--accent); font-weight: 600; }
.filter-list span { color: var(--gray-500); }

.shop__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.woocommerce-result-count { margin: 0; color: var(--text-muted); font-size: 14px; }
.woocommerce-ordering select { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); }

/* =========================================================================
   SINGLE PRODUCT
   ========================================================================= */
.single-product-wrap { padding-block: 56px; }
.single-product__top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; margin-bottom: 56px; }
.single-product__main { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-100); box-shadow: var(--shadow-sm); }
.single-product__main img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.single-product__main--empty { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; color: var(--gray-500); }
.single-product__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.single-product__thumb { border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; cursor: pointer; }
.single-product__thumb.is-active { border-color: var(--accent); }
.single-product__thumb img { aspect-ratio: 1/1; object-fit: cover; }

.single-product__cat { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.single-product__title { font-size: clamp(28px, 4vw, 42px); margin: 10px 0 18px; }
.single-product__short { color: var(--text-muted); font-size: 16.5px; margin-bottom: 28px; }
.single-product__cta-box { background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.single-product__cta-note { font-size: 14.5px; color: var(--text-muted); margin-bottom: 16px; }
.single-product__cta-box .btn { width: 100%; margin-bottom: 16px; }
.single-product__phone { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-family: var(--font-head); font-size: 20px; color: var(--charcoal); }
.single-product__phone .icon { color: var(--accent); }

.single-product__description, .single-product__inquiry, .single-product__related { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--border); }
.single-product__inquiry { max-width: 760px; }

/* =========================================================================
   FORMS (inquiry / CF7)
   ========================================================================= */
.inquiry-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field__label { font-size: 14px; font-weight: 600; color: var(--charcoal); }
.form-field__label em { color: var(--accent); font-style: normal; }
.inquiry-form input, .inquiry-form textarea,
.wpcf7-form input, .wpcf7-form textarea {
	width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius);
	font-family: var(--font-body); font-size: 15px; background: #fff; transition: var(--transition); outline: none;
}
.inquiry-form input:focus, .inquiry-form textarea:focus,
.wpcf7-form input:focus, .wpcf7-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.inquiry-form textarea { resize: vertical; min-height: 120px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-muted); }
.form-consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.inquiry-form__status { margin: 0; font-size: 14.5px; font-weight: 600; }
.inquiry-form__status.is-ok { color: #1b7a3d; }
.inquiry-form__status.is-err { color: var(--accent); }
.inquiry-form.is-loading button { opacity: .6; pointer-events: none; }

/* =========================================================================
   GALLERY PAGE
   ========================================================================= */
.gallery-intro { max-width: 720px; margin-bottom: 32px; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.gallery-filters__btn {
	padding: 10px 20px; border: 1px solid var(--border); background: #fff; border-radius: 999px;
	font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--charcoal); cursor: pointer; transition: var(--transition);
}
.gallery-filters__btn:hover { border-color: var(--accent); color: var(--accent); }
.gallery-filters__btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.gallery-grid { columns: 4; column-gap: 16px; }
.gallery-grid__item { display: block; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; break-inside: avoid; background: var(--gray-100); }
.gallery-grid__item img { width: 100%; height: auto; transition: transform .5s ease; }
.gallery-grid__item:hover img { transform: scale(1.05); }
.gallery-grid__item.is-hidden { display: none; }

/* =========================================================================
   CONTACT PAGE
   ========================================================================= */
.contact-intro { max-width: 720px; margin-bottom: 40px; }
.contact-page { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.contact-page__subtitle { font-size: 22px; margin-bottom: 22px; }
.contact-page__details { background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.contact-page__hours-title { font-size: 16px; margin: 28px 0 12px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hours-table th, .hours-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--border); }
.hours-table th { font-weight: 500; color: var(--text); }
.hours-table td { text-align: right; font-weight: 700; color: var(--charcoal); }
.contact-page__map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; }

/* =========================================================================
   404
   ========================================================================= */
.error-404 { padding-block: 100px; text-align: center; }
.error-404__inner { max-width: 560px; margin: 0 auto; }
.error-404__code { font-family: var(--font-head); font-size: clamp(80px, 18vw, 160px); font-weight: 900; color: var(--accent); line-height: 1; margin: 0; }
.error-404__title { font-size: clamp(26px, 4vw, 38px); margin: 8px 0 12px; }
.error-404__text { color: var(--text-muted); margin-bottom: 28px; }
.error-404__search { max-width: 420px; margin: 0 auto 24px; }
.error-404__search .search-form { margin: 0 auto; }
.error-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1100px) {
	.why-grid { grid-template-columns: repeat(2, 1fr); }
	.products-grid, ul.products { grid-template-columns: repeat(3, 1fr); }
	.gallery-grid { columns: 3; }
}

@media (max-width: 900px) {
	:root { --header-h: 104px; }
	.section { padding: 56px 0; }
	.section__head { margin-bottom: 36px; }

	/* Mobile nav */
	.menu-toggle { display: inline-flex; }
	.navbar__cta { display: none; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 0 auto; width: min(82vw, 360px);
		background: #fff; box-shadow: var(--shadow-lg); padding: 16px; overflow-y: auto;
		transform: translateX(100%); transition: transform .3s ease; z-index: 180; margin: 0;
	}
	.main-nav.is-open { transform: translateX(0); }
	.main-nav__menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.main-nav__menu a { padding: 14px 16px; font-size: 16px; border-radius: var(--radius); }
	.main-nav__menu .menu-item-has-children > a::after { float: right; }
	.main-nav__menu .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
		border-top: none; border-left: 2px solid var(--gray-200); border-radius: 0; padding: 0 0 0 12px; margin: 2px 0 6px 12px;
		max-height: 0; overflow: hidden; transition: max-height .3s ease;
	}
	.main-nav__menu .menu-item-has-children.is-expanded > .sub-menu { max-height: 600px; }

	.about { grid-template-columns: 1fr; gap: 32px; }
	.about__media { min-height: 280px; }
	.contact-strip { grid-template-columns: 1fr; gap: 28px; }
	.contact-page { grid-template-columns: 1fr; gap: 32px; }
	.page-layout { grid-template-columns: 1fr; gap: 40px; }

	.single-product__top { grid-template-columns: 1fr; gap: 32px; }

	.shop__layout { grid-template-columns: 1fr; }
	.shop__filter-toggle { display: inline-flex; }
	.shop__filters { display: none; position: static; }
	.shop__filters.is-open { display: flex; }

	.footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
	.cta-banner__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
	.topbar__hours { display: none; }
	.topbar__inner { justify-content: center; }
	.topbar__contacts { gap: 16px; }
	.topbar__contacts a span { display: none; }
	.why-grid { grid-template-columns: 1fr; }
	.cat-grid { grid-template-columns: 1fr; }
	.products-grid, ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.gallery-grid { columns: 2; }
	.gallery-preview { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
	.gallery-preview__item:nth-child(1) { grid-row: span 1; }
	.stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.form-row { grid-template-columns: 1fr; }
	.post-card { grid-template-columns: 1fr; }
	.post-card__media img { aspect-ratio: 16/9; }
	.footer__grid { grid-template-columns: 1fr; }
	.section__head--row { align-items: flex-start; }
	.cta-banner__phone { font-size: 20px; }
}

@media (max-width: 420px) {
	.products-grid, ul.products { grid-template-columns: 1fr; }
	.gallery-grid { columns: 1; }
	.btn--lg { width: 100%; }
	.hero__actions .btn { width: 100%; }
}
