/* Threadline main stylesheet */
:root {
	--ink: #1a1a1a;
	--muted: #6b6b6b;
	--line: #e6e2dc;
	--bg: #ffffff;
	--soft: #f6f3ee;
	--accent: #b4532a;
	--max: 1240px;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-head: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.text-center { text-align: center; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
	display: inline-block; background: var(--ink); color: #fff; border: 1px solid var(--ink);
	padding: 12px 26px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
	text-decoration: none; border-radius: 0; cursor: pointer; font-weight: 500; transition: background .2s, color .2s;
}
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: #fff; }

/* Announcement bar */
.announcement-bar { background: var(--ink); color: #fff; text-align: center; font-size: 13px; padding: 8px 12px; letter-spacing: .04em; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.site-title { font-family: var(--font-head); font-size: 26px; text-decoration: none; letter-spacing: .02em; }
.custom-logo { max-height: 48px; width: auto; }
.primary-nav .menu { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.primary-nav a { text-decoration: none; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.primary-nav a:hover { color: var(--accent); }
.header-actions { display: flex; gap: 20px; font-size: 14px; }
.header-actions a { text-decoration: none; }
.cart-count { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; text-align: center; background: var(--accent); color: #fff; border-radius: 10px; font-size: 11px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; content: ""; }
.menu-icon::before { position: absolute; top: -7px; }
.menu-icon::after { position: absolute; top: 7px; }

/* Hero */
.hero { background: var(--soft) center/cover no-repeat; padding: 120px 0; }
.hero-inner { max-width: 640px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--accent); margin: 0 0 14px; }

/* Sections */
.section { padding: 64px 20px; }
.section-title { text-align: center; font-size: 32px; margin-bottom: 32px; }
.page-title { font-size: 36px; margin: 40px 0 24px; }
.site-main { padding-bottom: 60px; }
.home.site-main { padding-bottom: 0; }

/* Category tiles */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 7/9; background: var(--soft); text-decoration: none; }
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.category-tile:hover img { transform: scale(1.05); }
.tile-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(160deg, #eadfd2, #d8cab8); }
.tile-label { position: absolute; left: 16px; bottom: 16px; background: #fff; padding: 8px 18px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }

/* Promises */
.promises { background: var(--soft); padding: 40px 0; }
.promises-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.promises-grid strong { display: block; font-family: var(--font-head); font-size: 18px; }
.promises-grid span { color: var(--muted); font-size: 14px; }

/* WooCommerce product grid */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; margin: 0 0 40px; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; position: relative; }
.woocommerce ul.products li.product a img { aspect-ratio: 3/4; object-fit: cover; width: 100%; margin: 0 0 12px; background: var(--soft); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-body); font-size: 15px; font-weight: 500; padding: 0; }
.woocommerce ul.products li.product .price { color: var(--muted); font-size: 14px; display: block; margin-bottom: 10px; }
.woocommerce ul.products li.product .button { width: 100%; text-align: center; padding: 10px; font-size: 12px; }
.woocommerce span.onsale, .sale-tag { background: var(--accent); color: #fff; border-radius: 0; min-height: 0; min-width: 0; line-height: 1; padding: 6px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; top: 10px; left: 10px; right: auto; }
.sale-tag { display: none; }
.woocommerce .woocommerce-ordering select, .woocommerce .woocommerce-result-count { font-size: 14px; }
.woocommerce-breadcrumb { font-size: 13px; color: var(--muted); margin: 24px 0; }

/* Single product */
.woocommerce div.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100% !important; float: none !important; margin: 0; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .product_title { font-size: 34px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: 22px; }
.woocommerce div.product form.cart .variations select { padding: 10px; min-width: 160px; border: 1px solid var(--line); }
.woocommerce div.product form.cart .button { padding: 14px 36px; }
.woocommerce .quantity .qty { padding: 12px; border: 1px solid var(--line); width: 70px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; margin: 0 20px 0 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 2px solid var(--ink); }

/* Cart / checkout / account */
.woocommerce table.shop_table { border-collapse: collapse; border-radius: 0; border-color: var(--line); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce-page select { padding: 12px; border: 1px solid var(--line); border-radius: 0; }
.woocommerce-info, .woocommerce-message { border-top-color: var(--accent); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--accent); }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-card h2 { font-size: 22px; margin-top: 14px; }
.post-card h2 a { text-decoration: none; }
.post-meta { color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer { background: var(--ink); color: #d9d6d0; padding: 56px 0 0; margin-top: 40px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; }
.footer-title, .site-footer h4 { color: #fff; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 8px; }
.newsletter { display: flex; gap: 8px; }
.newsletter input { flex: 1; padding: 11px; border: 0; }
.newsletter button { background: var(--accent); color: #fff; border: 0; padding: 0 18px; cursor: pointer; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.footer-bottom { border-top: 1px solid #333; margin-top: 40px; padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: #8d8a84; }

/* Responsive */
@media (max-width: 1000px) {
	.woocommerce ul.products, .category-grid { grid-template-columns: repeat(2, 1fr); }
	.promises-grid { grid-template-columns: repeat(2, 1fr); }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 782px) {
	.menu-toggle { display: block; order: 1; }
	.site-branding { order: 2; margin-right: auto; }
	.header-actions { order: 3; }
	.primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 20px; }
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { flex-direction: column; gap: 14px; }
	.hero { padding: 70px 0; }
	.woocommerce div.product, .footer-grid, .post-grid { grid-template-columns: 1fr; }
	.woocommerce ul.products { gap: 20px 12px; }
}
