/*
Theme Name: Laiwen HORECA Child
Description: Responsive B2B catalog child theme for Laiwen HORECA.
Author: Guangzhou Laiwen Trading Co., Ltd.
Template: storefront
Version: 1.0.0
Requires at least: 7.0
Requires PHP: 8.3
Text Domain: laiwen-horeca
*/

:root {
	--lw-ink: #17352f;
	--lw-muted: #5e6b67;
	--lw-green: #176a55;
	--lw-green-dark: #0f4b3d;
	--lw-sand: #f3eee3;
	--lw-surface: #ffffff;
	--lw-line: #d8e0dc;
	--lw-radius: 18px;
}

* { box-sizing: border-box; }
body { color: var(--lw-ink); background: #fbfcfb; font-family: Inter, "Segoe UI", Arial, sans-serif; }
a { color: var(--lw-green-dark); }
.col-full { max-width: 1240px; padding-left: 24px; padding-right: 24px; }

.lw-site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--lw-line); position: sticky; top: 0; z-index: 50; }
.lw-header-inner { align-items: center; display: grid; gap: 24px; grid-template-columns: auto 1fr auto; min-height: 76px; }
.lw-brand { color: var(--lw-ink); font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; text-decoration: none; }
.lw-nav ul { display: flex; gap: 24px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.lw-nav a { color: var(--lw-ink); font-size: .95rem; font-weight: 650; text-decoration: none; }
.lw-header-actions { align-items: center; display: flex; gap: 12px; }
.lw-header-actions a { white-space: nowrap; }
.lw-text-link { font-size: .9rem; font-weight: 650; text-decoration: none; }

.button, button, input[type="button"], input[type="reset"], input[type="submit"], .added_to_cart {
	background: var(--lw-green); border: 1px solid var(--lw-green); border-radius: 999px; color: #fff; font-weight: 700; padding: .78em 1.25em;
}
.button:hover, button:hover, input[type="submit"]:hover { background: var(--lw-green-dark); border-color: var(--lw-green-dark); color: #fff; }

.site-content { min-height: 64vh; }
.entry-header, .woocommerce-products-header { margin: 0 auto; max-width: 860px; padding: 64px 0 30px; text-align: center; }
.entry-title, .woocommerce-products-header__title { color: var(--lw-ink); font-size: clamp(2.1rem, 5vw, 4rem); letter-spacing: -.035em; line-height: 1.05; }
.entry-content h2 { color: var(--lw-ink); font-size: clamp(1.7rem, 3vw, 2.7rem); letter-spacing: -.025em; }
.entry-content > section, .lw-section { margin: 0 auto; max-width: 1120px; padding: 58px 0; }
.lw-hero { background: linear-gradient(135deg, #ecf3ef, var(--lw-sand)); border-radius: 28px; margin-top: 38px !important; padding: clamp(42px, 8vw, 92px) !important; }
.lw-eyebrow { color: var(--lw-green); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lw-hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: .98; margin: .25em 0; max-width: 920px; }
.lw-hero p { color: var(--lw-muted); font-size: clamp(1.08rem, 2vw, 1.35rem); max-width: 760px; }
.lw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.lw-secondary { background: transparent; color: var(--lw-green-dark); }

.lw-card-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lw-card { background: var(--lw-surface); border: 1px solid var(--lw-line); border-radius: var(--lw-radius); min-height: 180px; padding: 26px; }
.lw-card h3 { font-size: 1.25rem; margin-top: 0; }
.lw-card p { color: var(--lw-muted); }
.lw-proof { background: var(--lw-ink); border-radius: 24px; color: #eaf3ef; padding: clamp(34px, 6vw, 68px); }
.lw-proof h2 { color: #fff; }
.lw-process { counter-reset: steps; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.lw-process > div { border-top: 3px solid var(--lw-green); padding-top: 18px; }
.lw-process > div::before { color: var(--lw-green); content: "0" counter(steps); counter-increment: steps; display: block; font-weight: 800; margin-bottom: 12px; }

ul.products { display: grid !important; gap: 24px; grid-template-columns: repeat(3, minmax(0,1fr)); }
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product { background: #fff; border: 1px solid var(--lw-line); border-radius: var(--lw-radius); float: none !important; margin: 0 !important; padding: 18px; width: auto !important; }
ul.products li.product img { background: #edf2ef; border-radius: 12px; }
.woocommerce-loop-product__title { color: var(--lw-ink); font-size: 1.08rem !important; }
.single-product div.product { padding-top: 48px; }
.single-product .product_meta .posted_in { display: block; }
.lw-public-specifications { background: #f4f7f5; border-radius: 14px; margin: 20px 0; padding: 20px; }
.lw-public-specifications dt { font-weight: 750; }
.lw-public-specifications dd { margin: 0 0 10px; }
.lw-inquiry-actions { border-top: 1px solid var(--lw-line); margin-top: 22px; padding-top: 22px; }
.lw-inquiry-actions form { display: grid; gap: 10px; }
.lw-inquiry-actions input, .lw-inquiry-actions select, .lw-rfq input, .lw-rfq select, .lw-rfq textarea { border: 1px solid #a9b7b1; border-radius: 8px; padding: 12px; }
.lw-contact-panel { background: var(--lw-sand); border-radius: 22px; padding: 34px; }
.lw-contact-panel ul { list-style: none; margin: 22px 0 0; padding: 0; }
.lw-contact-panel li { margin: 7px 0; }

.lw-site-footer { background: var(--lw-ink); color: #dce8e3; margin-top: 70px; padding: 48px 0; }
.lw-footer-grid { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; }
.lw-site-footer a { color: #fff; }

@media (max-width: 900px) {
	.lw-header-inner { grid-template-columns: 1fr auto; }
	.lw-nav { grid-column: 1 / -1; order: 3; overflow-x: auto; padding-bottom: 14px; }
	.lw-nav ul { justify-content: flex-start; min-width: max-content; }
	.lw-card-grid, .lw-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 600px) {
	.col-full { padding-left: 16px; padding-right: 16px; }
	.lw-header-actions .lw-whatsapp { display: none; }
	.lw-card-grid, .lw-process, .lw-footer-grid, ul.products { grid-template-columns: 1fr; }
	.lw-hero { border-radius: 18px; margin-top: 18px !important; }
	.entry-content > section, .lw-section { padding: 38px 0; }
}
