/* =========================================================
   ARTURO FUENTE
   SINGLE PRODUCT SPECS
   ========================================================= */

.af-product-specs {
	--af-spec-bg: #fbf7ef;
	--af-spec-card: #fffdf9;
	--af-spec-text: #241b17;
	--af-spec-muted: #6f6259;

	--af-spec-gold: #b67e53;
	--af-spec-gold-dark: #96623d;
	--af-spec-gold-light: #ddc8aa;

	--af-spec-burgundy: #7a161b;
	--af-spec-burgundy-dark: #571014;

	--af-spec-border: rgba(182, 126, 83, 0.28);

	width: 100%;
	margin: 28px 0 0;
	padding: 0;

	color: var(--af-spec-text);
	font-family: inherit;
	box-sizing: border-box;
}

.af-product-specs *,
.af-product-specs *::before,
.af-product-specs *::after {
	box-sizing: border-box;
}

.af-product-specs .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}


/* =========================================================
   BADGE
   ========================================================= */

.af-product-specs__badge {
	position: relative;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 28px;

	margin: 0 0 18px;
	padding: 6px 16px;

	border: 1px solid var(--af-spec-gold);

	background:
		linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.65),
			rgba(182, 126, 83, 0.04)
		);

	color: var(--af-spec-burgundy);

	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
}

.af-product-specs__badge::before,
.af-product-specs__badge::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 16px;
	height: 1px;
	background: var(--af-spec-gold-light);
}

.af-product-specs__badge::before {
	right: calc(100% + 10px);
}

.af-product-specs__badge::after {
	left: calc(100% + 10px);
}


/* =========================================================
   SPECS GRID
   ========================================================= */

.af-product-specs__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;

	width: 100%;
	margin: 0;
	padding: 0;

	border: 1px solid var(--af-spec-border);
}


/* Last odd item spans full width so missing specs don't leave a hole */

.af-product-specs__item:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}


/* =========================================================
   ITEM
   ========================================================= */

.af-product-specs__item {
	display: flex;
	align-items: center;
	gap: 14px;

	min-width: 0;
	min-height: 76px;
	margin: 0;
	padding: 16px 18px;

	background: var(--af-spec-card);
	border: 0;

	transition: background-color 0.2s ease;
}

.af-product-specs__item:hover {
	background: #fff8ef;
}


/* =========================================================
   ICON
   ========================================================= */

.af-product-specs__icon {
	position: relative;

	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 42px;

	width: 42px;
	height: 42px;

	border: 1px solid rgba(182, 126, 83, 0.34);
	border-radius: 50%;

	color: var(--af-spec-gold);

	background:
		radial-gradient(
			circle,
			rgba(182, 126, 83, 0.06) 0%,
			transparent 70%
		);
}

.af-product-specs__icon::after {
	content: "";
	position: absolute;
	inset: 4px;
	border: 1px solid rgba(182, 126, 83, 0.12);
	border-radius: 50%;
	pointer-events: none;
}

.af-product-specs__icon svg {
	position: relative;
	z-index: 1;
	display: block;
	width: 18px;
	height: 18px;
	stroke: currentColor;
	stroke-width: 1.5;
}

.af-product-specs__icon--brand {
	color: var(--af-spec-burgundy);
}

.af-product-specs__item:hover .af-product-specs__icon {
	border-color: rgba(182, 126, 83, 0.62);
}


/* =========================================================
   LABEL + VALUE
   ========================================================= */

.af-product-specs__content {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
	flex: 1 1 auto;
}

.af-product-specs dt.af-product-specs__label,
.af-product-specs__label {
	display: block;
	float: none;

	width: auto;
	margin: 0;
	padding: 0;

	color: var(--af-spec-muted);

	font-size: 11px;
	font-weight: 600;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.af-product-specs dd.af-product-specs__value,
.af-product-specs__value {
	display: block;
	float: none;

	width: auto;
	margin: 0;
	padding: 0;

	color: var(--af-spec-text);

	font-size: 16px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0;

	word-break: break-word;
	overflow-wrap: anywhere;
}

.af-product-specs__item--format .af-product-specs__value {
	letter-spacing: 0.04em;
}


/* =========================================================
   INTENSITY DOTS
   ========================================================= */

.af-product-specs__dots {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 22px;
}

.af-product-specs__dot {
	display: block;
	flex: 0 0 auto;

	width: 9px;
	height: 9px;

	border: 1px solid var(--af-spec-gold-dark);
	border-radius: 50%;
	background: transparent;
}

.af-product-specs__dot.is-active {
	border-color: var(--af-spec-burgundy);
	background: var(--af-spec-burgundy);
}


/* =========================================================
   ORNAMENT
   ========================================================= */

.af-product-specs::after {
	content: "◆";

	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	height: 22px;
	margin-top: 6px;

	color: var(--af-spec-gold);
	font-size: 6px;

	background:
		linear-gradient(var(--af-spec-border), var(--af-spec-border))
			left center / calc(50% - 16px) 1px no-repeat,
		linear-gradient(var(--af-spec-border), var(--af-spec-border))
			right center / calc(50% - 16px) 1px no-repeat;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

	.af-product-specs {
		margin-top: 22px;
	}

	.af-product-specs__grid {
		grid-template-columns: 1fr;
	}

	.af-product-specs__item:last-child:nth-child(odd) {
		grid-column: auto;
	}

	.af-product-specs__item {
		min-height: 0;
		padding: 14px 16px;
	}
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.af-product-specs {
		margin-top: 18px;
	}

	.af-product-specs__badge {
		margin-bottom: 14px;
		padding: 6px 12px;
		font-size: 9px;
	}

	.af-product-specs__badge::before,
	.af-product-specs__badge::after {
		width: 10px;
	}

	.af-product-specs__item {
		gap: 12px;
		padding: 13px 12px;
	}

	.af-product-specs__icon {
		flex: 0 0 38px;
		width: 38px;
		height: 38px;
	}

	.af-product-specs__icon svg {
		width: 16px;
		height: 16px;
	}

	.af-product-specs dt.af-product-specs__label,
	.af-product-specs__label {
		font-size: 10px;
		letter-spacing: 0.1em;
	}

	.af-product-specs dd.af-product-specs__value,
	.af-product-specs__value {
		font-size: 15px;
	}

	.af-product-specs::after {
		margin-top: 4px;
		height: 18px;
	}
}


/* =========================================================
   ARTURO FUENTE
   MOBILE PRODUCT IMAGE SLIDER
   ========================================================= */

@media (max-width: 767px) {

	.single-product
	.woocommerce-product-gallery {
		position: relative;
		width: 100%;
		margin: 0 0 24px;
		overflow: hidden;
	}

	.single-product
	.woocommerce-product-gallery__wrapper {
		margin: 0 !important;
	}

	.single-product
	.woocommerce-product-gallery__image {
		background: #fff;
	}

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

	.single-product
	.woocommerce-product-gallery__image img {
		display: block;
		width: 100% !important;
		height: auto !important;
		margin: 0 auto;
		object-fit: contain;
	}

	.single-product
	.flex-control-thumbs {
		display: flex !important;
		justify-content: center;
		align-items: center;
		gap: 8px;
		margin: 15px 0 0 !important;
		padding: 0 !important;
		list-style: none;
		overflow: visible !important;
	}

	.single-product
	.flex-control-thumbs li {
		flex: 0 0 auto !important;
		width: auto !important;
		height: auto !important;
		margin: 0 !important;
	}

	.single-product
	.flex-control-thumbs li img {
		display: block;
		width: 8px !important;
		height: 8px !important;
		margin: 0 !important;
		border: 1px solid #8b694b;
		border-radius: 50%;
		background: transparent;
		opacity: 1 !important;
		object-fit: cover;
		font-size: 0;
		color: transparent;
		transition:
			width 0.2s ease,
			background-color 0.2s ease,
			border-color 0.2s ease;
	}

	.single-product
	.flex-control-thumbs li img.flex-active {
		width: 22px !important;
		border-radius: 20px;
		border-color: #781419;
		background: #781419;
	}

	.single-product
	.flex-direction-nav {
		display: block !important;
		margin: 0 !important;
		padding: 0 !important;
		list-style: none !important;
	}

	.single-product
	.flex-direction-nav li {
		list-style: none !important;
	}

	.single-product
	.flex-direction-nav a {
		position: absolute !important;
		top: 50% !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 38px !important;
		height: 38px !important;
		margin-top: -19px !important;
		border: 1px solid rgba(182, 126, 83, 0.35) !important;
		border-radius: 50% !important;
		background: rgba(255, 250, 242, 0.92) !important;
		color: transparent !important;
		opacity: 1 !important;
		text-indent: -9999px !important;
		box-shadow: 0 4px 12px rgba(39, 24, 14, 0.08) !important;
		z-index: 10 !important;
	}

	.single-product
	.flex-direction-nav .flex-prev {
		left: 10px !important;
	}

	.single-product
	.flex-direction-nav .flex-next {
		right: 10px !important;
	}

	.single-product
	.flex-direction-nav .flex-prev::after {
		content: "";
		position: absolute;
		width: 8px;
		height: 8px;
		border-left: 2px solid #781419;
		border-bottom: 2px solid #781419;
		transform: rotate(45deg);
	}

	.single-product
	.flex-direction-nav .flex-next::after {
		content: "";
		position: absolute;
		width: 8px;
		height: 8px;
		border-right: 2px solid #781419;
		border-top: 2px solid #781419;
		transform: rotate(45deg);
	}

	.single-product
	.woocommerce-product-gallery__trigger {
		top: 12px !important;
		right: 12px !important;
		width: 38px !important;
		height: 38px !important;
		border: 1px solid rgba(182, 126, 83, 0.35) !important;
		background: rgba(255, 250, 242, 0.92) !important;
	}

}
