/*
Theme Name:   Home Mate
Theme URI:    https://homemate.com.bd
Description:  Home Mate child theme for Hello Elementor. Design tokens and WooCommerce styling from the Figma "08 Final Design".
Author:       Home Mate
Template:     hello-elementor
Version:      1.1.0
Text Domain:  homemate
*/

/* ---------- Tokens (from Figma variables) ---------- */
:root {
	--hm-n-0: #ffffff;
	--hm-n-100: #e8e5e1;
	--hm-n-200: #d5d0c9;
	--hm-n-300: #b9b4ab;
	--hm-n-400: #99948b;
	--hm-n-500: #747068;
	--hm-n-600: #5b564f;
	--hm-n-700: #44403a;
	--hm-n-800: #312e29;
	--hm-n-900: #1f1d19;
	--hm-n-950: #0f0d0a;
	--hm-amber: #ffc44a;      /* tulip-tree-500 */
	--hm-amber-600: #c08c00;
	--hm-amber-700: #886200;
	--hm-amber-100: #fff8ea;
	--hm-blue-900: #043347;   /* cornflower-900 */
	--hm-page: #f1f3f4;
	--hm-font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
	--hm-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--hm-radius: 12px;
	--hm-pill: 100px;
}

body {
	background: var(--hm-page);
	color: var(--hm-n-900);
	font-family: var(--hm-font);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--hm-font); font-weight: 500; letter-spacing: -0.03em; color: var(--hm-n-950); }
a { color: inherit; }

/* ---------- Utility classes (add in Elementor → Advanced → CSS Classes) ---------- */
.hm-eyebrow, .hm-eyebrow .elementor-heading-title {
	font-family: var(--hm-mono) !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase;
}
.hm-display .elementor-heading-title { font-size: clamp(44px, 6.4vw, 92px); line-height: .96; letter-spacing: -0.045em; font-weight: 500; }
.hm-h2 .elementor-heading-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 500; }
.hm-card { background: var(--hm-n-0); border-radius: var(--hm-radius); }
.hm-dark { background: var(--hm-n-950); color: var(--hm-n-0); border-radius: var(--hm-radius); }
.hm-dark .elementor-heading-title, .hm-dark p { color: var(--hm-n-0); }

/* Buttons: pill, mono label */
.hm-btn .elementor-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wc-block-components-button {
	font-family: var(--hm-mono) !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	letter-spacing: .04em;
	text-transform: uppercase;
	border-radius: var(--hm-pill) !important;
	padding: 16px 26px !important;
	background: var(--hm-n-950) !important;
	color: var(--hm-n-0) !important;
	border: 0 !important;
}
.hm-btn--amber .elementor-button, .woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce .single_add_to_cart_button, .wc-proceed-to-checkout .checkout-button, #place_order {
	background: var(--hm-amber) !important;
	color: var(--hm-n-950) !important;
}
.hm-btn--ghost .elementor-button { background: transparent !important; border: 1px solid currentColor !important; color: var(--hm-n-0) !important; }

/* ---------- Hero ---------- */
.hm-hero { border-radius: var(--hm-radius); overflow: hidden; }
.hm-hero > .elementor-element-overlay, .hm-hero::before {
	background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 35%, rgba(0,0,0,0) 62%) !important;
}
.hm-glass { background: rgba(15,13,10,.37); backdrop-filter: blur(10px); border-radius: 8px; }

/* Countdown (shortcode [hm_countdown]) */
.hm-countdown { display: flex; gap: 6px; }
.hm-countdown span { flex: 1; min-width: 56px; background: rgba(255,255,255,.3); border-radius: 8px; padding: 10px 6px 8px; text-align: center; color: #fff; font-size: 30px; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.hm-countdown span small { display: block; margin-top: 4px; font: 500 9px var(--hm-mono); letter-spacing: .04em; }
.hm-countdown--light span { background: var(--hm-n-0); color: var(--hm-n-950); }

/* Shops rail */
.hm-rail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; background: #fff; padding: 22px 44px; border-radius: var(--hm-radius); }
.hm-rail b { font-size: 22px; font-weight: 500; color: var(--hm-n-700); display: inline-flex; gap: 10px; align-items: center; }
.hm-rail b::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--hm-n-700); display: inline-block; }
.hm-rail .hm-eyebrow { color: var(--hm-n-950); }
.hm-rail .hm-more { font: 500 11px var(--hm-mono); color: var(--hm-blue-900); }

/* Category tiles */
.hm-cat img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; background: var(--hm-n-100); }
.hm-cat .elementor-image-box-title { font-size: 15px !important; margin: 10px 0 2px !important; }
.hm-cat .elementor-image-box-description { font: 500 10px var(--hm-mono) !important; color: var(--hm-n-500) !important; }

/* Steps / guarantee rows */
.hm-step { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; }
.hm-tag { display: inline-block; font: 500 10px var(--hm-mono); letter-spacing: .04em; padding: 6px 10px; border: 1px solid var(--hm-n-200); border-radius: var(--hm-pill); }

/* ---------- WooCommerce product cards ---------- */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(var(--hm-cols, 5), minmax(0,1fr)); gap: 16px; margin: 0 !important; }
.woocommerce ul.products.columns-4 { --hm-cols: 4; }
.woocommerce ul.products.columns-3 { --hm-cols: 3; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
	width: auto !important; margin: 0 !important; float: none !important;
	background: #fff; border-radius: var(--hm-radius); padding: 12px 12px 16px; position: relative;
	transition: box-shadow .2s ease, transform .2s ease;
}
.woocommerce ul.products li.product:hover { box-shadow: 0 16px 40px rgba(0,0,0,.08); transform: translateY(-2px); }
.woocommerce ul.products li.product a img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; background: var(--hm-n-100); margin-bottom: 12px !important; }
.woocommerce ul.products li.product .hm-loop-cat { font: 500 10px var(--hm-mono); color: var(--hm-n-500); text-transform: uppercase; letter-spacing: .04em; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px !important; font-weight: 500; color: var(--hm-n-900); padding: 4px 0 8px !important; line-height: 1.3; }
.woocommerce ul.products li.product .price { color: var(--hm-n-950) !important; font-weight: 600; font-size: 17px !important; }
.woocommerce ul.products li.product .price del { color: var(--hm-n-400); font-weight: 400; font-size: 12px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce span.onsale {
	background: var(--hm-amber) !important; color: var(--hm-n-950) !important; font: 500 10px var(--hm-mono) !important;
	border-radius: var(--hm-pill) !important; min-height: 0 !important; min-width: 0 !important; line-height: 1 !important; padding: 7px 10px !important;
	top: 20px !important; left: 20px !important; right: auto !important; margin: 0 !important;
}
.woocommerce ul.products li.product .button { margin-top: 10px !important; width: 100%; text-align: center; }
.star-rating span::before, .star-rating::before { color: var(--hm-amber); }

/* Single product */
.single-product div.product .product_title { font-size: clamp(28px, 3vw, 44px); letter-spacing: -.04em; }
.single-product div.product p.price { font-size: 28px !important; color: var(--hm-n-950) !important; font-weight: 600; }
.single-product div.product .woocommerce-product-gallery img { border-radius: var(--hm-radius); }
.single-product .quantity .qty { border-radius: var(--hm-pill); border: 1px solid var(--hm-n-200); height: 48px; }
.woocommerce-tabs ul.tabs li { border-radius: var(--hm-pill) !important; }
.hm-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
.hm-trust div { background: var(--hm-amber-100); border-radius: 8px; padding: 12px; font-size: 13px; }
.hm-trust b { display: block; font: 500 10px var(--hm-mono); color: var(--hm-amber-700); margin-bottom: 4px; }

/* Cart / checkout */
.woocommerce table.shop_table { border-radius: var(--hm-radius); background: #fff; border: 0; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container .select2-selection {
	border: 1px solid var(--hm-n-200); border-radius: 8px; padding: 12px 14px; background: #fff;
}
.woocommerce-checkout #payment { background: #fff !important; border-radius: var(--hm-radius); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--hm-amber) !important; border-radius: 8px; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--hm-amber-600) !important; }

/* Footer wordmark */
.hm-wordmark .elementor-heading-title { font-size: clamp(64px, 15vw, 220px); line-height: .8; letter-spacing: -.06em; color: rgba(255,255,255,.08); white-space: nowrap; }

/* ---------- Home template blocks (elementor/homemate-home.json) ---------- */
.hm-hero-card { background: rgba(15,13,10,.45); backdrop-filter: blur(10px); border-radius: 12px; padding: 16px 18px; color: #fff; max-width: 320px; margin-left: auto; }
.hm-hero-card span, .hm-hero-timer > span { display: block; font: 500 10px var(--hm-mono); letter-spacing: .04em; color: var(--hm-amber); margin-bottom: 6px; }
.hm-hero-card b { display: block; font-size: 17px; font-weight: 500; }
.hm-hero-card em { display: block; font-style: normal; font-weight: 600; margin: 4px 0 10px; }
.hm-hero-card s { color: var(--hm-n-300); font-weight: 400; font-size: 12px; margin-left: 6px; }
.hm-hero-card a { font: 500 11px var(--hm-mono); color: #fff; text-decoration: none; }
.hm-hero-timer { max-width: 320px; margin: 10px 0 0 auto; background: rgba(15,13,10,.37); backdrop-filter: blur(10px); border-radius: 12px; padding: 14px; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.hm-chips a { font: 500 11px var(--hm-mono); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; padding: 9px 14px; border-radius: var(--hm-pill); background: #fff; color: var(--hm-n-700); }
.hm-chips a:first-child, .hm-chips a:hover { background: var(--hm-n-950); color: #fff; }
.hm-dark .woocommerce ul.products li.product { background: #fff; }
.hm-dark .woocommerce ul.products li.product .woocommerce-loop-product__title, .hm-dark .woocommerce ul.products li.product .price { color: var(--hm-n-950) !important; }
.hm-stars { color: var(--hm-amber-600); font-size: 18px; letter-spacing: 2px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hm-stars span { font: 500 10px var(--hm-mono); letter-spacing: .04em; color: #1f7a4d; background: #e8f5ee; padding: 6px 10px; border-radius: var(--hm-pill); }
.hm-score { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.hm-score b { font-size: 52px; font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--hm-n-950); }
.hm-score span { font: 500 10px/1.6 var(--hm-mono); color: var(--hm-n-500); }
.hm-zero { display: flex; gap: 14px; align-items: flex-end; margin: 32px 0 24px; }
.hm-zero b { font-size: clamp(56px, 7vw, 94px); font-weight: 500; letter-spacing: -.05em; line-height: .9; color: var(--hm-n-950); }
.hm-zero span { max-width: 140px; font-size: 14px; color: var(--hm-n-700); }
.hm-steps { display: grid; gap: 10px; }
.hm-step { display: grid; grid-template-columns: 36px 1fr auto; gap: 16px; align-items: start; background: #fff; border: 0; border-radius: var(--hm-radius); padding: 20px; }
.hm-step i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; background: var(--hm-n-100); display: grid; place-items: center; font-weight: 600; }
.hm-step small { font: 500 10px var(--hm-mono); letter-spacing: .04em; color: var(--hm-n-500); text-transform: uppercase; }
.hm-step h4 { margin: 4px 0 6px; font-size: 20px; }
.hm-step p { margin: 0; font-size: 14px; color: var(--hm-n-600); }
.hm-step > span { font: 500 10px var(--hm-mono); letter-spacing: .04em; border: 1px solid var(--hm-n-200); border-radius: var(--hm-pill); padding: 6px 10px; white-space: nowrap; }
.hm-step.is-dark { background: var(--hm-n-950); color: #fff; }
.hm-step.is-dark i { background: var(--hm-amber); color: var(--hm-n-950); }
.hm-step.is-dark h4 { color: #fff; }
.hm-step.is-dark p, .hm-step.is-dark small { color: var(--hm-n-300); }
.hm-step.is-dark > span { border-color: var(--hm-n-700); }

/* Header */
.hm-header .elementor-search-form__container { border-radius: var(--hm-pill) !important; overflow: hidden; background: #fff; }
.hm-head-right .elementor-widget-wrap { display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: 6px; }
.hm-head-right .elementor-widget-wrap > .elementor-element { width: auto; margin: 0 !important; }
.hm-icons { display: flex; gap: 6px; }
.hm-icons a { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--hm-n-950); font-size: 18px; }

/* Footer */
.hm-fcol h5 { font: 500 11px var(--hm-mono); letter-spacing: .04em; color: var(--hm-n-400); text-transform: uppercase; margin: 0 0 14px; }
.hm-fcol a { display: block; color: #fff; text-decoration: none; font-size: 15px; margin-bottom: 10px; }
.hm-fcol a:hover { color: var(--hm-amber); }
.hm-social { display: flex; gap: 22px; justify-content: flex-end; }
.hm-social a { font: 500 11px var(--hm-mono); color: var(--hm-n-400); text-decoration: none; letter-spacing: .04em; }
.hm-footer .elementor-field-group .elementor-field { border-radius: var(--hm-pill) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.woocommerce ul.products { --hm-cols: 3 !important; }
}
@media (max-width: 767px) {
	.woocommerce ul.products { --hm-cols: 2 !important; gap: 10px; }
	.hm-rail { padding: 16px; justify-content: flex-start; }
	.hm-rail b { font-size: 16px; }
	.hm-trust { grid-template-columns: 1fr; }
	.hm-step { grid-template-columns: 32px 1fr; }
	.hm-step > span { grid-column: 2; justify-self: start; }
	.hm-chips, .hm-score, .hm-social { justify-content: flex-start; }
	.hm-hero-card, .hm-hero-timer { margin-left: 0; }
	.hm-countdown span { min-width: 0; font-size: 24px; }
}
