/*
Theme Name: Amana Grace
Theme URI: https://universalthermblock.com/
Author: Universal Thermblock Inc.
Description: Made-in-Japan storefront and wholesale site for PROBIO mist. Works with WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: amana-grace
WC requires at least: 7.0
*/

:root {
	--accent: #4A5A3C;
	--ink: #1F1D1A;
	--paper: #F4EFE6;
	--line: #D9D0BF;
	--muted: #5E574D;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
input, select, textarea, button { font: inherit; }
/* Dark buttons keep light text on hover */
a[style*="background: #1F1D1A"]:hover { color: #F4EFE6 !important; opacity: 0.9; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ag-site-header a, .ag-site-footer a { color: #EDE6D8; }
.ag-site-header a:hover, .ag-site-footer a:hover { color: #FFFFFF; }
.ag-site-header a.ag-btn-light, .ag-site-header a.ag-btn-light:hover { color: var(--ink); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.ag-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* WordPress admin bar offset is handled by core. */

/* ---------- Generic page content (pages not built by the theme) ---------- */
.ag-page { max-width: 820px; margin: 0 auto; padding: 72px 24px 120px; font-size: 16px; line-height: 1.85; }
.ag-page h1 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(40px, 5vw, 60px); line-height: 1.05; margin: 0 0 32px; }
.ag-page h2, .ag-page h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; }

/* ---------- WooCommerce notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	list-style: none; margin: 0 0 24px; padding: 16px 20px; background: #FBF8F2;
	border: 1px solid var(--line); border-left: 3px solid var(--accent); font-size: 15px;
}
.woocommerce-error { border-left-color: #8A3B2E; }
.woocommerce-message .button, .woocommerce-info .button { float: right; margin-left: 16px; }

/* ---------- WooCommerce checkout (classic shortcode) ---------- */
.ag-checkout { max-width: 1240px; margin: 0 auto; padding: 48px 24px 120px; }
.ag-checkout h1 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(40px, 4.6vw, 60px); line-height: 1.05; margin: 0 0 40px; }
.ag-checkout h3, .ag-checkout #order_review_heading { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 26px; }
.ag-checkout .woocommerce form .form-row { margin: 0 0 16px; }
.ag-checkout .woocommerce form .form-row label { display: block; font-size: 13px; letter-spacing: 0.04em; margin-bottom: 6px; }
.ag-checkout input.input-text, .ag-checkout select, .ag-checkout textarea,
.ag-checkout .select2-container .select2-selection--single {
	width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #B9AE99; background: #FFFFFF; border-radius: 0;
}
.ag-checkout table.shop_table { width: 100%; border-collapse: collapse; background: #FBF8F2; border: 1px solid var(--line); }
.ag-checkout table.shop_table th, .ag-checkout table.shop_table td { padding: 14px 16px; border-top: 1px solid var(--line); text-align: left; }
.ag-checkout #payment { background: #FBF8F2; border: 1px solid var(--line); padding: 20px; margin-top: 24px; }
.ag-checkout #payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 16px; }
.ag-checkout .button, .ag-checkout #place_order, .woocommerce .button {
	background: var(--ink); color: var(--paper); border: 0; border-radius: 0; padding: 16px 28px;
	min-height: 52px; font-size: 15px; letter-spacing: 0.06em; cursor: pointer; text-decoration: none; display: inline-block;
}
.ag-checkout .button:hover, .ag-checkout #place_order:hover, .woocommerce .button:hover { background: #33302B; color: var(--paper); }
@media (min-width: 900px) {
	.ag-checkout .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
	.ag-checkout .col2-set .col-1, .ag-checkout .col2-set .col-2 { width: auto; float: none; }
}
/* Block-based checkout inherits fonts and colors */
.ag-checkout .wc-block-components-button:not(.is-link) { background: var(--ink); color: var(--paper); border-radius: 0; min-height: 52px; }

/* ---------- Cart table on small screens ---------- */
@media (max-width: 640px) {
	.ag-cart-head { display: none !important; }
	.ag-cart-row { grid-template-columns: 1fr !important; }
	.ag-cart-row .ag-line-total { text-align: left !important; }
}
