/*
 Theme Name:   Commerce Flow Child
 Description:  Commerce Flow Child Theme
 Author:       Phoenix Development GP
 Author URI:   http://phoenixdev.gr
 Template:     commerceflow
 Version:      1.0.3
 Text Domain:  commerceflow
*/

/* ==========================================================================
   Single product gallery — square main image
   ========================================================================== */

.single-product .woocommerce-product-gallery.wd-thumbs-wrap {
	align-items: stretch;
}

.single-product .woocommerce-product-gallery .wd-gallery-images,
.single-product .woocommerce-product-gallery .wd-gallery-images .wd-carousel-inner {
	height: auto !important;
}

.single-product .woocommerce-product-gallery__wrapper.wd-carousel {
	position: relative;
	aspect-ratio: 1 / 1;
	width: 100%;
	height: auto !important;
	max-height: none !important;
	overflow: hidden !important;
}

.single-product .woocommerce-product-gallery .wd-gallery-images .wd-carousel-wrap {
	height: 100% !important;
	min-height: 100% !important;
}

.single-product .woocommerce-product-gallery .wd-gallery-images .wd-carousel-item {
	height: 100% !important;
	align-self: stretch;
}

.single-product .woocommerce-product-gallery__image {
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: #fff;
	overflow: hidden;
}

.single-product .woocommerce-product-gallery__image > a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery__image .zoomImg {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: center center !important;
}

.single-product .woocommerce-product-gallery.thumbs-position-left .wd-thumbs,
.single-product .woocommerce-product-gallery.thumbs-position-left .wd-thumbs .wd-carousel-inner {
	height: var(--wd-thumbs-height, 100%) !important;
	max-height: var(--wd-thumbs-height, 100%) !important;
	overflow: hidden !important;
}

.single-product .woocommerce-product-gallery.thumbs-position-left .wd-thumbs .wd-nav,
.single-product .woocommerce-product-gallery.thumbs-position-left .wd-thumbs .wd-arrow {
	display: flex !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.single-product .woocommerce-product-gallery .wd-thumbs .wd-carousel-wrap .wd-carousel-item {
	min-height: 0 !important;
	aspect-ratio: 1 / 1 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: #f7f7f7;
	overflow: hidden !important;
}

.single-product .woocommerce-product-gallery .wd-thumbs .wd-carousel-wrap .wd-carousel-item img {
	width: 100% !important;
	height: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: center center !important;
}

/* ==========================================================================
   Archive / shop product cards — EQUAL image boxes + aligned titles/prices
   Skip WoodMart "small" hover (list-style) cards — they need tiny uncropped thumbs.
   ========================================================================== */

/* Force square thumb with in-flow height via ::before.
   Absolute-only children can collapse height:auto boxes. */
.wd-products .wd-product:not(.wd-hover-small) .wd-product-thumb,
.wd-products .wd-product:not(.wd-hover-small) .product-element-top,
ul.products .product-grid-item:not(.wd-hover-small) .product-element-top {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	aspect-ratio: auto !important; /* use ::before instead */
	margin: 0 !important;
	overflow: hidden !important;
	background: #fff !important;
}

.wd-products .wd-product:not(.wd-hover-small) .wd-product-thumb::before,
.wd-products .wd-product:not(.wd-hover-small) .product-element-top::before,
ul.products .product-grid-item:not(.wd-hover-small) .product-element-top::before {
	content: "" !important;
	display: block !important;
	padding-top: 100% !important; /* 1:1 square */
	width: 100% !important;
}

.wd-products .wd-product:not(.wd-hover-small) .wd-product-thumb > a.product-image-link,
.wd-products .wd-product:not(.wd-hover-small) .wd-product-thumb > a.wd-product-img-link,
.wd-products .wd-product:not(.wd-hover-small) .product-element-top > a.product-image-link,
.wd-products .wd-product:not(.wd-hover-small) .product-element-top > a.wd-product-img-link,
ul.products .product-grid-item:not(.wd-hover-small) .product-element-top > a.product-image-link,
ul.products .product-grid-item:not(.wd-hover-small) .product-element-top > a.wd-product-img-link {
	position: absolute !important;
	inset: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	padding: 10px !important;
	box-sizing: border-box !important;
}

.wd-products .wd-product:not(.wd-hover-small) .wd-product-thumb img,
.wd-products .wd-product:not(.wd-hover-small) .product-element-top img,
ul.products .product-grid-item:not(.wd-hover-small) .product-element-top img {
	position: relative !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: center center !important;
	margin: 0 !important;
}

/* Hover swap image stays inside the same square */
.wd-products .wd-product:not(.wd-hover-small) .hover-img,
ul.products .product-grid-item:not(.wd-hover-small) .hover-img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	overflow: hidden !important;
	padding: 10px !important;
	box-sizing: border-box !important;
	background: #fff !important;
}

.wd-products .wd-product:not(.wd-hover-small) .hover-img img,
ul.products .product-grid-item:not(.wd-hover-small) .hover-img img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center center !important;
}

/* Align titles/prices across the row (grid cards only) */
.wd-products .wd-product:not(.wd-hover-small) .wd-entities-title,
.wd-products .wd-product:not(.wd-hover-small) .wd-product-title,
ul.products .product-grid-item:not(.wd-hover-small) .wd-entities-title {
	display: -webkit-box !important;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden !important;
	min-height: 2.6em;
	line-height: 1.3;
	margin: 10px 0 6px !important;
}

.wd-products .wd-product:not(.wd-hover-small) .price,
ul.products .product-grid-item:not(.wd-hover-small) .price {
	min-height: 1.4em;
}

/* ==========================================================================
   Homepage — coffee / tech promo strip (mid page)
   Replace flat blue demo bg with premium tech panel.
   ========================================================================== */
.wd-rs-677bcc5b9217a.vc_row,
.vc_custom_1736166499471 {
	background-image: url("/wp-content/uploads/2026/08/tech-banner-bg-v1.jpg") !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
	background-color: #121820 !important;
	box-shadow: inset 0 1px 0 rgba(160, 220, 230, 0.12);
}

.wd-rs-677bcc5b9217a .woodmart-title-container.title {
	letter-spacing: -0.02em;
	text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.wd-rs-677bcc5b9217a .btn.btn-color-white {
	background: #fff !important;
	color: #121820 !important;
	border: none !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wd-rs-677bcc5b9217a .btn.btn-color-white:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

/* ==========================================================================
   Homepage — "Καλύτερη επιλογή της εβδομάδας" only
   Demo-style small thumbs: compact, full product visible (no crop).
   ========================================================================== */
.wd-rs-677808798f4f1.wd-products .wd-product.wd-hover-small .wd-product-thumb,
.wd-rs-677808798f4f1.wd-products .wd-product.wd-hover-small .product-element-top,
.wd-rs-677808798f4f1 .wd-product.wd-hover-small .wd-product-thumb,
.wd-rs-677808798f4f1 .wd-product.wd-hover-small .product-element-top {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 72px !important;
	min-width: 72px !important;
	max-width: 72px !important;
	height: 72px !important;
	min-height: 72px !important;
	max-height: 72px !important;
	aspect-ratio: auto !important;
	padding: 0 !important;
	margin: 0 10px 0 0 !important;
	overflow: hidden !important;
	background: #fff !important;
	flex: 0 0 72px !important;
}

.wd-rs-677808798f4f1 .wd-product.wd-hover-small .wd-product-thumb::before,
.wd-rs-677808798f4f1 .wd-product.wd-hover-small .product-element-top::before {
	content: none !important;
	display: none !important;
	padding: 0 !important;
}

.wd-rs-677808798f4f1 .wd-product.wd-hover-small .wd-product-thumb > a.product-image-link,
.wd-rs-677808798f4f1 .wd-product.wd-hover-small .wd-product-thumb > a.wd-product-img-link,
.wd-rs-677808798f4f1 .wd-product.wd-hover-small .product-element-top > a.product-image-link,
.wd-rs-677808798f4f1 .wd-product.wd-hover-small .product-element-top > a.wd-product-img-link {
	position: relative !important;
	inset: auto !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 72px !important;
	height: 72px !important;
	padding: 0 !important;
}

.wd-rs-677808798f4f1 .wd-product.wd-hover-small .wd-product-thumb img,
.wd-rs-677808798f4f1 .wd-product.wd-hover-small .product-element-top img {
	position: relative !important;
	width: 72px !important;
	height: 72px !important;
	max-width: 72px !important;
	max-height: 72px !important;
	object-fit: contain !important;
	object-position: center center !important;
}

.wd-rs-677808798f4f1 .wd-product.wd-hover-small .hover-img {
	display: none !important;
}

.wd-rs-677808798f4f1 .wd-product.wd-hover-small .wd-entities-title,
.wd-rs-677808798f4f1 .wd-product.wd-hover-small .wd-product-title {
	min-height: 0 !important;
	margin: 0 0 4px !important;
	-webkit-line-clamp: 2;
}

/* ==========================================================================
   Archive toolbar — keep sort / view / per-page compact (not full width)
   WoodMart adds .wd-enabled-width { width:100% }; width:auto rules belong in
   layout shortcode CSS, but we hard-lock toolbar controls as a safety net.
   ========================================================================== */
.wd-shop-result-count.wd-enabled-width,
.wd-shop-prod-per-page.wd-enabled-width,
.wd-shop-view.wd-enabled-width,
.wd-shop-ordering.wd-enabled-width,
.wd-off-canvas-btn.wd-enabled-width {
	width: auto !important;
	max-width: 100% !important;
}

.wd-shop-ordering .woocommerce-ordering,
.wd-shop-ordering select.orderby {
	width: auto !important;
	max-width: 100%;
}

/* ==========================================================================
   Category showcase (archive) — larger circular thumbs, full product visible
   ========================================================================== */
.wd-cats .wd-cat .wd-cat-thumb,
.wd-cats .category-grid-item .category-image-wrapp {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #fff !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	/* Keep product inside the circle's inscribed square so nothing is clipped. */
	padding: 24px !important;
	box-sizing: border-box !important;
}

.wd-cats .wd-cat .wd-cat-thumb > a,
.wd-cats .wd-cat .wd-cat-thumb .wd-cat-image,
.wd-cats .wd-cat .wd-cat-thumb .category-image,
.wd-cats .category-grid-item .category-image-wrapp > a {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	margin: 0 !important;
}

.wd-cats .wd-cat .wd-cat-thumb img,
.wd-cats .category-grid-item .category-image img,
.wd-cats .wd-cat .wd-cat-thumb .wd-cat-image img {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: center center !important;
	flex: 0 1 auto !important;
}

/* Homepage / archive category carousels — bump visual size */
.wd-carousel .wd-cat .wd-cat-thumb,
.wd-cats.wd-carousel .wd-cat .wd-cat-thumb,
.wd-rs-677be830427bc.wd-cats {
	--wd-cat-img-width: 160px;
}
.wd-rs-677be830427bc .wd-cat .wd-cat-thumb,
.wd-carousel .wd-cat .wd-cat-thumb {
	width: var(--wd-cat-img-width, 160px) !important;
	max-width: 100%;
	margin-inline: auto;
}

/* "Αγορές ανά κατηγορία" — full-width evenly spaced row */
.wd-rs-6788d9e083037.wd-cats,
.wd-rs-6788d9e083037 {
	width: 100% !important;
	max-width: 100% !important;
	--wd-cat-img-width: 120px;
}
.wd-rs-6788d9e083037 .wd-carousel-wrap,
.wd-rs-6788d9e083037 .wd-carousel-inner {
	width: 100% !important;
}
.wd-rs-6788d9e083037 .wd-cat .wd-cat-thumb {
	width: min(var(--wd-cat-img-width, 120px), 90%) !important;
	margin-inline: auto;
}
.wd-rs-6788d9e083037 .wd-carousel-item {
	display: flex !important;
	justify-content: center;
}
.wd-rs-6788d9e083037 .wd-cat {
	width: 100%;
	text-align: center;
}

/* Brand logos — original logos, large & sharp (contain, not tiny crop) */
.wd-brands .brand-img,
.wd-brands .wd-brand,
.wd-brands img,
.brands-widget img,
.wd-carousel .wd-brand img,
.wd-brands-wrapper img {
	object-fit: contain !important;
	object-position: center center !important;
	max-height: 140px !important;
	width: auto !important;
	height: auto !important;
	max-width: 220px !important;
}
.wd-brands.wd-style-default .brand-item,
.wd-brands .wd-carousel-item,
.wd-brands .brand-item {
	min-height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 8px;
	box-sizing: border-box;
}

/* Hide nested subcategory text lists under each circle */
.wd-cats .wd-cat .wd-cat-footer .wd-cat-children,
.wd-cats .category-grid-item .sub-categories,
.wd-cats .wd-with-subcat .wd-cat-children {
	display: none !important;
}

/* Homepage hero slider — top content + wider text (match marketplace demo) */
#slider-85 .wd-slide .wd-slide-container {
	--wd-align-items: flex-start !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	padding-top: 56px !important;
	padding-bottom: 48px !important;
	box-sizing: border-box;
}
#slider-85 .wd-slide .wd-slide-inner {
	width: 100% !important;
	max-width: min(540px, 94%) !important;
	margin-inline: 0 !important;
}
#slider-85 .wd-slide .woodmart-title-container {
	white-space: normal !important;
	max-width: 100% !important;
}
#slider-85 .wd-slide .wd-text-block {
	font-size: 16px !important;
	line-height: 1.4;
}
#slider-85 .wd-slide .wd-text-block p {
	margin: 0;
}
#slider-85 #slide-1128 .woodmart-title-container {
	font-size: 48px !important;
	line-height: 1.12 !important;
}
#slider-85 #slide-1120 .woodmart-title-container,
#slider-85 #slide-1125 .woodmart-title-container {
	font-size: 42px !important;
	line-height: 1.15 !important;
}

/* ==========================================================================
   Single product: CF specs table
   ========================================================================== */

.cf-product-specs {
	width: 100%;
}

.cf-product-specs__heading {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 600;
}

.cf-product-specs__group + .cf-product-specs__group {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cf-product-specs__group-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 600;
	color: #242424;
}

.cf-product-specs__group-title::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--wd-primary-color, #e11d48);
	flex: 0 0 auto;
}

.cf-product-specs__table {
	width: 100%;
	border: 0;
	margin: 0;
}

.cf-product-specs__table th,
.cf-product-specs__table td {
	padding: 8px 0 !important;
	border: 0 !important;
	background: transparent !important;
	vertical-align: top;
}

.cf-product-specs__table th {
	width: 50%;
	font-weight: 600;
	color: #242424;
	text-align: left;
}

.cf-product-specs__table td {
	width: 50%;
	font-weight: 500;
	color: #6b6b6b;
	text-align: left;
}

/* ==========================================================================
   Homepage hero slider — demo-like top text + wider content column
   ========================================================================== */
#slide-1120 .wd-slide-bg,
#slide-1128 .wd-slide-bg {
	background-position: left center !important;
	background-size: cover !important;
}
#slide-1125 .wd-slide-bg {
	background-position: center center !important;
	background-size: cover !important;
}

#slider-85 .wd-slide .wd-slide-inner,
#slider-85 .wd-slide .vc_column-inner,
#slider-85 .wd-slide .title-wrapper,
#slider-85 .wd-slide .wd-enabled-width {
	max-width: min(540px, 92%) !important;
	width: auto !important;
}

#slider-85 .wd-slide .title-wrapper.wd-enabled-width {
	display: block !important;
}

#slide-1120 .wd-slide-inner h1,
#slide-1120 .wd-slide-inner h2,
#slide-1120 .wd-slide-inner h3,
#slide-1120 .wd-slide-inner h4,
#slide-1120 .wd-slide-inner p,
#slide-1125 .wd-slide-inner h1,
#slide-1125 .wd-slide-inner h2,
#slide-1125 .wd-slide-inner h3,
#slide-1125 .wd-slide-inner h4,
#slide-1125 .wd-slide-inner p {
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Homepage left column — Wearables promo under «Νεότερα προϊόντα»
   Tall card aligned with the adjacent product / lifestyle / Top 100 row.
   ========================================================================== */
.cf-left-wearables-banner {
	margin-top: 20px !important;
	margin-bottom: 0 !important;
}

.cf-left-wearables-banner > .vc_column_container,
.cf-left-wearables-banner .wd-rs-cf8a1b2c3d4e5,
.cf-left-wearables-banner .vc_column_container.vc_col-has-fill {
	min-height: 486px;
	border-radius: 20px !important;
	overflow: hidden;
	background: #f5f6f8 !important;
	background-image: none !important;
	padding: 0 !important;
	box-shadow: 0 1px 0 rgba(18, 24, 32, 0.04);
}

.cf-left-wearables-banner .vc_column-inner,
.cf-left-wearables-banner .vc_column-inner.vc_custom_cfleft002,
.vc_custom_cfleft002 {
	min-height: 486px !important;
	height: 100% !important;
	border-radius: 20px !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-end !important;
	background-color: #f5f6f8 !important;
	background-image: url("https://shop.commerce-flow.app/wp-content/uploads/2025/01/banner-l-watch-opt.jpg?v=20260809d") !important;
	background-position: center top !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

.cf-left-wearables-banner .wpb_wrapper {
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-end !important;
	align-items: center !important;
	gap: 4px;
	margin-top: auto !important;
	width: 100%;
	padding: 48px 18px 22px !important;
	text-align: center;
	background: linear-gradient(
		180deg,
		rgba(245, 246, 248, 0) 0%,
		rgba(245, 246, 248, 0.88) 42%,
		rgba(245, 246, 248, 0.98) 100%
	) !important;
}

.cf-left-wearables-banner .title-wrapper,
.cf-left-wearables-banner .wd-text-block,
.cf-left-wearables-banner .wd-button-wrapper {
	margin-bottom: 0 !important;
	width: 100%;
}

.cf-left-wearables-banner .woodmart-title-container {
	margin: 0 !important;
	font-size: 28px !important;
	line-height: 1.15 !important;
	letter-spacing: -0.02em;
	color: #121820 !important;
}

.cf-left-wearables-banner .wd-text-block p {
	margin: 0 !important;
	font-size: 14px !important;
	line-height: 1.35 !important;
	color: #6b7280 !important;
}

.cf-left-wearables-banner .wd-button-wrapper {
	margin-top: 10px !important;
}

.cf-left-wearables-banner .wd-button-wrapper .btn {
	min-width: 140px;
	padding: 10px 20px !important;
	border-radius: 999px !important;
	background: #e14a5c !important;
	border-color: #e14a5c !important;
	color: #fff !important;
	font-weight: 700 !important;
	box-shadow: 0 8px 18px rgba(225, 74, 92, 0.22);
}

.cf-left-wearables-banner .wd-button-wrapper .btn:hover {
	background: #c93d4f !important;
	border-color: #c93d4f !important;
	color: #fff !important;
}

@media (max-width: 1024px) {
	.cf-left-wearables-banner > .vc_column_container,
	.cf-left-wearables-banner .vc_column-inner,
	.cf-left-wearables-banner .vc_column-inner.vc_custom_cfleft002,
	.vc_custom_cfleft002 {
		min-height: 320px !important;
	}
}

/* ==========================================================================
   Phoenix/Skroutz rich description — two-column zigzag (classes kept, CSS was missing)
   ========================================================================== */

.wd-single-content .rich-components,
.woocommerce-Tabs-panel .rich-components,
.entry-content .rich-components {
	display: flex;
	flex-direction: column;
	gap: 2.75rem;
	margin: 1.5rem 0 0;
}

.wd-single-content .rich-components .simple-description,
.wd-single-content .simple-description {
	margin-bottom: 0.5rem;
}

.wd-single-content .rich-components .two-column {
	display: flex;
	flex-wrap: nowrap;
	flex-direction: row;
	gap: 2rem 3rem;
	align-items: center;
}

.wd-single-content .rich-components .two-column > .column,
.wd-single-content .rich-components .two-column > figure {
	flex: 1 1 0;
	min-width: 0;
}

/* figure also has class "column" — do not use order on .column */
.wd-single-content .rich-components .two-column.order-reverse {
	flex-direction: row-reverse;
}

.wd-single-content .rich-components .one-column {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.wd-single-content .rich-components h2 {
	margin: 0 0 0.4rem;
	font-size: 1.45rem;
	line-height: 1.25;
	font-weight: 700;
}

.wd-single-content .rich-components h3 {
	margin: 0 0 0.65rem;
	font-size: 1.05rem;
	line-height: 1.35;
	font-weight: 600;
}

.wd-single-content .rich-components .body-text p,
.wd-single-content .rich-components .column p {
	margin: 0;
	color: #444;
	line-height: 1.65;
}

.wd-single-content .rich-components figure {
	margin: 0;
	max-width: 100%;
}

.wd-single-content .rich-components figure img,
.wd-single-content .rich-components .column img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	border-radius: 12px;
	object-fit: cover;
}

@media (max-width: 767px) {
	.wd-single-content .rich-components .two-column,
	.wd-single-content .rich-components .two-column.order-reverse {
		flex-direction: column;
		gap: 1rem;
	}
}
