/**
 * Savoidakis — single product page.
 *
 * Elementor only writes CSS for values that differ from a control's default,
 * so every default lives here as well. Change a control and Elementor's rule
 * (0,4,0) wins over anything below; nothing here uses !important, so the panel
 * always has the last word.
 */

.savop {
	--savop-ink: #252324;
	--savop-muted: #6E6A67;
	--savop-accent: #CC3262;
	--savop-border: #E8E4E0;
	--savop-soft: #FDF2F5;

	box-sizing: border-box;
	font-family: "Comfortaa", sans-serif;
	color: var(--savop-ink);
}

.savop *,
.savop *::before,
.savop *::after {
	box-sizing: border-box;
}

.savop-icon {
	display: inline-flex;
	flex: none;
	width: 1em;
	height: 1em;
}

.savop-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.savop-note {
	padding: 14px 18px;
	border: 1px dashed #C9C2BB;
	border-radius: 10px;
	background: #FAF8F6;
	color: #6E6A67;
	font: 400 13px/1.5 "Comfortaa", sans-serif;
}

/* ------------------------------------------------------------------ Eyebrow */

.savop-eyebrow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--savop-muted);
}

.savop-eyebrow a {
	color: inherit;
	text-decoration: none;
}

.savop-eyebrow a:hover {
	color: var(--savop-accent);
}

.savop-eyebrow__sep {
	color: var(--savop-accent);
	letter-spacing: 0;
}

/* -------------------------------------------------------------------- Price */

.savop-price {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.savop-price__regular {
	font-size: 22px;
	line-height: 1;
	color: #A6A09C;
	text-decoration: line-through;
}

.savop-price__current {
	font-size: 40px;
	font-weight: 500;
	line-height: 1;
	color: var(--savop-ink);
}

.savop-price .savop-price__current .woocommerce-Price-amount,
.savop-price .savop-price__regular .woocommerce-Price-amount {
	font: inherit;
	color: inherit;
}

.savop-price__badge {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border-radius: 20px;
	background: var(--savop-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}

.savop-price .is-hidden {
	display: none;
}

/* A product with no price says so in words; at the full price size it shouts. */
.savop-price .savop-price__current.is-empty {
	font-size: .58em;
	font-weight: 400;
	color: var(--savop-muted);
}

/* -------------------------------------------------------------------- Stock */

.savop-stock {
	--savop-stock: #2E9E52;

	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
}

.savop-stock__dot {
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--savop-stock);
}

.savop-stock__text {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--savop-stock);
}

/* ------------------------------------------------------------------ Gallery */

.savop-gallery {
	--savop-thumb: 144px;
	--savop-thumbs: flex;

	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
}

.savop-gallery__thumbs {
	display: var(--savop-thumbs);
	flex-direction: column;
	flex: none;
	gap: 14px;
}

.savop-gallery[style*="column-reverse"] .savop-gallery__thumbs,
.savop-gallery.is-bottom .savop-gallery__thumbs {
	flex-direction: row;
}

.savop-gallery .savop-gallery__thumb {
	display: block;
	width: var(--savop-thumb);
	height: var(--savop-thumb);
	padding: 4px;
	border: 1px solid var(--savop-border);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color .18s ease;
}

.savop-gallery .savop-gallery__thumb.is-active {
	border-color: var(--savop-accent);
}

.savop-gallery__thumb-inner {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 10px;
}

.savop-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.savop-gallery__stage {
	position: relative;
	/* Set per arrangement by the thumbs-position control; see that dictionary. */
	flex: var(--savop-stage-flex, 1 1 auto);
	min-width: 0;
	aspect-ratio: 1.04;
	overflow: hidden;
	border-radius: 20px;
	background: #F6F3F1;
}

.savop-gallery__slide {
	position: absolute;
	inset: 0;
	display: none;
}

.savop-gallery__slide.is-active {
	display: block;
}

.savop-gallery__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.savop-gallery .savop-gallery__zoom {
	position: absolute;
	top: 22px;
	right: 22px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--savop-ink);
	box-shadow: 0 4px 14px rgba(37, 35, 36, .12);
	cursor: pointer;
}

.savop-gallery .savop-gallery__zoom .savop-icon {
	width: 20px;
	height: 20px;
}

/* ----------------------------------------------------------------- Swatches */

.savop-purchase .savop-form {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	padding: 0;
}

/* Present for WooCommerce, invisible and weightless for everyone else.
   Absolute keeps it out of the flex flow (and out of the gap); a real width
   keeps jQuery's :visible true, which is what decides that `show_variation`
   fires on the form instead of behind a slide animation. */
.savop-purchase .single_variation {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0;
	overflow: hidden;
	pointer-events: none;
}

/*
 * Two WooCommerce leftovers have to be forced off, and only these two.
 *
 * `form.cart` is clearfixed with ::before/::after. Inside a flex column those
 * count as flex items, so each one earned a row gap and the buy box carried
 * 54px of nothing. No Elementor control can reach a pseudo-element, and the
 * shop stylesheet outranks anything reasonable here.
 *
 * The same goes for the margins WooCommerce hangs off `.variations`: in a flex
 * column they fight the gap rather than add to it.
 */
.savop-purchase .savop-form::before,
.savop-purchase .savop-form::after {
	content: none !important;
}

.savop-purchase .savop-form,
.savop-purchase .savop-form > * {
	margin-block: 0 !important;
}

.savop-swatches {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.savop-swatch {
	--savop-swatch-label-gap: 12px;

	display: flex;
	flex-direction: column;
	gap: var(--savop-swatch-label-gap);
}

.savop-swatch__label {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--savop-ink);
}

.savop-swatch__options {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.savop-purchase .savop-swatch__option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 168px;
	min-height: 56px;
	padding: 6px 20px;
	border: 1px solid var(--savop-border);
	border-radius: 14px;
	background: #fff;
	color: var(--savop-muted);
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.savop-purchase .savop-swatch__option:hover {
	border-color: var(--savop-accent);
}

.savop-purchase .savop-swatch__option.is-active {
	border-color: var(--savop-accent);
	background: var(--savop-soft);
	color: var(--savop-ink);
}

.savop-purchase .savop-swatch__option.is-disabled {
	opacity: .42;
	cursor: not-allowed;
}

/* The select stays in the page for WooCommerce, out of sight for everyone else. */
.savop-swatch__select {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

.savop-purchase .savop-swatch__reset {
	display: none;
}

/* --------------------------------------------------------------- Buy row */

.savop-buy {
	--savop-buy-h: 56px;
	--savop-buy-r: 14px;

	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 14px;
}

.savop-qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: none;
	width: 126px;
	height: var(--savop-buy-h);
	padding: 0 6px;
	border: 1px solid var(--savop-border);
	border-radius: var(--savop-buy-r);
	background: #fff;
	color: var(--savop-ink);
}

.savop-qty .savop-qty__btn {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: none;
	color: inherit;
	cursor: pointer;
}

.savop-qty .savop-qty__btn .savop-icon {
	width: 16px;
	height: 16px;
}

.savop-purchase .savop-qty input.savop-qty__input:not([type="button"]):not([type="submit"]) {
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	-moz-appearance: textfield;
}

.savop-qty__input::-webkit-outer-spin-button,
.savop-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.savop-purchase .savop-buy__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	gap: 12px;
	min-width: 0;
	height: var(--savop-buy-h);
	padding: 0 26px;
	border: 0;
	border-radius: var(--savop-buy-r);
	background: var(--savop-accent);
	color: #fff;
	font-family: "Comfortaa", sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .2px;
	white-space: nowrap;
	cursor: pointer;
	transition: background .18s ease;
}

.savop-purchase .savop-buy__submit:hover {
	background: #252324;
}

.savop-purchase .savop-buy__submit .savop-icon {
	width: 19px;
	height: 19px;
}

.savop-purchase .savop-buy__submit.is-busy {
	opacity: .75;
	pointer-events: none;
}

.savop-purchase .savop-buy__wish {
	display: grid;
	place-items: center;
	flex: none;
	width: 56px;
	height: var(--savop-buy-h);
	padding: 0;
	border: 1px solid var(--savop-border);
	border-radius: var(--savop-buy-r);
	background: #fff;
	color: var(--savop-accent);
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease;
}

.savop-purchase .savop-buy__wish .savop-icon {
	width: 21px;
	height: 21px;
}

.savop-purchase .savop-buy__wish:hover,
.savop-purchase .savop-buy__wish.is-active {
	border-color: var(--savop-accent);
	background: var(--savop-soft);
}

.savop-purchase .savop-buy__wish.is-active .savop-icon svg {
	fill: currentColor;
}

.savop-purchase__unavailable {
	margin: 0;
	font-size: 15px;
	color: var(--savop-muted);
}

/* WooCommerce writes its own messages in here. */
.savop-purchase .woocommerce-variation-description,
.savop-purchase .woocommerce-variation-availability {
	font-size: 14px;
	color: var(--savop-muted);
}

/* --------------------------------------------------------------------- Meta */

.savop-meta {
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.savop-meta.has-divider {
	padding-top: 14px;
	border-top: 1px solid var(--savop-border);
}

.savop-meta__sku {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--savop-muted);
}

.savop-meta__row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
}

.savop-meta__label {
	flex: none;
	font-size: 14px;
	line-height: 1.4;
	color: var(--savop-muted);
}

.savop-meta__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.savop-meta .savop-chip {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding-inline: 15px;
	border: 1px solid var(--savop-border);
	border-radius: 21px;
	background: transparent;
	color: var(--savop-ink);
	font-family: "Comfortaa", sans-serif;
	font-size: 13px;
	line-height: 1.2;
	text-decoration: none;
	transition: background .18s ease, border-color .18s ease;
}

.savop-meta .savop-chip.is-first {
	border-color: var(--savop-accent);
	color: var(--savop-accent);
}

.savop-meta .savop-chip:hover {
	background: var(--savop-soft);
}

/* ------------------------------------------------------------------ Related */

.savop-related {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 15px;
	width: 100%;
}

.savop-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 16px 16px 14px;
	border-radius: 18px;
	background: #fff;
}

.savop-card__media {
	display: block;
	aspect-ratio: 1.75;
	overflow: hidden;
	border-radius: 12px;
	background: #fff;
}

.savop-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.savop-related .savop-card__wish {
	position: absolute;
	top: 26px;
	right: 26px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--savop-accent);
	cursor: pointer;
}

.savop-related .savop-card__wish .savop-icon {
	width: 24px;
	height: 24px;
}

.savop-related .savop-card__wish.is-active .savop-icon svg {
	fill: currentColor;
}

.savop-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding-top: 14px;
}

.savop-card__title {
	margin: 0;
	font-family: "Comfortaa", sans-serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--savop-ink);
}

.savop-card__title a {
	color: inherit;
	text-decoration: none;
}

.savop-card__price {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	color: var(--savop-muted);
}

.savop-card__price del,
.savop-card__price ins {
	text-decoration: none;
	color: inherit;
	background: none;
}

.savop-card__price del {
	opacity: .55;
	text-decoration: line-through;
	margin-right: 6px;
}

.savop-related .savop-card__cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 56px;
	margin-top: auto;
	padding: 0 16px;
	border: 0;
	border-radius: 13px;
	background: var(--savop-accent);
	color: #fff;
	font-family: "Comfortaa", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background .18s ease;
}

.savop-related .savop-card__cart:hover {
	background: #252324;
	color: #fff;
}

.savop-related .savop-card__cart .savop-icon {
	width: 18px;
	height: 18px;
}

.savop-related .savop-card__cart.added {
	display: inline-flex;
}

.savop-related .added_to_cart {
	display: none;
}

/* Elementor's kit styles bare `button` elements at (0,1,1). Every rule that a
   panel control also writes has to clear that on its own specificity, or the
   only way out would be !important — which would lock the panel out too. */
.savop-gallery .savop-gallery__thumb,
.savop-gallery .savop-gallery__zoom,
.savop-qty .savop-qty__btn,
.savop-related .savop-card__wish,
.savop-purchase .savop-swatch__option,
.savop-purchase .savop-buy__submit,
.savop-purchase .savop-buy__wish {
	box-shadow: none;
	text-shadow: none;
	font-family: "Comfortaa", sans-serif;
}

/* Elementor Pro's short-description widget only styles its wrapper, so a theme
   rule on `p` wins over the panel's typography. Handing the paragraph back to
   inheritance puts the control in charge again. */
.savop-section--hero .elementor-widget-woocommerce-product-short-description p {
	margin: 0;
	font: inherit;
	color: inherit;
}

/* -------------------------------------------------------------- Responsive */

@media (max-width: 1024px) {
	/* Direction and sizes come from the widget's responsive controls; only the
	   wrapping, which has no control, is set here. */
	.savop-gallery__thumbs {
		flex-direction: row;
		flex-wrap: wrap;
	}
}

@media (max-width: 767px) {
	.savop-price__current {
		font-size: 32px;
	}

	.savop-purchase .savop-swatch__option {
		flex: 1 1 140px;
		min-width: 0;
	}

	.savop-buy {
		gap: 10px;
	}

	.savop-purchase .savop-buy__submit {
		flex: 1 1 100%;
		order: 3;
	}

	.savop-related {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.savop-card__title {
		font-size: 20px;
	}
}

/* The package swatches carry a product's own wording ("Κουτί 12 τεμ."), and
   the kit's button rules put it in spaced capitals — which in Greek keeps a
   tonos that no one writes. The panel's typography control stays in charge of
   everything else about them. */
.savop-purchase .savop-swatch__option,
.savop .savop-swatch__option {
	text-transform: none;
	letter-spacing: normal;
}
