/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

.woocommerce-product-gallery__wrapper .wd-carousel-wrap .wd-carousel-item {
	position: relative;
    background-color: rgb(245, 245, 245);
}
.summary-inner .wd-product-brands {
	margin: 0px!important;
	float: unset!important;
	display:block!important;
}
.summary-inner .wd-product-brands a {
	padding: 0px!important;
	box-shadow: unset!important;
	justify-content: flex-start!important;
	color:#D42730;
}

body.single-product .container:has(> .product-image-summary-wrap) {
	max-width: 1500px !important;
}

.mysite-feature-list {
    list-style: none;
    margin: 15px 0;
    padding: 0;
}

.mysite-feature-list__item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.mysite-feature-list__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mysite-feature-icon-bg, rgba(212, 39, 48, 0.07));
    box-sizing: border-box;
}

.mysite-feature-list__icon-img {
    width: 16px;
    height: 16px;
    display: block;
}

.mysite-feature-list__text {
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.5;
}

.mysite-feature-list__text a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.mysite-feature-list__text a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mysite-feature-list__text a:focus-visible,
.mysite-extra-info__trigger a:focus-visible,
.mysite-modal__close:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.mysite-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.mysite-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mysite-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.mysite-modal__box {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    padding: 36px;
    border-radius: 4px;
}

.mysite-modal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 44px;
    height: 44px;
}

.mysite-modal__close:hover {
    background: #f2f2f2;
}

.mysite-modal__content {
    font-size: 15px;
    line-height: 1.7;
}

.mysite-modal__subtitle {
    font-size: 15px;
    color: #666;
    margin: -8px 0 15px;
}

body.mysite-modal-open {
    overflow: hidden;
    padding-right: var(--mysite-scrollbar-comp, 0px);
}

@media (prefers-reduced-motion: no-preference) {
    .mysite-modal__box {
        animation: mysite-modal-in 0.15s ease-out;
    }
}

@keyframes mysite-modal-in {
    from { opacity: 0; transform: scale(0.98); }
    to   { opacity: 1; transform: scale(1); }
}

.mysite-extra-info__trigger {
    margin: 28px 0 0;
}

.mysite-extra-info__trigger a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--mysite-extrainfo-bg, rgba(212, 39, 48, 0.08));
    border-radius: 999px;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, gap 0.15s ease;
}

.mysite-extra-info__trigger a::after {
    content: "";
    flex-shrink: 0;
    width: 12px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 1 L9 6 L3 11' stroke='%231a1a1a' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.15s ease;
}

.mysite-extra-info__trigger a:hover {
    background: var(--mysite-extrainfo-bg-hover, rgba(212, 39, 48, 0.16));
    gap: 12px;
}

.mysite-extra-info__trigger a:hover::after {
    transform: translateX(3px);
}

.elementor-widget-wd_products .wd-nav-scroll {
	--wd-nscroll-height: 3px;
	--wd-nscroll-bg: rgba(0, 0, 0, 0.08);
	--wd-nscroll-drag-bg: rgba(0, 0, 0, 0.25);
	--wd-nscroll-drag-bg-hover: rgba(0, 0, 0, 0.45);
	margin-top: 16px;
	border-radius: 999px;
}

.elementor-widget-wd_products .wd-nav-scroll-drag:before {
	border-radius: 999px;
}

.elementor-widget-wd_products .wd-carousel-wrap {
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.elementor-widget-wd_products .wd-carousel-wrap::-webkit-scrollbar {
	height: 4px;
}

.elementor-widget-wd_products .wd-carousel-wrap::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.06);
	border-radius: 999px;
}

.elementor-widget-wd_products .wd-carousel-wrap::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.3);
	border-radius: 999px;
}

.elementor-widget-wd_products .wd-carousel-wrap::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.5);
}

body.home .wd-content-layout {
	padding-block: 0;
}

.carousel-prod .wd-entities-title {
	--wd-entities-title-font-weight: 400;
	font-size: 16px !important;
}

.product-element-bottom:has(.isdin-grid-card-text) {
	color: #fff;
	background: #2B5F8A;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	padding: 14px 16px 16px;
	border-radius: 0 0 var(--wd-brd-radius, 6px) var(--wd-brd-radius, 6px);
}

.product-element-bottom:has(.isdin-grid-card-text) .wd-entities-title,
.product-element-bottom:has(.isdin-grid-card-text) .product_title {
	--wd-entities-title-color: #fff;
	color: #fff;
}

.elementor-widget-wd_products .wd-entities-title {
	--wd-entities-title-color: #000;
}

.elementor-widget-wd_products .wd-entities-title,
.elementor-widget-wd_products .wd-entities-title a {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.isdin-grid-card-text {
	margin-top: 6px;
}

.isdin-grid-card-text__desc {
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 1.5;
	color: #fff;
}

.isdin-grid-card-text__more {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

.isdin-grid-card-text__more:hover,
.isdin-grid-card-text__more:focus-visible {
	color: #fff;
}

.isdin-grid-card-text__more:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.elementor-widget-wd_products .wd-loop-builder-off .wd-product-wrapper {
	padding: 0;
}

.wd-header-main-nav .nav-link-text {
	font-size: calc(1em + 1px);
}

.wd-header-main-nav .wd-dropdown-menu .woodmart-nav-link {
	color: #000;
}

.elementor-widget-wd_products .wd-product-img-link img:not(.wd-product-img-hover) {
	transition: transform 0.35s ease;
}

.elementor-widget-wd_products .wd-product-thumb:hover .wd-product-img-link img:not(.wd-product-img-hover) {
	transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
	.elementor-widget-wd_products .wd-product-img-link img:not(.wd-product-img-hover) {
		transition: none;
	}

	.elementor-widget-wd_products .wd-product-thumb:hover .wd-product-img-link img:not(.wd-product-img-hover) {
		transform: none;
	}
}

.premium-carousel-arrows-wrapper {
	display: flex;
	gap: 0;
}

.premium-carousel-arrows-wrapper .carousel-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3em;
	height: 3em;
	border-radius: 15%;
	background: #fff;
	border: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	color: #1a1a1a;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.premium-carousel-arrows-wrapper a.carousel-arrow.carousel-prev {
	left: -10px;
	width:40px;
}

.premium-carousel-arrows-wrapper a.carousel-arrow.carousel-next {
	right: -10px;
	width:40px;
}

.premium-carousel-arrows-wrapper .carousel-arrow i {
	font-size: 16px;
	line-height: 1;
}

.premium-carousel-arrows-wrapper .carousel-arrow:hover {
	background: #000;
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
	transform: translateY(-1px);
}

.premium-carousel-arrows-wrapper .carousel-arrow:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}

.premium-carousel-arrows-wrapper .carousel-arrow.slick-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.wd-loop-builder-off .wd-product-wrapper {
    padding: 0px!important;
}

.woocommerce-ordering {
    margin: 0 0 1em !important;
}

.woocommerce-ordering select {
    font-size: 13px !important;
    padding: 5px 10px !important;
    height: auto !important;
    min-height: unset !important;
    max-width: 200px !important;
}

.wd-shop-tools .wd-breadcrumbs {
	font-size: 13px !important;
}

.wd-title-wrapp .wd-back-btn {
	display: none;
}

#slide-27018.woodmart-loaded .wd-slide-bg {
    background-image: url(https://isdin.gr/wp-content/uploads/2024/02/cosmetics-slide-2-bg-opt.jpg);
    opacity: 0!important;
}

.wd-title-wrapp .entry-title.title {
	font-size: 36px;
}

.rhs-slider .rhs-pagination .rhs-autoplay-toggle {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 32px;
	min-width: 0;
	height: 32px;
	min-height: 0;
	aspect-ratio: 1;
	padding: 0;
	line-height: 1;
}

.page-title  .entry-title.title {
	font-size: 36px;
}

.home .product-element-bottom:has(.isdin-grid-card-text) {
    background: #dfdfdf !important;
}

@media (prefers-reduced-motion: reduce) {
	.premium-carousel-arrows-wrapper .carousel-arrow {
		transition: none;
	}
}

/* Product listing pages (category archives, brand archives, the main shop
   page): lift the card a little on hover so it's clear which product you're
   looking at. */
.tax-product_cat .wd-product-wrapper,
.tax-product_brand .wd-product-wrapper,
.woocommerce-shop .wd-product-wrapper {
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.tax-product_cat .wd-product-wrapper:hover,
.tax-product_brand .wd-product-wrapper:hover,
.woocommerce-shop .wd-product-wrapper:hover {
	transform: translateY(-10px);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

@media (prefers-reduced-motion: reduce) {
	.tax-product_cat .wd-product-wrapper,
	.tax-product_brand .wd-product-wrapper,
	.woocommerce-shop .wd-product-wrapper {
		transition: none;
	}

	.tax-product_cat .wd-product-wrapper:hover,
	.tax-product_brand .wd-product-wrapper:hover,
	.woocommerce-shop .wd-product-wrapper:hover {
		transform: none;
		box-shadow: none;
	}
}

.tax-product_cat .isdin-loop-brand,
.tax-product_brand .isdin-loop-brand,
.woocommerce-shop .isdin-loop-brand {
	display: block;
	margin-bottom: 4px;
	color: #404040;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Product listing pages only (category archives, brand archives, the main
   shop page): title / description / "more" link in #404040 too. */
.tax-product_cat .product-element-bottom:has(.isdin-grid-card-text) .wd-entities-title,
.tax-product_cat .product-element-bottom:has(.isdin-grid-card-text) .product_title,
.tax-product_brand .product-element-bottom:has(.isdin-grid-card-text) .wd-entities-title,
.tax-product_brand .product-element-bottom:has(.isdin-grid-card-text) .product_title,
.woocommerce-shop .product-element-bottom:has(.isdin-grid-card-text) .wd-entities-title,
.woocommerce-shop .product-element-bottom:has(.isdin-grid-card-text) .product_title {
	--wd-entities-title-color: #404040;
	color: #404040;
}

.tax-product_cat .isdin-grid-card-text__desc,
.tax-product_cat .isdin-grid-card-text__more,
.tax-product_brand .isdin-grid-card-text__desc,
.tax-product_brand .isdin-grid-card-text__more,
.woocommerce-shop .isdin-grid-card-text__desc,
.woocommerce-shop .isdin-grid-card-text__more {
	color: #404040;
}

/* Header language switcher (Appearance → Menus → "Language Switcher", the
   GR item carries the CSS class "isdin-lang-switch").
   Logo and search+flags pin to their natural size at each edge. The menu
   (center column) is taken out of that flex flow and centered on the row
   directly, with left/top 50% + transform — the only way to keep it truly
   centered on the page regardless of the logo and search+flags having
   different widths from each other (a flex/grid split always centers on
   the midpoint *between* them instead, which is off-center unless both
   sides happen to be equally wide). */
.whb-row.whb-general-header {
	position: relative;
}

.whb-col-left,
.whb-col-right {
	flex: 0 0 auto !important;
}

.whb-col-right {
	margin-left: auto !important;
}

.whb-col-center {
	position: absolute !important;
	left: 50% !important;
	top: 50% !important;
	transform: translate(-50%, -50%) !important;
	margin: 0 !important;
}

/* Mobile header: logo pinned left, everything else (burger, search, flag,
   account) flush right as one group. */
.whb-mobile-left {
	flex: 0 0 auto !important;
}

.whb-mobile-right {
	flex: 0 0 auto !important;
	margin-left: auto !important;
}

.isdin-lang-switch > a {
	display: flex;
	align-items: center;
	padding-left: 14px !important;
}

/* Mobile: the burger/search icons and the flag sit further apart by
   default than they should — tighten the whole right-hand icon cluster. */
@media (max-width: 1024px) {
	.whb-mobile-right {
		gap: 6px;
	}

	.isdin-lang-switch > a {
		padding-left: 4px !important;
	}
}

/* Hide the literal "GR" / "ES" text visually (kept in the DOM, so screen
   readers still announce it) and show a small inline-SVG flag instead.
   SVG avoids relying on the OS/browser's emoji font — Windows in particular
   often renders flag emoji as plain two-letter text instead of a flag. */
.isdin-lang-switch .nav-link-text,
.isdin-lang-switch .wd-sub-menu a {
	font-size: 0;
}

.isdin-lang-switch > a::before,
.isdin-lang-switch .wd-sub-menu a::before {
	content: "";
	display: inline-block;
	width: 21px;
	height: 14px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
	background-size: cover;
	background-position: center;
	flex: none;
}

/* Greek flag */
.isdin-lang-switch > a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 18'%3E%3Crect width='27' height='18' fill='%230D5EAF'/%3E%3Cg fill='%23fff'%3E%3Crect y='2' width='27' height='2'/%3E%3Crect y='6' width='27' height='2'/%3E%3Crect y='10' width='27' height='2'/%3E%3Crect y='14' width='27' height='2'/%3E%3C/g%3E%3Crect width='10' height='10' fill='%230D5EAF'/%3E%3Crect x='4' width='2' height='10' fill='%23fff'/%3E%3Crect y='4' width='10' height='2' fill='%23fff'/%3E%3C/svg%3E");
}

/* Spanish flag */
.isdin-lang-switch .wd-sub-menu a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 18'%3E%3Crect width='27' height='18' fill='%23AA151B'/%3E%3Crect y='4.5' width='27' height='9' fill='%23F1BF00'/%3E%3C/svg%3E");
}

/* WoodMart's dropdown wrapper reuses the theme's global page-width
   ".container" class, which is why it rendered far wider than the flag.
   Shrink it back down to fit just the one flag link. */
.isdin-lang-switch .wd-dropdown-menu {
	width: auto !important;
	min-width: 0 !important;
	left: auto !important;
	right: 0 !important;
}

.isdin-lang-switch .wd-dropdown-menu .container {
	width: auto !important;
	max-width: none !important;
	padding: 4px !important;
}

.isdin-lang-switch .wd-sub-menu {
	min-width: 0;
}

.isdin-lang-switch .wd-sub-menu a {
	padding: 8px 14px !important;
}

@media (max-width: 1024px) {
	.isdin-lang-switch > a::before,
	.isdin-lang-switch .wd-sub-menu a::before {
		width: 19px;
		height: 13px;
	}
}
