/**
 * HUG'N SIP — /cafea (retail layout, uses hugnsip-design-system tokens)
 */

/* Butoane — text alb (și fără design-system global) */
#hugnsip-cafea a.hns-btn.hns-btn--primary,
#hugnsip-cafea button.hns-btn.hns-btn--primary,
#hugnsip-cafea .hns-cafea__add-to-cart,
#hugnsip-cafea .hns-cafea__add-bundle {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	background-color: #6b4f3a !important;
	border-color: #6b4f3a !important;
}

#hugnsip-cafea a.hns-btn.hns-btn--primary:hover,
#hugnsip-cafea button.hns-btn.hns-btn--primary:hover,
#hugnsip-cafea .hns-cafea__add-to-cart:hover,
#hugnsip-cafea .hns-cafea__add-bundle:hover {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	background-color: #564032 !important;
}

.hugnsip-cafea-landing .site-content > .ast-container {
	max-width: 100%;
	width: 100%;
	padding: 0;
}

.hugnsip-cafea-landing #primary,
.hugnsip-cafea-landing .content-area {
	margin: 0;
	padding: 0;
	width: 100% !important;
	max-width: 100% !important;
	flex: 1 1 100%;
}

.hugnsip-cafea-landing #secondary {
	display: none;
}

.hugnsip-cafea-landing .entry-content {
	margin: 0;
}

.hns-cafea {
	background: var(--hns-bg);
}

.hns-cafea {
	width: 100%;
}

.hns-cafea .hns-wrap,
.hns-cafea .ast-container {
	width: 100%;
	max-width: var(--hns-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--hns-gutter);
	padding-right: var(--hns-gutter);
	box-sizing: border-box;
}

/* Secțiuni centrate (FAQ, helper) */
.hns-section--centered .hns-section__head,
.hns-section--centered .hns-faq__list {
	margin-left: auto;
	margin-right: auto;
}

.hns-section--centered .hns-section__head {
	text-align: center;
}

.hns-section--centered .hns-section__desc {
	margin-left: auto;
	margin-right: auto;
}

/* Sections — compact rhythm */
.hns-section {
	padding-top: var(--hns-section-pad);
	padding-bottom: var(--hns-section-pad);
}

.hns-section--cream {
	background: var(--hns-bg);
}

.hns-section--warm {
	background: var(--hns-bg-muted);
}

.hns-section--surface {
	background: var(--hns-bg-elevated);
	border-top: 1px solid var(--hns-border-subtle);
	border-bottom: 1px solid var(--hns-border-subtle);
}

/* Hero — product-forward, no decorative fluff */
.hns-section--hero {
	padding-top: var(--hns-space-8);
	padding-bottom: var(--hns-space-8);
	background: var(--hns-bg-elevated);
	border-bottom: 1px solid var(--hns-border-subtle);
}

.hns-hero__grid {
	display: grid;
	gap: var(--hns-space-8);
	align-items: center;
}

.hns-hero__title {
	font-family: var(--hns-font-heading);
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	font-weight: 600;
	line-height: var(--hns-leading-tight);
	margin: 0 0 var(--hns-space-4);
	color: var(--hns-text);
}

.hns-hero__lead {
	font-size: var(--hns-text-base);
	line-height: var(--hns-leading-relaxed);
	color: var(--hns-text-secondary);
	margin: 0 0 var(--hns-space-6);
	max-width: 32rem;
}

.hns-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hns-space-3);
}

.hns-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hns-space-6);
	margin-top: var(--hns-space-6);
	padding-top: var(--hns-space-5);
	border-top: 1px solid var(--hns-border-subtle);
	font-size: var(--hns-text-sm);
	color: var(--hns-text-secondary);
}

.hns-hero__trust-item strong {
	font-weight: 600;
	color: var(--hns-text);
	margin-right: var(--hns-space-1);
}

.hns-hero__visual {
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--hns-bg-muted);
	border-radius: var(--hns-radius-lg);
	padding: var(--hns-space-6);
}

.hns-hero__visual img {
	width: min(100%, 20rem);
	height: auto;
	object-fit: contain;
}

/* Why — simple cards */
.hns-why__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--hns-space-4);
}

.hns-why__card {
	background: var(--hns-bg-elevated);
	border: 1px solid var(--hns-border-subtle);
	border-radius: var(--hns-radius);
	padding: var(--hns-space-5);
}

.hns-why__card h3 {
	font-family: var(--hns-font-heading);
	font-size: var(--hns-text-base);
	font-weight: 600;
	margin: 0 0 var(--hns-space-2);
}

.hns-why__card p {
	margin: 0;
	font-size: var(--hns-text-sm);
	color: var(--hns-text-secondary);
	line-height: var(--hns-leading-relaxed);
}

/* Products — dominant, tight grid */
.hns-products__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--hns-space-5);
	grid-template-columns: 1fr;
}

.hns-product {
	display: flex;
	flex-direction: column;
	background: var(--hns-bg-elevated);
	border: 1px solid var(--hns-border-subtle);
	border-radius: var(--hns-radius-lg);
	overflow: hidden;
}

.hns-product__media {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--hns-bg-muted);
	padding: var(--hns-space-6);
	min-height: 11rem;
	text-decoration: none;
}

.hns-product__media img {
	max-width: 90%;
	max-height: 10.5rem;
	width: auto;
	height: auto;
	object-fit: contain;
}

.hns-product__badge {
	position: absolute;
	top: var(--hns-space-3);
	left: var(--hns-space-3);
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	background: var(--hns-accent);
	color: var(--hns-text-inverse);
	padding: 0.2rem 0.5rem;
	border-radius: var(--hns-radius-sm);
}

.hns-product__media {
	position: relative;
}

.hns-product__body {
	padding: var(--hns-space-5);
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: var(--hns-space-2);
}

.hns-product__origin {
	font-size: var(--hns-text-xs);
	font-weight: 600;
	color: var(--hns-text-tertiary);
	margin: 0;
}

.hns-product__title {
	font-family: var(--hns-font-heading);
	font-size: var(--hns-text-lg);
	font-weight: 600;
	margin: 0;
	line-height: var(--hns-leading-tight);
}

.hns-product__title a {
	color: var(--hns-text);
	text-decoration: none;
}

.hns-product__title a:hover {
	color: var(--hns-accent);
}

.hns-product__notes {
	margin: 0;
	font-size: var(--hns-text-sm);
	color: var(--hns-text-secondary);
}

.hns-pill {
	display: inline-block;
	font-size: var(--hns-text-xs);
	padding: 0.15rem 0.5rem;
	border-radius: var(--hns-radius-sm);
	background: var(--hns-bg-muted);
	color: var(--hns-text-secondary);
}

.hns-product__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--hns-space-3);
	margin-top: auto;
	padding-top: var(--hns-space-4);
	border-top: 1px solid var(--hns-border-subtle);
}

.hns-product__price {
	font-size: var(--hns-text-lg);
	font-weight: 700;
	margin: 0;
}

.hns-products__foot {
	margin-top: var(--hns-space-8);
}

/* Helper */
.hns-section--helper {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hns-section--helper .hns-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.hns-helper__panel {
	width: 100%;
	max-width: 44rem;
	margin: 0 auto;
	background: var(--hns-bg-elevated);
	border: 1px solid var(--hns-border-subtle);
	border-radius: var(--hns-radius-lg);
	padding: var(--hns-space-8) var(--hns-space-6);
	box-sizing: border-box;
}

.hns-helper__result {
	width: 100%;
}

.hns-helper__steps {
	display: flex;
	justify-content: center;
	gap: var(--hns-space-2);
	margin-bottom: var(--hns-space-6);
}

.hns-helper__step-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--hns-border);
}

.hns-helper__step-dot.is-active {
	background: var(--hns-accent);
}

.hns-helper__q {
	font-family: var(--hns-font-heading);
	font-size: var(--hns-text-lg);
	font-weight: 600;
	text-align: center;
	margin: 0 0 var(--hns-space-5);
}

.hns-helper__options {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hns-space-2);
	justify-content: center;
}

.hns-chip {
	background: var(--hns-bg);
	color: var(--hns-text);
	border: 1px solid var(--hns-border);
	border-radius: var(--hns-radius);
	padding: var(--hns-space-3) var(--hns-space-5);
	font-family: var(--hns-font-body);
	font-size: var(--hns-text-sm);
	font-weight: 600;
	cursor: pointer;
}

.hns-chip.is-selected {
	background: var(--hns-accent);
	border-color: var(--hns-accent);
	color: var(--hns-text-inverse);
}

.hns-helper__step--hidden {
	display: none;
}

.hns-helper__nav {
	margin: var(--hns-space-6) 0 0;
	text-align: center;
}

.hns-helper__back {
	border: none;
	background: none;
	padding: var(--hns-space-2) var(--hns-space-3);
	font-family: var(--hns-font-body);
	font-size: var(--hns-text-sm);
	font-weight: 600;
	color: var(--hns-text-secondary);
	text-decoration: underline;
	cursor: pointer;
}

.hns-helper__back:hover {
	color: var(--hns-text);
}

.hns-helper__back--hidden {
	display: none;
}

.hns-helper__recs {
	display: grid;
	gap: var(--hns-space-3);
}

@media (min-width: 40rem) {
	.hns-helper__recs {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}

	.hns-helper__recs .hns-rec {
		margin-bottom: 0;
		height: 100%;
		grid-template-columns: 5rem 1fr;
	}

	.hns-helper__recs .hns-rec__actions {
		grid-column: 1 / -1;
	}
}

.hns-rec {
	display: grid;
	grid-template-columns: 5rem 1fr;
	gap: var(--hns-space-3) var(--hns-space-4);
	padding: var(--hns-space-4);
	background: var(--hns-bg);
	border: 1px solid var(--hns-border-subtle);
	border-radius: var(--hns-radius);
	margin-bottom: var(--hns-space-3);
}

.hns-rec__img {
	grid-row: 1 / span 2;
	width: 5rem;
	height: 5rem;
	object-fit: contain;
	background: var(--hns-bg-elevated);
	border-radius: var(--hns-radius-sm);
	align-self: start;
}

.hns-rec__body h3 {
	font-family: var(--hns-font-heading);
	font-size: var(--hns-text-base);
	font-weight: 600;
	margin: 0 0 var(--hns-space-1);
}

.hns-rec__reason {
	margin: 0 0 var(--hns-space-2);
	font-size: var(--hns-text-sm);
	font-weight: 600;
	color: var(--hns-accent);
}

.hns-rec__notes,
.hns-rec__brew {
	margin: 0;
	font-size: var(--hns-text-sm);
	color: var(--hns-text-secondary);
}

.hns-helper__loading,
.hns-helper__empty {
	text-align: center;
	font-size: var(--hns-text-sm);
	color: var(--hns-text-secondary);
	margin: 0 0 var(--hns-space-4);
}

.hns-helper__fallback {
	text-align: center;
	margin: 0;
}

.hns-rec__price {
	margin: var(--hns-space-2) 0 0;
	font-weight: 700;
}

.hns-rec__body {
	min-width: 0;
}

.hns-rec__actions {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--hns-space-2);
	padding-top: var(--hns-space-3);
	margin-top: var(--hns-space-1);
	border-top: 1px solid var(--hns-border-subtle);
}

.hns-rec__actions .hns-btn {
	width: 100%;
	min-height: 2.75rem;
	padding-left: var(--hns-space-3);
	padding-right: var(--hns-space-3);
	font-size: var(--hns-text-sm);
	white-space: nowrap;
}

/* Reviews */
.hns-reviews__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--hns-space-4);
}

.hns-review {
	background: var(--hns-bg-elevated);
	border: 1px solid var(--hns-border-subtle);
	border-radius: var(--hns-radius);
	padding: var(--hns-space-5);
}

.hns-review blockquote {
	margin: 0 0 var(--hns-space-3);
	font-size: var(--hns-text-sm);
	line-height: var(--hns-leading-relaxed);
}

.hns-review__meta {
	margin: 0;
	font-size: var(--hns-text-xs);
	color: var(--hns-text-tertiary);
}

/* Bundle */
.hns-bundle__card {
	display: grid;
	gap: var(--hns-space-6);
	background: var(--hns-bg-elevated);
	border: 1px solid var(--hns-border);
	border-radius: var(--hns-radius-lg);
	padding: var(--hns-space-6);
}

.hns-bundle__copy h2 {
	font-family: var(--hns-font-heading);
	font-size: var(--hns-text-2xl);
	font-weight: 600;
	margin: 0 0 var(--hns-space-3);
}

.hns-bundle__copy > p {
	margin: 0 0 var(--hns-space-5);
	font-size: var(--hns-text-sm);
	color: var(--hns-text-secondary);
}

.hns-bundle__price {
	font-size: var(--hns-text-lg);
	font-weight: 700;
	margin: 0 0 var(--hns-space-5);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hns-space-2) var(--hns-space-3);
}

.hns-bundle__badge {
	display: inline-block;
	font-size: var(--hns-text-xs);
	font-weight: 700;
	line-height: 1;
	padding: 0.25rem 0.5rem;
	border-radius: var(--hns-radius-sm);
	background: var(--hns-accent, #c45c3e);
	color: #fff;
}

.hns-bundle__price-regular {
	font-weight: 500;
	color: var(--hns-text-muted, #888);
	opacity: 0.85;
}

.hns-bundle__price-now {
	font-weight: 700;
}

.hns-bundle__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--hns-space-2);
}

.hns-bundle__item {
	display: flex;
	align-items: center;
	gap: var(--hns-space-3);
	padding: var(--hns-space-3);
	background: var(--hns-bg-muted);
	border-radius: var(--hns-radius);
}

.hns-bundle__item img {
	width: 3.5rem;
	height: 3.5rem;
	object-fit: contain;
}

.hns-bundle__item span {
	font-size: var(--hns-text-sm);
	font-weight: 500;
}

/* FAQ */
.hns-faq__list {
	max-width: 40rem;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.hns-faq__item {
	border-bottom: 1px solid var(--hns-border-subtle);
}

.hns-faq__item:first-child {
	border-top: 1px solid var(--hns-border-subtle);
}

.hns-faq__item summary {
	cursor: pointer;
	font-family: var(--hns-font-heading);
	font-size: var(--hns-text-base);
	font-weight: 600;
	padding: var(--hns-space-4) 0;
	list-style: none;
}

.hns-faq__item summary::-webkit-details-marker {
	display: none;
}

.hns-faq__item p {
	margin: 0 0 var(--hns-space-4);
	font-size: var(--hns-text-sm);
	color: var(--hns-text-secondary);
}

.hns-faq__cta {
	margin-top: var(--hns-space-8);
	text-align: center;
}

.hns-faq__cta .hns-btn {
	min-width: 12rem;
}

@media (min-width: 640px) {
	.hns-why__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.hns-products__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hns-reviews__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.hns-products__grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.hns-hero__grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--hns-space-10);
	}

	.hns-hero__visual {
		justify-content: center;
	}

	.hns-reviews__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.hns-product__media {
		min-height: 12.5rem;
	}

	.hns-product__media img {
		max-height: 11rem;
	}

	.hns-bundle__card {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}
}

@media (max-width: 639px) {
	.hns-product__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.hns-product__footer .hns-btn {
		width: 100%;
	}

	.hns-rec__actions {
		grid-template-columns: 1fr;
	}
}
