/* ==========================================================================
   Секция 4 - „Продуктите“: табове по вид, продуктови карти, „Добави“
   (картите се ползват и в магазина по-късно)
   ========================================================================== */

.nd-shop {
	position: relative; overflow: clip; scroll-margin-top: 80px;
	padding: clamp(80px, 9vw, 130px) 0;
	background:
		radial-gradient(40% 50% at 100% 0%, rgba(233, 196, 120, .14), transparent 70%),
		linear-gradient(180deg, #fbf8f1, var(--paper));
}
.nd-shop__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 24px clamp(32px, 5vw, 96px); margin-bottom: clamp(28px, 3.4vw, 44px); }
.nd-shop__eyebrow { gap: 12px; margin-bottom: 20px; }
.nd-shop__eyebrow::before { display: none; }
.nd-shop__ei { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 1.05rem; color: var(--jade-950); background: var(--gold-grad) border-box; }
.nd-shop__title { margin: 0; font-size: clamp(2.3rem, 4.4vw, 4.1rem); font-weight: 280; line-height: 1.03; letter-spacing: -.035em; color: var(--ink); }
.nd-shop__title em { display: block; font-style: normal; font-weight: 330; background: var(--gold-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; animation: ndSheen 9s ease-in-out infinite alternate; }
.nd-shop__intro { max-width: 560px; font-size: clamp(1.02rem, 1.2vw, 1.12rem); line-height: 1.6; color: var(--ink-2); }
.nd-shop__intro p { margin: 0 0 14px; }
.nd-shop__intro strong { font-weight: 600; color: var(--ink); }
.nd-shop__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: .88rem; color: var(--ink-2); }
.nd-shop__trust li { display: inline-flex; align-items: center; gap: 7px; }
.nd-shop__trust .nd-i { font-size: 1.15rem; color: var(--gold-700); }

/* табове */
.nd-shop__tabs { display: flex; gap: 8px; margin: 0 0 26px; padding: 4px 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nd-shop__tabs::-webkit-scrollbar { display: none; }
.nd-shop__tab {
	flex: none; padding: 11px 20px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
	background: #fffdf8; color: var(--ink); font: inherit; font-size: .95rem; font-weight: 520;
	box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s var(--ease), color .3s, box-shadow .3s;
}
.nd-shop__tab:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.nd-shop__tab.is-on { background: var(--jade-800); color: #fbf6ea; box-shadow: none; }
.nd-shop__tab:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.nd-shop__panel[hidden] { display: none; }
.nd-shop__panel.is-enter .nd-card { animation: shopIn .7s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
@keyframes shopIn { from { opacity: 0; transform: translateY(18px); } }

.nd-shop__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }

/* --- продуктовата карта --- */
.nd-card {
	position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 24px; overflow: hidden;
	background: #fffdf8; box-shadow: inset 0 0 0 1px var(--line), 0 12px 30px -24px rgba(19, 35, 28, .45);
	transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.nd-card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--line-2), 0 26px 50px -28px rgba(19, 35, 28, .5); }
.nd-card__media { display: block; aspect-ratio: 1; overflow: hidden; background: #f3ead9; }
.nd-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.nd-card:hover .nd-card__img { transform: scale(1.045); }
.nd-card__badges { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.nd-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 5px; border-radius: 999px; font-size: .74rem; font-weight: 640; line-height: 1.2; background: rgba(255, 253, 248, .94); color: var(--ink); box-shadow: 0 4px 12px -6px rgba(19, 35, 28, .35); }
.nd-badge .nd-i { display: grid; place-items: center; width: 20px; height: 20px; padding: 3px; box-sizing: border-box; border-radius: 50%; }
.nd-badge--yang .nd-i { background: var(--gold-grad) border-box; color: var(--jade-950); }
.nd-badge--yang { color: var(--gold-700); }
.nd-badge--yin .nd-i { background: var(--jade-800); color: var(--jade-300); }
.nd-badge--yin { color: var(--jade-700); }
.nd-badge--pair .nd-i { background: var(--jade-800); color: var(--gold-300); }
.nd-badge--new { padding-left: 10px; background: var(--jade-800); color: var(--gold-300); }
.nd-badge--sale { padding-left: 10px; margin-left: auto; background: var(--gold-grad); color: var(--jade-950); }
.nd-card__body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }
.nd-card__name { margin: 0 0 6px; font-size: 1.04rem; font-weight: 540; line-height: 1.3; letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nd-card__name a { color: var(--ink); text-decoration: none; }
.nd-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* цялата карта води към продукта */
.nd-card__note { margin: 0 0 14px; font-size: .88rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nd-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.nd-card__price { margin: 0; display: grid; line-height: 1.15; }
.nd-card__price s { font-size: .82rem; color: var(--muted); }
.nd-card__price b { font-size: 1.18rem; font-weight: 650; color: var(--ink); white-space: nowrap; }
.nd-card__add {
	position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
	background: var(--jade-800); color: #fbf6ea; font-size: .88rem; font-weight: 580; text-decoration: none; white-space: nowrap;
	transition: background-color .3s var(--ease), color .3s, transform .3s var(--ease);
}
.nd-card__add:hover { background: var(--jade-700); }
.nd-card__add:active { transform: scale(.96); }
.nd-card__add-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 1rem; color: var(--jade-950); background: var(--gold-grad) border-box; }
.nd-card__add.is-loading { opacity: .7; pointer-events: none; }
.nd-card__add.is-added { background: var(--gold-grad); color: var(--jade-950); }
.nd-card__add.is-added .nd-card__add-ic { background: var(--jade-800); color: var(--gold-300); }
.nd-card__add:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }

.nd-shop__more { display: flex; align-items: center; justify-content: center; gap: 8px; width: max-content; margin: 22px auto 0; color: var(--jade-700); font-weight: 560; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.nd-shop__more .nd-i { transition: transform .4s var(--ease); }
.nd-shop__more:hover .nd-i { transform: translateX(3px); }
.nd-shop__all { display: flex; justify-content: center; margin-top: clamp(30px, 4vw, 48px); }

/* брояча в шапката подскача при добавяне */
.nd-tool__count.is-bump { animation: cartBump .6s var(--ease); }
@keyframes cartBump { 30% { transform: scale(1.5); } }

/* --- отзивчивост --- */
@media (max-width: 1100px) {
	.nd-shop__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.nd-shop__head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
	.nd-shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.nd-shop__title { font-size: clamp(2.1rem, 9vw, 2.9rem); }
	.nd-card { border-radius: 18px; }
	.nd-card__body { padding: 12px 12px 14px; }
	.nd-card__name { font-size: .95rem; }
	.nd-card__note { display: none; }
	.nd-card__foot { flex-wrap: wrap; }
	.nd-card__add { width: 100%; justify-content: center; padding: 6px 12px 6px 6px; }
	.nd-badge { font-size: .68rem; }
	.nd-shop__tabs { margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
}
@media (prefers-reduced-motion: reduce) {
	.nd-shop__panel.is-enter .nd-card, .nd-tool__count.is-bump { animation: none; }
}
