/* Nomokoke: Tienda ("La madriguera"). Copiado del diseño "Nomokoke Tienda". */
.nk-tienda { font-family: var(--nk-font-ui), system-ui, sans-serif; color: var(--nk-body, #bfa895); overflow-x: clip; }
.nk-tienda__hero { position: relative; overflow: hidden; background: radial-gradient(115% 80% at 50% 0%, rgba(158, 73, 32, 0.72) 0%, rgba(78, 38, 20, 0.4) 40%, rgba(23, 15, 10, 0) 70%); }
.nk-tienda__hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 170px; background: linear-gradient(to bottom, rgba(23, 15, 10, 0), var(--nk-bg, #170f0a)); pointer-events: none; }
.nk-tienda__heroin { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 88px 44px 58px; text-align: center; }
.nk-tienda__eyebrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--nk-accent-soft, #d89158); font-weight: 600; }
.nk-rule { width: 34px; height: 1px; }
.nk-rule--l { background: linear-gradient(to right, transparent, #9a6540); }
.nk-rule--r { background: linear-gradient(to left, transparent, #9a6540); }
.nk-tienda__title { font-family: var(--nk-font-display), system-ui, sans-serif; font-variation-settings: "wdth" 82, "opsz" 96; font-weight: 500; font-size: clamp(29px, 5.61vw, 58px); line-height: 1.1; letter-spacing: -0.004em; color: var(--nk-title, #f5eade); margin: 24px 0 0; text-wrap: balance; }
.nk-tienda__title em { font-style: italic; color: var(--nk-accent-text, #d4682f); }
.nk-tienda__lead { font-size: 15px; line-height: 1.85; color: var(--nk-body, #bfa895); margin: 24px auto 0; max-width: 500px; }

.nk-tienda__wrap { max-width: 1280px; margin: 0 auto; padding: 4px 44px 0; }
.nk-tienda__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.nk-tienda__count { font-size: 14px; color: var(--nk-muted, #9e8877); }
.nk-tienda__count b { color: var(--nk-strong, #e9dbcb); font-weight: 600; }
.nk-tienda__ctrls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nk-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.nk-seg > button { appearance: none; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--nk-muted, #9e8877); padding: 9px 16px; border-radius: 999px; white-space: nowrap; transition: background 0.3s ease, color 0.3s ease; }
.nk-seg > button:hover { color: var(--nk-strong, #e9dbcb); background: none; }
.nk-seg > button[data-on] { background: var(--nk-accent, #c9502c); color: #fff4ea; }

.nk-tienda__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 26px; }
.nk-pcard { display: block; background: var(--nk-card, #231610); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 18px; overflow: hidden; transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.4s ease; color: inherit; }
a.nk-pcard:hover { transform: translateY(-5px); border-color: rgba(216, 145, 88, 0.32); }
.nk-pcard[hidden] { display: none; }
.nk-pcard__shot { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #2c1c14; }
.nk-pcard__shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
a.nk-pcard:hover .nk-pcard__shot img { transform: scale(1.03); }
.nk-pcard__badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; background: rgba(18, 11, 7, 0.86); color: #e0cdb9; border: 1px solid rgba(255, 255, 255, 0.14); }
.nk-pcard__badge svg { color: #c9502c; }
.nk-pcard__badge--new { background: rgba(201, 80, 44, 0.92); color: #fff4ea; border-color: rgba(255, 255, 255, 0.18); }
.nk-pcard__body { padding: 18px 20px 22px; }
.nk-pcard__edition { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--nk-faint, #8a7565); font-weight: 600; }
.nk-pcard__name { font-family: var(--nk-font-display), system-ui, sans-serif; font-variation-settings: "wdth" 84; font-size: 20.5px; line-height: 1.2; color: var(--nk-title, #f5eade); margin-top: 7px; }
.nk-pcard__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 8px; }
.nk-pcard__price { font-size: 14px; font-weight: 600; color: var(--nk-strong, #e9dbcb); }
.nk-pcard__size { font-size: 11px; color: var(--nk-faint, #8a7565); }
.nk-pcard__similar { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--nk-accent-soft, #d89158); transition: color 0.25s ease; }
/* Tarjeta de adoptada con ficha pública: todo el recuadro es el enlace al nombre; «Quiero uno similar» queda por encima. */
.nk-pcard.is-adopted { position: relative; }
.nk-pcard .nk-pcard__name .nk-pcard__link { color: var(--nk-title, #f5eade); transition: color 0.3s ease; }
.nk-pcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.nk-pcard__similar { position: relative; z-index: 2; }
.nk-pcard__similar span { display: inline-block; transition: transform 0.3s ease; }
.nk-pcard__similar:hover { color: #f0b27c; }
.nk-pcard__similar:hover span { transform: translateX(4px); }

.nk-tienda__empty { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 70px 30px 20px; text-align: center; }
.nk-tienda__empty[hidden] { display: none; }
.nk-tienda__empty img { width: 38px; height: 55px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.26; }
.nk-tienda__emptytitle { font-family: var(--nk-font-display), system-ui, sans-serif; font-variation-settings: "wdth" 84; font-size: clamp(20.5px, 3.06vw, 27px); line-height: 1.28; color: var(--nk-title, #f5eade); }
.nk-tienda__empty p { font-size: 13px; line-height: 1.75; color: var(--nk-muted, #9e8877); max-width: 340px; margin: 0; }

@media (max-width: 1080px) { .nk-tienda__wrap, .nk-tienda__heroin { padding-left: 30px; padding-right: 30px; } .nk-tienda__grid { gap: 20px; } }
@media (max-width: 880px) { .nk-tienda__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .nk-tienda__heroin { padding-top: 64px; } }
@media (max-width: 560px) {
	.nk-tienda__wrap, .nk-tienda__heroin { padding-left: 20px; padding-right: 20px; }
	.nk-tienda__grid { gap: 12px; }
	.nk-tienda__bar { flex-direction: column; align-items: stretch; gap: 14px; }
	.nk-tienda__ctrls { flex-direction: column; align-items: stretch; }
	.nk-seg { width: 100%; } .nk-seg > button { flex: 1; min-height: 44px; padding: 9px 10px; }
	.nk-pcard__body { padding: 14px 14px 18px; } .nk-pcard__name { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .nk-pcard, .nk-pcard__shot img, .nk-pcard__similar span { transition: none; } }

/* Aviso de próximo drop cuando todas las piezas están adoptadas */
.nk-tienda__soon { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 64px 24px 8px; text-align: center; }
.nk-tienda__soon[hidden] { display: none; }
.nk-tienda__soon p { font-size: 14px; line-height: 1.7; color: var(--nk-muted, #9e8877); max-width: 360px; margin: 0; }

/* Tarjetas pinchables: se levantan, brillan en naranja y el nombre sube de tono; en táctil, se hunden al pulsar. */
.nk-pcard { --nk-lift: 0 18px 38px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(216, 145, 88, 0.45), 0 0 34px rgba(216, 145, 88, 0.14); }
a.nk-pcard, .nk-pcard:has(.nk-pcard__link) { cursor: pointer; transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.4s ease, box-shadow 0.45s ease; }
.nk-pcard__name { transition: color 0.3s ease; }
@media (hover: hover) {
	a.nk-pcard:hover, .nk-pcard:has(.nk-pcard__link):hover { transform: translateY(-7px); border-color: rgba(216, 145, 88, 0.55); box-shadow: var(--nk-lift); }
	.nk-pcard:has(.nk-pcard__link):hover .nk-pcard__shot img { transform: scale(1.05); }
	a.nk-pcard:hover .nk-pcard__name, .nk-pcard:has(.nk-pcard__link):hover .nk-pcard__name { color: var(--nk-accent-italic, #d4682f); }
	.nk-pcard:hover .nk-pcard__name .nk-pcard__link { color: var(--nk-accent-italic, #d4682f); }
}
a.nk-pcard:active, .nk-pcard:has(.nk-pcard__link):active { transform: scale(0.985); }
a.nk-pcard:focus-visible, .nk-pcard__link:focus-visible { outline: 3px solid var(--nk-accent-soft, #d89158); outline-offset: 3px; }
.nk-pcard:has(.nk-pcard__link):focus-within { border-color: rgba(216, 145, 88, 0.55); }
@media (prefers-reduced-motion: reduce) { a.nk-pcard, .nk-pcard:has(.nk-pcard__link) { transition: none; } a.nk-pcard:hover, .nk-pcard:has(.nk-pcard__link):hover { transform: none; } }

/* Indicios de que la caja se pulsa (en móvil no hay hover): texto «Ver su historia» en adoptadas y botón con borde «Ver pieza» en disponibles. */
.nk-pcard__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; }
.nk-pcard__links .nk-pcard__similar { margin-top: 0; }
.nk-pcard__more { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--nk-accent-soft, #d89158); transition: color 0.25s ease; }
.nk-pcard__more span, .nk-pcard__btn span { display: inline-block; transition: transform 0.3s ease; }
.nk-pcard__row { flex-wrap: wrap; }
.nk-pcard__btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid rgba(216, 145, 88, 0.55); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--nk-accent-soft, #d89158); transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
@media (hover: hover) {
	.nk-pcard:hover .nk-pcard__more { color: #f0b27c; }
	.nk-pcard:hover .nk-pcard__more span, .nk-pcard:hover .nk-pcard__btn span { transform: translateX(4px); }
	.nk-pcard:hover .nk-pcard__btn { background: var(--nk-accent-soft, #d89158); border-color: var(--nk-accent-soft, #d89158); color: #1c120d; }
}
a.nk-pcard:active .nk-pcard__btn { background: var(--nk-accent-soft, #d89158); color: #1c120d; }
@media (max-width: 560px) { .nk-pcard__btn { flex: 1 0 100%; justify-content: center; margin: 8px 0 0; } }

/* Texto de apoyo de la tienda (SEO + información útil) */
.nk-tienda__about { max-width: 720px; margin: 72px auto 0; padding: 40px 0 8px; border-top: 1px solid var(--nk-line, rgba(255, 235, 215, 0.12)); text-align: left; }
.nk-tienda__abouttitle { font-family: var(--nk-font-display), system-ui, sans-serif; font-variation-settings: "wdth" 84; font-weight: 500; font-size: clamp(22px, 3vw, 28px); line-height: 1.15; color: var(--nk-title, #f5eade); margin: 0 0 16px; }
.nk-tienda__about p { font-size: 15px; line-height: 1.85; color: var(--nk-body, #bfa895); margin: 0 0 14px; }
.nk-tienda__about a { color: var(--nk-accent-soft, #d89158); text-decoration: underline; text-underline-offset: 3px; }
.nk-tienda__about a:hover { color: var(--nk-title, #f5eade); }
