/**
 * The Discovery Sets Widget Stylesheet
 * BEM Scoped (.ff-ds-)
 * Editorial Olfactory Showcase: 10 Fables Visual Tray + 3 Curated Set Cards
 */

.ff-ds-wrapper {
	--ff-ds-primary: #1D1A16;
	--ff-ds-accent: #B8933C;
	--ff-ds-accent-hover: #9E7B2B;
	--ff-ds-bg: #FBF9F5;
	--ff-ds-card-bg: #FFFFFF;
	--ff-ds-border: #E8E2D8;
	--ff-ds-muted: #6F6860;
	--ff-ds-shadow: 0 4px 20px rgba(29, 26, 22, 0.06);
	--ff-ds-shadow-hover: 0 14px 34px rgba(29, 26, 22, 0.12);
	--ff-ds-radius: 6px;
	--ff-ds-btn-radius: 4px;
	--ff-ds-font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
	--ff-ds-font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	position: relative;
	box-sizing: border-box;
	width: 100%;
	padding: 80px 0;
	background-color: var(--ff-ds-bg);
}

.ff-ds-wrapper *,
.ff-ds-wrapper *::before,
.ff-ds-wrapper *::after {
	box-sizing: border-box;
}

.ff-ds-container {
	width: 100%;
	max-width: 1340px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ==========================================================================
   1. Header Section
   ========================================================================== */
.ff-ds-header {
	text-align: center;
	max-width: 820px;
	margin: 0 auto 50px auto;
}

.ff-ds-eyebrow {
	display: inline-block;
	font-family: var(--ff-ds-font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ff-ds-accent);
	margin-bottom: 10px;
}

.ff-ds-heading {
	font-family: var(--ff-ds-font-heading);
	font-size: 36px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ff-ds-primary);
	margin: 0 0 10px 0;
	letter-spacing: -0.01em;
}

.ff-ds-subtitle {
	font-family: var(--ff-ds-font-heading);
	font-size: 19px;
	font-weight: 400;
	font-style: italic;
	color: var(--ff-ds-accent);
	margin: 0 0 12px 0;
}

.ff-ds-description {
	font-family: var(--ff-ds-font-body);
	font-size: 15px;
	line-height: 1.65;
	color: var(--ff-ds-muted);
	margin: 0 0 18px 0;
}

.ff-ds-quote-wrap {
	display: inline-block;
	padding: 10px 24px;
	background: rgba(184, 147, 60, 0.08);
	border-left: 2px solid var(--ff-ds-accent);
	border-right: 2px solid var(--ff-ds-accent);
	border-radius: 2px;
	margin-top: 6px;
}

.ff-ds-quote {
	font-family: var(--ff-ds-font-heading);
	font-size: 16px;
	font-style: italic;
	font-weight: 500;
	color: var(--ff-ds-primary);
	letter-spacing: 0.02em;
}

/* ==========================================================================
   2. Ten Fables Visual Tray (Not An Ordinary Grid)
   ========================================================================== */
.ff-ds-vials-section {
	background: #FFFFFF;
	border: 1px solid var(--ff-ds-border);
	border-radius: var(--ff-ds-radius);
	padding: 36px 28px 30px 28px;
	margin-bottom: 50px;
	box-shadow: 0 6px 24px rgba(29, 26, 22, 0.04);
	overflow: visible;
}

.ff-ds-tray-title {
	text-align: center;
	margin-bottom: 26px;
}

.ff-ds-tray-title span {
	font-family: var(--ff-ds-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ff-ds-muted);
	padding-bottom: 6px;
	border-bottom: 1px solid var(--ff-ds-accent);
}

.ff-ds-vials-grid {
	display: grid;
	grid-template-columns: repeat(10, minmax(0, 1fr));
	gap: 12px;
	align-items: stretch;
}

.ff-ds-vial-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 22px 10px 18px 10px;
	background: #FAF7F2;
	border: 1px solid var(--ff-ds-border);
	border-radius: 4px;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	cursor: pointer;
	box-sizing: border-box;
}

.ff-ds-vial-item:hover {
	transform: translateY(-5px);
	background: #FFFFFF;
	border-color: var(--ff-ds-accent);
	box-shadow: 0 8px 22px rgba(184, 147, 60, 0.18);
}

/* Glass Tester Vial Visual Representation (Authentic 5ml Spray Atomizer) */
.ff-ds-vial-visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 84px;
	margin-bottom: 12px;
}

.ff-ds-vial-cap-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 14px;
	z-index: 2;
}

.ff-ds-vial-cap {
	display: block;
	width: 14px;
	height: 16px;
	background: #1D1A16;
	border-radius: 3px 3px 0 0;
	box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.2), inset -1px 0 0 rgba(0, 0, 0, 0.5);
}

.ff-ds-vial-collar {
	display: block;
	width: 16px;
	height: 4px;
	background: linear-gradient(90deg, #9E7B2B 0%, #E2C87A 50%, #B8933C 100%);
	border-radius: 1px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ff-ds-vial-glass {
	position: relative;
	width: 22px;
	height: 58px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.25) 25%, rgba(255, 255, 255, 0.5) 80%, rgba(240, 235, 225, 0.85) 100%);
	border: 1px solid rgba(184, 147, 60, 0.45);
	border-top: none;
	border-radius: 0 0 5px 5px;
	box-shadow: inset 1px 0 2px rgba(255, 255, 255, 0.8), 0 3px 8px rgba(0, 0, 0, 0.06);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
}

.ff-ds-vial-juice {
	width: 100%;
	height: 74%;
	background: linear-gradient(180deg, rgba(220, 185, 110, 0.45) 0%, rgba(184, 147, 60, 0.85) 100%);
	border-radius: 0 0 4px 4px;
}

.ff-ds-col-accent .ff-ds-vial-juice {
	background: linear-gradient(180deg, rgba(215, 160, 135, 0.5) 0%, rgba(160, 110, 80, 0.85) 100%);
}

.ff-ds-vial-badge {
	position: absolute;
	top: 42%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.94);
	border-top: 1px solid rgba(184, 147, 60, 0.45);
	border-bottom: 1px solid rgba(184, 147, 60, 0.45);
	font-family: var(--ff-ds-font-body);
	font-size: 8px;
	font-weight: 700;
	color: #1D1A16;
	text-align: center;
	line-height: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	pointer-events: none;
}

/* Stacked Vial Typography - Clear 3-Row Hierarchy */
.ff-ds-vial-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 100%;
	gap: 3px;
}

.ff-ds-vial-name {
	display: block;
	width: 100%;
	font-family: var(--ff-ds-font-heading);
	font-size: 13px;
	font-weight: 700;
	color: var(--ff-ds-primary);
	line-height: 1.25;
	letter-spacing: 0.05em;
	margin: 0;
	text-align: center;
}

.ff-ds-vial-family {
	display: block;
	width: 100%;
	font-family: var(--ff-ds-font-body);
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--ff-ds-accent);
	letter-spacing: 0.08em;
	line-height: 1.25;
	margin: 0;
	text-align: center;
	white-space: nowrap;
}

.ff-ds-vial-char {
	display: block;
	width: 100%;
	font-family: var(--ff-ds-font-body);
	font-size: 10px;
	font-weight: 500;
	color: var(--ff-ds-muted);
	line-height: 1.35;
	margin: 0;
	text-align: center;
}

/* ==========================================================================
   3. The 3 Discovery Sets Cards
   ========================================================================== */
.ff-ds-sets-grid {
	display: grid;
	grid-template-columns: 1fr 1.06fr 1fr;
	gap: 22px;
	align-items: stretch;
	margin-bottom: 50px;
}

.ff-ds-card {
	display: flex;
	flex-direction: column;
	background: var(--ff-ds-card-bg);
	border: 1px solid var(--ff-ds-border);
	border-radius: var(--ff-ds-radius);
	padding: 36px 30px;
	box-shadow: var(--ff-ds-shadow);
	transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	box-sizing: border-box;
	height: 100%;
}

.ff-ds-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--ff-ds-shadow-hover);
	border-color: #D6CEBF;
}

/* Grand Set (Featured Center Card) */
.ff-ds-card.is-featured {
	border: 2px solid var(--ff-ds-accent);
	box-shadow: 0 10px 32px rgba(184, 147, 60, 0.16);
	background: #FFFFFF;
	padding-top: 50px; /* Ample breathing clearance for floating ribbon badge */
}

.ff-ds-badge-wrap {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	white-space: nowrap;
	width: max-content;
	max-width: 90%;
}

.ff-ds-badge {
	display: inline-block;
	white-space: nowrap;
	background-color: var(--ff-ds-accent);
	color: #FFFFFF;
	font-family: var(--ff-ds-font-body);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 6px 18px;
	border-radius: 20px;
	box-shadow: 0 4px 14px rgba(184, 147, 60, 0.35);
}

.ff-ds-card-head {
	text-align: center;
	border-bottom: 1px solid var(--ff-ds-border);
	padding-bottom: 22px;
	margin-bottom: 22px;
	min-height: 142px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
}

.ff-ds-pill {
	display: inline-block;
	font-family: var(--ff-ds-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ff-ds-primary);
	background: #FAF7F2;
	padding: 4px 14px;
	border-radius: 20px;
	margin-bottom: 12px;
	border: 1px solid var(--ff-ds-border);
	white-space: nowrap;
}

.ff-ds-pill-gold {
	background: rgba(184, 147, 60, 0.12);
	color: var(--ff-ds-accent);
	border-color: rgba(184, 147, 60, 0.3);
}

.ff-ds-card-title {
	font-family: var(--ff-ds-font-heading);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ff-ds-primary);
	margin: 0 0 8px 0;
}

.ff-ds-card-spec {
	font-family: var(--ff-ds-font-body);
	font-size: 13px;
	color: var(--ff-ds-muted);
	font-weight: 500;
	line-height: 1.4;
}

.ff-ds-card-body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	text-align: center;
}

.ff-ds-fragrance-list {
	margin-bottom: 24px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
}

.ff-ds-list-label {
	display: block;
	font-family: var(--ff-ds-font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ff-ds-muted);
	margin-bottom: 8px;
}

.ff-ds-fragrances {
	font-family: var(--ff-ds-font-body);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--ff-ds-primary);
	margin: 0;
}

.ff-ds-card-price {
	font-family: var(--ff-ds-font-body);
	font-size: 24px;
	font-weight: 700;
	color: var(--ff-ds-primary);
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	gap: 4px;
}

.ff-ds-card-price.is-highlight {
	color: var(--ff-ds-accent);
}

.ff-ds-tax-hint {
	font-size: 11px;
	font-weight: 400;
	color: var(--ff-ds-muted);
}

/* Identical 48px baseline-aligned CTA buttons across all cards */
.ff-ds-btn-cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 48px;
	gap: 10px;
	padding: 0 24px;
	margin-top: auto;
	background-color: var(--ff-ds-primary);
	color: #FFFFFF;
	border: 1px solid var(--ff-ds-primary);
	border-radius: var(--ff-ds-btn-radius);
	font-family: var(--ff-ds-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.3s ease;
	line-height: 48px;
	box-sizing: border-box;
}

.ff-ds-btn-cart:hover {
	background-color: var(--ff-ds-accent);
	border-color: var(--ff-ds-accent);
	color: #FFFFFF;
	box-shadow: 0 6px 18px rgba(184, 147, 60, 0.35);
}

.ff-ds-card.is-featured .ff-ds-btn-cart {
	background-color: var(--ff-ds-accent);
	border-color: var(--ff-ds-accent);
}

.ff-ds-card.is-featured .ff-ds-btn-cart:hover {
	background-color: var(--ff-ds-primary);
	border-color: var(--ff-ds-primary);
}

.ff-ds-btn-cart.is-loading {
	opacity: 0.85;
	pointer-events: none;
}

.ff-ds-btn-cart.is-added {
	background-color: #2F6F4E !important;
	border-color: #2F6F4E !important;
	color: #FFFFFF !important;
}

/* ==========================================================================
   4. Bottom Explore Button
   ========================================================================== */
.ff-ds-bottom-cta {
	text-align: center;
	margin-top: 10px;
}

.ff-ds-btn-discover {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 16px 44px;
	background-color: var(--ff-ds-primary);
	color: #FFFFFF;
	border: 1px solid var(--ff-ds-primary);
	border-radius: var(--ff-ds-btn-radius);
	font-family: var(--ff-ds-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 4px 18px rgba(29, 26, 22, 0.15);
	transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	line-height: 1;
}

.ff-ds-btn-discover svg {
	transition: transform 0.3s ease;
	stroke: currentColor;
}

.ff-ds-btn-discover:hover {
	background-color: var(--ff-ds-accent);
	border-color: var(--ff-ds-accent);
	color: #FFFFFF;
	transform: translateY(-3px);
	box-shadow: 0 8px 26px rgba(184, 147, 60, 0.35);
}

.ff-ds-btn-discover:hover svg {
	transform: translateX(5px);
}

/* ==========================================================================
   5. Responsive Media Queries
   ========================================================================== */
@media (max-width: 1200px) {
	.ff-ds-vials-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 10px;
	}
}

@media (max-width: 991px) {
	.ff-ds-sets-grid {
		grid-template-columns: 1fr;
		gap: 28px;
		max-width: 520px;
		margin-left: auto;
		margin-right: auto;
	}

	.ff-ds-card.is-featured {
		order: -1; /* Place 10-piece set at top on mobile/tablet */
	}
}

@media (max-width: 640px) {
	.ff-ds-wrapper {
		padding: 55px 0;
	}

	.ff-ds-heading {
		font-size: 28px;
	}

	.ff-ds-vials-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.ff-ds-card {
		padding: 28px 20px;
	}

	.ff-ds-btn-discover {
		width: 100%;
		padding: 15px 20px;
		font-size: 12px;
	}
}
