/*
Theme Name: Anspace (Storefront Child)
Theme URI: https://anspacedecoration.com/
Description: Child theme của Storefront, tùy biến theo phong cách tối giản / thiên nhiên của Anspace Decoration.
Author: Anspace Decoration
Template: storefront
Version: 1.7.0
Text Domain: anspace-storefront-child
*/

:root {
	--sand: #F5EFE3;
	--sand-deep: #EAE1CE;
	--card: #FFFDF8;
	--ink: #2B2620;
	--ink-soft: #6F6459;
	--pine: #3F5C46;
	--pine-deep: #2E4433;
	--pine-tint: #E4EAE2;
	--line: #E3D9C6;
	--font-body: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
	--font-heading: 'Quicksand', 'Be Vietnam Pro', sans-serif;
}

html {
	overflow-x: hidden;
}

body {
	background-color: var(--sand);
	color: var(--ink);
	font-family: var(--font-body);
	overflow-x: hidden;
	max-width: 100%;
}

h1, h2, h3, h4, h5,
.site-title,
.woocommerce-loop-product__title,
.page-title,
.entry-title {
	font-family: var(--font-heading);
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--ink);
}

a { color: var(--ink); }
a:hover { color: var(--pine); }

/* Ẩn sidebar blog mặc định — site này là e-commerce, không dùng blog sidebar kiểu cũ */
.content-area { width: 100%; float: none; }
#secondary.widget-area,
.widget-area { display: none !important; }

/* Header */
.site-header {
	background: var(--sand);
	border-bottom: 1px solid var(--line);
	box-shadow: none;
}
.site-branding .site-title a {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.3rem;
	letter-spacing: 0.06em;
}
.main-navigation ul li a {
	color: var(--ink-soft);
	font-weight: 500;
	font-size: 0.85rem;
}
.main-navigation ul li a:hover { color: var(--pine); }

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
a.button,
.woocommerce #respond input#submit {
	background-color: var(--pine);
	color: #fff;
	border-radius: 0;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 600;
	font-size: 0.75rem;
	padding: 0.9em 1.8em;
	border: none;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
a.button:hover {
	background-color: var(--pine-deep);
	color: #fff;
}

/* Hero (trang chủ) — full màn hình, phá khung container */
.anspace-hero {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-top: 0;
	box-sizing: border-box;
}
.anspace-hero__photo {
	background-size: cover;
	background-position: center 15%;
	min-height: 100vh;
}
@media (max-width: 880px) {
	.anspace-hero { grid-template-columns: 1fr; }
	.anspace-hero__photo { min-height: 60vh; }
}
.anspace-hero__inner {
	background: var(--pine-deep);
	color: #F6F2E8;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
	padding: clamp(2rem, 5vw, 3.5rem);
}
.anspace-hero__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.28em;
	font-size: 0.72rem;
	font-weight: 600;
	color: #C9DACB;
}
.anspace-hero__title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: clamp(1.8rem, 3.2vw, 2.6rem);
	line-height: 1.2;
	margin: 0.4rem 0 0.8rem;
	color: #fff;
}
.anspace-hero__lede { color: #E7E0CE; font-size: 0.95rem; max-width: 40ch; margin: 0 0 0.6rem; }
.anspace-hero__cta {
	display: inline-flex;
	align-self: flex-start;
	margin-top: 0.6rem;
	padding: 0.85em 1.8em;
	background: #F6F2E8;
	color: var(--pine-deep);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	font-size: 0.78rem;
	text-decoration: none;
}
.anspace-hero__cta:hover { background: #fff; color: var(--pine-deep); }

/* Story / material strip */
.anspace-story {
	max-width: 1440px;
	margin: 3.5rem auto 4rem;
	padding: 0 1.5rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 2.2rem;
}
.anspace-story__item { text-align: left; }
.anspace-story__item h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.anspace-story__item p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* Khung nội dung rộng hơn để đỡ trống nền trên màn hình lớn */
.col-full {
	max-width: 1440px !important;
}

/* Product grid (Storefront loop) — ép về CSS Grid 4 cột, không phụ thuộc class columns-x của Storefront */
ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 1.6rem;
}
ul.products li.product {
	text-align: left;
	background: var(--card);
	border: 1px solid var(--line);
	padding: 0 !important;
	margin: 0 !important;
	width: auto !important;
	float: none !important;
	box-shadow: 0 18px 40px -26px rgba(43,38,32,0.4);
}
@media (max-width: 1100px) {
	ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 780px) {
	ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
ul.products li.product a { text-decoration: none; }
ul.products li.product img {
	aspect-ratio: 4/5;
	object-fit: cover;
	width: 100%;
	margin: 0 !important;
	border-radius: 0 !important;
}
ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 1.1rem 1.2rem 0.4rem;
}
ul.products li.product .price {
	color: var(--ink-soft);
	font-size: 1.05rem;
	margin: 0 1.2rem 1.2rem;
	display: block;
}
ul.products li.product .price ins { color: var(--ink); text-decoration: none; font-weight: 600; }
ul.products li.product .button {
	margin: 0 1.2rem 1.3rem !important;
	width: calc(100% - 2.4rem);
	text-align: center;
	font-size: 0.82rem !important;
	padding: 1em 1.8em !important;
}
ul.products li.product .onsale {
	background: var(--pine);
	border-radius: 0;
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Size guide table (trang Gợi ý kích thước) */
.anspace-size-guide table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 2rem;
	font-variant-numeric: tabular-nums;
}
.anspace-size-guide th,
.anspace-size-guide td {
	border-bottom: 1px solid var(--line);
	padding: 0.7rem 0.5rem;
	text-align: left;
}
.anspace-size-guide th {
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ink-soft);
}

/* Chất liệu & Công nghệ page */
.anspace-story .anspace-story__item h3 { color: var(--pine); }

footer.site-footer {
	background: var(--sand-deep);
	border-top: 1px solid var(--line);
	color: var(--ink-soft);
}
footer.site-footer a { color: var(--ink-soft); }
footer.site-footer a:hover { color: var(--pine); }

.eyebrow {
	display: inline-block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.26em;
	color: var(--pine);
	font-weight: 600;
}

/* "Được yêu thích nhất" heading trên lưới sản phẩm */
.section-head {
	max-width: 1440px;
	margin: 3.5rem auto 1.6rem;
	padding: 0 1.5rem;
	border-bottom: 1px solid var(--line);
	padding-bottom: 1.2rem;
}
.section-head h2 { font-size: 1.5rem; margin: 0; }

/* CTA ghost (dùng trên nền tối / nền sáng) */
.anspace-hero__cta--ghost {
	background: transparent;
	border: 1px solid #fff;
	color: #fff;
}
.anspace-hero__cta--ghost:hover { background: #fff; color: var(--pine-deep); }
.anspace-hero__cta--ghost-dark {
	background: transparent;
	border: 1px solid var(--pine);
	color: var(--pine);
}
.anspace-hero__cta--ghost-dark:hover { background: var(--pine-tint); }

/* Banner bộ sưu tập — full màn hình như hero */
.anspace-collection {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-top: 4rem;
	box-sizing: border-box;
}
.anspace-collection__inner {
	position: relative;
	width: 100%;
	min-height: 70vh;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	box-sizing: border-box;
}
.anspace-collection__inner::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(30,27,22,0.72) 0%, rgba(30,27,22,0.28) 55%, rgba(30,27,22,0.05) 100%);
}
.anspace-collection__copy { position: relative; padding: 2.5rem clamp(1.5rem,4vw,3.5rem); color: #F6F2E8; max-width: 460px; }
.anspace-collection__copy .eyebrow { color: #D8CFAE; }
.anspace-collection__copy h2 { color: #fff; font-size: 1.9rem; margin: 0.5rem 0 0.8rem; }
.anspace-collection__copy p { color: #E5DFCE; font-size: 0.92rem; margin-bottom: 1.4rem; }

/* Teaser gợi ý kích thước trên trang chủ */
.anspace-size-teaser {
	max-width: 1440px;
	margin: 4.5rem auto 0;
	padding: 0 1.5rem 4rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}
.anspace-size-teaser h2 { font-size: 1.5rem; margin: 0.5rem 0 1rem; }
.anspace-size-teaser > div > p { color: var(--ink-soft); font-size: 0.92rem; max-width: 42ch; }
.anspace-size-teaser table { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.anspace-size-teaser th, .anspace-size-teaser td { text-align: left; padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--line); }
.anspace-size-teaser th { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
@media (max-width: 880px) {
	.anspace-size-teaser { grid-template-columns: 1fr; }
}

/* Footer 4 cột */
.anspace-footer-grid {
	max-width: 1440px;
	margin: 0 auto;
	padding: 3rem 1.5rem 2rem;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 2.5rem;
}
.anspace-footer-grid .brand-word { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin-bottom: 0.8rem; }
.anspace-footer-grid h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; color: var(--ink-soft); font-family: var(--font-body); font-weight: 600; }
.anspace-footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.88rem; }
.anspace-footer-grid p { max-width: 32ch; font-size: 0.88rem; }
.anspace-footer-bottom {
	border-top: 1px solid var(--line);
	padding: 1.1rem 1.5rem;
	text-align: center;
	font-size: 0.78rem;
}
@media (max-width: 880px) {
	.anspace-footer-grid { grid-template-columns: 1fr 1fr; }
}
