/*
Theme Name: ShopMart
Theme URI:
Description: WooCommerce Block Theme for ShopMart Greek e-commerce store
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shopmart
*/

/* ─────────────────────────────────────────────────────────────────────────────
   BASE RESETS
───────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	padding: 0;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	color: #1A1A1A;
	background: #FFFFFF;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
	color: #2B6E3D;
	text-decoration: none;
	transition: color 0.2s ease;
}
a:hover { color: #1C5A30; }

h1, h2, h3, h4, h5, h6 {
	font-family: 'DM Serif Display', serif;
	margin: 0 0 0.5em;
	line-height: 1.2;
}

p { margin: 0 0 1em; line-height: 1.6; }
ul, ol { margin: 0; padding: 0; }

/* ─────────────────────────────────────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────────────────────────────────────── */

.alignfull { max-width: 100%; width: 100%; }

.alignwide {
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TOP UTILITY BAR  (#1C2E22, 32px)
───────────────────────────────────────────────────────────────────────────── */

.shopmart-header .wp-block-group:first-child {
	height: 32px;
	display: flex;
	align-items: center;
}

/* ─────────────────────────────────────────────────────────────────────────────
   MAIN HEADER SEARCH  (Pencil: height 42, cornerRadius 4)
───────────────────────────────────────────────────────────────────────────── */

.wp-block-search__input {
	border: 1px solid #EEEEEE;
	border-radius: 4px 0 0 4px;
	padding: 10px 16px;
	height: 42px;
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	color: #9E9E9E;
	flex: 1;
}

.wp-block-search__button {
	background-color: #2B6E3D;
	color: #FFFFFF;
	border: none;
	border-radius: 0 4px 4px 0;
	padding: 10px 18px;
	height: 42px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wp-block-search__button:hover { background-color: #1C5A30; }

/* ─────────────────────────────────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────────────────────────────────── */

.wp-block-navigation .wp-block-navigation-item__content {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #1A1A1A;
	padding: 14px 16px;
	transition: color 0.2s ease;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: #2B6E3D;
}

.shopmart-browse-btn {
	height: 50px;
	display: flex;
	align-items: center;
}

.shopmart-browse-label { margin: 0 !important; white-space: nowrap; }

/* ─────────────────────────────────────────────────────────────────────────────
   HERO CATEGORY SIDEBAR
   Pencil: item height 42px, padding [0,18], active: #E6F0E8 + 3px left #2B6E3D
───────────────────────────────────────────────────────────────────────────── */

.shopmart-category-sidebar .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	height: 42px;
	padding: 0 18px;
	font-size: 14px;
	font-weight: 500;
	color: #1A1A1A;
	border-left: 3px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.shopmart-category-sidebar .wp-block-navigation-item__content:hover {
	background: #E6F0E8;
	border-left-color: #2B6E3D;
	color: #1C2E22;
}

.shopmart-category-sidebar .current-cat > .wp-block-navigation-item__content,
.shopmart-cat-nav .current-menu-item > a {
	background: #E6F0E8;
	border-left: 3px solid #2B6E3D;
	font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BENEFITS STRIP
   Pencil: icon 28px #2B6E3D, gap 12px, title 14px/700, sub 12px/#777777, padding 14px
───────────────────────────────────────────────────────────────────────────── */

.shopmart-benefits-strip {
	background: #F7F7F7;
	border-top: 1px solid #EEEEEE;
	border-bottom: 1px solid #EEEEEE;
}

/* Emoji icons — scale to match Pencil 28px icon size */
.shopmart-benefits-strip .wp-block-paragraph:has(span),
.shopmart-benefits-strip p[style*="font-size:32px"],
.shopmart-benefits-strip p[style*="font-size: 32px"] {
	font-size: 28px !important;
	line-height: 1;
	color: #2B6E3D !important;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Benefit item title (first p in text group) */
.shopmart-benefits-strip .wp-block-group .wp-block-group p:first-child {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #1A1A1A !important;
	margin: 0 !important;
	line-height: 1.3;
}

/* Benefit item subtitle */
.shopmart-benefits-strip .wp-block-group .wp-block-group p:last-child {
	font-size: 12px !important;
	color: #777777 !important;
	margin: 0 !important;
}

/* Gap between icon and text in each benefit */
.shopmart-benefits-strip .wp-block-columns .wp-block-column > .wp-block-group {
	gap: 12px !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FEATURED CATEGORIES SECTION
   Pencil: label 11.5px/#D97B2A/600, title DM Serif 28px/700, sub 14px/#777777
───────────────────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────────────────
   FEATURED CATEGORY CARDS
   Pencil: cornerRadius 8, border 1px #EEEEEE, image 160px, label 13px/700/#1A1A1A
───────────────────────────────────────────────────────────────────────────── */

.shopmart-cat-card-link {
	text-decoration: none !important;
	display: block;
	color: inherit;
}

.shopmart-cat-card-link .shopmart-category-card {
	border: 1px solid #EEEEEE !important;
	border-radius: 8px !important;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.15s ease;
	background: #FFFFFF;
}

.shopmart-cat-card-link:hover .shopmart-category-card {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
	transform: translateY(-3px);
}

.shopmart-cat-card-link .wp-block-image { margin: 0; }

.shopmart-cat-card-link .wp-block-image img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
	border-radius: 0;
}

/* Label — Pencil: 13px/700/#1A1A1A, letterSpacing 0.5, padding 14px/12px */
.shopmart-cat-card-link .wp-block-paragraph {
	text-align: center;
	font-family: 'DM Sans', sans-serif !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #1A1A1A !important;
	letter-spacing: 0.5px;
	padding: 14px 12px !important;
	margin: 0 !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PRODUCT SECTION HEADER
   Pencil: title 18px/800 + 2px green underline; row 2px #EEEEEE separator
───────────────────────────────────────────────────────────────────────────── */

.shopmart-section-header-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	border-bottom: 2px solid #EEEEEE;
	padding-bottom: 12px;
	margin-bottom: 24px;
}

/* Title wrapper — green underline sits on the grey separator */
.shopmart-section-title-wrap {
	padding-bottom: 14px;
	border-bottom: 2px solid #2B6E3D;
	margin-bottom: -14px;
}

.shopmart-section-title-wrap h3,
.shopmart-section-title-wrap .wp-block-heading {
	font-family: 'DM Sans', sans-serif !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	color: #1A1A1A !important;
	letter-spacing: 0.5px;
	margin: 0 !important;
	line-height: 1.3;
}

.shopmart-section-sublabel {
	color: #D97B2A !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 2px;
	text-transform: uppercase;
	display: block;
	margin: 0 0 4px !important;
}

/* "Δείτε Όλα" outlined button — Pencil: 1px #2B6E3D border, 11px/700, padding [8,16] */
.shopmart-view-all-btn,
a.shopmart-view-all-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
	border: 1px solid #2B6E3D !important;
	border-radius: 4px !important;
	padding: 8px 16px !important;
	color: #2B6E3D !important;
	font-family: 'DM Sans', sans-serif !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.5px;
	text-decoration: none !important;
	background: transparent !important;
	transition: background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.shopmart-view-all-btn:hover,
a.shopmart-view-all-btn:hover {
	background: #2B6E3D !important;
	color: #FFFFFF !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NEWSLETTER SECTION
───────────────────────────────────────────────────────────────────────────── */

.shopmart-newsletter-form {
	display: flex;
	max-width: 520px;
	margin: 0 auto 16px;
}

.shopmart-newsletter-form input[type="email"] {
	flex: 1;
	padding: 14px 18px;
	border: none;
	border-radius: 4px 0 0 4px;
	font-size: 14px;
	color: #1A1A1A;
	background: #FFFFFF;
	font-family: 'DM Sans', sans-serif;
	outline: none;
}

.shopmart-newsletter-form button {
	background: #D97B2A;
	color: #FFFFFF;
	border: none;
	padding: 14px 24px;
	border-radius: 0 4px 4px 0;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	font-family: 'DM Sans', sans-serif;
	white-space: nowrap;
	transition: background 0.2s ease;
}

.shopmart-newsletter-form button:hover { background: #C06820; }

/* Footer newsletter */
.shopmart-footer-newsletter {
	display: flex;
	gap: 0;
}

.shopmart-footer-newsletter input[type="email"] {
	flex: 1;
	padding: 10px 14px;
	border: none;
	border-radius: 4px 0 0 4px;
	font-size: 13px;
	background: #2B3E2F;
	color: #FFFFFF;
	font-family: 'DM Sans', sans-serif;
	outline: none;
}

.shopmart-footer-newsletter input[type="email"]::placeholder { color: #7FB58B; }

.shopmart-footer-newsletter button {
	background: #D97B2A;
	color: #FFFFFF;
	border: none;
	padding: 10px 16px;
	border-radius: 0 4px 4px 0;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-family: 'DM Sans', sans-serif;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER  (Pencil: #1C2E22 bg, DM Sans 13px, links #AAAAAA)
───────────────────────────────────────────────────────────────────────────── */

.shopmart-footer { font-family: 'DM Sans', sans-serif; }

.shopmart-footer-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.shopmart-footer-list li { margin-bottom: 10px; }

.shopmart-footer-list a {
	color: #AAAAAA !important;
	font-size: 13px;
	text-decoration: none;
	transition: color 0.2s ease;
}

.shopmart-footer-list a:hover { color: #FFFFFF !important; }

.shopmart-footer .wp-block-navigation .wp-block-navigation-item__content {
	color: #777777 !important;
	font-size: 12px;
	padding: 4px 8px;
}

.shopmart-footer .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: #FFFFFF !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SHOP PAGE — Category pills
───────────────────────────────────────────────────────────────────────────── */

.shopmart-cat-pill {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none !important;
	transition: background 0.15s ease, color 0.15s ease;
	border: 1px solid #EEEEEE;
	background: #F7F7F7;
	color: #1A1A1A;
}

.shopmart-cat-pill:hover,
.shopmart-cat-pill--active {
	background: #2B6E3D !important;
	color: #FFFFFF !important;
	border-color: #2B6E3D !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BREADCRUMB
───────────────────────────────────────────────────────────────────────────── */

.shopmart-breadcrumb,
.woocommerce-breadcrumb {
	font-size: 12px;
	color: #777777;
}

.shopmart-breadcrumb a,
.woocommerce-breadcrumb a { color: #777777; }

.shopmart-breadcrumb a:hover,
.woocommerce-breadcrumb a:hover { color: #2B6E3D; }

/* ─────────────────────────────────────────────────────────────────────────────
   GLOBAL BUTTONS
───────────────────────────────────────────────────────────────────────────── */

.wp-block-button__link,
.wp-element-button {
	background-color: #2B6E3D;
	color: #FFFFFF;
	border: none;
	border-radius: 4px;
	padding: 12px 24px;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
	display: inline-block;
	text-decoration: none;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
	background-color: #1C5A30;
	color: #FFFFFF;
}

/* ─────────────────────────────────────────────────────────────────────────────
   GLOBAL FORM INPUTS
───────────────────────────────────────────────────────────────────────────── */

input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
	border: 1px solid #EEEEEE;
	border-radius: 4px;
	padding: 10px 14px;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	color: #1A1A1A;
	background: #FFFFFF;
	width: 100%;
	transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: #2B6E3D;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CATEGORY MOSAIC GRID (WoodMart-style)
───────────────────────────────────────────────────────────────────────────── */

.sm-cat-mosaic {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 15px;
	margin-top: 30px;
}

.sm-cat-mosaic-item {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px;
	border-radius: 10px;
	text-decoration: none !important;
	color: #1A1A1A !important;
	min-height: 200px;
	position: relative;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sm-cat-mosaic-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}

.sm-cat-mosaic-large {
	grid-row: 1 / 3;
	min-height: 415px;
}

.sm-cat-mosaic-icon {
	font-size: 48px;
	margin-bottom: 12px;
	display: block;
}

.sm-cat-mosaic-large .sm-cat-mosaic-icon {
	font-size: 72px;
	margin-bottom: 16px;
}

.sm-cat-mosaic-name {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: #1A1A1A;
	display: block;
}

.sm-cat-mosaic-large .sm-cat-mosaic-name {
	font-size: 18px;
}

.sm-cat-mosaic-count {
	font-size: 12px;
	color: #555;
	margin-top: 2px;
	display: block;
}

@media (max-width: 768px) {
	.sm-cat-mosaic {
		grid-template-columns: 1fr 1fr;
	}
	.sm-cat-mosaic-large {
		grid-row: auto;
		grid-column: 1 / 3;
		min-height: 200px;
	}
	.sm-cat-mosaic-item {
		min-height: 160px;
	}
}

/* ─────────────────────────────────────────────────────────────────────────────
   FEATURED PRODUCTS — Compact grid (WoodMart reference style)
───────────────────────────────────────────────────────────────────────────── */

/* Make the featured section a contained box */
.sm-featured-cols {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	overflow: hidden;
	gap: 0 !important;
}

/* Promo sidebar bigger */
.sm-promo-col {
	min-width: 280px;
	flex-basis: 280px !important;
}

.sm-promo-inner {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	border-radius: 0 !important;
}

/* Products column */
.sm-featured-prod-col {
	padding: 0 !important;
}

/* Compact product cards inside featured section */
.sm-featured-grid .wc-block-grid,
.sm-featured-grid ul.products,
.sm-featured-grid .wp-block-woocommerce-product-template {
	display: grid !important;
	grid-template-columns: repeat(5, 1fr) !important;
	gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.sm-featured-grid .wc-block-grid__product,
.sm-featured-grid ul.products li.product,
.sm-featured-grid .wc-block-grid__products .wc-block-grid__product,
.sm-featured-grid .product {
	border: none !important;
	border-right: 1px solid #f0f0f0 !important;
	border-bottom: 1px solid #f0f0f0 !important;
	border-radius: 0 !important;
	padding: 16px !important;
	margin: 0 !important;
	text-align: left;
	box-shadow: none !important;
	position: relative;
	transition: background 0.2s ease;
	display: flex !important;
	flex-direction: column !important;
}

.sm-featured-grid .wc-block-grid__product-add-to-cart,
.sm-featured-grid .wp-block-button,
.sm-featured-grid ul.products li.product .add_to_cart_button {
	margin-top: auto !important;
}

.sm-featured-grid .wc-block-grid__product:hover,
.sm-featured-grid ul.products li.product:hover,
.sm-featured-grid .product:hover {
	box-shadow: none !important;
	background: #fafcfa;
}

/* Product image */
.sm-featured-grid .wc-block-grid__product-image,
.sm-featured-grid ul.products li.product img,
.sm-featured-grid .wc-block-grid__product-image img,
.sm-featured-grid .wc-block-components-product-image img {
	height: 140px !important;
	width: auto !important;
	max-width: 100%;
	object-fit: contain !important;
	margin: 0 auto 10px !important;
	display: block;
}

/* Category label */
.sm-featured-grid .sm-product-cat,
.sm-featured-grid .wc-block-components-product-tag-list,
.sm-featured-grid .posted_in {
	display: block;
	background: none;
	color: #999 !important;
	font-size: 10px !important;
	font-weight: 500 !important;
	padding: 0;
	margin: 0 0 4px !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sm-featured-grid .sm-product-cat a,
.sm-featured-grid .posted_in a {
	color: #999 !important;
	text-decoration: none !important;
}

/* Product title */
.sm-featured-grid .wc-block-grid__product-title,
.sm-featured-grid ul.products li.product .woocommerce-loop-product__title,
.sm-featured-grid .wp-block-post-title,
.sm-featured-grid h3 {
	font-family: 'DM Sans', sans-serif !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #1A1A1A !important;
	margin: 0 0 6px !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-transform: capitalize;
}

/* SKU under title */
.sm-loop-sku {
	display: block;
	font-size: 10px;
	color: #1A1A1A;
	font-family: 'DM Sans', sans-serif;
	font-weight: 700;
	margin: 0 0 4px;
	text-align: left;
}

/* Price */
.sm-featured-grid .wc-block-grid__product-price,
.sm-featured-grid ul.products li.product .price,
.sm-featured-grid .wc-block-components-product-price {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #2B6E3D !important;
	margin: 4px 0 10px !important;
}

.sm-featured-grid .wc-block-components-product-price del,
.sm-featured-grid ul.products li.product .price del {
	color: #999 !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	margin-left: 4px;
}

/* Add to cart button — full width rounded */
.sm-featured-grid .wc-block-grid__product-add-to-cart .wp-block-button__link,
.sm-featured-grid ul.products li.product .button,
.sm-featured-grid .wp-block-button .wp-block-button__link,
.sm-featured-grid .add_to_cart_button {
	display: block !important;
	width: 100% !important;
	text-align: center;
	background: #2B6E3D !important;
	color: #fff !important;
	border: none !important;
	border-radius: 25px !important;
	padding: 12px 16px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: background 0.2s ease;
	box-sizing: border-box;
}

.sm-featured-grid .wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.sm-featured-grid ul.products li.product .button:hover,
.sm-featured-grid .add_to_cart_button:hover {
	background: #1C5A30 !important;
}

/* Also apply globally to all product cards */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
	display: block !important;
	width: 100% !important;
	text-align: center;
	background: #2B6E3D !important;
	color: #fff !important;
	border: none !important;
	border-radius: 25px !important;
	padding: 12px 16px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: background 0.2s ease;
	box-sizing: border-box;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
	background: #1C5A30 !important;
}

/* All product cards — flex column + push button down */
.woocommerce ul.products li.product {
	display: flex !important;
	flex-direction: column !important;
}

.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product > .button {
	margin-top: auto !important;
}

/* Product title global */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: 'DM Sans', sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #1A1A1A !important;
	line-height: 1.35 !important;
}

/* Product price global */
.woocommerce ul.products li.product .price {
	color: #2B6E3D !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	margin: 6px 0 12px !important;
}

/* Category text above title — global */
.woocommerce ul.products li.product .sm-product-cat,
.woocommerce ul.products li.product .posted_in,
.sm-product-cat,
.wp-block-post-terms {
	font-size: 11px !important;
	color: #999 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px;
	margin: 0 0 4px !important;
	text-decoration: none !important;
}

.sm-product-cat a,
.wp-block-post-terms a {
	color: #999 !important;
	text-decoration: none !important;
}

/* Product cards global — Gutenberg Product Collection blocks */
.sm-ps-grid .product,
.sm-ps-grid .wp-block-post,
.sm-ps-grid .wc-block-grid__product {
	display: flex !important;
	flex-direction: column !important;
	padding: 16px !important;
	border: 1px solid #f0f0f0 !important;
	border-radius: 8px !important;
	transition: box-shadow 0.2s ease;
}

.sm-ps-grid .product:hover,
.sm-ps-grid .wp-block-post:hover {
	box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
}

/* Product Collection button — full width rounded */
.sm-ps-grid .wp-block-button .wp-block-button__link,
.sm-ps-grid .add_to_cart_button,
.wp-block-woocommerce-product-button .wp-block-button__link {
	display: block !important;
	width: 100% !important;
	text-align: center !important;
	background: #2B6E3D !important;
	color: #fff !important;
	border: none !important;
	border-radius: 25px !important;
	padding: 12px 16px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: background 0.2s ease;
	box-sizing: border-box;
	margin-top: auto !important;
}

.sm-ps-grid .wp-block-button .wp-block-button__link:hover,
.wp-block-woocommerce-product-button .wp-block-button__link:hover {
	background: #1C5A30 !important;
}

/* Product Collection title */
.sm-ps-grid .wp-block-post-title,
.sm-ps-grid .wp-block-post-title a {
	font-family: 'DM Sans', sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #1A1A1A !important;
	line-height: 1.35 !important;
	text-decoration: none !important;
}

/* Product Collection price */
.sm-ps-grid .wc-block-components-product-price,
.sm-ps-grid .wc-block-grid__product-price {
	color: #2B6E3D !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	margin: 6px 0 12px !important;
}

@media (max-width: 768px) {
	.sm-featured-cols {
		flex-direction: column !important;
	}
	.sm-promo-col {
		min-width: 100% !important;
	}
	.sm-featured-grid .wc-block-grid,
	.sm-featured-grid ul.products,
	.sm-featured-grid .wp-block-woocommerce-product-template {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* ─────────────────────────────────────────────────────────────────────────────
   HERO WITH SIDEBAR (WoodMart-style)
───────────────────────────────────────────────────────────────────────────── */

.sm-hero-section { margin-bottom: 0 !important; padding: 0 !important; }

.sm-hero-with-sidebar {
	display: flex;
	gap: 0;
	max-width: 1440px;
	margin: 0 auto;
	min-height: 420px;
}

.sm-hero-cat-sidebar {
	width: 260px;
	min-width: 260px;
	background: #fff;
	border-right: 1px solid #eee;
	display: flex;
	flex-direction: column;
	padding: 8px 0;
}

.sm-hero-cat-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 20px;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #1A1A1A;
	text-decoration: none;
	border-left: 3px solid transparent;
	transition: all 0.15s ease;
}

.sm-hero-cat-item svg { margin-left: auto; color: #ccc; }
.sm-hero-cat-item:hover { background: #f0f7f2; border-left-color: #2B6E3D; color: #2B6E3D; }
.sm-hero-cat-item:hover svg { color: #2B6E3D; }
.sm-hero-cat-item span:first-child { font-size: 16px; width: 20px; text-align: center; }

.sm-hero-cat-all {
	display: block;
	padding: 12px 20px;
	font-size: 13px;
	font-weight: 600;
	color: #2B6E3D;
	text-decoration: none;
	border-top: 1px solid #eee;
	margin-top: auto;
}
.sm-hero-cat-all:hover { background: #f0f7f2; }

.sm-hero-banner-area {
	flex: 1;
	background: linear-gradient(135deg, #f0f7f2 0%, #e8f5ec 50%, #dff0e4 100%);
	display: flex;
	align-items: center;
	padding: 50px 60px;
}

.sm-hero-badge {
	display: inline-block;
	background: #D97B2A;
	color: #fff;
	font-family: 'DM Sans', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	padding: 5px 14px;
	border-radius: 3px;
	margin-bottom: 20px;
}

.sm-hero-title {
	font-family: 'DM Serif Display', serif;
	font-size: 42px;
	line-height: 1.15;
	color: #1A1A1A;
	margin: 0 0 16px;
}

.sm-hero-subtitle {
	font-size: 15px;
	color: #555;
	line-height: 1.6;
	max-width: 420px;
	margin: 0 0 25px;
}

.sm-hero-cta-btn {
	display: inline-block;
	background: #2B6E3D;
	color: #fff;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 600;
	padding: 14px 30px;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.2s ease;
}
.sm-hero-cta-btn:hover { background: #1C5A30; color: #fff; }

@media (max-width: 768px) {
	.sm-hero-with-sidebar { flex-direction: column; }
	.sm-hero-cat-sidebar {
		width: 100%; min-width: 100%;
		flex-direction: row; overflow-x: auto;
		padding: 10px; gap: 5px;
	}
	.sm-hero-cat-item {
		white-space: nowrap; padding: 8px 14px;
		font-size: 12px; border-left: none;
		border-radius: 20px; background: #f7f7f7;
	}
	.sm-hero-cat-item svg { display: none; }
	.sm-hero-cat-all { display: none; }
	.sm-hero-banner-area { padding: 30px 20px; }
	.sm-hero-title { font-size: 28px; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   HERO SLIDER (WoodMart-style)
───────────────────────────────────────────────────────────────────────────── */

.sm-hero-slider {
	flex: 1;
	position: relative;
	overflow: hidden;
	min-height: 420px;
}

.sm-hero-slides {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 420px;
}

.sm-hero-slide {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	display: flex;
	align-items: center;
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
}

.sm-hero-slide--active {
	opacity: 1;
	pointer-events: auto;
	position: relative;
}

.sm-hero-slide-content {
	padding: 50px 60px;
	max-width: 560px;
}

/* Dots */
.sm-hero-dots {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 2;
}

.sm-hero-dot {
	width: 32px;
	height: 4px;
	border: none;
	border-radius: 2px;
	background: rgba(0,0,0,0.15);
	cursor: pointer;
	padding: 0;
	transition: all 0.3s ease;
}

.sm-hero-dot--active {
	background: #2B6E3D;
	width: 48px;
}

/* Arrows */
.sm-hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(255,255,255,0.85);
	color: #333;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	opacity: 0;
}

.sm-hero-slider:hover .sm-hero-arrow {
	opacity: 1;
}

.sm-hero-arrow:hover {
	background: #fff;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sm-hero-arrow--prev { left: 16px; }
.sm-hero-arrow--next { right: 16px; }

@media (max-width: 768px) {
	.sm-hero-slider {
		min-height: 300px;
	}
	.sm-hero-slides {
		min-height: 300px;
	}
	.sm-hero-slide-content {
		padding: 30px 24px;
	}
	.sm-hero-title {
		font-size: 28px !important;
	}
	.sm-hero-arrow {
		width: 32px;
		height: 32px;
		opacity: 1;
	}
}


/* ─────────────────────────────────────────────────────────────────────────────
   MEGA MENU SIDEBAR (healthcare24-style flyout)
───────────────────────────────────────────────────────────────────────────── */

.sm-mega-sidebar {
	width: 260px;
	min-width: 260px;
	background: #fff;
	border-right: 1px solid #eee;
	display: flex;
	flex-direction: column;
	padding: 0;
	position: relative;
	z-index: 10;
}

.sm-mega-item {
	position: relative;
}

.sm-mega-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 18px;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #1A1A1A;
	text-decoration: none;
	border-left: 3px solid transparent;
	transition: all .15s ease;
}

.sm-mega-link:hover {
	background: #f0f7f2;
	border-left-color: #2B6E3D;
	color: #2B6E3D;
}

.sm-mega-emoji {
	font-size: 16px;
	width: 20px;
	text-align: center;
	flex-shrink: 0;
}

.sm-mega-name {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sm-mega-chevron {
	color: #ccc;
	flex-shrink: 0;
	margin-left: auto;
}

.sm-mega-link:hover .sm-mega-chevron {
	color: #2B6E3D;
}

.sm-mega-all-link {
	display: block;
	padding: 12px 18px;
	font-size: 13px;
	font-weight: 600;
	color: #2B6E3D;
	text-decoration: none;
	border-top: 1px solid #eee;
	margin-top: auto;
}

.sm-mega-all-link:hover {
	background: #f0f7f2;
}

/* Subcategory flyout - Level 2 */
.sm-mega-sub {
	position: absolute;
	top: 0;
	left: 100%;
	width: 280px;
	background: #fff;
	border: 1px solid #eee;
	border-left: none;
	box-shadow: 4px 4px 20px rgba(0,0,0,0.08);
	display: none;
	z-index: 20;
	max-height: 420px;
	overflow-y: auto;
}

.sm-mega-item--has-sub:hover > .sm-mega-sub {
	display: block;
}

.sm-mega-item--has-sub:hover > .sm-mega-link {
	background: #f0f7f2;
	border-left-color: #2B6E3D;
	color: #2B6E3D;
}

.sm-mega-sub-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px 10px;
	border-bottom: 1px solid #f0f0f0;
}

.sm-mega-sub-title {
	font-family: 'DM Sans', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #1A1A1A;
}

.sm-mega-sub-all {
	font-size: 13px;
	font-weight: 600;
	color: #2B6E3D;
	text-decoration: none;
}

.sm-mega-sub-all:hover {
	text-decoration: underline;
}

.sm-mega-sub-list {
	padding: 6px 0;
}

.sm-mega-sub-link {
	display: flex;
	align-items: center;
	padding: 9px 18px;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #333;
	text-decoration: none;
	transition: all .12s ease;
}

.sm-mega-sub-link:hover {
	background: #f8faf8;
	color: #2B6E3D;
}

.sm-mega-sub-link .sm-mega-chevron {
	margin-left: auto;
}

/* Grandchild flyout - Level 3 */
.sm-mega-sub-item {
	position: relative;
}

.sm-mega-grand {
	position: absolute;
	top: 0;
	left: 100%;
	width: 260px;
	background: #fff;
	border: 1px solid #eee;
	border-left: none;
	box-shadow: 4px 4px 20px rgba(0,0,0,0.08);
	display: none;
	z-index: 30;
	max-height: 420px;
	overflow-y: auto;
}

.sm-mega-sub-item--has-sub:hover > .sm-mega-grand {
	display: block;
}

.sm-mega-sub-item--has-sub:hover > .sm-mega-sub-link {
	background: #f8faf8;
	color: #2B6E3D;
	font-weight: 500;
}

/* Mobile: collapse to simple list */
@media (max-width: 768px) {
	.sm-mega-sidebar {
		width: 100%;
		min-width: 100%;
		flex-direction: row;
		overflow-x: auto;
		padding: 10px;
		gap: 5px;
		border-right: none;
		border-bottom: 1px solid #eee;
	}
	.sm-mega-link {
		white-space: nowrap;
		padding: 8px 14px;
		font-size: 12px;
		border-left: none;
		border-radius: 20px;
		background: #f7f7f7;
	}
	.sm-mega-chevron,
	.sm-mega-sub,
	.sm-mega-grand,
	.sm-mega-all-link {
		display: none !important;
	}
}


/* Mega menu count badge */
.sm-mega-count {
	font-size: 11px;
	color: #999;
	margin-left: auto;
	flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HEADER DROPDOWN - Homepage open as sidebar
───────────────────────────────────────────────────────────────────────────── */

.sm-cat-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 100;
	background: #fff;
	border: 1px solid #eee;
	border-top: none;
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
	min-width: 260px;
}

.sm-cat-dropdown--open {
	display: block;
}

/* On homepage, position dropdown as sidebar aligned with slider */
body.home .sm-cat-dropdown--open,
body.page-template-front-page .sm-cat-dropdown--open {
	position: absolute;
	top: 100%;
	left: 0;
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Override mega-sidebar width when inside dropdown */
.sm-cat-dropdown .sm-mega-sidebar {
	width: 260px;
	min-width: 260px;
	max-height: 460px;
	overflow-y: auto;
	border-right: none;
}

