/**
 * Yerba Mate Commerce - Frontend Stylesheet
 * Based on Design Direction: Warm Parchment, Deep Forest Green, Honey Ochre, Tereré Frost Blue
 */

:root {
	--yerba-pergamin: #f8f6f0;
	--yerba-pergamin-light: #fcfbfa;
	--yerba-card-bg: #ffffff;
	--yerba-charcoal: #231e1b;
	--yerba-charcoal-muted: #5a544f;
	--yerba-border-stone: #e2dcd4;
	--yerba-border-stone-light: #ece8e1;
	--yerba-forest: #1b4332;
	--yerba-forest-light: #2d6a4f;
	--yerba-ochre: #c88218;
	--yerba-ochre-hover: #b07111;
	--yerba-terracotta: #b84a28;
	--yerba-mint: #10b981;
	--yerba-ice-bg: #e0f2fe;
	--yerba-ice-border: #7dd3fc;
	--yerba-ice-text: #0369a1;
	--yerba-radius: 8px;
	--yerba-radius-sm: 4px;
	--yerba-font-sans: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--yerba-font-serif: "Merriweather", "Playfair Display", Georgia, serif;
	--yerba-shadow-sm: 0 1px 3px rgba(35, 30, 27, 0.06);
	--yerba-shadow-md: 0 4px 12px rgba(35, 30, 27, 0.08);
}

/* ==========================================================================
   1. SENSORY INDICATORS CARD (Single Product)
   ========================================================================== */

.yerba-sensory-card {
	background: var(--yerba-pergamin);
	border: 1px solid var(--yerba-border-stone);
	border-radius: var(--yerba-radius);
	padding: 18px 20px;
	margin: 20px 0 25px 0;
	font-family: var(--yerba-font-sans);
	color: var(--yerba-charcoal);
	box-shadow: var(--yerba-shadow-sm);
}

.yerba-sensory-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--yerba-border-stone);
	margin-bottom: 16px;
	flex-wrap: wrap;
	gap: 10px;
}

.yerba-sensory-title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.yerba-sensory-title h4 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--yerba-forest);
	letter-spacing: -0.2px;
	text-transform: uppercase;
}

.yerba-country-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	border: 1px solid var(--yerba-border-stone);
	border-radius: 20px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	color: var(--yerba-charcoal);
}

.yerba-country-tag .yerba-flag {
	font-size: 14px;
}

/* Sensory Metrics Grid */
.yerba-sensory-metrics {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}

.yerba-metric-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.yerba-metric-label {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 170px;
}

.yerba-metric-name {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--yerba-charcoal);
}

.yerba-metric-val {
	font-size: 12px;
	color: var(--yerba-charcoal-muted);
	font-weight: 500;
}

.yerba-bars-wrap {
	display: flex;
	gap: 6px;
	flex: 1;
	max-width: 180px;
}

.yerba-bar {
	height: 8px;
	flex: 1;
	border-radius: 4px;
	transition: background-color 0.25s ease;
}

.yerba-bar-active {
	background-color: var(--yerba-forest);
}

.yerba-bar-inactive {
	background-color: var(--yerba-border-stone);
}

/* Quick Info Pills */
.yerba-quick-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed var(--yerba-border-stone);
}

.yerba-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.yerba-pill-temp {
	background: #ffffff;
	border: 1px solid var(--yerba-border-stone);
	color: var(--yerba-charcoal);
}

.yerba-terere-dedicated {
	background: var(--yerba-ice-bg);
	border: 1px solid var(--yerba-ice-border);
	color: var(--yerba-ice-text);
}

.yerba-terere-both {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.yerba-terere-warm {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

/* ==========================================================================
   2. 4-STEP BREWING GUIDE (Accordion & Standalone)
   ========================================================================== */

.yerba-brewing-guide-container {
	margin-top: 16px;
	border-top: 1px solid var(--yerba-border-stone);
	padding-top: 12px;
}

.yerba-guide-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: transparent;
	border: none;
	padding: 8px 4px;
	cursor: pointer;
	color: var(--yerba-forest);
	font-family: inherit;
	font-size: 13.5px;
	transition: color 0.2s ease;
}

.yerba-guide-toggle:hover {
	color: var(--yerba-forest-light);
}

.yerba-guide-toggle-left {
	display: flex;
	align-items: center;
	gap: 6px;
}

.yerba-guide-toggle-icon {
	font-size: 14px;
	transition: transform 0.25s ease;
}

.yerba-guide-toggle[aria-expanded="true"] .yerba-guide-toggle-icon {
	transform: rotate(180deg);
}

.yerba-guide-content {
	display: none;
	padding-top: 12px;
}

.yerba-guide-content.open {
	display: block;
}

.yerba-guide-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
}

.yerba-step-item {
	background: #ffffff;
	border: 1px solid var(--yerba-border-stone-light);
	border-radius: var(--yerba-radius-sm);
	padding: 12px;
	display: flex;
	gap: 10px;
}

.yerba-step-num {
	width: 26px;
	height: 26px;
	min-width: 26px;
	background: var(--yerba-forest);
	color: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
}

.yerba-step-text strong {
	display: block;
	font-size: 12.5px;
	color: var(--yerba-charcoal);
	margin-bottom: 4px;
}

.yerba-step-text p {
	margin: 0;
	font-size: 11.5px;
	line-height: 1.45;
	color: var(--yerba-charcoal-muted);
}

/* Standalone Brewing Guide Card */
.yerba-brewing-standalone-card {
	background: var(--yerba-pergamin);
	border: 1px solid var(--yerba-border-stone);
	border-radius: var(--yerba-radius);
	padding: 24px;
	margin: 30px 0;
	box-shadow: var(--yerba-shadow-sm);
}

.yerba-brewing-standalone-header {
	text-align: center;
	margin-bottom: 24px;
}

.yerba-icon-pot {
	font-size: 32px;
	display: block;
	margin-bottom: 6px;
}

.yerba-brewing-standalone-header h3 {
	font-family: var(--yerba-font-serif);
	font-size: 22px;
	color: var(--yerba-forest);
	margin: 0 0 8px 0;
}

.yerba-brewing-standalone-header p {
	font-size: 14px;
	color: var(--yerba-charcoal-muted);
	margin: 0;
}

/* ==========================================================================
   3. CATALOG LOOP BADGES
   ========================================================================== */

.yerba-loop-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 6px 0 8px 0;
}

.yerba-badge {
	font-size: 11px;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 12px;
	display: inline-block;
}

.yerba-badge-country {
	background: #f0ede6;
	color: var(--yerba-charcoal);
	border: 1px solid var(--yerba-border-stone);
}

.yerba-badge-terere {
	background: var(--yerba-ice-bg);
	color: var(--yerba-ice-text);
	border: 1px solid var(--yerba-ice-border);
}

.yerba-badge-terere-light {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.yerba-loop-power {
	font-size: 11px;
	font-weight: 700;
	color: var(--yerba-ochre);
	background: #fff8ee;
	border: 1px solid #fed7aa;
	padding: 2px 7px;
	border-radius: 12px;
}

/* ==========================================================================
   4. SHOP-THE-POST BLOG MODULE
   ========================================================================== */

.yerba-shop-the-post-box {
	background: var(--yerba-pergamin);
	border: 1px solid var(--yerba-border-stone);
	border-radius: var(--yerba-radius);
	padding: 24px;
	margin: 40px 0 20px 0;
	box-shadow: var(--yerba-shadow-sm);
	font-family: var(--yerba-font-sans);
}

.yerba-stp-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--yerba-border-stone);
}

.yerba-stp-icon {
	font-size: 26px;
	line-height: 1;
}

.yerba-stp-title {
	font-family: var(--yerba-font-serif);
	font-size: 20px;
	color: var(--yerba-forest);
	margin: 0 0 4px 0;
	font-weight: 700;
}

.yerba-stp-subtitle {
	font-size: 13.5px;
	color: var(--yerba-charcoal-muted);
	margin: 0;
}

.yerba-stp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.yerba-stp-card {
	background: #ffffff;
	border: 1px solid var(--yerba-border-stone);
	border-radius: var(--yerba-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yerba-stp-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--yerba-shadow-md);
}

.yerba-stp-thumb {
	position: relative;
	width: 100%;
	padding-top: 80%;
	background: #fbf9f5;
	overflow: hidden;
}

.yerba-stp-thumb img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.yerba-stp-card:hover .yerba-stp-thumb img {
	transform: scale(1.04);
}

.yerba-stp-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	font-size: 10.5px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 12px;
}

.yerba-stp-badge-terere {
	background: var(--yerba-ice-bg);
	color: var(--yerba-ice-text);
	border: 1px solid var(--yerba-ice-border);
}

.yerba-stp-badge-country {
	background: rgba(255, 255, 255, 0.9);
	color: var(--yerba-charcoal);
	border: 1px solid var(--yerba-border-stone);
}

.yerba-stp-details {
	padding: 14px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.yerba-stp-product-title {
	margin: 0 0 8px 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.yerba-stp-product-title a {
	color: var(--yerba-charcoal);
	text-decoration: none;
	transition: color 0.2s ease;
}

.yerba-stp-product-title a:hover {
	color: var(--yerba-forest);
}

.yerba-stp-power {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 11.5px;
	color: var(--yerba-charcoal-muted);
	margin-bottom: 10px;
}

.yerba-stp-dots {
	display: flex;
	gap: 3px;
}

.yerba-stp-dots .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--yerba-border-stone);
}

.yerba-stp-dots .dot.active {
	background: var(--yerba-forest);
}

.yerba-stp-price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--yerba-border-stone-light);
	gap: 8px;
}

.yerba-stp-price {
	font-size: 14px;
	font-weight: 700;
	color: var(--yerba-forest);
}

.yerba-stp-price del {
	font-size: 11.5px;
	color: #999;
	margin-right: 4px;
}

.yerba-stp-price ins {
	text-decoration: none;
	color: var(--yerba-terracotta);
}

.yerba-btn-quick-add {
	background: var(--yerba-ochre);
	color: #ffffff;
	border: none;
	border-radius: var(--yerba-radius-sm);
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: background 0.2s ease, transform 0.1s ease;
}

.yerba-btn-quick-add:hover {
	background: var(--yerba-ochre-hover);
}

.yerba-btn-quick-add:active {
	transform: scale(0.97);
}

/* ==========================================================================
   5. TOAST NOTIFICATION
   ========================================================================== */

.yerba-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: var(--yerba-forest);
	color: #ffffff;
	padding: 14px 20px;
	border-radius: var(--yerba-radius);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	font-size: 13.5px;
	font-weight: 500;
	z-index: 999999;
	display: flex;
	align-items: center;
	gap: 12px;
	transform: translateY(100px);
	opacity: 0;
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.yerba-toast.show {
	transform: translateY(0);
	opacity: 1;
}

.yerba-toast a {
	color: #fef08a;
	text-decoration: underline;
	font-weight: 700;
}

/* ==========================================================================
   6. USP BAR SHORTCODE
   ========================================================================== */

.yerba-usp-bar {
	background: var(--yerba-forest);
	color: #ffffff;
	padding: 10px 16px;
	font-size: 13px;
	border-bottom: 2px solid var(--yerba-ochre);
}

.yerba-usp-container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-around;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.yerba-usp-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.yerba-usp-icon {
	font-size: 16px;
}

.yerba-usp-text strong {
	color: #fef08a;
}

/* ==========================================================================
   7. DUAL-ZONE HERO SECTION
   ========================================================================== */

.yerba-hero-section {
	background: linear-gradient(180deg, var(--yerba-pergamin) 0%, #ffffff 100%);
	border-radius: var(--yerba-radius);
	border: 1px solid var(--yerba-border-stone);
	padding: 48px 32px;
	margin: 30px 0;
	display: flex;
	flex-direction: column;
	gap: 36px;
	box-shadow: var(--yerba-shadow-sm);
}

.yerba-hero-content {
	text-align: center;
	max-width: 820px;
	margin: 0 auto;
}

.yerba-hero-eyebrow {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.5px;
	color: var(--yerba-ochre);
	display: inline-block;
	margin-bottom: 10px;
}

.yerba-hero-title {
	font-family: var(--yerba-font-serif);
	font-size: 34px;
	color: var(--yerba-forest);
	line-height: 1.25;
	margin: 0 0 16px 0;
}

.yerba-hero-highlight {
	color: var(--yerba-terracotta);
}

.yerba-hero-terere {
	color: var(--yerba-ice-text);
}

.yerba-hero-desc {
	font-size: 16px;
	color: var(--yerba-charcoal-muted);
	line-height: 1.6;
	margin: 0 0 28px 0;
}

.yerba-hero-actions {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
}

.yerba-btn-hero-primary {
	background: var(--yerba-ochre);
	color: #ffffff !important;
	padding: 14px 26px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 14.5px;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(200, 130, 24, 0.35);
	transition: all 0.2s ease;
}

.yerba-btn-hero-primary:hover {
	background: var(--yerba-ochre-hover);
	transform: translateY(-2px);
}

.yerba-btn-hero-secondary {
	background: #ffffff;
	color: var(--yerba-forest) !important;
	border: 1.5px solid var(--yerba-forest);
	padding: 13px 24px;
	border-radius: 30px;
	font-weight: 600;
	font-size: 14.5px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.yerba-btn-hero-secondary:hover {
	background: var(--yerba-forest);
	color: #ffffff !important;
}

.yerba-hero-split-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.yerba-hero-card {
	padding: 26px;
	border-radius: var(--yerba-radius);
	border: 1px solid var(--yerba-border-stone);
}

.yerba-card-warm {
	background: #fffbf5;
	border-left: 4px solid var(--yerba-ochre);
}

.yerba-card-cold {
	background: #f0f9ff;
	border-left: 4px solid #38bdf8;
}

.yerba-card-badge-zone {
	font-size: 11.5px;
	font-weight: 800;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.yerba-card-warm .yerba-card-badge-zone {
	color: var(--yerba-terracotta);
}

.yerba-card-cold .yerba-card-badge-zone {
	color: var(--yerba-ice-text);
}

.yerba-hero-card h3 {
	margin: 0 0 8px 0;
	font-size: 19px;
	color: var(--yerba-forest);
}

.yerba-hero-card p {
	margin: 0;
	font-size: 13.5px;
	color: var(--yerba-charcoal-muted);
	line-height: 1.5;
}

/* ==========================================================================
   8. COUNTRIES & CULTURES SHOWCASE
   ========================================================================== */

.yerba-countries-section {
	padding: 30px 0;
}

.yerba-countries-header {
	text-align: center;
	margin-bottom: 28px;
}

.yerba-sub-tag {
	font-size: 11.5px;
	font-weight: 800;
	color: var(--yerba-forest);
	letter-spacing: 1px;
	display: block;
	margin-bottom: 6px;
}

.yerba-countries-header h2 {
	font-family: var(--yerba-font-serif);
	font-size: 26px;
	color: var(--yerba-forest);
	margin: 0 0 8px 0;
}

.yerba-countries-header p {
	font-size: 14.5px;
	color: var(--yerba-charcoal-muted);
	margin: 0;
}

.yerba-countries-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.yerba-country-card {
	background: #ffffff;
	border: 1px solid var(--yerba-border-stone);
	border-radius: var(--yerba-radius);
	padding: 22px;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yerba-country-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--yerba-shadow-md);
	border-color: var(--yerba-forest);
}

.yerba-c-flag {
	font-size: 38px;
	margin-bottom: 10px;
}

.yerba-c-name {
	font-size: 18px;
	color: var(--yerba-forest);
	margin: 0 0 4px 0;
	font-weight: 700;
}

.yerba-c-style {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: var(--yerba-ochre);
	margin-bottom: 12px;
	background: #fff9ee;
	padding: 2px 8px;
	border-radius: 12px;
}

.yerba-c-desc {
	font-size: 13px;
	color: var(--yerba-charcoal-muted);
	line-height: 1.5;
	margin: 0;
}

/* ==========================================================================
   9. TERERÉ SHOWCASE & RECIPE
   ========================================================================== */

.yerba-terere-showcase {
	background: linear-gradient(135deg, #e0f2fe 0%, #f0fdfa 100%);
	border: 1px solid #bae6fd;
	border-radius: var(--yerba-radius);
	padding: 36px 28px;
	margin: 35px 0;
}

.yerba-terere-header {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 28px auto;
}

.yerba-terere-pill {
	display: inline-block;
	background: #0284c7;
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	padding: 4px 12px;
	border-radius: 16px;
	margin-bottom: 10px;
}

.yerba-terere-header h2 {
	font-family: var(--yerba-font-serif);
	font-size: 26px;
	color: #0369a1;
	margin: 0 0 10px 0;
}

.yerba-terere-header p {
	font-size: 14.5px;
	color: #334155;
	line-height: 1.55;
	margin: 0;
}

.yerba-terere-recipe-box {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: var(--yerba-radius);
	padding: 24px;
	box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
}

.yerba-recipe-title {
	margin: 0 0 18px 0;
	font-size: 16px;
	color: #0369a1;
	font-weight: 700;
}

.yerba-recipe-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.yerba-r-step {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 16px;
}

.yerba-r-num {
	display: inline-block;
	width: 24px;
	height: 24px;
	background: #0284c7;
	color: #ffffff;
	border-radius: 50%;
	text-align: center;
	line-height: 24px;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 8px;
}

.yerba-r-step strong {
	display: block;
	font-size: 13.5px;
	color: #0f172a;
	margin-bottom: 6px;
}

.yerba-r-step p {
	margin: 0;
	font-size: 12px;
	color: #64748b;
	line-height: 1.45;
}

@media (max-width: 768px) {
	.yerba-hero-split-cards {
		grid-template-columns: 1fr;
	}
	.yerba-hero-section {
		padding: 30px 18px;
	}
	.yerba-hero-title {
		font-size: 26px;
	}
}
