/*
Theme Name: Homestead Survival Outfitters
Theme URI: https://example.com/homestead-survival
Author: Homestead Survival Outfitters
Author URI: https://example.com
Description: A rugged, South Georgia-inspired WooCommerce-ready theme for preparedness and outdoor gear stores. Includes a fully customizable homepage (hero, category tiles, trust bar, story section, beginner's guide, newsletter), responsive layout, and WooCommerce styling.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homestead
Tags: e-commerce, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, right-sidebar
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--pine: #2E3B24;
	--terracotta: #B5654A;
	--parchment: #EDE1C9;
	--leather: #6B4020;
	--moss: #1A1F16;
	--linen: #F7F3EB;

	--terracotta-dark: #9a523a;
	--gold: #D9B86A;

	--font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
	--font-heading: 'Oswald', 'Arial Narrow', Impact, sans-serif;
	--font-body: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
	--font-ui: 'Oswald', 'Arial Narrow', sans-serif;

	--container: 1200px;
	--radius: 3px;
	--shadow: 0 6px 18px rgba(26, 31, 22, .35);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--linen);
	color: var(--moss);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--terracotta); text-decoration: none; transition: color .2s, background .2s; }
a:hover, a:focus { color: var(--leather); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	text-transform: uppercase;
	letter-spacing: .02em;
	line-height: 1.15;
	color: var(--moss);
	margin: 0 0 .6em;
	font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.2em; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--linen); clip: auto !important; clip-path: none; color: var(--moss);
	display: block; font-size: 1rem; height: auto; left: 8px; padding: 12px 20px;
	top: 8px; width: auto; z-index: 100000;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--leather); }
.sticky .entry-title::before { content: "★ "; color: var(--terracotta); }
.bypostauthor { display: block; }

/* ==========================================================================
   3. Textures (pure CSS grain so no image files are required)
   ========================================================================== */
.texture-dark {
	background-color: var(--moss);
	background-image:
		radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
		radial-gradient(rgba(0,0,0,.25) 1px, transparent 1px);
	background-size: 4px 4px, 7px 7px;
	background-position: 0 0, 2px 3px;
}
.texture-pine {
	background-color: var(--pine);
	background-image:
		radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
		radial-gradient(rgba(0,0,0,.2) 1px, transparent 1px);
	background-size: 4px 4px, 7px 7px;
}
.texture-parchment {
	background-color: var(--parchment);
	background-image:
		radial-gradient(rgba(107,64,32,.07) 1px, transparent 1px),
		radial-gradient(rgba(255,255,255,.25) 1px, transparent 1px);
	background-size: 5px 5px, 9px 9px;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn,
.button,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 1.05rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1;
	border: 2px solid var(--terracotta);
	border-radius: var(--radius);
	background: var(--terracotta);
	color: var(--linen);
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 3px 8px rgba(0,0,0,.3);
	transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.btn:hover, .button:hover, button:hover, input[type="submit"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
	background: var(--terracotta-dark);
	border-color: var(--terracotta-dark);
	color: var(--linen);
	transform: translateY(-1px);
}
.btn--outline {
	background: rgba(26,31,22,.55);
	border-color: var(--gold);
	color: var(--parchment);
	box-shadow: none;
}
.btn--outline:hover { background: var(--gold); border-color: var(--gold); color: var(--moss); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   5. Top bar
   ========================================================================== */
.topbar {
	background: var(--moss);
	color: var(--parchment);
	font-family: var(--font-ui);
	font-size: .88rem;
	border-bottom: 1px solid rgba(237,225,201,.12);
}
.topbar__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 20px; min-height: 42px; flex-wrap: wrap;
}
.topbar__promo { display: flex; align-items: center; gap: 14px; }
.topbar__promo svg { width: 16px; height: 16px; color: var(--gold); }
.topbar__promo .sep { width: 1px; height: 16px; background: rgba(237,225,201,.35); }
.topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar a { color: var(--parchment); }
.topbar a:hover { color: var(--gold); }
.topbar-menu { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; }
.topbar-menu li + li::before { content: "|"; margin: 0 12px; opacity: .5; }
.social-links { display: flex; gap: 12px; align-items: center; }
.social-links a { display: inline-flex; }
.social-links svg { width: 20px; height: 20px; fill: currentColor; }

/* ==========================================================================
   6. Header
   ========================================================================== */
.site-header { position: relative; z-index: 50; }
.site-header__main { padding: 14px 0; border-bottom: 3px solid var(--moss); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }

.site-branding { flex: none; }
.site-logo-badge {
	display: inline-block;
	max-width: 440px;
	line-height: 0;
}
.site-logo-badge img { width: 100%; height: auto; }
.custom-logo-link img { max-height: 110px; width: auto; }
.site-title-text {
	font-family: var(--font-display);
	font-size: 1.7rem; white-space: nowrap; display: block; text-transform: uppercase; color: var(--parchment); line-height: 1;
}
.site-title-text small {
	display: block; font-size: .8rem; letter-spacing: .15em; color: var(--gold); margin-top: 6px;
}

.main-navigation { flex: 1; min-width: 0; display: flex; justify-content: flex-end; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; align-items: center; gap: 6px; }
.primary-menu > li { position: relative; }
.primary-menu > li > a {
	white-space: nowrap;
	display: flex; align-items: center; gap: 6px;
	padding: 12px 12px;
	font-family: var(--font-ui); font-weight: 600; font-size: 1rem;
	text-transform: uppercase; letter-spacing: .04em;
	color: var(--parchment);
	border-radius: var(--radius);
}
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current_page_item > a,
.primary-menu > li.current-menu-ancestor > a {
	background: var(--terracotta); color: var(--linen);
}
.primary-menu .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}
.primary-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 240px;
	background: var(--moss); border-top: 3px solid var(--terracotta);
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all .2s; z-index: 60;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-menu .sub-menu a {
	display: block; padding: 11px 18px;
	font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .04em; font-size: .95rem;
	color: var(--parchment); border-bottom: 1px solid rgba(237,225,201,.08);
}
.primary-menu .sub-menu a:hover { background: var(--pine); color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 16px; margin-left: 10px; }
.header-actions button, .header-actions a { color: var(--parchment); }
.icon-btn {
	background: none !important; border: 0 !important; box-shadow: none !important;
	padding: 6px !important; color: var(--parchment); position: relative; display: inline-flex;
}
.icon-btn:hover { color: var(--gold) !important; transform: none !important; }
.icon-btn svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-count {
	position: absolute; top: -4px; right: -6px;
	min-width: 20px; height: 20px; padding: 0 5px;
	display: flex; align-items: center; justify-content: center;
	background: var(--terracotta); color: #fff; border-radius: 20px;
	font-family: var(--font-ui); font-size: .72rem; font-weight: 600; line-height: 1;
}

.menu-toggle { display: none !important; }

/* Search drawer */
.search-drawer {
	display: none; background: var(--pine); padding: 18px 0;
	border-bottom: 3px solid var(--moss);
}
.search-drawer.is-open { display: block; }
.search-form { display: flex; gap: 10px; max-width: 640px; margin: 0 auto; }
.search-form label { flex: 1; }
.search-field, input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="tel"], input[type="password"], input[type="number"], textarea, select {
	width: 100%; padding: 13px 16px;
	font: inherit; font-family: var(--font-body); font-size: .95rem;
	background: var(--linen); color: var(--moss);
	border: 1px solid var(--leather); border-radius: var(--radius);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; }

/* ==========================================================================
   7. Hero slider
   ========================================================================== */
.hero-slider { position: relative; height: clamp(420px, 46vw, 640px); background: var(--moss); overflow: hidden; border-bottom: 4px solid var(--terracotta); }
.hs-slide {
	position: absolute; inset: 0; display: flex; align-items: center;
	background-size: cover; background-position: center;
	opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s;
}
.hs-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hs-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,31,22,.82) 0%, rgba(26,31,22,.45) 50%, rgba(26,31,22,.1) 100%); }
.hs-slide__inner { position: relative; z-index: 2; }
.hs-slide__content { max-width: 600px; color: var(--parchment); }
.hs-slide__title { font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: .98; color: var(--linen); text-shadow: 0 3px 14px rgba(0,0,0,.5); margin-bottom: 18px; }
.hs-slide__text { font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.5; margin-bottom: 28px; color: var(--parchment); }
.hs-arrow {
	position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
	width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%;
	background: rgba(26,31,22,.65); border-color: rgba(237,225,201,.4); box-shadow: none;
}
.hs-arrow:hover { background: var(--terracotta); border-color: var(--terracotta); transform: translateY(-50%); }
.hs-prev { left: 18px; } .hs-prev svg { transform: rotate(180deg); }
.hs-next { right: 18px; }
.hs-arrow svg { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hs-dots { position: absolute; bottom: 18px; left: 0; right: 0; z-index: 5; display: flex; gap: 10px; justify-content: center; }
.hs-dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid var(--parchment); background: transparent; box-shadow: none; }
.hs-dot.is-active { background: var(--terracotta); border-color: var(--terracotta); }
.hs-dot:hover { transform: none; background: var(--parchment); }

/* ==========================================================================
   8. Trust bar, section headings, category tiles
   ========================================================================== */
.trust { background: var(--pine); color: var(--parchment); padding: 18px 0; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; align-items: center; gap: 14px; justify-content: center; padding: 4px 14px; }
.trust__item + .trust__item { border-left: 1px solid rgba(237,225,201,.25); }
.trust__icon { flex: none; width: 40px; height: 40px; color: var(--gold); }
.trust__icon svg { width: 100%; height: 100%; fill: currentColor; }
.trust__label { font-size: 1rem; line-height: 1.15; color: var(--parchment); margin: 0; letter-spacing: .05em; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; border-bottom: 2px solid var(--moss); padding-bottom: 10px; }
.section-head h2 { margin: 0; }
.section-head__link { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; color: var(--terracotta); }
.section-head__link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.categories { padding: 56px 0 24px; }
.categories__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--moss); border: 2px solid var(--moss); border-radius: var(--radius); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,31,22,0) 35%, rgba(26,31,22,.9) 100%); }
.cat-card:hover img { transform: scale(1.06); }
.cat-card__label { position: absolute; left: 16px; right: 60px; bottom: 14px; z-index: 2; display: block; }
.cat-card__title { display: block; font-family: var(--font-heading); text-transform: uppercase; font-weight: 700; font-size: 1.3rem; line-height: 1.1; color: var(--linen); }
.cat-card__sub { display: block; font-size: .85rem; color: var(--parchment); opacity: .9; line-height: 1.3; margin-top: 3px; }
.cat-card__arrow { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: var(--terracotta); color: var(--linen); display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.cat-card__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cat-card:hover .cat-card__arrow { background: var(--gold); color: var(--moss); transform: translateX(3px); }

/* ==========================================================================
   9. Featured products
   ========================================================================== */
.featured { padding: 40px 0 64px; }
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.pcard { text-align: center; }
.pcard__img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--parchment); border: 1px solid rgba(107,64,32,.35); border-radius: var(--radius); margin-bottom: 12px; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--terracotta); color: #fff; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; padding: 5px 10px; border-radius: 2px; line-height: 1; }
.pcard__title { font-size: 1.02rem; line-height: 1.25; margin: 0 0 6px; letter-spacing: .02em; }
.pcard__title a { color: var(--moss); }
.pcard__title a:hover { color: var(--terracotta); }
.pcard__price { font-family: var(--font-ui); font-weight: 600; color: var(--leather); font-size: 1.05rem; }
.pcard__price del { opacity: .55; font-weight: 400; margin-right: 4px; }
.pcard__price ins { text-decoration: none; color: var(--terracotta); }
.pcard__rating { font-size: .82rem; color: var(--leather); margin-top: 4px; display: flex; gap: 6px; justify-content: center; align-items: center; }
.pcard .star-rating, .pcard .stars { color: var(--gold); }
.pcard .star-rating { float: none; margin: 0; }
.product-grid__note { grid-column: 1 / -1; text-align: center; font-size: .85rem; color: var(--leather); font-style: italic; margin: 8px 0 0; }

/* ==========================================================================
   10. Video, story split, guide
   ========================================================================== */
.feature-video { padding: 64px 0; color: var(--parchment); border-top: 4px solid var(--leather); }
.feature-video__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.feature-video h2 { color: var(--parchment); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.feature-video p { color: var(--parchment); font-size: 1.05rem; margin-bottom: 26px; }
.feature-video__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 3px solid var(--parchment); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--pine); }
.feature-video__thumb img { width: 100%; height: 100%; object-fit: cover; }
.feature-video__thumb .play { position: absolute; top: 50%; left: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--terracotta); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(181,101,74,.3); transition: transform .2s; }
.feature-video__thumb:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.feature-video__thumb .play svg { width: 38px; height: 38px; fill: var(--linen); margin-left: 4px; }

.split__grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; }
.split__image { background-size: cover; background-position: center; min-height: 280px; background-color: var(--moss); }
.split__text { padding: 56px clamp(24px, 6vw, 90px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: var(--parchment); }
.split__text h2 { color: var(--parchment); font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.split__text p { color: var(--parchment); font-size: 1.05rem; margin-bottom: 26px; }

.guide { padding: 44px 0; border-top: 4px solid var(--leather); border-bottom: 4px solid var(--leather); }
.guide__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.guide h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 8px; }
.guide__lead { font-weight: 700; font-size: 1.12rem; margin-bottom: 6px; }
.guide p { margin-bottom: 0; }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer { color: var(--parchment); }
.newsletter-band { padding: 30px 0; }
.newsletter-band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.newsletter { display: flex; align-items: center; gap: 18px; }
.newsletter__icon { flex: none; width: 48px; color: var(--parchment); }
.newsletter__icon svg { width: 100%; fill: currentColor; }
.newsletter h3 { margin: 0 0 2px; font-size: 1.5rem; color: var(--parchment); }
.newsletter p { margin: 0; font-size: .92rem; line-height: 1.4; }
.newsletter-form { display: flex; }
.newsletter-form input[type="email"] { border-radius: var(--radius) 0 0 var(--radius); border-right: 0; flex: 1; min-width: 0; }
.newsletter-form button { border-radius: 0 var(--radius) var(--radius) 0; }
.newsletter-msg { font-size: .85rem; margin-top: 6px; color: var(--gold); }

.footer-cols { padding: 46px 0 34px; }
.footer-cols__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-col h3 { font-size: 1.1rem; color: var(--gold); letter-spacing: .08em; margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 8px; }
.footer-list a, .footer-menu a { color: var(--parchment); font-size: .95rem; }
.footer-list a:hover, .footer-menu a:hover { color: var(--gold); }

.footer-bottom { background: var(--moss); border-top: 1px solid rgba(237,225,201,.14); padding: 16px 0; font-size: .85rem; }
.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--font-ui); }
.payments { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.payments li { font-family: var(--font-ui); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border: 1px solid rgba(237,225,201,.35); border-radius: 3px; color: var(--parchment); }

/* ==========================================================================
   12. Inner pages / blog
   ========================================================================== */
.page-hero {
	padding: 54px 0; text-align: center; color: var(--parchment);
	border-bottom: 4px solid var(--leather);
}
.page-hero h1 { color: var(--parchment); margin: 0; text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.page-hero p { margin: 10px 0 0; opacity: .9; }

.site-content { padding: 56px 0; }
.content-area { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.content-area.has-sidebar { grid-template-columns: minmax(0, 1fr) 320px; }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.post-card {
	background: #fff; border: 2px solid var(--leather); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column;
	box-shadow: 0 4px 14px rgba(26,31,22,.12);
}
.post-card__thumb { aspect-ratio: 16 / 10; background: var(--pine); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-family: var(--font-ui); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--leather); margin-bottom: 8px; }
.post-card__title { font-size: 1.35rem; margin-bottom: 10px; }
.post-card__title a { color: var(--moss); }
.post-card__title a:hover { color: var(--terracotta); }
.post-card__excerpt { font-size: .95rem; flex: 1; }

.entry-header { margin-bottom: 24px; }
.entry-meta { font-family: var(--font-ui); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--leather); }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content blockquote {
	margin: 1.6em 0; padding: 18px 24px; border-left: 5px solid var(--terracotta);
	background: var(--parchment); font-style: italic;
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--leather); }
.entry-content th { background: var(--pine); color: var(--parchment); font-family: var(--font-ui); text-transform: uppercase; }
.entry-featured { margin-bottom: 30px; border: 3px solid var(--moss); }
.entry-footer { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--leather); font-size: .9rem; }

.pagination, .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.page-numbers {
	padding: 10px 16px; border: 2px solid var(--leather); border-radius: var(--radius);
	font-family: var(--font-ui); color: var(--leather); background: var(--linen);
}
.page-numbers.current, .page-numbers:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }

.widget { margin-bottom: 30px; padding: 22px; background: var(--parchment); border: 2px solid var(--leather); }
.widget-title { font-size: 1.2rem; border-bottom: 2px solid var(--terracotta); padding-bottom: 8px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px dashed rgba(107,64,32,.35); }

.comments-area { margin-top: 50px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--parchment); border: 1px solid var(--leather); padding: 18px; margin-bottom: 18px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-author .avatar { float: left; margin-right: 12px; border-radius: 50%; }

.error-404 { text-align: center; padding: 60px 0; }
.error-404 .big { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 12rem); line-height: 1; color: var(--terracotta); margin: 0; }

/* ==========================================================================
   13. WooCommerce
   ========================================================================== */
.woocommerce .woocommerce-breadcrumb { font-family: var(--font-ui); font-size: .85rem; color: var(--leather); margin-bottom: 20px; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0 0 30px !important; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important;
	background: #fff; border: 2px solid var(--leather); border-radius: var(--radius);
	padding: 0 0 18px; text-align: center; position: relative; overflow: hidden;
	box-shadow: 0 4px 14px rgba(26,31,22,.12);
}
.woocommerce ul.products li.product img { margin: 0 0 14px !important; width: 100%; aspect-ratio: 1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--font-heading); text-transform: uppercase; font-size: 1.1rem; padding: 0 14px; color: var(--moss);
}
.woocommerce ul.products li.product .price { color: var(--terracotta); font-weight: 700; font-size: 1.05rem; display: block; margin-bottom: 12px; }
.woocommerce ul.products li.product .button { margin-top: 4px; font-size: .9rem; padding: 12px 18px; }
.woocommerce span.onsale {
	background: var(--terracotta); color: #fff; min-height: auto; min-width: auto; line-height: 1;
	padding: 8px 12px; border-radius: var(--radius); font-family: var(--font-ui); text-transform: uppercase; top: 12px; left: 12px; right: auto; margin: 0;
}
.woocommerce div.product .product_title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--terracotta); font-size: 1.6rem; font-weight: 700; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--parchment); border-color: var(--leather); border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--pine); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--parchment); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-family: var(--font-ui); text-transform: uppercase; color: var(--leather); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--leather); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--terracotta) !important; background: var(--parchment) !important; color: var(--moss) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--terracotta) !important; }
.woocommerce table.shop_table { border-color: var(--leather); border-radius: 0; background: #fff; }
.woocommerce-cart .cart_totals h2, .woocommerce-checkout h3 { font-size: 1.4rem; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--terracotta); }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--terracotta-dark); }
.woocommerce .quantity .qty { width: 70px; padding: 12px 8px; }
.woocommerce-pagination { margin-top: 30px; }
.woocommerce-result-count, .woocommerce-ordering select { font-family: var(--font-ui); }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 3px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
	border: 2px solid var(--leather); padding: 10px 16px; color: var(--leather);
}
.woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover {
	background: var(--terracotta); border-color: var(--terracotta); color: #fff;
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.menu-toggle { display: inline-flex !important; }
	.main-navigation .primary-menu-wrap {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--moss); border-top: 3px solid var(--terracotta); padding: 10px 24px 20px;
		box-shadow: var(--shadow);
	}
	.main-navigation.is-open .primary-menu-wrap { display: block; }
	.primary-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-menu > li > a { padding: 14px 6px; border-bottom: 1px solid rgba(237,225,201,.1); border-radius: 0; }
	.primary-menu .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
		background: rgba(46,59,36,.5); display: none; padding-left: 14px;
	}
	.primary-menu li.is-open > .sub-menu { display: block; }
	.site-header__inner { position: relative; }
	.main-navigation { flex: 0; }
	.header-actions { margin-left: auto; }
}

@media (max-width: 1100px) {
	.product-grid { grid-template-columns: repeat(3, 1fr); }
	.woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
	.footer-cols__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
	.categories__grid { grid-template-columns: repeat(2, 1fr); }
	.trust__grid { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
	.trust__item:nth-child(3) { border-left: 0; }
	.feature-video__grid, .split__grid, .newsletter-band__grid { grid-template-columns: 1fr; }
	.feature-video__grid { gap: 30px; }
	.guide__inner { flex-direction: column; align-items: flex-start; }
	.content-area.has-sidebar { grid-template-columns: 1fr; }
	.woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
	body { font-size: 16px; }
	.topbar__right { display: none; }
	.topbar__inner { justify-content: center; }
	.topbar__promo .sep, .topbar__promo span:last-child { display: none; }
	.hs-arrow { display: none; }
	.hs-slide::before { background: linear-gradient(180deg, rgba(26,31,22,.7), rgba(26,31,22,.55)); }
	.product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.footer-cols__grid { grid-template-columns: 1fr 1fr; }
	.footer-bottom__inner { flex-direction: column; text-align: center; }
	.site-branding { flex: 1; min-width: 0; }
	.site-title-text { font-size: 1.25rem; white-space: normal; line-height: 1.05; }
	.site-title-text small { font-size: .62rem; }
	.header-actions { gap: 8px; }
	.icon-btn svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
	.categories__grid { grid-template-columns: 1fr; }
	.trust__grid { grid-template-columns: 1fr; }
	.trust__item + .trust__item { border-left: 0; }
	.trust__item { justify-content: flex-start; }
	.footer-cols__grid { grid-template-columns: 1fr; }
	.woocommerce ul.products { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
