/* cws-app.css -- CityWoodSource page-level styles (all pages) */

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }

/* Green accent bar -- left-aligned, no bottom gap */
.green-accent-left { margin: 0.75rem 0 0; }
/* Left-aligned with smaller top gap (tighter headings) */
.green-accent-sm   { margin: 0.25rem 0 0; }
/* Left-aligned with medium bottom gap */
.green-accent-mb   { margin: 0.75rem 0 1.5rem; }

/* ============================================================
   SHARED FORM ELEMENTS (contact + checkout)
   ============================================================ */
.form-row { margin-bottom: 1.1rem; }
.form-row label {
	display: block;
	font-size: 0.85rem;
	font-weight: 700;
	color: #444;
	margin-bottom: 0.3rem;
}
.form-row label .req { color: var(--cws-green); margin-left: 2px; }
.form-row input[type=text],
.form-row input[type=email],
.form-row input[type=tel],
.form-row textarea {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.95rem;
	font-family: inherit;
	color: #333;
	transition: border-color 0.15s;
}
.form-row input:focus,
.form-row textarea:focus { outline: none; border-color: var(--cws-green); }
.form-row textarea { resize: vertical; }
.form-row.has-error input,
.form-row.has-error textarea { border-color: #e55; }
.form-hint { font-size: 0.78rem; color: #999; margin-top: 0.25rem; }

/* Textarea min-height per context */
.contact-form-card .form-row textarea  { min-height: 120px; }
.checkout-form-card .form-row textarea { min-height: 80px; }

/* ============================================================
   SHARED SHOP LAYOUT (slab-gallery + slab-shop)
   ============================================================ */
.shop-wrap {
	display: flex; gap: 2rem;
	max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem;
	align-items: flex-start;
}

.filter-sidebar {
	width: 240px; flex-shrink: 0;
	background: #fff; border: 1px solid var(--cws-border);
	border-radius: 8px; padding: 1.25rem;
	position: sticky; top: calc(var(--cws-header-h) + 1rem);
}
.filter-sidebar h3 {
	font-size: 1rem; color: #222; margin-bottom: 1rem;
	padding-bottom: 0.5rem; border-bottom: 2px solid var(--cws-green);
}
.filter-section { margin-bottom: 1.25rem; }
.filter-section h4 {
	font-size: 0.8rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.07em;
	color: #888; margin-bottom: 0.5rem;
}

/* Checkbox-style filters (slab-shop) */
.filter-check  { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; font-size: 0.9rem; color: #444; cursor: pointer; }
.filter-check input { accent-color: var(--cws-green); cursor: pointer; }

/* Dimension range filters (slab-shop) */
.dim-row  { display: flex; gap: 0.4rem; margin-bottom: 0.4rem; align-items: center; font-size: 0.82rem; color: #666; }
.dim-row input[type=number] {
	width: 62px; padding: 0.25rem 0.4rem;
	border: 1px solid var(--cws-border); border-radius: 4px;
	font-size: 0.85rem; color: #333;
}
.dim-row input[type=number]:focus { outline: none; border-color: var(--cws-green); }
.dim-label { width: 28px; text-align: right; font-size: 0.78rem; color: #999; }

/* Select-style filters (slab-gallery) */
.filter-select {
	width: 100%; padding: 0.4rem 0.5rem;
	border: 1px solid var(--cws-border); border-radius: 4px;
	font-size: 0.9rem; color: #333; background: #fff; cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--cws-green); }

/* Tag pills (slab-gallery) */
.cws-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.cws-pill {
	display: inline-flex; align-items: center; gap: 2px;
	background: #d4edda; color: #155724;
	border-radius: 12px; padding: 2px 8px 2px 10px;
	font-size: 0.8rem; font-weight: 500;
}
.cws-pill-rm { cursor: pointer; font-size: 1.1em; line-height: 1; opacity: 0.55; margin-left: 3px; }
.cws-pill-rm:hover { opacity: 1; }

/* Filter action buttons */
.filter-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.filter-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-top: 0; margin-bottom: 1.25rem; }
.btn-filter {
	background: var(--cws-green); color: #fff; border: none;
	border-radius: 4px; padding: 0.55rem; font-size: 0.9rem;
	font-weight: 600; cursor: pointer; width: 100%; transition: background 0.2s;
}
.btn-filter:hover { background: var(--cws-green-dark); }
/* Reset button (slab-gallery -- styled like a secondary button) */
.btn-reset {
	display: block; text-align: center;
	background: #fff; color: #555; border: 1px solid #ccc;
	border-radius: 4px; padding: 0.5rem; font-size: 0.9rem;
	font-weight: 500; cursor: pointer; text-decoration: none;
	transition: border-color 0.15s, color 0.15s;
}
.btn-reset:hover { border-color: #888; color: #222; text-decoration: none; }
/* Clear link (slab-shop -- plain text link) */
.btn-clear { display: block; text-align: center; font-size: 0.85rem; color: #888; text-decoration: none; }
.btn-clear:hover { color: var(--cws-green); text-decoration: none; }

.active-filter-note { font-size: 0.78rem; color: var(--cws-green); font-weight: 500; margin-bottom: 0.75rem; }

.shop-main    { flex: 1; min-width: 0; }
.shop-header  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.5rem; }
.shop-header h1 { font-size: 1.6rem; color: #222; }
.shop-header-right { display: flex; align-items: center; gap: 1rem; }
.shop-count   { font-size: 0.9rem; color: #888; }

/* Shared status badges (slab-shop, slab-gallery, slab-detail) */
.slab-status-badge {
	position: absolute; top: 8px; left: 8px;
	padding: 0.2rem 0.55rem; border-radius: 3px;
	font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
	text-transform: uppercase; color: #fff;
}
.badge-sold     { background: rgba(180,40,40,0.85); }
.badge-reserved { background: rgba(180,120,0,0.85); }
.badge-mine     { background: rgba(15,132,52,0.9); }

/* Shared no-results state */
.no-results { text-align: center; padding: 4rem 1rem; color: #888; font-size: 1.05rem; }
.no-results a { color: var(--cws-green); }

/* Shared slab list pagination */
.slab-pager {
	display: flex; align-items: center; justify-content: center;
	gap: 0.35rem; margin: 2rem 0 0.5rem; flex-wrap: wrap;
}
.slab-pager-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 2.1rem; height: 2.1rem; padding: 0 0.55rem;
	border: 1px solid var(--cws-border); border-radius: 4px;
	font-size: 0.88rem; color: #555; text-decoration: none;
	transition: border-color 0.15s, color 0.15s;
}
.slab-pager-btn:hover { border-color: var(--cws-green); color: var(--cws-green); text-decoration: none; }
.slab-pager-btn.active { background: var(--cws-green); border-color: var(--cws-green); color: #fff; font-weight: 600; pointer-events: none; }
.slab-pager-btn.disabled { color: #ccc; border-color: #eee; pointer-events: none; }

/* Shared cart button */
.btn-cart {
	display: block; width: 100%; padding: 0.5rem; text-align: center;
	background: var(--cws-green); color: #fff; border: none; border-radius: 4px;
	font-size: 0.85rem; font-weight: 500; cursor: pointer;
	transition: background 0.2s; text-decoration: none;
}
.btn-cart:hover { background: var(--cws-green-dark); text-decoration: none; color: #fff; }
.btn-cart:disabled, .btn-cart.disabled { background: #ccc; cursor: default; }

/* Mobile filter toggle */
.filter-toggle { display: none; }
@media (max-width: 860px) {
	.shop-wrap { flex-direction: column; padding: 1rem; }
	.filter-sidebar { width: 100%; position: static; }
	.shop-main { width: 100%; }
	.filter-toggle {
		display: flex; align-items: center; justify-content: space-between;
		background: none; border: 1px solid var(--cws-border); border-radius: 6px;
		padding: 0.6rem 0.9rem; font-size: 0.9rem; font-weight: 500; color: #444;
		cursor: pointer; width: 100%; margin-bottom: 0.5rem;
	}
	.filter-body { display: none; }
	.filter-body.open { display: block; }
}

/* ============================================================
   SLAB SHOP PAGE (/?slab-shop)
   ============================================================ */
.slab-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(165px,1fr));
	gap: 1.25rem;
}
.slab-card {
	background: #fff; border: 1px solid var(--cws-border); border-radius: 8px;
	overflow: hidden; display: flex; flex-direction: column;
	transition: box-shadow 0.2s, transform 0.15s;
}
.slab-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
.slab-card.is-sold     { opacity: 0.65; }
.slab-card.is-reserved { opacity: 0.8; }

.slab-thumb-wrap { position: relative; aspect-ratio: 4/3; background: #f0f0f0; overflow: hidden; display: block; }
.slab-thumb-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }

.slab-info    { padding: 0.85rem 0.9rem; flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.slab-label   { font-size: 1rem; font-weight: 700; color: #222; }
.slab-species { font-size: 0.82rem; color: #777; }
.slab-dims    { font-size: 0.8rem; color: #666; margin-top: 0.15rem; }
.slab-bf      { font-size: 0.78rem; color: #999; }
.slab-price   { font-size: 1rem; font-weight: 700; color: var(--cws-green); margin-top: auto; padding-top: 0.5rem; }
.slab-price.price-por { color: #aaa; font-weight: 400; font-size: 0.85rem; }

.slab-cta { padding: 0 0.9rem 0.9rem; }

@media (max-width: 860px) {
	.slab-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); }
}

/* Dev banner */
.dev-banner {
	background: #fff8e1; border: 1px solid #ffe082; border-radius: 6px;
	padding: 0.5rem 0.9rem; font-size: 0.82rem; color: #795548;
	margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem;
}
.dev-banner a { color: var(--cws-green); font-weight: 600; }

/* ============================================================
   SLAB GALLERY PAGE (/?slab-gallery)
   ============================================================ */
.slab-grid-g {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
	gap: 1rem;
}
.slab-card-g {
	background: #eef7ee; border: 1px solid #cde8cd; border-radius: 4px;
	overflow: hidden; display: flex; flex-direction: column;
	transition: box-shadow 0.2s;
}
.slab-card-g:hover { box-shadow: 0 3px 14px rgba(0,0,0,0.1); }
.slab-card-g.is-reserved { opacity: 0.8; }

.g-photo {
	display: block; position: relative;
	aspect-ratio: 4/3; background: #e4f0e4; overflow: hidden;
}
.g-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.g-body { padding: 0.7rem 0.8rem 0.8rem; flex: 1; display: flex; flex-direction: column; }
.g-head { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.3rem; }
.g-dot  { width: 11px; height: 11px; background: var(--cws-green); flex-shrink: 0; }
.g-species-name { font-weight: 700; font-size: 0.95rem; color: #222; line-height: 1.25; }

.g-code  { margin-bottom: 0.65rem; }
.g-badge {
	display: inline-block;
	background: #c4ddc4; color: #2a5a2a;
	font-size: 0.72rem; font-weight: 600;
	padding: 0.1rem 0.55rem; border-radius: 20px; letter-spacing: 0.04em;
}
.g-specs { flex: 1; margin-bottom: 0.6rem; }
.g-row {
	display: flex; justify-content: space-between; align-items: baseline;
	padding: 0.24rem 0; border-bottom: 1px solid #cde8cd;
	font-size: 0.8rem; line-height: 1.4;
}
.g-row:last-child { border-bottom: none; }
.g-row-label { color: #777; }
.g-row-val   { font-weight: 700; color: #222; text-align: right; }
.g-row-val.is-price { color: var(--cws-green); font-size: 0.88rem; }

.g-cta .btn-cart { /* inherits .btn-cart base */ }

@media (max-width: 860px) {
	.slab-grid-g { grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); }
}

/* ============================================================
   SLAB DETAIL PAGE (/?slab-detail)
   ============================================================ */
.detail-wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.5rem 3rem; }

.breadcrumb { font-size: 0.82rem; color: #999; margin-bottom: 1.5rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.breadcrumb a { color: #999; text-decoration: none; }
.breadcrumb a:hover { color: var(--cws-green); }
.breadcrumb .sep { color: #ccc; }
.breadcrumb .current { color: #555; }

.detail-layout {
	display: grid; grid-template-columns: 1fr 400px;
	gap: 2.5rem; align-items: start;
}

.detail-main-wrap {
	position: relative; background: #f4f4f4; border-radius: 8px; overflow: hidden;
	aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
}
.detail-main-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; }

.gallery-status-badge {
	position: absolute; top: 12px; left: 12px;
	padding: 0.3rem 0.75rem; border-radius: 4px;
	font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
	text-transform: uppercase; color: #fff;
}

.detail-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.detail-thumb-wrap { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.detail-thumb {
	width: 72px; height: 54px; border-radius: 4px; overflow: hidden;
	border: 2px solid transparent; cursor: pointer; background: #e8e8e8;
	transition: border-color 0.15s;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-thumb.active, .detail-thumb:hover { border-color: var(--cws-green); }
.detail-thumb-label { font-size: 0.63rem; color: #999; margin-top: 3px; line-height: 1; }
.detail-photo-count { font-size: 0.78rem; color: #aaa; margin-top: 0.5rem; }

.detail-spec-card {
	background: #fff; border: 1px solid var(--cws-border); border-radius: 10px;
	padding: 1.75rem; position: sticky; top: calc(var(--cws-header-h) + 1.25rem);
}
.detail-label   { font-size: 1.75rem; font-weight: 700; color: #222; line-height: 1.1; margin-bottom: 0.25rem; }
.detail-species { font-size: 1.05rem; color: #666; margin-bottom: 1rem; }

.detail-price-row {
	display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1.25rem;
	border-bottom: 1px solid var(--cws-border); padding-bottom: 1.25rem;
}
.detail-price   { font-size: 1.75rem; font-weight: 700; color: var(--cws-green); line-height: 1; }
.detail-bf-note { font-size: 0.82rem; color: #aaa; }

.detail-specs-table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; font-size: 0.9rem; }
.detail-specs-table th {
	text-align: left; width: 40%; padding: 0.35rem 0; color: #999;
	font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em;
	border-bottom: 1px solid #f0f0f0; vertical-align: top;
}
.detail-specs-table td { padding: 0.35rem 0; color: #333; border-bottom: 1px solid #f0f0f0; vertical-align: top; }

.detail-notes {
	background: #f9f9f9; border-radius: 6px; padding: 0.85rem 1rem;
	font-size: 0.88rem; color: #555; line-height: 1.6;
	margin-bottom: 1.25rem; border-left: 3px solid var(--cws-green);
}
.detail-notes-label {
	font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
	color: #aaa; margin-bottom: 0.35rem;
}

.detail-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.tag-pill {
	background: #f0f7f3; color: var(--cws-green-dark);
	border: 1px solid #c8e8d4; border-radius: 20px;
	padding: 0.2rem 0.65rem; font-size: 0.78rem; font-weight: 500;
}

.btn-add-cart {
	display: block; width: 100%; padding: 0.9rem;
	background: var(--cws-green); color: #fff;
	border: none; border-radius: 6px; font-size: 1rem; font-weight: 600;
	cursor: pointer; text-align: center; text-decoration: none; transition: background 0.2s;
}
.btn-add-cart:hover { background: var(--cws-green-dark); color: #fff; text-decoration: none; }
.btn-add-cart:disabled, .btn-add-cart.disabled { background: #ccc; cursor: default; }

.btn-view-cart {
	display: block; width: 100%; padding: 0.9rem;
	background: #fff; color: var(--cws-green);
	border: 2px solid var(--cws-green); border-radius: 6px;
	font-size: 1rem; font-weight: 600;
	text-align: center; text-decoration: none; transition: background 0.2s;
	box-sizing: border-box;
}
.btn-view-cart:hover { background: #f0f7f3; text-decoration: none; }

.cta-sold-notice {
	text-align: center; padding: 0.9rem;
	background: #fdf2f2; border: 1px solid #f5c6c6; border-radius: 6px;
	color: #a33; font-weight: 600; font-size: 0.95rem;
}
.cta-reserved-notice {
	text-align: center; padding: 0.9rem;
	background: #fffbf0; border: 1px solid #f5e0a0; border-radius: 6px;
	color: #8a6800; font-weight: 600; font-size: 0.95rem;
}
.cta-note { font-size: 0.78rem; color: #aaa; text-align: center; margin-top: 0.6rem; }

.detail-species-info {
	margin-top: 2rem; background: #fff;
	border: 1px solid var(--cws-border); border-radius: 8px; padding: 1.5rem 2rem;
}
.detail-species-info h2 { font-size: 1.1rem; font-weight: 700; color: var(--cws-dark); margin-bottom: 0.25rem; }
.detail-species-latin   { font-style: italic; color: #888; font-size: 0.88rem; margin-bottom: 0.9rem; }
.detail-species-desc    { font-size: 0.93rem; color: #555; line-height: 1.8; }
.detail-species-link    { display: inline-block; margin-top: 0.85rem; font-size: 0.85rem; color: var(--cws-green); }

.lightbox {
	display: none; position: fixed; inset: 0; z-index: 9999;
	background: rgba(0,0,0,0.9); align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 94vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
	position: absolute; top: 1rem; right: 1.25rem;
	color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
	background: none; border: none; padding: 0; opacity: 0.7;
}
.lightbox-close:hover { opacity: 1; }

@media (max-width: 860px) {
	.detail-layout { grid-template-columns: 1fr; }
	.detail-spec-card { position: static; }
}

/* ============================================================
   HOME PAGE (/?home / /)
   ============================================================ */
.hero-section {
	min-height: 82vh; display: flex; flex-direction: column;
	justify-content: center; align-items: center;
	text-align: center; color: #fff; padding: 2rem 1.5rem;
}
.hero-h1  { font-size: 3.5rem; font-weight: 900; margin-bottom: 0.75rem; text-shadow: 2px 2px 6px rgba(0,0,0,.7); }
.hero-sub { font-size: 1.65rem; font-weight: 300; margin-bottom: 2.25rem; text-shadow: 1px 1px 4px rgba(0,0,0,.7); }
@media (max-width: 520px) {
	.hero-h1  { font-size: 2.2rem; }
	.hero-sub { font-size: 1.1rem; margin-bottom: 1.75rem; }
}

/* Offer card grid on home page */
.home-offer-grid {
	display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
	gap: 1.5rem; margin-top: 0.5rem;
}
.home-offer-card {
	background: var(--cws-light); padding: 2rem 1.5rem; border-radius: 8px;
}
.home-offer-icon {
	width: 54px; height: 54px; margin: 0 auto 1.1rem; color: var(--cws-green);
}
.home-offer-card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; color: #222; }
.home-offer-card p  { color: #666; line-height: 1.7; }

/* ============================================================
   ABOUT PAGE (/?about)
   ============================================================ */
.about-hero {
	background: var(--cws-dark); color: #fff;
	padding: 3.5rem 1.5rem 3rem; text-align: center;
}
.about-hero h1 { font-size: 2.6rem; font-weight: 900; margin-bottom: 0.5rem; }
.about-hero p  { font-size: 1.1rem; color: #bbb; max-width: 600px; margin: 0 auto; }

.about-content { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }
.about-card {
	background: #fff; border: 1px solid var(--cws-border); border-radius: 8px;
	padding: 2rem; margin-bottom: 1.5rem;
}
.about-card h2 {
	font-size: 1.5rem; font-weight: 700; color: var(--cws-dark);
	margin-bottom: 0.5rem; padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--cws-green); display: inline-block;
}
.about-card p       { color: #555; line-height: 1.8; margin-top: 1rem; }
.about-card p + p   { margin-top: 0.75rem; }

.about-values {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.25rem; margin-top: 1.25rem;
}
.about-value-item { background: var(--cws-light); border-radius: 6px; padding: 1.25rem; }
.about-value-item h3 { font-size: 1rem; font-weight: 700; color: var(--cws-dark); margin-bottom: 0.4rem; }
.about-value-item p  { font-size: 0.88rem; color: #666; line-height: 1.6; margin-top: 0; }

.about-location { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.about-location-text { flex: 1; min-width: 240px; }
.about-location-map  { flex: 0 0 220px; }
.about-location-map a {
	display: block; background: var(--cws-light); border: 1px solid var(--cws-border);
	border-radius: 6px; padding: 1rem; text-align: center;
	font-size: 0.88rem; color: var(--cws-green); line-height: 1.6;
}

/* ============================================================
   CONTACT PAGE (/?contact)
   ============================================================ */
.contact-wrap {
	max-width: 860px; margin: 2.5rem auto; padding: 0 1.5rem 4rem;
	display: grid; grid-template-columns: 1fr 280px;
	gap: 3rem; align-items: start;
}
.contact-title { font-size: 1.9rem; font-weight: 900; color: var(--cws-dark); }

.contact-errors {
	background: #fff0f0; border: 1px solid #f5a5a5; border-radius: 4px;
	padding: 0.85rem 1rem; margin-bottom: 1.25rem; color: #b00; font-size: 0.9rem;
}
.contact-errors ul { margin: 0.35rem 0 0 1.2rem; }

.contact-success {
	background: #f0faf4; border: 1px solid #a8d5b5; border-radius: 8px;
	padding: 2rem 1.5rem; text-align: center; margin-top: 1.5rem;
}
.contact-success h2 { font-size: 1.3rem; color: var(--cws-green); margin-bottom: 0.5rem; }
.contact-success p  { color: #555; }

.contact-form-card {
	background: #fff; border: 1px solid var(--cws-border);
	border-radius: 8px; padding: 1.75rem; margin-top: 1.5rem;
}
.btn-send {
	background: var(--cws-green); color: #fff; border: none; border-radius: 4px;
	padding: 0.75rem 2rem; font-size: 1rem; font-weight: 500; cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}
.btn-send:hover { background: var(--cws-green-dark); transform: translateY(-1px); }

.contact-info { font-size: 0.92rem; color: #555; line-height: 1.8; }
.contact-info h2 {
	font-size: 1.1rem; font-weight: 700; color: var(--cws-dark);
	margin-bottom: 0.75rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--cws-green);
}
.contact-info-item { display: flex; gap: 0.6rem; margin-bottom: 1rem; align-items: flex-start; }
.contact-info-item svg { flex-shrink: 0; margin-top: 3px; }
.contact-info a { color: var(--cws-green); }

@media (max-width: 680px) {
	.contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   FAQ PAGE (/?faq)
   ============================================================ */
.faq-wrap { max-width: 860px; margin: 2.5rem auto; padding: 0 1.5rem 4rem; }
.faq-title { font-size: 1.9rem; font-weight: 900; color: var(--cws-dark); }
.faq-intro { font-size: 1rem; color: #555; max-width: 680px; margin: 1rem 0 2rem; line-height: 1.7; }

.faq-category {
	font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
	color: var(--cws-green); margin: 2rem 0 0.75rem;
	padding-bottom: 0.35rem; border-bottom: 2px solid var(--cws-green);
}
.faq-item {
	border: 1px solid var(--cws-border); border-radius: 6px;
	margin-bottom: 0.5rem; background: #fff; overflow: hidden;
}
.faq-question {
	width: 100%; background: none; border: none; text-align: left;
	padding: 1rem 1.25rem; font-size: 0.97rem; font-weight: 700; color: var(--cws-dark);
	cursor: pointer; display: flex; justify-content: space-between;
	align-items: center; gap: 1rem; font-family: 'Lato', sans-serif; transition: background 0.15s;
}
.faq-question:hover { background: var(--cws-light); }
.faq-question[aria-expanded="true"] { background: var(--cws-light); }
.faq-chevron {
	flex-shrink: 0; width: 18px; height: 18px;
	transition: transform 0.2s; color: var(--cws-green);
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
	display: none; padding: 0 1.25rem 1.1rem;
	font-size: 0.93rem; color: #555; line-height: 1.8;
	border-top: 1px solid var(--cws-border);
}
.faq-answer.open { display: block; }
.faq-answer p + p { margin-top: 0.75rem; }
.faq-answer a { color: var(--cws-green); }

.faq-cta {
	background: var(--cws-light); border: 1px solid var(--cws-border);
	border-radius: 8px; padding: 1.5rem 2rem; text-align: center; margin-top: 2.5rem;
}
.faq-cta h2 { font-size: 1.1rem; color: var(--cws-dark); margin-bottom: 0.5rem; }
.faq-cta p  { color: #666; font-size: 0.93rem; margin-bottom: 1rem; }

/* ============================================================
   CART PAGE (/?cart)
   ============================================================ */
.cart-wrap    { max-width: 900px; margin: 2.5rem auto; padding: 0 1.5rem; }
.cart-title   { font-size: 1.9rem; font-weight: 900; color: var(--cws-dark); }
.cart-empty   { text-align: center; padding: 4rem 2rem; }
.cart-empty p { color: #666; margin: 1rem 0 2rem; }

.cart-expiry {
	background: #fff8e1; border: 1px solid #ffe082; border-radius: 4px;
	padding: 0.75rem 1rem; font-size: 0.88rem; color: #6d4c00; margin-bottom: 1.5rem;
}
.cart-expiry strong { color: #4a3000; }

.cart-items { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.cart-item {
	display: flex; align-items: center; gap: 1rem;
	padding: 1rem 0; border-bottom: 1px solid var(--cws-border);
}
.cart-item:first-child { border-top: 1px solid var(--cws-border); }

.cart-thumb {
	flex-shrink: 0; width: 80px; height: 64px;
	object-fit: cover; border-radius: 3px; background: #eee;
}
.cart-thumb-placeholder {
	flex-shrink: 0; width: 80px; height: 64px;
	background: #eee; border-radius: 3px;
	display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 1.4rem;
}
.cart-item-info   { flex: 1; min-width: 0; }
.cart-item-label  { font-weight: 700; font-size: 1rem; color: var(--cws-dark); }
.cart-item-meta   { font-size: 0.85rem; color: #666; margin-top: 0.15rem; }
.cart-item-price  { font-weight: 700; font-size: 1.05rem; color: var(--cws-dark); white-space: nowrap; }
.cart-item-price.quote { color: #888; font-weight: 400; font-style: italic; font-size: 0.9rem; }

.btn-remove {
	flex-shrink: 0; background: none; border: 1px solid #ccc; border-radius: 4px;
	color: #888; font-size: 0.8rem; cursor: pointer; padding: 0.35rem 0.7rem;
	transition: border-color 0.15s, color 0.15s;
}
.btn-remove:hover { border-color: #c33; color: #c33; }

.cart-summary {
	display: flex; flex-direction: column; align-items: flex-end;
	gap: 0.5rem; padding: 1.25rem 0; border-top: 2px solid var(--cws-dark);
}
.cart-total-row    { font-size: 1.15rem; font-weight: 700; color: var(--cws-dark); }
.cart-subtotal-row { font-size: 0.95rem; color: #555; }
.cart-tax-row      { font-size: 0.95rem; color: #555; }
.cart-total-note   { font-size: 0.82rem; color: #888; }

.cart-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
.cart-continue { font-size: 0.9rem; color: var(--cws-green); }

@media (max-width: 540px) {
	.cart-actions { flex-direction: column; gap: 1rem; align-items: flex-start; }
}
@media (max-width: 480px) {
	.cart-item {
		flex-wrap: wrap; align-items: flex-start;
		position: relative; padding-right: 3.5rem; gap: 0.5rem;
	}
	.cart-thumb, .cart-thumb-placeholder { width: 72px; height: 58px; }
	.cart-item-info { flex: 1; min-width: 0; }
	.cart-item-price { width: 100%; padding-left: calc(72px + 0.5rem); font-size: 0.95rem; white-space: normal; }
	.cart-item form  { position: absolute; top: 1rem; right: 0; }
}

/* ============================================================
   CHECKOUT PAGE (/?checkout)
   ============================================================ */
.checkout-wrap {
	max-width: 960px; margin: 2.5rem auto; padding: 0 1.5rem 3rem;
	display: grid; grid-template-columns: 1fr 360px;
	gap: 2.5rem; align-items: start;
}
.checkout-title { font-size: 1.9rem; font-weight: 900; color: var(--cws-dark); }

.checkout-errors {
	background: #fff0f0; border: 1px solid #f5a5a5; border-radius: 4px;
	padding: 0.85rem 1rem; margin-bottom: 1.25rem; color: #b00; font-size: 0.9rem;
}
.checkout-errors ul { margin: 0.35rem 0 0 1.2rem; }

.checkout-form-card {
	background: #fff; border: 1px solid var(--cws-border); border-radius: 8px; padding: 1.75rem;
}
.checkout-form-card h2 {
	font-size: 1.2rem; color: var(--cws-dark); margin-bottom: 1.25rem;
	padding-bottom: 0.6rem; border-bottom: 2px solid var(--cws-green);
}

.btn-place-order {
	width: 100%; padding: 0.9rem; margin-top: 0.5rem;
	font-size: 1.05rem; font-weight: 700;
	background: var(--cws-green); color: #fff; border: none; border-radius: 4px;
	cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.btn-place-order:hover { background: var(--cws-green-dark); transform: translateY(-1px); }

.checkout-summary {
	background: #fff; border: 1px solid var(--cws-border); border-radius: 8px;
	padding: 1.5rem; position: sticky; top: calc(var(--cws-header-h) + 1rem);
}
.checkout-summary h2 {
	font-size: 1.1rem; color: var(--cws-dark); margin-bottom: 1rem;
	padding-bottom: 0.5rem; border-bottom: 2px solid var(--cws-green);
}
.summary-item {
	display: flex; gap: 0.75rem; padding: 0.65rem 0;
	border-bottom: 1px solid #f0f0f0; font-size: 0.88rem;
}
.summary-thumb {
	width: 52px; height: 42px; object-fit: cover;
	border-radius: 3px; background: #eee; flex-shrink: 0;
}
.summary-item-info   { flex: 1; min-width: 0; }
.summary-item-label  { font-weight: 700; color: #222; }
.summary-item-meta   { color: #888; font-size: 0.8rem; margin-top: 0.1rem; }
.summary-item-price  { font-weight: 700; white-space: nowrap; color: #222; }
.summary-item-price.por { font-weight: 400; color: #aaa; font-style: italic; }

.summary-subtotal, .summary-tax {
	font-size: 0.88rem; color: #555; text-align: right; margin-top: 0.5rem;
}
.summary-total {
	margin-top: 0.5rem; padding-top: 0.75rem; border-top: 2px solid var(--cws-dark);
	font-size: 1.05rem; font-weight: 700; color: var(--cws-dark); text-align: right;
}
.summary-total-note  { font-size: 0.78rem; color: #999; font-weight: 400; margin-top: 0.25rem; text-align: right; }
.summary-expiry {
	margin-top: 0.85rem; background: #fff8e1; border: 1px solid #ffe082;
	border-radius: 4px; padding: 0.6rem 0.75rem; font-size: 0.78rem; color: #6d4c00;
}

@media (max-width: 720px) {
	.checkout-wrap { grid-template-columns: 1fr; }
	.checkout-summary { position: static; order: -1; }
}

/* ============================================================
   ORDER CONFIRM PAGE (/?order-confirm)
   ============================================================ */
.confirm-wrap { max-width: 680px; margin: 3rem auto; padding: 0 1.5rem 4rem; }
.confirm-hero { text-align: center; margin-bottom: 2.5rem; }
.confirm-check {
	width: 72px; height: 72px; background: var(--cws-green); border-radius: 50%;
	display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem;
}
.confirm-check svg { display: block; }
.confirm-hero h1 { font-size: 2rem; font-weight: 900; color: var(--cws-dark); margin-bottom: 0.5rem; }
.confirm-hero p  { font-size: 1.05rem; color: #555; max-width: 480px; margin: 0 auto; line-height: 1.65; }

.confirm-card {
	background: #fff; border: 1px solid var(--cws-border);
	border-radius: 8px; padding: 1.5rem; margin-bottom: 1.25rem;
}
.confirm-card h2 {
	font-size: 1rem; font-weight: 700; color: var(--cws-dark);
	margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--cws-green);
	text-transform: uppercase; letter-spacing: 0.05em;
}
.confirm-item {
	display: flex; justify-content: space-between; align-items: baseline;
	padding: 0.55rem 0; border-bottom: 1px solid #f0f0f0; font-size: 0.92rem; gap: 1rem;
}
.confirm-item:last-child { border-bottom: none; }
.confirm-item-label  { font-weight: 700; color: #222; }
.confirm-item-meta   { font-size: 0.8rem; color: #888; margin-top: 0.1rem; }
.confirm-item-price  { font-weight: 700; white-space: nowrap; color: #222; flex-shrink: 0; }
.confirm-item-price.por { font-weight: 400; color: #aaa; font-style: italic; }

.confirm-subtotal, .confirm-tax {
	display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.9rem; color: #555;
}
.confirm-total {
	display: flex; justify-content: space-between; margin-top: 0.5rem;
	padding-top: 0.75rem; border-top: 2px solid var(--cws-dark);
	font-weight: 700; font-size: 1.05rem; color: var(--cws-dark);
}
.confirm-total-note  { font-size: 0.78rem; color: #999; font-weight: 400; margin-top: 0.25rem; }

.confirm-info-row { font-size: 0.9rem; color: #444; padding: 0.3rem 0; }
.confirm-info-row strong { color: #222; display: inline-block; width: 64px; }

.status-badge {
	display: inline-block; padding: 0.2rem 0.7rem; border-radius: 20px;
	font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
	text-transform: uppercase; margin-left: 0.5rem; vertical-align: middle;
}
.status-paid    { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }

.confirm-next { font-size: 0.92rem; color: #555; line-height: 1.7; }
.confirm-next li { margin-bottom: 0.4rem; }
.confirm-actions { text-align: center; margin-top: 2rem; }
.confirm-actions p { margin-top: 1rem; font-size: 0.85rem; color: #888; }

/* ============================================================
   CARE GUIDE PAGE (/?care-guide)
   ============================================================ */
.guide-wrap  { max-width: 860px; margin: 2.5rem auto; padding: 0 1.5rem 4rem; }
.guide-title { font-size: 1.9rem; font-weight: 900; color: var(--cws-dark); }
.guide-intro { font-size: 1rem; color: #555; max-width: 680px; margin: 1rem 0 2rem; line-height: 1.7; }

.guide-card {
	background: #fff; border: 1px solid var(--cws-border); border-radius: 8px;
	padding: 1.75rem 2rem; margin-bottom: 1.5rem;
}
.guide-card h2 {
	font-size: 1.2rem; font-weight: 700; color: var(--cws-dark);
	margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--cws-green);
	text-transform: uppercase; letter-spacing: 0.05em;
}
.guide-card p       { color: #555; line-height: 1.8; font-size: 0.96rem; }
.guide-card p + p   { margin-top: 0.75rem; }

.guide-steps { list-style: none; padding: 0; margin: 1rem 0 0; }
.guide-steps li {
	display: flex; gap: 1rem; align-items: flex-start;
	padding: 0.75rem 0; border-bottom: 1px solid var(--cws-border);
	font-size: 0.95rem; color: #555; line-height: 1.6;
}
.guide-steps li:last-child { border-bottom: none; }
.guide-step-num {
	flex-shrink: 0; width: 28px; height: 28px;
	background: var(--cws-green); color: #fff; border-radius: 50%;
	font-size: 0.8rem; font-weight: 700;
	display: flex; align-items: center; justify-content: center; margin-top: 1px;
}

.guide-dos-donts {
	display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1rem;
}
.guide-do, .guide-dont { border-radius: 6px; padding: 1rem 1.25rem; }
.guide-do   { background: #f0faf4; border: 1px solid #a8d5b5; }
.guide-dont { background: #fff4f4; border: 1px solid #f5a5a5; }
.guide-do h3   { color: #2a7a46; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; }
.guide-dont h3 { color: #b00;    font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; }
.guide-do ul, .guide-dont ul { padding-left: 1.1rem; margin: 0; font-size: 0.88rem; color: #555; line-height: 1.9; }

.guide-finish-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1rem;
}
.guide-finish-card {
	background: var(--cws-light); border: 1px solid var(--cws-border); border-radius: 6px; padding: 1rem;
}
.guide-finish-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--cws-dark); margin-bottom: 0.4rem; }
.guide-finish-card p  { font-size: 0.82rem; color: #666; line-height: 1.6; margin-top: 0; }
.guide-finish-tag {
	display: inline-block; font-size: 0.7rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.05em;
	padding: 0.15rem 0.5rem; border-radius: 3px; margin-bottom: 0.5rem;
}
.tag-oil  { background: #fff8e8; color: #7a5c00; border: 1px solid #e8c97a; }
.tag-film { background: #e8f0ff; color: #2a4a8a; border: 1px solid #a0b8f0; }
.tag-wax  { background: #f0faf4; color: #2a7a46; border: 1px solid #a8d5b5; }

@media (max-width: 560px) {
	.guide-dos-donts { grid-template-columns: 1fr; }
}

/* ============================================================
   WOOD SLABS PAGE (/?wood-slabs)
   ============================================================ */
.ws-hero {
	background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('/img/hero-bg.jpg');
	min-height: 46vh; display: flex; flex-direction: column;
	justify-content: center; align-items: center;
	text-align: center; color: #fff; padding: 3rem 1.5rem;
}
.ws-hero h1 { font-size: 3rem; font-weight: 900; margin-bottom: 0.6rem; text-shadow: 2px 2px 6px rgba(0,0,0,.7); }
.ws-hero p  { font-size: 1.2rem; font-weight: 300; max-width: 560px; margin: 0 auto 2rem; opacity: 0.9; text-shadow: 1px 1px 4px rgba(0,0,0,.6); }
@media (max-width: 520px) {
	.ws-hero h1 { font-size: 2rem; }
	.ws-hero p  { font-size: 1rem; }
}

.ws-section       { padding: 3.5rem 1.5rem; }
.ws-section-light { background: var(--cws-light); }
.ws-section-white { background: #fff; }
.ws-section-mint  { background: #eef7ee; }
.ws-section-green { background: var(--cws-green); color: #fff; }
.ws-section-dark  { background: var(--cws-dark);  color: #fff; }

.ws-inner      { max-width: 860px;  margin: 0 auto; }
.ws-inner-wide { max-width: 1060px; margin: 0 auto; }

.ws-heading       { font-size: 2rem; font-weight: 900; color: var(--cws-dark); margin-bottom: 0.25rem; }
.ws-heading-light { color: #fff; }
.ws-subhead       { font-size: 1rem; color: #555; max-width: 640px; margin: 0.75rem 0 2rem; line-height: 1.7; }
.ws-subhead-light { color: rgba(255,255,255,0.85); }

.process-list { list-style: none; padding: 0; margin: 0; }
.process-step {
	display: flex; gap: 1.5rem; align-items: flex-start;
	padding: 1.75rem 0; border-bottom: 1px solid var(--cws-border);
}
.process-step:last-child { border-bottom: none; }
.step-num {
	flex-shrink: 0; width: 42px; height: 42px;
	background: var(--cws-green); color: #fff; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.05rem; font-weight: 900; font-family: 'Lato', sans-serif; margin-top: 2px;
}
.step-body h3   { font-size: 1.1rem; font-weight: 700; color: var(--cws-dark); margin-bottom: 0.35rem; }
.step-body p    { font-size: 0.93rem; color: #555; line-height: 1.75; margin: 0; }
.step-body p + p { margin-top: 0.5rem; }

.urban-wood-wrap {
	display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start;
}
.urban-wood-wrap p { font-size: 0.97rem; color: #2a4a2a; line-height: 1.8; margin-bottom: 0.75rem; }
.urban-wood-wrap p:last-child { margin-bottom: 0; }
.urban-wood-stat {
	background: #fff; border: 1px solid #cde8cd; border-radius: 8px;
	padding: 1.5rem; text-align: center; margin-bottom: 1rem;
}
.urban-wood-stat:last-child { margin-bottom: 0; }
.urban-wood-stat-num   { font-size: 2.2rem; font-weight: 900; color: var(--cws-green); font-family: 'Lato', sans-serif; line-height: 1; }
.urban-wood-stat-label { font-size: 0.82rem; color: #555; margin-top: 0.35rem; line-height: 1.4; }
@media (max-width: 680px) {
	.urban-wood-wrap { grid-template-columns: 1fr; }
}

/* ============================================================
   SPECIES INFO PAGE (/?species-info)
   ============================================================ */
.species-wrap  { max-width: 960px; margin: 2.5rem auto; padding: 0 1.5rem 4rem; }
.species-title { font-size: 1.9rem; font-weight: 900; color: var(--cws-dark); }
.species-intro { font-size: 1rem; color: #555; max-width: 680px; margin: 1rem 0 2rem; line-height: 1.7; }

.species-card {
	background: #fff; border: 1px solid var(--cws-border);
	border-radius: 8px; padding: 1.75rem 2rem; margin-bottom: 1.25rem;
}
.species-card-header {
	display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap;
	margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--cws-border);
}
.species-name    { font-size: 1.3rem; font-weight: 900; color: var(--cws-dark); }
.species-latin   { font-size: 0.88rem; color: #888; font-style: italic; }
.species-desc    { color: #555; line-height: 1.8; font-size: 0.96rem; }
.species-desc p  { margin-top: 0; margin-bottom: 0.75rem; }
.species-desc p:last-child { margin-bottom: 0; }
.species-photos      { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.25rem; }
.species-photo-link  { display: block; border-radius: 5px; overflow: hidden; border: 1px solid var(--cws-border); line-height: 0; }
.species-photo-link img { display: block; width: 120px; height: 90px; object-fit: cover; }
.species-photo-label { font-size: 0.72rem; color: #aaa; margin-top: 0.5rem; }
.species-placeholder { color: #aaa; font-style: italic; font-size: 0.92rem; }

@media (max-width: 600px) {
	.species-card { padding: 1.25rem 1rem; }
}

/* ============================================================
   BF CALCULATOR PAGE (/?bf-calculator)
   ============================================================ */
.bfc-wrap  { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.bfc-title { font-size: 1.9rem; font-weight: 900; color: var(--cws-dark); }
.bfc-intro { font-size: 1rem; color: #555; max-width: 640px; margin: 1rem 0 2rem; line-height: 1.7; }

.bf-formula-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 2rem;
}
.bf-formula-card {
	background: #fff; border: 1px solid var(--cws-border); border-radius: 8px; padding: 1.5rem;
}
.bf-formula-card h3 {
	font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
	color: #888; margin-bottom: 0.75rem;
}
.bf-formula-diagram {
	width: 100%; max-height: 200px; object-fit: contain;
	display: block; margin: 0 auto 1rem; border-radius: 4px;
}
.bf-formula-expr {
	font-family: monospace; font-size: 0.95rem; color: var(--cws-dark); line-height: 2;
	background: var(--cws-light); border: 1px solid var(--cws-border); border-radius: 4px;
	padding: 0.75rem 1rem; margin-bottom: 0.75rem;
}
.bf-formula-card p { font-size: 0.82rem; color: #777; line-height: 1.6; margin: 0; }
.bf-formula-example {
	display: block; width: 100%; max-height: 160px; object-fit: contain;
	margin-top: 0.75rem; border-radius: 4px; opacity: 0.9;
}
@media (max-width: 560px) {
	.bf-formula-grid { grid-template-columns: 1fr; }
}

.calc-container { background: #fff; border: 1px solid var(--cws-border); border-radius: 8px; overflow: hidden; }
.calc-tabs { display: flex; border-bottom: 2px solid var(--cws-border); }
.calc-tab {
	flex: 1; padding: 0.85rem 1rem;
	background: var(--cws-light); border: none; cursor: pointer;
	font-size: 0.9rem; font-weight: 600; color: #888;
	transition: background 0.15s, color 0.15s; font-family: inherit;
}
.calc-tab:first-child { border-right: 1px solid var(--cws-border); }
.calc-tab.active { background: #fff; color: var(--cws-dark); border-bottom: 2px solid var(--cws-green); margin-bottom: -2px; }
.calc-tab:hover:not(.active) { color: var(--cws-green); }
.calc-panel        { display: none; padding: 1.75rem 2rem; }
.calc-panel.active { display: block; }

.calc-inputs {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1.25rem 1.5rem; margin-bottom: 1.75rem;
}
.calc-field label {
	display: block; font-size: 0.8rem; font-weight: 700; color: #555;
	margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.calc-field .unit { font-size: 0.72rem; font-weight: 400; color: #999; text-transform: none; letter-spacing: 0; margin-left: 0.2rem; }
.calc-field input[type=number] {
	width: 100%; padding: 0.65rem 0.75rem; border: 1px solid #ccc; border-radius: 4px;
	font-size: 1rem; font-family: inherit; color: #333; transition: border-color 0.15s;
}
.calc-field input[type=number]:focus { outline: none; border-color: var(--cws-green); }
.calc-field .field-hint { font-size: 0.73rem; color: #aaa; margin-top: 0.2rem; }

.calc-result {
	background: var(--cws-light); border-radius: 6px; padding: 1.25rem 1.5rem;
	display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; margin-bottom: 1.25rem;
}
.calc-result-item   { text-align: center; }
.calc-result-value  { font-size: 2.4rem; font-weight: 900; font-family: 'Lato', sans-serif; color: var(--cws-green); line-height: 1; }
.calc-result-label  { font-size: 0.75rem; color: #888; text-transform: uppercase; letter-spacing: 0.07em; margin-top: 0.3rem; }
.calc-result-divider { width: 1px; height: 48px; background: var(--cws-border); align-self: center; }

.calc-price-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.calc-price-row label { font-size: 0.88rem; color: #555; font-weight: 500; white-space: nowrap; }
.calc-price-row input[type=number] { width: 110px; padding: 0.5rem 0.65rem; border: 1px solid #ccc; border-radius: 4px; font-size: 0.95rem; font-family: inherit; }
.calc-price-row input:focus { outline: none; border-color: var(--cws-green); }
.calc-price-estimate { font-size: 1.1rem; font-weight: 700; color: var(--cws-dark); }
.calc-price-estimate.empty { color: #bbb; font-weight: 400; font-style: italic; }
.calc-note { font-size: 0.78rem; color: #aaa; margin-top: 1.25rem; line-height: 1.6; }

@media (max-width: 520px) {
	.calc-result { justify-content: center; }
	.calc-result-divider { display: none; }
	.calc-panel { padding: 1.25rem 1rem; }
}

/* ============================================================
   CWS SETUP PAGE (/?cws-setup)
   ============================================================ */
.setup-wrap  { max-width: 860px; margin: 2rem auto; padding: 0 1.5rem 4rem; }
.setup-title { font-size: 1.9rem; font-weight: 900; color: var(--cws-dark); }
.setup-intro { color: #666; margin: 0.5rem 0 2rem; }

.cfg-section { background: #fff; border: 1px solid var(--cws-border); border-radius: 8px; margin-bottom: 1.5rem; overflow: hidden; }
.cfg-section-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1rem 1.5rem; background: var(--cws-light); border-bottom: 1px solid var(--cws-border);
}
.cfg-section-head h2 {
	font-size: 1rem; font-weight: 700; color: var(--cws-dark);
	text-transform: uppercase; letter-spacing: 0.06em; margin: 0;
}
.cfg-section-head .cfg-step {
	font-size: 0.75rem; font-weight: 700; color: #fff;
	background: var(--cws-dark); border-radius: 20px; padding: 0.15rem 0.6rem; letter-spacing: 0.04em;
}
.cfg-section-body { padding: 1.5rem; }

.cfg-badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.cfg-ok      { background: #d4edda; color: #155724; }
.cfg-missing { background: #fff3cd; color: #856404; }
.cfg-error   { background: #f8d7da; color: #721c24; }

.cfg-row { margin-bottom: 1.1rem; }
.cfg-row label { display: block; font-size: 0.83rem; font-weight: 700; color: #444; margin-bottom: 0.3rem; }
.cfg-row label .cfg-key { font-family: monospace; font-size: 0.8rem; color: #888; font-weight: 400; margin-left: 0.4rem; }
.cfg-input {
	width: 100%; padding: 0.55rem 0.75rem; border: 1px solid #ccc;
	border-radius: 4px; font-size: 0.92rem; font-family: inherit; color: #333;
}
.cfg-input:focus { outline: none; border-color: var(--cws-green); }
.cfg-hint { font-size: 0.75rem; color: #999; margin-top: 0.2rem; }
.cfg-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cfg-divider { border: none; border-top: 1px solid var(--cws-border); margin: 1.25rem 0; }

.btn-save {
	background: var(--cws-green); color: #fff; border: none; border-radius: 4px;
	padding: 0.55rem 1.5rem; font-size: 0.9rem; font-weight: 600; cursor: pointer;
	margin-top: 0.5rem; transition: background 0.2s;
}
.btn-save:hover { background: var(--cws-green-dark); }
.cfg-saved-banner {
	background: #d4edda; border: 1px solid #a8d5b5; border-radius: 4px;
	padding: 0.5rem 0.85rem; font-size: 0.85rem; color: #155724; margin-bottom: 1rem;
}

.db-table-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.db-table-pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.65rem; border-radius: 20px; font-size: 0.8rem; font-family: monospace; }
.db-ok      { background: #d4edda; color: #155724; }
.db-missing { background: #f8d7da; color: #721c24; }

.steps-list { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps-list li {
	display: flex; gap: 1rem; margin-bottom: 1rem;
	font-size: 0.92rem; color: #444; line-height: 1.6;
}
.steps-list li::before {
	counter-increment: step; content: counter(step);
	flex-shrink: 0; width: 24px; height: 24px;
	background: var(--cws-green); color: #fff; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 0.75rem; font-weight: 700; margin-top: 2px;
}
.steps-list code {
	background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 3px;
	padding: 0.1rem 0.4rem; font-size: 0.85rem; font-family: monospace; word-break: break-all;
}
.steps-list a { color: var(--cws-green); }

.stripe-info-btn {
	width: 22px; height: 22px; border-radius: 50%;
	border: 1.5px solid var(--cws-green); background: transparent; color: var(--cws-green);
	font-size: 0.78rem; font-weight: 700; cursor: pointer; line-height: 1; padding: 0;
	transition: background 0.15s, color 0.15s;
}
.stripe-info-btn:hover { background: var(--cws-green); color: #fff; }

.stripe-modal-overlay {
	display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45);
	z-index: 1000; align-items: center; justify-content: center; padding: 1rem;
}
.stripe-modal-overlay.open { display: flex; }
.stripe-modal-box {
	background: #fff; border-radius: 8px; max-width: 90vw; max-height: 90vh;
	overflow-y: auto; box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.stripe-modal-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--cws-border);
	position: sticky; top: 0; background: #fff;
}
.stripe-modal-head h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--cws-dark); }
.stripe-modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #888; line-height: 1; padding: 0; }
.stripe-modal-close:hover { color: #333; }
.stripe-modal-body { padding: 1.75rem 2rem; }
.stripe-modal-body .steps-list li { font-size: 0.97rem; align-items: flex-start; }
.stripe-modal-body .steps-list li ul { list-style: disc; margin: 0.4rem 0 0 0.25rem; padding-left: 1.25rem; }
.stripe-modal-body .steps-list li ul li { display: list-item; font-size: 0.93rem; color: #555; margin-bottom: 0.25rem; line-height: 1.5; }
.stripe-modal-body .steps-list li ul li::before { display: none; }

@media (max-width: 600px) {
	.cfg-2col { grid-template-columns: 1fr; }
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.cws-pre-footer { text-align: center; }
.cws-pre-footer p { padding-bottom: 1em; }
.cws-pre-footer .btn-outline-white { font-size: 1.05rem; padding: 0.85rem 2.5rem; }

.cws-footer-inner { text-align: center; }
.cws-footer-brand {
	font-family: 'Lato', sans-serif; font-weight: 900;
	font-size: 1.05rem; letter-spacing: 0.06em; margin-bottom: 0.25rem;
}
.cws-footer-tagline { font-size: 0.8rem; letter-spacing: 0.1em; color: #888; margin-bottom: 1.75rem; }
.cws-footer-contact { font-size: 1rem; line-height: 2.2; color: #bbb; }
.cws-footer-contact a { color: var(--cws-green); font-weight: 500; }
.cws-footer-links {
	margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid #3a3a3a;
	display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; font-size: 0.9rem;
}
.cws-footer-links a { color: #aaa; }
.cws-footer-copy { margin-top: 1.5rem; font-size: 0.82rem; color: #555; }
