/*
Theme Name: FurnitureWala Canada
Theme URI: https://example.com/furniturewala
Author: FurnitureWala
Author URI: https://example.com
Description: A WooCommerce-ready block theme for furniture retailers in Canada. Built entirely with core blocks and WooCommerce blocks (no page builders): a utility bar, category mega-nav, hero, shop-by-room tiles, deal grids, promo banners and a full footer, all in a deep green and golden palette.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: furniturewala
Tags: e-commerce, full-site-editing, block-patterns, block-styles, custom-colors, wide-blocks, translation-ready, one-column, two-columns, three-columns, four-columns
*/

/* --------------------------------------------------------------
 * Most styling lives in theme.json. This file only holds what
 * theme.json cannot express: layout polish, WooCommerce blocks
 * and a few component classes used by the patterns.
 * ------------------------------------------------------------ */

/* ---------- Utility bar (top strip) ---------- */
.fw-topbar { padding-block: 0.5rem; letter-spacing: 0.01em; }
.fw-topbar p { margin: 0; }
.fw-topbar a { color: var(--wp--preset--color--golden-light); text-decoration: none; }
.fw-topbar a:hover { color: #fff; text-decoration: underline; }

/* ---------- Main header ---------- */
.fw-header-main { padding-block: 1rem; border-bottom: 1px solid #e7e5de; }
.fw-site-title { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
.fw-site-title a { color: var(--wp--preset--color--primary-dark); text-decoration: none; }
.fw-search { flex: 1 1 320px; max-width: 560px; }
.fw-search .wp-block-search__inside-wrapper {
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 999px;
	overflow: hidden;
	padding: 0;
}
.fw-search .wp-block-search__input { border: 0; padding: 0.65rem 1.1rem; background: transparent; }
.fw-search .wp-block-search__button {
	margin: 0;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--primary);
	color: #fff;
	padding: 0 1.1rem;
}
.fw-search .wp-block-search__button:hover { background: var(--wp--preset--color--golden); color: var(--wp--preset--color--primary-dark); }

/* ---------- Category navigation ---------- */
.fw-navbar { background: #fff; border-bottom: 1px solid #e7e5de; }
.fw-nav { font-weight: 600; font-size: 0.9375rem; }
.fw-nav .wp-block-navigation-item__content { padding: 0.85rem 0.85rem; color: var(--wp--preset--color--ink); text-decoration: none; }
.fw-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--primary); box-shadow: inset 0 -3px 0 var(--wp--preset--color--golden); }
.fw-nav .fw-nav-deals > .wp-block-navigation-item__content { color: var(--wp--preset--color--sale); }
.fw-nav .wp-block-navigation__submenu-container { border: 1px solid #e7e5de; border-top: 3px solid var(--wp--preset--color--golden); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); min-width: 220px; }

/* ---------- Hero + tiles + banners ---------- */
.fw-hero { background-image: radial-gradient(circle at 85% 15%, rgba(201, 162, 39, 0.35), transparent 45%); }
.fw-hero .wp-block-cover__inner-container,
.fw-promo .wp-block-cover__inner-container { max-width: var(--wp--style--global--wide-size, 1320px); margin-inline: auto; }
.fw-hero a:not(.wp-block-button__link),
.fw-tile a,
.fw-promo a:not(.wp-block-button__link) { color: inherit; text-decoration: none; }
.fw-eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; font-size: 0.8125rem; margin: 0; }

.fw-tile.wp-block-cover { border-radius: 0.5rem; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.fw-tile.wp-block-cover:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(18, 53, 36, 0.22); }
.fw-tile h3 { margin: 0; }
.fw-promo.wp-block-cover { border-radius: 0.5rem; overflow: hidden; }

.fw-section-title { margin: 0; }
.fw-section-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 0.5rem;
	background: var(--wp--preset--color--golden);
	border-radius: 2px;
}

.fw-benefit h3 { margin: 0 0 0.25rem; font-size: var(--wp--preset--font-size--medium); }
.fw-benefit p { margin: 0; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }

/* ---------- Block style: Card ---------- */
.is-style-fw-card {
	background: #fff;
	border: 1px solid #e7e5de;
	border-radius: 0.5rem;
	padding: var(--wp--preset--spacing--40);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ---------- WooCommerce product grids ---------- */
.wp-block-woocommerce-product-template { gap: 1.5rem; }
.wc-block-components-product-image img,
.wp-block-woocommerce-product-image img { border-radius: 0.375rem; background: var(--wp--preset--color--cream); }
.wp-block-woocommerce-product-collection .wp-block-post-title,
.wc-block-product .wp-block-post-title { font-weight: 600; line-height: 1.3; }
.wp-block-woocommerce-product-collection .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.wp-block-woocommerce-product-collection .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); }
.wc-block-components-product-price { font-weight: 700; color: var(--wp--preset--color--primary-dark); }
.wc-block-components-product-price ins { text-decoration: none; color: var(--wp--preset--color--sale); }
.wc-block-components-product-price del { color: var(--wp--preset--color--muted); font-weight: 400; }
.wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--sale);
	color: #fff;
	border: 0;
	border-radius: 0.25rem;
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.wp-block-woocommerce-product-button .wp-block-button__link,
.wc-block-components-product-button .wp-block-button__link { width: 100%; text-align: center; }

/* ---------- WooCommerce single product ---------- */
.single-product .wc-block-components-product-price { font-size: var(--wp--preset--font-size--x-large); }
.single-product .wp-block-woocommerce-product-details .wc-tabs,
.single-product .woocommerce-tabs ul.tabs { border-bottom: 2px solid #e7e5de; }
.single-product .woocommerce-tabs ul.tabs li.active { border-bottom: 3px solid var(--wp--preset--color--golden); }

/* ---------- WooCommerce cart / checkout / notices ---------- */
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	background: var(--wp--preset--color--golden);
	color: var(--wp--preset--color--primary-dark);
	border-radius: 0.25rem;
	font-weight: 700;
}
.wc-block-components-button:not(.is-link):hover { background: var(--wp--preset--color--primary); color: #fff; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { color: var(--wp--preset--color--primary-dark); }

/* ---------- Footer ---------- */
.fw-footer a { color: var(--wp--preset--color--golden-light); text-decoration: none; }
.fw-footer a:hover { color: #fff; text-decoration: underline; }
.fw-footer .fw-linklist { list-style: none; padding: 0; margin: 0; }
.fw-footer .fw-linklist li { margin-block: 0.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
	.fw-hero.wp-block-cover { min-height: 420px !important; }
	.fw-header-main .wp-block-group { row-gap: 0.75rem; }
}
