/* Fagnes Shop Extras — colours as the theme: black #030000, gold #977723,
   soft gold #a68b52, cream #faf7ee, line #eadfc4, grey #6d6e71. */

/* ---- Product image labels (grids + single product) ---------------------- */
.fagnes-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	pointer-events: none;
}

.woocommerce .fagnes-badges .fagnes-badge,
.woocommerce .fagnes-badges span.onsale {
	position: static;
	display: inline-block;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 4px 9px;
	border-radius: 4px;
	font-family: "Nunito Sans", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background-color: #a68b52;
}

.woocommerce .fagnes-badges span.onsale.fagnes-badge--sale {
	background-color: #030000;
	color: #fff;
}

.single-product div.product {
	position: relative;
}

.single-product div.product > .fagnes-badges {
	top: 14px;
	left: 14px;
}

/* ---- Grid image: second image on hover ---------------------------------- */
.woocommerce ul.products li.product .fagnes-loop-img {
	position: relative;
	display: block;
	overflow: hidden;
	margin: 0 0 1em;
}

.woocommerce ul.products li.product .fagnes-loop-img img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

.woocommerce ul.products li.product .fagnes-loop-img img.fagnes-hover-img {
	position: absolute;
	inset: 0;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.35s ease;
}

@media (hover: hover) {
	.woocommerce ul.products li.product:hover .fagnes-loop-img.has-hover img.fagnes-hover-img,
	.woocommerce ul.products li.product a:focus-visible .fagnes-loop-img.has-hover img.fagnes-hover-img {
		opacity: 1;
	}
}

/* ---- Feature icons, under the gallery (float trick: printed after the summary) */
.single-product div.product .fagnes-features {
	float: left;
	clear: left;
	width: 48%;
	margin: 24px 0 0;
}

.fagnes-features__list {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 4px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.fagnes-features__list .fagnes-feature {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	width: 86px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.fagnes-feature__icon {
	display: block;
	width: 56px;
	height: 56px;
}

.fagnes-feature__label {
	margin-top: 8px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #030000;
}

/* ---- Bundle offer box (after the Club box) ------------------------------ */
.single.woocommerce div.product .summary .fagnes-bundle-offer {
	float: left;
	width: 100%;
	display: grid;
	grid-template-columns: 84px 1fr;
	grid-template-areas: "media text" "button button";
	align-items: center;
	gap: 14px 18px;
	margin-top: 16px;
	padding: 14px 16px 16px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
}

.fagnes-bundle-offer__media {
	grid-area: media;
	display: block;
}

.fagnes-bundle-offer__media img {
	display: block;
	width: 84px;
	height: 84px;
	object-fit: contain;
	border-radius: 4px;
}

.single.woocommerce div.product .summary .fagnes-bundle-offer__text {
	grid-area: text;
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

.fagnes-bundle-offer__name {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 400;
	color: #6d6e71;
}

.single.woocommerce div.product .summary a.fagnes-bundle-offer__button {
	grid-area: button;
	display: block;
	padding: 12px 20px;
	border-radius: 4px;
	background-color: #030000;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	font-style: italic;
	text-align: center;
	text-decoration: none;
}

.single.woocommerce div.product .summary a.fagnes-bundle-offer__button:hover,
.single.woocommerce div.product .summary a.fagnes-bundle-offer__button:focus {
	background-color: #a68b52;
}

/* ---- GLS shipping line + costs ----------------------------------------- */
.single.woocommerce div.product .summary .fagnes-shipping {
	float: left;
	width: 100%;
	margin-top: 16px;
	border-top: 1px solid #eadfc4;
	border-bottom: 1px solid #eadfc4;
}

.fagnes-shipping summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 2px;
	cursor: pointer;
	list-style: none;
	font-size: 15px;
}

.fagnes-shipping summary::-webkit-details-marker {
	display: none;
}

.fagnes-shipping__icon {
	flex: 0 0 auto;
	color: #977723;
}

.fagnes-shipping__title {
	font-weight: 600;
}

.fagnes-shipping__more {
	margin-left: auto;
	font-size: 13px;
	text-decoration: underline;
	white-space: nowrap;
}

.fagnes-shipping__more::after {
	content: " ▾";
	text-decoration: none;
	display: inline-block;
	margin-left: 4px;
	transition: transform 0.2s ease;
}

.fagnes-shipping[open] .fagnes-shipping__more::after {
	transform: rotate(180deg);
}

.fagnes-shipping__body {
	padding: 0 2px 14px 34px;
	font-size: 14px;
}

.single.woocommerce div.product .summary .fagnes-shipping__zone {
	margin: 6px 0 4px;
	font-weight: 700;
}

.fagnes-shipping__rates {
	margin: 0 0 8px !important;
	padding: 0 !important;
	list-style: none !important;
}

.fagnes-shipping__rates li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 3px 0;
	list-style: none;
}

.single.woocommerce div.product .summary .fagnes-shipping__link {
	margin: 6px 0 0;
	font-size: 13px;
}

/* ---- Sample offer (cart + checkout) ------------------------------------ */
.fagnes-sample-offer {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 24px;
	padding: 14px 18px;
	border: 1px solid #eadfc4;
	border-radius: 6px;
	background-color: #faf7ee;
}

.fagnes-sample-offer__img {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	object-fit: contain;
}

.fagnes-sample-offer__text {
	flex: 1 1 auto;
	margin: 0 !important;
	font-size: 15px;
	line-height: 1.45;
}

.fagnes-sample-offer__form {
	flex: 0 0 auto;
	margin: 0;
}

@media only screen and (max-width: 600px) {
	.fagnes-sample-offer {
		flex-wrap: wrap;
	}

	.fagnes-sample-offer__form {
		width: 100%;
	}

	.fagnes-sample-offer__form .button {
		width: 100%;
	}
}

/* ---- Reviews: the theme hides the tab bar, so the reviews panel is shown as
   its own section under the description. ------------------------------------ */
.single.woocommerce div.product .woocommerce-tabs #tab-reviews {
	display: block !important;
	max-width: 900px;
	margin: 40px auto 0;
}

.woocommerce #reviews #comments ol.commentlist {
	padding: 0;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
	border-color: #eadfc4;
	border-radius: 6px;
}

.woocommerce .star-rating span::before,
.woocommerce p.stars a,
.woocommerce p.stars a::before,
.woocommerce ul.products li.product .star-rating {
	color: #977723;
}

.woocommerce #review_form #respond textarea,
.woocommerce #review_form #respond input[type="text"],
.woocommerce #review_form #respond input[type="email"] {
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
}

.woocommerce #reviews .woocommerce-review__verified {
	color: #977723;
	font-style: normal;
}

/* ---- Phones ------------------------------------------------------------- */
@media only screen and (max-width: 768px) {
	.single-product div.product .fagnes-features {
		float: none;
		width: 100%;
		margin: 24px 0 8px;
	}

	.fagnes-features__list {
		justify-content: center;
	}
}
