/*
Theme Name: Dao Vitamin (Blocksy Child)
Template: blocksy
Version: 1.0.0
Text Domain: supplement-child
*/

:root {
	--ss-green: #1f7a5a;
	--ss-green-dark: #155c43;
	--ss-cream: #f6f8f4;
	--ss-ink: #1d2a24;
	--ss-muted: #5f6b66;
	--ss-radius: 14px;
	--theme-font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;
}

/* Override Blocksy palette (inline :root vars) with the shop colors. */
:root:root {
	--theme-palette-color-1: #1f7a5a;
	--theme-palette-color-2: #155c43;
	--theme-link-hover-color: #155c43;
}

.home .hero-section { display: none; }

/* Brand mark before the site title */
.site-title { display: inline-flex; align-items: center; gap: .45em; }
.site-title::before { content: ""; width: 1.35em; height: 1.35em; flex: none; background: url("brand/dao-icon.png") center / contain no-repeat; }
.site-title a { color: var(--ss-green-dark) !important; }

body { font-family: var(--theme-font-family); color: var(--ss-ink); line-height: 1.7; }
h1, h2, h3, h4 { font-family: var(--theme-font-family); font-weight: 700; line-height: 1.35; }

/* ---------- Home sections ---------- */
.ss-hero { padding: clamp(40px, 7vw, 90px) 16px; background: linear-gradient(135deg, #e7f3ec 0%, #f7f3e8 100%); border-radius: var(--ss-radius); }
.ss-hero h1 { font-size: clamp(28px, 4.4vw, 46px); margin: 0 0 .4em; }
.ss-hero p { font-size: clamp(16px, 1.6vw, 19px); color: var(--ss-muted); max-width: 36em; }
.ss-hero .wp-block-button__link { background: var(--ss-green); border-radius: 99px; padding: .8em 1.8em; font-weight: 600; }
.ss-hero .is-style-outline .wp-block-button__link { background: transparent; color: var(--ss-green); border: 2px solid var(--ss-green); }

.ss-section { margin-top: clamp(40px, 6vw, 72px); }
.ss-section > h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: .2em; }
.ss-section > .ss-sub { color: var(--ss-muted); margin-top: 0; }

.ss-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ss-cats a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; background: var(--ss-cream); border-radius: var(--ss-radius); text-align: center; color: var(--ss-ink); text-decoration: none; font-weight: 600; transition: transform .15s, box-shadow .15s; }
.ss-cats a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31,122,90,.12); }
.ss-cats .ss-ico { font-size: 30px; line-height: 1; }

.ss-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ss-why > div { padding: 22px; border: 1px solid #e3eae6; border-radius: var(--ss-radius); }
.ss-why h3 { font-size: 18px; margin: .3em 0; }
.ss-why p { margin: 0; color: var(--ss-muted); font-size: 15px; }

.ss-steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding: 0; list-style: none; }
.ss-steps li { counter-increment: step; padding: 20px; background: var(--ss-cream); border-radius: var(--ss-radius); }
.ss-steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 8px; background: var(--ss-green); color: #fff; border-radius: 50%; font-weight: 700; }

.ss-faq details { padding: 14px 0; border-bottom: 1px solid #e3eae6; }
.ss-faq summary { cursor: pointer; font-weight: 600; }
.ss-faq details p { margin: .6em 0 0; color: var(--ss-muted); }

/* ---------- Woo tweaks ---------- */
.woocommerce ul.products li.product .price, .product .price { color: var(--ss-green-dark); font-weight: 700; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px; line-height: 1.45; }
.single_add_to_cart_button { border-radius: 99px !important; }
.ss-legal { font-size: 13px; color: var(--ss-muted); }

@media (max-width: 600px) {
	.ss-cats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.ss-cats a { padding: 12px 6px; font-size: 13px; }
}
