/*
 * GS Campanie 1.7.0 — the theme's product card (Flatsome) restyled on the whole site: white card, the photo on white,
 * short bold name with the rest under it, price row and a round add-to-cart button. Only on <body class="gs-card-skin">
 * (Filtre magazin → "Card de produs modern în tot site-ul"). The child theme styles cart buttons with !important, so
 * the button rules here need it too.
 */
.gs-card-skin {
	--gsc-g: #078c36;
	--gsc-g-dark: #06702b;
	--gsc-ink: #17231c;
	--gsc-mut: #5d6b63;
	--gsc-line: #e6ece8;
	--gsc-red: #c81d05;
	--gsc-r: 16px;
	/* The cart button: colour and icon from Filtre magazin (inline style after this file); these are the defaults. */
	--gsc-btn: #078c36;
	--gsc-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
	--gsc-btn-more: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5.5 6.5 6.5L9 18.5'/%3E%3C/svg%3E");
	--gsc-btn-done: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* The card: full height of its row, so prices and buttons line up. */
.gs-card-skin .product-small.col > .col-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}
/* Not Flatsome's list layout (box-vertical: picture beside the text), which keeps its own table layout. */
.gs-card-skin .col-inner > .product-small.box:not(.box-vertical) {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--gsc-line);
	border-radius: var(--gsc-r);
	background: #fff;
	transition: box-shadow .25s ease;
}
/* Hover (user): the card lifts a little, like the campaign pages' cards — with its labels (they sit beside the box). */
.gs-card-skin .product-small.col > .col-inner {
	transition: transform .25s ease;
}
@media (hover: hover) {
	.gs-card-skin .product-small.col:hover > .col-inner {
		transform: translateY(-4px);
	}
	/* No shadow on hover (user) — not ours, not the theme's or a page plugin's (square ones on .col-inner / .box). */
	.gs-card-skin .product-small.col:hover,
	.gs-card-skin .product-small.col:hover > .col-inner,
	.gs-card-skin .product-small.col:hover > .col-inner > .product-small.box {
		box-shadow: none !important;
	}
}
/* Rows that cut what goes out of them (carousels): room above for the lift. */
.gs-card-skin .slider .product-small.col,
.gs-card-skin .gsp-rail,
.gs-card-skin .gsf-rail__track {
	padding-top: 6px;
}
/* Rows without gutters (Flatsome "row-collapse", e.g. UX blocks' sliders): a small gap, so the cards don't touch or get cut at the
   slider's edge. Flatsome zeroes these paddings with !important. */
body.gs-card-skin .row-collapse .product-small.col {
	padding: 6px 6px 12px !important;
}
/* Labels sit inside the rounded corner, not on it. */
.gs-card-skin .product-small.col > .col-inner > .berocket_better_labels,
.gs-card-skin .product-small.col > .col-inner > .badge-container {
	margin: 8px;
}
/* Flatsome centers the photo box with auto margins: in a flex column that would shrink it to nothing. */
.gs-card-skin .product-small.box:not(.box-vertical) .box-image {
	width: 100%;
	margin-right: 0;
	margin-left: 0;
	background: #fff;
}

/* Text: left aligned, the price row at the bottom. */
.gs-card-skin .product-small .box-text {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px 14px;
	text-align: left;
}
.gs-card-skin .product-small .box-text .title-wrapper,
.gs-card-skin .product-small .box-text .price-wrapper {
	float: none;
	width: auto;
	margin-right: 0;
	margin-left: 0;
	text-align: left;
}
.gs-card-skin .product-small .box-text .title-wrapper {
	padding: 0;
}
/* In rows the cards share their height and the stars + price sit at the bottom: no room kept under the title (1.7.20,
   user: "de ce atâta spațiu liber între recenzii și titlu" — 2 lines of name + 2 of the rest were kept on every card).
   Flatsome's sliders don't share heights: there the room stays, so the prices line up. */
.gs-card-skin .product-small .product-title {
	min-height: 0;
	margin: 0;
	/* !important (1.7.22): it is a <p> — a theme forcing p sizes (WPBakery's .wpb-content-wrapper p) won */
	font-size: 15px !important;
	line-height: 1.25 !important;
}
.gs-card-skin .slider .product-small .product-title {
	min-height: 75px;
}
/* The shops' themes clamp this link to a fixed height (swedishnutra `.title-card a{height:53px}`, swedishcolagen 55 px,
   53 px !important on phones): with the name and the rest inside, the second line was cut (1.7.23). The two spans clamp
   themselves; the link grows with them. */
.gs-card-skin .product-small .product-title a {
	display: block;
	height: auto !important;
	max-height: none !important;
	overflow: visible;
	-webkit-line-clamp: none;
	color: var(--gsc-ink) !important;
	text-decoration: none;
}
.gs-card-skin .product-small .gs-n,
.gs-card-skin .product-small .gs-s {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.gs-card-skin .product-small .gs-n {
	font-weight: 700;
	letter-spacing: -.005em;
}
.gs-card-skin .product-small .gs-s {
	margin-top: 3px;
	color: var(--gsc-mut);
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.35;
}

/* Stars (the whole width), then the price with room on the right for the round button. */
.gs-card-skin .product-small .price-wrapper {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: auto;
	padding: 4px 0 0;
	min-height: 46px;
	justify-content: flex-end;
}
.gs-card-skin .product-small .wiser_review,
.gs-card-skin .product-small .wiser_review .Wsrspfapp-stars-list {
	justify-content: flex-start !important;
	margin: 0 !important;
	font-size: 12px;
	line-height: 1.2;
	text-align: left !important;
}
.gs-card-skin .product-small .wiser_review .Wsrspfapp-review-count p {
	color: var(--gsc-mut);
	font-size: 12px !important;
}
/* Stars and count on one line (1.7.20): "(2943 Recenzii)" went under the stars and that card grew the whole row. */
/* A flex line (1.7.25): Wiser makes this row a block (`.Wsrspfapp-stars-list.Wsrspfapp-stars-shortfull{display:block}`),
   where the count could not shrink — it ran past the card, cut without "…". */
.gs-card-skin .product-small .wiser_review .Wsrspfapp-stars-list {
	display: flex !important;
	align-items: center;
	column-gap: 3px;
	flex-wrap: nowrap !important;
	white-space: nowrap;
	max-width: 100%;
}
.gs-card-skin .product-small .wiser_review .Wsrspfapp-stars-list-fullret {
	flex: none;
}
/* Wiser adds an empty element after the stars: with a long count it took a line of its own (+14 px on that card). */
.gs-card-skin .product-small .wiser_review > :empty {
	display: none !important;
}
.gs-card-skin .product-small .wiser_review .Wsrspfapp-review-count,
.gs-card-skin .product-small .wiser_review .Wsrspfapp-review-count p {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.gs-card-skin .product-small .price-wrapper .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 6px;
	margin: 0;
	padding-right: 52px;
	color: var(--gsc-ink);
	font-size: 12px;
	line-height: 1.25;
}
.gs-card-skin .product-small .price-wrapper .price > .amount,
.gs-card-skin .product-small .price-wrapper .price ins {
	order: 0;
	flex-basis: 100%;
	color: var(--gsc-ink);
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
}
.gs-card-skin .product-small .price-wrapper .price ins,
.gs-card-skin .product-small .price-wrapper .price ins .amount {
	color: var(--gsc-red);
	font-weight: 700;
}
.gs-card-skin .product-small .price-wrapper .price del {
	order: 1;
	color: var(--gsc-mut);
	font-size: 12px;
	opacity: 1;
}
.gs-card-skin .product-small .price-wrapper .price del .amount {
	color: inherit;
	font-weight: 400;
}
.gs-card-skin .product-small .price-wrapper .woocommerce-price-suffix {
	order: 2;
	color: var(--gsc-mut);
	font-size: 11px;
}
.gs-card-skin .product-small .wc-stripe-bnpl-shop-message:empty {
	display: none;
}

/* The round add-to-cart button, bottom right. */
.gs-card-skin .product-small .box-text .add-to-cart-button {
	position: absolute;
	right: 14px;
	bottom: 14px;
	margin: 0;
}
.gs-card-skin .product-small .add-to-cart-button a.button {
	position: relative;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 42px;
	min-width: 0;
	height: 42px;
	min-height: 0;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--gsc-btn) !important;
	box-shadow: 0 2px 5px rgba(20, 40, 30, .14) !important; /* discreet (user) */
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	letter-spacing: 0 !important;
	transform: none !important;
}
.gs-card-skin .product-small .add-to-cart-button a.button:hover,
.gs-card-skin .product-small .add-to-cart-button a.button:focus-visible {
	background: color-mix(in srgb, var(--gsc-btn) 84%, #000) !important;
}
.gs-card-skin .product-small .add-to-cart-button a.button:focus-visible {
	outline: 2px solid var(--gsc-btn) !important;
	outline-offset: 3px !important;
}
/* The chosen icon (Filtre magazin) for products added straight from the card; an arrow for the others (options to
   choose, out of stock); a check once added. White, drawn through the SVG as a mask. */
.gs-card-skin .product-small .add-to-cart-button a.button::before {
	content: "";
	width: 22px;
	height: 22px;
	background: #fff;
	-webkit-mask: var(--gsc-btn-icon) center / contain no-repeat;
	mask: var(--gsc-btn-icon) center / contain no-repeat;
}
.gs-card-skin .product-small .add-to-cart-button a.button:not(.ajax_add_to_cart)::before {
	-webkit-mask-image: var(--gsc-btn-more);
	mask-image: var(--gsc-btn-more);
}.gs-card-skin .product-small .add-to-cart-button a.button.loading,
.gs-card-skin .product-small .add-to-cart-button a.button.gs-atc-loading {
	opacity: .6 !important;
}
.gs-card-skin .product-small .add-to-cart-button a.button.loading::after {
	display: none !important;
}
.gs-card-skin .product-small .add-to-cart-button a.button.added::before {
	-webkit-mask-image: var(--gsc-btn-done);
	mask-image: var(--gsc-btn-done);
}
.gs-card-skin .product-small .add-to-cart-button a.button.added::after {
	display: none !important;
}
.gs-card-skin .product-small .add-to-cart-button .added_to_cart {
	display: none !important;
}
.gs-card-skin .product.outofstock .add-to-cart-button a.button,
.gs-card-skin .product.status-outofstock .add-to-cart-button a.button {
	background: #9aa79f !important;
	box-shadow: none !important;
	cursor: pointer !important;
}

/* Phones: two per row, smaller type, same card. */
@media (max-width: 549px) {
	.gs-card-skin {
		--gsc-r: 14px;
	}
	.gs-card-skin .product-small .box-text {
		gap: 3px;
		padding: 10px 10px 11px;
	}
	.gs-card-skin .product-small .product-title {
		font-size: 13.5px !important;
	}
	.gs-card-skin .slider .product-small .product-title {
		min-height: 68px;
	}
	.gs-card-skin .product-small .gs-s {
		font-size: 11.5px;
	}
	.gs-card-skin .product-small .price-wrapper {
		min-height: 40px;
	}
	.gs-card-skin .product-small .price-wrapper .price {
		padding-right: 42px;
	}
	.gs-card-skin .product-small .price-wrapper .price > .amount,
	.gs-card-skin .product-small .price-wrapper .price ins {
		font-size: 15px;
	}
	.gs-card-skin .product-small .price-wrapper .price del {
		font-size: 11px;
	}
	.gs-card-skin .product-small .price-wrapper .woocommerce-price-suffix {
		font-size: 10px;
	}
	.gs-card-skin .product-small .box-text .add-to-cart-button {
		right: 10px;
		bottom: 11px;
	}
	.gs-card-skin .product-small .add-to-cart-button a.button {
		width: 36px;
		height: 36px;
	}
	.gs-card-skin .product-small .add-to-cart-button a.button::before {
		width: 19px;
		height: 19px;
	}
	.gs-card-skin .product-small .wiser_review .Wsrspfapp-review-count p {
		font-size: 11px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gs-card-skin .product-small.col:hover > .col-inner {
		transform: none;
	}
	.gs-card-skin .product-small.col > .col-inner,
	.gs-card-skin .col-inner > .product-small.box {
		transition: none;
	}
}
