/* =============================================================
   SM Furniture — Core Theme Stylesheet
   Vanilla CSS only. Colors driven by CSS custom properties, which
   are overridden inline by inc/customizer.php when the admin
   changes brand colors in wp-admin.
   ============================================================= */

:root {
	--smf-primary: #1E4D3A;
	--smf-primary-light: #2C6B50;
	--smf-accent: #C8A951;
	--smf-background: #FAFAF8;
	--smf-text: #222222;
	--smf-text-secondary: #666666;
	--smf-card: #FFFFFF;
	--smf-border: #E7E4DC;

	--smf-radius-sm: 8px;
	--smf-radius-md: 16px;
	--smf-radius-lg: 24px;

	--smf-shadow-sm: 0 2px 8px rgba(30, 77, 58, 0.06);
	--smf-shadow-md: 0 8px 24px rgba(30, 77, 58, 0.10);
	--smf-shadow-lg: 0 20px 48px rgba(30, 77, 58, 0.16);

	--smf-container: 1240px;
	--smf-header-height: 84px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--smf-text);
	background: var(--smf-background);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 0.6em;
	color: var(--smf-text);
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--smf-text-secondary); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--smf-container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-heading p { font-size: 1.05rem; }
.section-cta { text-align: center; margin-top: 48px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 10000;
	background: var(--smf-primary); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 30px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
	white-space: nowrap;
}
.btn-primary { background: var(--smf-primary); color: #fff; box-shadow: var(--smf-shadow-md); }
.btn-primary:hover { background: var(--smf-primary-light); transform: translateY(-2px); box-shadow: var(--smf-shadow-lg); }
.btn-secondary, .btn-whatsapp {
	background: #fff; color: var(--smf-primary); border: 1px solid var(--smf-border);
}
.btn-secondary:hover, .btn-whatsapp:hover { transform: translateY(-2px); box-shadow: var(--smf-shadow-md); }
.btn-outline { background: transparent; color: var(--smf-primary); border: 1.5px solid var(--smf-primary); }
.btn-outline:hover { background: var(--smf-primary); color: #fff; }
.btn-header.btn-whatsapp { background: var(--smf-accent); color: var(--smf-primary); border: none; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1rem; }
.btn-block { width: 100%; }
.icon-whatsapp { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Announcement bar ---------- */
.smf-announcement-bar {
	background: var(--smf-primary); color: #fff; text-align: center;
	padding: 10px 20px; font-size: 0.85rem; font-weight: 500;
}
.smf-announcement-bar p { margin: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 999; width: 100%;
	background: #fff; box-shadow: var(--smf-shadow-sm);
	transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
body.has-transparent-header .site-header[data-transparent="true"] {
	background: rgba(255,255,255,0.08);
	backdrop-filter: blur(10px) saturate(140%);
	-webkit-backdrop-filter: blur(10px) saturate(140%);
	border-bottom: 1px solid rgba(255,255,255,0.15);
	box-shadow: none;
}
body.has-transparent-header .site-header.is-scrolled {
	background: rgba(255,255,255,0.85);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	box-shadow: var(--smf-shadow-sm);
	border-bottom-color: transparent;
}
.header-inner {
	display: flex; align-items: center; justify-content: space-between;
	height: var(--smf-header-height);
}
.site-branding img { max-height: 52px; width: auto; }
.site-title-link { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--smf-primary); }
body.has-transparent-header .site-header[data-transparent="true"] .site-title-link,
body.has-transparent-header .site-header[data-transparent="true"] .primary-menu a {
	color: #fff;
}
body.has-transparent-header .site-header.is-scrolled .site-title-link,
body.has-transparent-header .site-header.is-scrolled .primary-menu a {
	color: var(--smf-text);
}
.primary-menu { display: flex; gap: 36px; }
.primary-menu a { font-weight: 500; font-size: 0.95rem; position: relative; padding: 6px 0; }
.primary-menu a::after {
	content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
	background: var(--smf-accent); transition: width 0.25s ease;
}
.primary-menu a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 16px; }

.mobile-menu-toggle {
	display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px;
}
.mobile-menu-toggle .bar { width: 24px; height: 2px; background: currentColor; }
.mobile-menu {
	position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); height: 100vh;
	background: #fff; box-shadow: var(--smf-shadow-lg);
	transform: translateX(100%); transition: transform 0.35s ease;
	z-index: 1001; padding: 100px 32px 32px; overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-list li { margin-bottom: 20px; font-size: 1.05rem; }

/* ---------- Breadcrumbs ---------- */
.smf-breadcrumbs { padding: 16px 0; font-size: 0.85rem; color: var(--smf-text-secondary); }
.smf-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.smf-breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--smf-border); }
.smf-breadcrumbs a:hover { color: var(--smf-primary); }

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: 92vh; display: flex; align-items: center;
	background-size: cover; background-position: center; margin-top: calc(var(--smf-header-height) * -1);
}
.hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(30,77,58,0.55) 0%, rgba(30,77,58,0.75) 100%);
}
.hero-inner { position: relative; z-index: 2; color: #fff; max-width: 720px; }
.hero-heading { color: #fff; }
.hero-subheading { color: rgba(255,255,255,0.88); font-size: 1.15rem; max-width: 520px; }
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 32px; }
.hero-scroll-indicator {
	position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
	width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.6); border-radius: 20px; z-index: 2;
}
.hero-scroll-indicator::after {
	content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
	width: 4px; height: 8px; background: #fff; border-radius: 2px;
	animation: smf-scroll-bounce 1.6s infinite;
}

/* ---------- Category grid ---------- */
.category-grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.category-card {
	background: var(--smf-card); border-radius: var(--smf-radius-md); overflow: hidden;
	box-shadow: var(--smf-shadow-sm); transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--smf-shadow-lg); }
.category-card-image { aspect-ratio: 4/3; overflow: hidden; }
.category-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.category-card:hover .category-card-image img { transform: scale(1.08); }
.category-card-body { padding: 20px 22px 26px; }
.category-card-body h3 { margin-bottom: 6px; font-size: 1.05rem; }
.category-card-body p { font-size: 0.88rem; margin: 0; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.product-card {
	background: var(--smf-card); border-radius: var(--smf-radius-md); overflow: hidden;
	box-shadow: var(--smf-shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--smf-shadow-md); }
.product-card-image { aspect-ratio: 1/1; overflow: hidden; background: #f1f0eb; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card-image img { transform: scale(1.06); }
.product-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-card-body h3 { font-size: 1rem; margin-bottom: 0; }
.product-card-body .price,
.woocommerce ul.products li.product .price { display: none !important; }
.woocommerce ul.products li.product { margin: 0 !important; }

/* ---------- Why Us ---------- */
.why-us-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why-us-card { padding: 8px; }
.why-us-icon {
	font-family: 'Poppins', sans-serif; font-size: 1.6rem; font-weight: 700;
	color: var(--smf-accent); margin-bottom: 14px;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-image img { border-radius: var(--smf-radius-lg); box-shadow: var(--smf-shadow-md); }
.about-text p { font-size: 1.02rem; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review-card {
	background: var(--smf-card); border-radius: var(--smf-radius-md); padding: 32px;
	box-shadow: var(--smf-shadow-sm); border: 1px solid var(--smf-border);
}
.review-stars { color: var(--smf-accent); font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { font-style: italic; }
.review-name { font-weight: 600; color: var(--smf-text); margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
	display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px;
}
.gallery-item { border-radius: var(--smf-radius-md); overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }

/* ---------- FAQ ---------- */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--smf-border); }
.faq-question {
	width: 100%; display: flex; align-items: center; justify-content: space-between;
	background: none; border: none; padding: 22px 4px; font-family: 'Poppins', sans-serif;
	font-size: 1rem; font-weight: 500; text-align: left; color: var(--smf-text);
}
.faq-icon { font-size: 1.4rem; color: var(--smf-accent); transition: transform 0.3s ease; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 4px 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-details { margin: 24px 0 32px; }
.contact-details li { margin-bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.contact-details strong { font-family: 'Poppins', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--smf-primary); }
.contact-map iframe { width: 100%; border-radius: var(--smf-radius-md); }
.map-placeholder {
	background: #fff; border: 1px dashed var(--smf-border); border-radius: var(--smf-radius-md);
	padding: 60px 24px; text-align: center; color: var(--smf-text-secondary);
}

/* ---------- CTA bands ---------- */
.cta-band, .footer-cta {
	background: var(--smf-primary); color: #fff; padding: 64px 0; margin-top: 0;
}
.cta-band-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-band h2, .footer-cta h2 { color: #fff; }
.cta-band p, .footer-cta p { color: rgba(255,255,255,0.8); }
.footer-cta-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer { background: #16352A; color: rgba(255,255,255,0.75); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-heading { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--smf-accent); }
.footer-logo-text { font-family: 'Poppins', sans-serif; font-size: 1.4rem; color: #fff; font-weight: 700; }
.footer-tagline { max-width: 320px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.social-icon {
	width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1);
	display: flex; align-items: center; justify-content: center; transition: background 0.25s ease;
}
.social-icon:hover { background: var(--smf-accent); }
.footer-address { font-style: normal; display: block; margin-bottom: 10px; }
.footer-hours { margin-bottom: 6px; }
.footer-email a:hover { color: var(--smf-accent); }
.footer-map iframe { width: 100%; display: block; border: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; text-align: center; font-size: 0.85rem; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
	position: fixed; bottom: 24px; right: 24px; z-index: 998;
	width: 58px; height: 58px; border-radius: 50%; background: #25D366;
	display: flex; align-items: center; justify-content: center; color: #fff;
	box-shadow: var(--smf-shadow-lg); transition: transform 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ---------- Generic content grid (blog/archive) ---------- */
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.content-card { background: var(--smf-card); border-radius: var(--smf-radius-md); overflow: hidden; box-shadow: var(--smf-shadow-sm); }
.content-card-image { aspect-ratio: 4/3; overflow: hidden; }
.content-card-image img { width: 100%; height: 100%; object-fit: cover; }
.content-card-body { padding: 20px 22px; }

/* ---------- Single page / post ---------- */
.page-header { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.page-featured-image { margin-bottom: 40px; border-radius: var(--smf-radius-lg); overflow: hidden; box-shadow: var(--smf-shadow-md); }
.page-body { max-width: 760px; margin: 0 auto; font-size: 1.05rem; }
.page-body img { border-radius: var(--smf-radius-md); }
.entry-meta { color: var(--smf-text-secondary); font-size: 0.9rem; }

/* ---------- Single product page ---------- */
.single-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.product-gallery-wrap img { border-radius: var(--smf-radius-lg); }
.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery__wrapper { border-radius: var(--smf-radius-lg); overflow: hidden; }
.flex-control-thumbs { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.flex-control-thumbs li { list-style: none; width: 84px; }
.flex-control-thumbs img { border-radius: var(--smf-radius-sm); border: 2px solid transparent; cursor: pointer; }
.flex-control-thumbs img.flex-active { border-color: var(--smf-accent); }

.product-summary-wrap h1 { margin-bottom: 12px; }
.product-short-description { font-size: 1.05rem; margin-bottom: 24px; }
.product-sku, .product-categories { font-size: 0.9rem; color: var(--smf-text-secondary); margin-top: 8px; }
.product-full-description, .product-specs { max-width: 900px; margin: 0 auto 56px; }
.product-specs table { width: 100%; border-collapse: collapse; }
.product-specs table th, .product-specs table td {
	padding: 14px 18px; border: 1px solid var(--smf-border); text-align: left; font-size: 0.95rem;
}
.product-specs table th { background: #F3F1EA; width: 220px; font-weight: 600; }

.related.products { margin-top: 40px; }
.related.products > h2 { text-align: center; margin-bottom: 40px; }
.related.products ul.products {
	display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 0 !important;
}

.sticky-product-bar {
	position: sticky; bottom: 0; z-index: 500;
	background: rgba(255,255,255,0.85);
	backdrop-filter: blur(14px) saturate(160%);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	box-shadow: 0 -4px 20px rgba(0,0,0,0.08); padding: 16px 0; display: none;
}
.sticky-product-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sticky-product-name { font-family: 'Poppins', sans-serif; font-weight: 600; }

/* ---------- Category page banner ---------- */
.category-banner {
	position: relative; min-height: 46vh; display: flex; align-items: flex-end;
	background-size: cover; background-position: center;
	margin-top: calc(var(--smf-header-height) * -1); padding-top: var(--smf-header-height);
}
.category-banner-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(30,77,58,0.35) 0%, rgba(20,50,38,0.85) 100%);
}
.category-banner-inner { position: relative; z-index: 2; color: #fff; padding-bottom: 48px; }
.category-banner-inner h1 { color: #fff; margin: 8px 0 10px; }
.category-banner-inner p { color: rgba(255,255,255,0.85); max-width: 640px; }
.category-banner .smf-breadcrumbs { color: rgba(255,255,255,0.8); }
.category-banner .smf-breadcrumbs a { color: rgba(255,255,255,0.9); }
.empty-category { text-align: center; padding: 60px 20px; }

/* ---------- Shop archive spacing ---------- */
.shop-archive { padding-top: 56px; }

/* ---------- Woo pagination ---------- */
.woocommerce-pagination { text-align: center; margin-top: 48px; }
.woocommerce-pagination ul { display: inline-flex; gap: 8px; }
.woocommerce-pagination a, .woocommerce-pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%; background: #fff;
	border: 1px solid var(--smf-border); font-size: 0.9rem;
}
.woocommerce-pagination .current { background: var(--smf-primary); color: #fff; border-color: var(--smf-primary); }
.woocommerce-pagination a:hover { border-color: var(--smf-primary); color: var(--smf-primary); }

/* ---------- Testimonial / util visibility ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	background: var(--smf-card); border-left: 4px solid var(--smf-primary);
	padding: 16px 20px; border-radius: var(--smf-radius-sm); list-style: none; margin-bottom: 24px;
}
