/* ==========================================================================
   NESSA ATELIER · showroom de la tienda
   ========================================================================== */

.showroom { margin-top: clamp(24px, 4vw, 48px); }
.sr { padding-block: clamp(56px, 7vw, 110px); }
.sr + .sr { border-top: 1px solid var(--lino); }
.sr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.sr-head .section-title { margin: 0; }
.sr-lead { margin: 14px 0 0; max-width: 52ch; }
.sr-head .rail-nav { margin: 0; }
.sr-all-title { margin: clamp(40px, 6vw, 80px) 0 0; padding-top: clamp(40px, 6vw, 80px); background: linear-gradient(var(--lino), var(--lino)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; }

/* Bandas a sangre */
.sr-gift, .sr-unique { margin-inline: calc(50% - 50vw); padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); border-top: 0 !important; }
.sr-gift + .sr, .sr-unique + .sr { border-top: 0; }

/* --------------------------------------------------------------------------
   1. Recién salido del taller: carril
   -------------------------------------------------------------------------- */
.sr-rail { margin-inline: calc(50% - 50vw); }
.woocommerce .sr-rail-list, .sr-rail-list { display: flex !important; gap: clamp(16px, 2vw, 32px); width: max-content; padding-bottom: 8px; }
/* Ancho fijo: debe ganar a ".woocommerce ul.products li.product { width: auto !important }" */
.woocommerce ul.products.sr-rail-list > li.product,
.woocommerce-page ul.products.sr-rail-list > li.product,
ul.products.sr-rail-list > li.product { flex: 0 0 clamp(230px, 21vw, 290px); width: clamp(230px, 21vw, 290px) !important; min-width: 0; max-width: none; margin: 0 !important; scroll-snap-align: start; }
.sr-new .rail-progress { margin-top: 32px; }
.card-tag--new { color: var(--chocolate); background: var(--lino); padding: 2px 8px; border-radius: 20px; }
.badge-tag--new { background: var(--chocolate); color: var(--marfil); }

/* --------------------------------------------------------------------------
   2. Guía de regalos: banda lino con importes grandes y ocasiones
   -------------------------------------------------------------------------- */
.sr-gift { background: var(--lino); }
.sr-gift-inner { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.sr-gift .sr-head { margin-bottom: 0; }
.sr-prices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.sr-price {
	position: relative; display: grid; gap: 8px; min-height: 170px; align-content: space-between;
	padding: 24px 24px 22px; border-radius: 22px; background: var(--marfil); text-decoration: none;
	transition: background .4s, color .4s, transform .4s var(--ease-out), box-shadow .4s;
}
.sr-price-num { font-family: var(--accent); font-style: italic; font-size: clamp(44px, 4.4vw, 64px); line-height: 1; letter-spacing: -.01em; }
.sr-price-num small { font-family: var(--sans); font-style: normal; font-size: .36em; font-weight: 600; margin: 0 .2em; vertical-align: .9em; }
.sr-price-label { font-size: 14px; max-width: 18ch; }
.sr-price > svg { position: absolute; right: 22px; bottom: 24px; transition: transform .4s var(--ease-out); }
.sr-price:hover { background: var(--chocolate); color: var(--marfil); transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(90, 59, 46, .8); }
.sr-price:hover > svg { transform: translateX(4px); }
.sr-price:focus-visible { outline: 2px solid var(--chocolate); outline-offset: 3px; }
.sr-occasions { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sr-occasion { display: inline-flex; align-items: center; gap: 10px; padding: 6px 20px 6px 6px; border-radius: 999px; background: rgba(247, 243, 238, .6); border: 1px solid rgba(199, 168, 122, .7); font-family: var(--serif); font-size: 19px; text-decoration: none; transition: background .3s, color .3s, border-color .3s; }
.sr-occasion-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--marfil); color: var(--chocolate); }
.sr-occasion-icon svg { width: 20px; height: 20px; }
.sr-occasion-icon svg:not(.icon) { color: var(--champan); }
.sr-occasion:hover { background: var(--chocolate); color: var(--marfil); border-color: var(--chocolate); }

/* --------------------------------------------------------------------------
   3. Capítulos por colección: imagen rectangular fija + piezas
   -------------------------------------------------------------------------- */
.sr-ch { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 110px); align-items: stretch; }
.sr-ch + .sr-ch { margin-top: clamp(72px, 9vw, 140px); }
.sr-ch--alt { grid-template-columns: 7fr 5fr; }
.sr-ch--alt .sr-ch-media { order: 2; }
/* La foto ocupa toda la altura del capítulo (título, texto y filas de piezas) */
.sr-ch-media { display: flex; }
.sr-ch-sticky { position: relative; flex: 1; display: flex; min-height: 520px; }
.sr-ch-figure { display: block; flex: 1; overflow: hidden; background: var(--lino); }
.sr-ch-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
/* "Mostrar entera": la foto completa sobre fondo lino, centrada en el hueco */
.sr-ch-figure--contain { display: flex; align-items: center; justify-content: center; padding: clamp(16px, 2.5vw, 36px); }
.sr-ch-figure--contain img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.sr-ch-figure--contain:hover img { transform: scale(1.02); }
.sr-ch-figure:hover img { transform: scale(1.05); }
.sr-ch-num { position: absolute; right: -.08em; bottom: -.32em; font-family: var(--serif); font-weight: 500; font-size: clamp(110px, 12vw, 190px); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--champan); pointer-events: none; }
.sr-ch--alt .sr-ch-num { right: auto; left: -.08em; }
.sr-ch-icon { position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--marfil); color: var(--chocolate); box-shadow: 0 0 0 6px rgba(247, 243, 238, .35); }
.sr-ch-icon svg { width: 26px; height: 26px; }
.sr-ch-icon .cnav-ginkgo { color: var(--champan); }
.sr-ch-title { font-size: clamp(48px, 5.4vw, 84px); margin: 0 0 14px; line-height: 1; }
.sr-ch-title a { text-decoration: none; }
.sr-ch-title a:hover { font-family: var(--accent); font-style: italic; }
.sr-ch-text { max-width: 46ch; margin-bottom: clamp(28px, 3vw, 44px); }
.woocommerce .sr-ch-products, .sr-ch-products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.sr-ch-more { margin-top: 36px; }

/* --------------------------------------------------------------------------
   4. Ambientes: foto con puntos y ficha rápida
   -------------------------------------------------------------------------- */
.sr-room-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-room-tab { padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer; font-family: var(--serif); font-size: 19px; transition: .3s; }
.sr-room-tab:hover { border-color: var(--chocolate); }
.sr-room-tab.is-active { background: var(--chocolate); color: var(--marfil); border-color: var(--chocolate); }
.sr-room[hidden] { display: none; }
.sr-room { animation: rise .6s var(--ease-out); }
.sr-room-stage { position: relative; line-height: 0; }
.sr-room-stage > img { width: 100%; height: auto; max-height: 82vh; object-fit: cover; }
.fx-reveal .sr-room-stage[data-reveal="clip"] img { transform: none; }
.sr-spot { position: absolute; z-index: 2; width: 36px; height: 36px; margin: -18px 0 0 -18px; padding: 0; border: 0; border-radius: 50%; background: rgba(247, 243, 238, .92); cursor: pointer; box-shadow: 0 6px 18px rgba(40, 25, 18, .35); transition: transform .3s var(--ease-out), background .3s; }
.sr-spot::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--chocolate); transition: inset .3s var(--ease-out), background .3s; }
.sr-spot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--marfil); animation: pulse 2.4s var(--ease) infinite; }
.sr-spot:hover, .sr-spot.is-hot { transform: scale(1.15); }
.sr-spot[aria-expanded="true"] { background: var(--chocolate); }
.sr-spot[aria-expanded="true"]::before { inset: 14px; background: var(--champan); }
.sr-spot:focus-visible { outline: 2px solid var(--marfil); outline-offset: 4px; }
.sr-pop {
	position: absolute; z-index: 3; width: 300px; display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center;
	padding: 12px; background: var(--marfil); line-height: 1.4; box-shadow: 0 24px 60px -20px rgba(40, 25, 18, .55);
	transform: translate(30px, -50%); animation: popIn .35s var(--ease-out);
}
.sr-pop.is-left { transform: translate(calc(-100% - 30px), -50%); }
.sr-pop[hidden] { display: none; }
@keyframes popIn { from { opacity: 0; } }
.sr-pop-img img { width: 84px; height: 84px; object-fit: cover; border-radius: 50% 50% 0 0 / 40% 40% 0 0; }
.sr-pop-info { display: grid; gap: 4px; }
.sr-pop-name { font-family: var(--serif); font-size: 21px; line-height: 1.15; text-decoration: none; }
.sr-pop-name:hover { text-decoration: underline; text-decoration-color: var(--champan); }
.sr-pop .price { font-size: 15px !important; }
.sr-pop-add { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 8px 14px; border-radius: 999px; background: var(--chocolate); color: var(--marfil) !important; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.sr-pop-add:hover { background: #3f281f; }
.sr-pop-add.added::after { content: " ✓"; }
.sr-pop + .added_to_cart, .sr-pop-info .added_to_cart { display: none; }
.sr-room-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.sr-room-list a { display: grid; grid-template-columns: 22px 48px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 8px 12px 8px 8px; border: 1px solid var(--lino); text-decoration: none; transition: border-color .3s, background .3s; }
.sr-room-list .sr-room-n, .sr-room-list img { grid-row: span 2; }
.sr-room-list .sr-room-name { align-self: end; }
.sr-room-list .price { align-self: start; }
.sr-room-list a:hover, .sr-room-list a.is-hot { border-color: var(--chocolate); background: #fffdfa; }
.sr-room-list img { width: 48px; height: 48px; object-fit: cover; }
.sr-room-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--chocolate); color: var(--marfil); font-size: 11px; font-weight: 700; }
.sr-room-name { font-family: var(--serif); font-size: 18px; line-height: 1.15; }
.sr-room-list .price { font-size: 14px !important; white-space: nowrap; }

/* --------------------------------------------------------------------------
   5. Solo hay una: banda chocolate
   -------------------------------------------------------------------------- */
.sr-unique { background: var(--chocolate); color: var(--marfil); }
.sr-unique .eyebrow { color: var(--marfil); }
.sr-unique .section-title { color: var(--marfil); }
.sr-unique-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.sr-u-card { display: grid; gap: 6px; color: var(--marfil); text-decoration: none; }
.sr-u-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 12px; border-radius: 50% 50% 0 0 / 40% 40% 0 0; box-shadow: 0 0 0 1px rgba(232, 217, 200, .35); }
.sr-u-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; filter: saturate(.92); }
.sr-u-card:hover .sr-u-media img { transform: scale(1.05); filter: none; }
.sr-u-tag { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lino); }
.sr-u-name { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.sr-u-price, .sr-u-price .amount { color: var(--marfil); font-weight: 600; }
.sr-u-card:focus-visible { outline: 2px solid var(--marfil); outline-offset: 4px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
	.sr-gift-inner { grid-template-columns: 1fr; }
	.sr-ch, .sr-ch--alt { grid-template-columns: 1fr; }
	.sr-ch--alt .sr-ch-media { order: 0; }
	.sr-ch-sticky { min-height: 0; }
	.sr-ch-figure { aspect-ratio: 16 / 10; flex: 1 1 100%; }
	.sr-ch-num { font-size: 110px; }
	.sr-unique-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	.sr-pop, .sr-pop.is-left { left: 10px !important; right: 10px; top: auto !important; bottom: 10px; width: auto; transform: none; }
	.sr-spot { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
	.sr-spot::before { inset: 10px; }
	.sr-room-stage > img { aspect-ratio: 4 / 5; }
	.sr-price { min-height: 0; }
	.sr-prices { grid-template-columns: 1fr; }
	.sr-price-num { font-size: 44px; }
	.sr-room-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .sr-spot::after { animation: none; } }
