/*
Theme Name: ShopMart
Theme URI:
Description: WooCommerce Block Theme for ShopMart Greek e-commerce store
Version: 1.0.6
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: #1E3A5F;
	text-decoration: none;
	transition: color 0.2s ease;
}
a:hover { color: #16304F; }

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  (#14263F, 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: #1E3A5F;
	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: #16304F; }

/* ─────────────────────────────────────────────────────────────────────────────
   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: #1E3A5F;
}

.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 #1E3A5F
───────────────────────────────────────────────────────────────────────────── */

.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: #1E3A5F;
	color: #14263F;
}

.shopmart-category-sidebar .current-cat > .wp-block-navigation-item__content,
.shopmart-cat-nav .current-menu-item > a {
	background: #E6F0E8;
	border-left: 3px solid #1E3A5F;
	font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BENEFITS STRIP
   Pencil: icon 28px #1E3A5F, 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: #1E3A5F !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/#1E3A5F/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 #1E3A5F;
	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: #1E3A5F !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 #1E3A5F 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 #1E3A5F !important;
	border-radius: 4px !important;
	padding: 8px 16px !important;
	color: #1E3A5F !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: #1E3A5F !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: #1E3A5F;
	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: #16304F; }

/* 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: #1B2E47;
	color: #FFFFFF;
	font-family: 'DM Sans', sans-serif;
	outline: none;
}

.shopmart-footer-newsletter input[type="email"]::placeholder { color: #8CA3C0; }

.shopmart-footer-newsletter button {
	background: #1E3A5F;
	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: #14263F 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: #1E3A5F !important;
	color: #FFFFFF !important;
	border-color: #1E3A5F !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: #1E3A5F; }

/* ─────────────────────────────────────────────────────────────────────────────
   GLOBAL BUTTONS
───────────────────────────────────────────────────────────────────────────── */

.wp-block-button__link,
.wp-element-button {
	background-color: #1E3A5F;
	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: #16304F;
	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: #1E3A5F;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FEATURED PRODUCTS — TABBED CAROUSEL (homepage shortcode [sm_fp_section])
   [SM_FP_SECTION_v2_CSS_BEGIN]
───────────────────────────────────────────────────────────────────────────── */

.sm-fp-section { padding: 64px 24px; background: #FFFFFF; }
.sm-fp-inner { max-width: 1344px; margin: 0 auto; }
.sm-fp-head { text-align: center; margin: 0 auto 40px; }
.sm-fp-eyebrow {
	display: block;
	font-family: 'DM Sans', sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 2px;
	color: #777777;
	text-transform: uppercase;
	margin-bottom: 14px;
}
.sm-fp-title {
	font-family: 'DM Serif Display', serif;
	font-size: 36px;
	font-weight: 700;
	color: #1A1A1A;
	line-height: 1.2;
	margin: 0 0 14px !important;
	letter-spacing: 0.3px;
}
.sm-fp-sub {
	font-family: 'DM Sans', sans-serif;
	font-size: 15px;
	color: #777777;
	max-width: 580px;
	margin: 0 auto 28px;
	line-height: 1.6;
}
.sm-fp-tabs { display: inline-flex; gap: 36px; justify-content: center; padding: 0; }
.sm-fp-tab {
	background: transparent;
	border: 0;
	padding: 6px 0;
	cursor: pointer;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #777777;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	position: relative;
	transition: color 0.2s ease;
}
.sm-fp-tab:hover { color: #1A1A1A; }
.sm-fp-tab.is-active { color: #1A1A1A; }
.sm-fp-tab.is-active::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 2px;
	background: #1E3A5F;
	border-radius: 1px;
}
.sm-fp-panel { display: none; }
.sm-fp-panel.is-active { display: block; }

/* Carousel */
.sm-fp-carousel { position: relative; padding: 4px 0; }
.sm-fp-track-wrap { overflow: hidden; padding: 4px 0; }
.sm-fp-grid {
	display: flex;
	flex-wrap: nowrap;
	gap: 24px;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	transition: transform 0.35s ease;
	will-change: transform;
}

.sm-fp-card {
	flex: 0 0 calc((100% - 72px) / 4);
	background: #F7F7F7;
	border-radius: 8px;
	overflow: hidden;
	margin: 0 !important;
	padding: 0 !important;
	transition: box-shadow 0.2s ease, transform 0.15s ease;
	list-style: none;
	min-width: 0;
}
.sm-fp-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-3px);
}
.sm-fp-card-link {
	display: block;
	color: inherit;
	text-decoration: none !important;
}

/* Image wrapper */
.sm-fp-card-img {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #F7F7F7;
	padding: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.sm-fp-card-img img {
	max-width: 100% !important;
	max-height: 100% !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	display: block;
	margin: 0 auto;
}

/* Badges */
.sm-fp-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	font-family: 'DM Sans', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	z-index: 2;
}
.sm-fp-badge--sale { background: #1E3A5F; color: #FFFFFF; }
.sm-fp-badge--oos {
	background: #FFFFFF;
	color: #1A1A1A;
	border-radius: 14px;
	width: auto;
	height: auto;
	padding: 6px 12px;
}

/* Card meta */
.sm-fp-card-meta { padding: 14px 12px 18px; text-align: center; }
.sm-fp-card-cat {
	display: block;
	font-family: 'DM Sans', sans-serif;
	font-size: 11px;
	color: #999999;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
}
.sm-fp-card-title {
	font-family: 'DM Sans', sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #1A1A1A !important;
	margin: 0 0 8px !important;
	line-height: 1.4;
	min-height: 38px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sm-fp-card-link:hover .sm-fp-card-title { color: #1E3A5F !important; }
.sm-fp-card-price {
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #1E3A5F;
}
.sm-fp-card-price ins { text-decoration: none; color: #1E3A5F; background: transparent; }
.sm-fp-card-price del { color: #999999; font-weight: 400; margin-right: 8px; font-size: 14px; }

/* Carousel arrows */
.sm-fp-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #FFFFFF;
	border: 1px solid #EEEEEE;
	color: #1A1A1A;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
	padding: 0;
}
.sm-fp-arrow:hover:not(:disabled) {
	background: #1E3A5F;
	color: #FFFFFF;
	border-color: #1E3A5F;
}
.sm-fp-arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.sm-fp-arrow--prev { left: -22px; }
.sm-fp-arrow--next { right: -22px; }

/* Empty state */
.sm-fp-empty {
	text-align: center;
	padding: 32px 12px;
	color: #777777;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
	.sm-fp-card { flex: 0 0 calc((100% - 48px) / 3); }
}
@media (max-width: 700px) {
	.sm-fp-section { padding: 48px 16px; }
	.sm-fp-card { flex: 0 0 calc((100% - 14px) / 2); }
	.sm-fp-grid { gap: 14px; }
	.sm-fp-tabs { gap: 22px; }
	.sm-fp-tab { font-size: 12px; letter-spacing: 1px; }
	.sm-fp-title { font-size: 28px; }
	.sm-fp-card-img { padding: 18px; }
	.sm-fp-badge { width: 40px; height: 40px; font-size: 10px; }
	.sm-fp-arrow { width: 36px; height: 36px; }
	.sm-fp-arrow--prev { left: -8px; }
	.sm-fp-arrow--next { right: -8px; }
}

/* [SM_FP_SECTION_v2_CSS_END] */



/* SM_CAT_LABEL_FONT_15 — bump category label size on product cards */
.wp-block-post-terms.taxonomy-product_cat.sm-product-cat a,
.taxonomy-product_cat.sm-product-cat .wp-block-post-terms a,
.wp-block-post-terms.sm-product-cat a {
	font-size: 15px !important;
}

/* SM_FP_SIZE_FIX_v1 — shrink carousel cards and section spacing */
.sm-fp-section { padding: 44px 24px !important; }
.sm-fp-head { margin: 0 auto 24px !important; }
.sm-fp-eyebrow { font-size: 11px !important; margin-bottom: 10px !important; }
.sm-fp-title { font-size: 26px !important; margin: 0 0 10px !important; }
.sm-fp-sub { font-size: 13px !important; margin: 0 auto 20px !important; }
.sm-fp-tabs { gap: 28px !important; }
.sm-fp-tab { font-size: 12px !important; letter-spacing: 1.2px !important; padding: 4px 0 !important; }
.sm-fp-card-img { aspect-ratio: 4 / 3 !important; padding: 18px !important; }
.sm-fp-card-meta { padding: 10px 10px 14px !important; }
.sm-fp-card-cat { font-size: 10.5px !important; margin-bottom: 4px !important; }
.sm-fp-card-title { font-size: 13px !important; min-height: 34px !important; margin: 0 0 6px !important; }
.sm-fp-card-price { font-size: 14px !important; }
.sm-fp-card-price del { font-size: 12px !important; }
.sm-fp-badge { width: 38px !important; height: 38px !important; font-size: 10px !important; top: 10px !important; left: 10px !important; }
.sm-fp-badge--oos { width: auto !important; height: auto !important; padding: 5px 10px !important; }
.sm-fp-arrow { width: 36px !important; height: 36px !important; }
.sm-fp-arrow--prev { left: -18px !important; }
.sm-fp-arrow--next { right: -18px !important; }
@media (max-width: 700px) {
	.sm-fp-section { padding: 36px 14px !important; }
	.sm-fp-title { font-size: 22px !important; }
	.sm-fp-card-img { aspect-ratio: 4 / 3 !important; padding: 12px !important; }
	.sm-fp-card-title { font-size: 12px !important; min-height: 30px !important; }
	.sm-fp-badge { width: 30px !important; height: 30px !important; font-size: 9px !important; }
}
