/* PapelCristalPRO · estilos públicos */

/* ---------- Barra de avisos ---------- */
.pyc-aviso {
	background: var(--wp--preset--color--theme-2, #2E2529);
	color: var(--wp--preset--color--theme-1, #FAF6F2);
	text-align: center;
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	padding: .6rem 1rem;
	line-height: 1.4;
}
.pyc-aviso a { color: inherit; text-decoration: none; }
.pyc-aviso a:hover { text-decoration: underline; text-underline-offset: .3em; }

/* ---------- Botones: estilos extra ---------- */
.wp-block-button.is-style-pyc-enlace .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--theme-2, #2E2529) !important;
	border: 0 !important;
	padding: 0 0 .45rem !important;
	position: relative;
	border-radius: 0;
}
.wp-block-button.is-style-pyc-enlace .wp-block-button__link::after {
	content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
	background: currentColor; transform-origin: left; transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.wp-block-button.is-style-pyc-enlace .wp-block-button__link:hover::after { transform: scaleX(.35); }

.wp-block-button.is-style-pyc-contorno .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--theme-2, #2E2529) !important;
}
.wp-block-button.is-style-pyc-contorno .wp-block-button__link:hover {
	background: var(--wp--preset--color--theme-2, #2E2529) !important;
	color: var(--wp--preset--color--theme-1, #FAF6F2) !important;
	border-color: var(--wp--preset--color--theme-2, #2E2529) !important;
}

.is-style-pyc-etiqueta { font-size: .75rem !important; font-weight: 500 !important; letter-spacing: .22em !important; text-transform: uppercase; }

/* ---------- Carruseles (estilo de bloque Grupo) ---------- */
.is-style-pyc-carrusel,
.is-style-pyc-carrusel-multi {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	position: relative;
}
.is-style-pyc-carrusel::-webkit-scrollbar,
.is-style-pyc-carrusel-multi::-webkit-scrollbar { display: none; }
.is-style-pyc-carrusel > * { flex: 0 0 100% !important; max-width: 100% !important; scroll-snap-align: start; margin: 0 !important; }
.is-style-pyc-carrusel-multi > * { flex: 0 0 calc((100% - 3 * var(--wp--style--block-gap, 1.5rem)) / 4) !important; scroll-snap-align: start; margin: 0 !important; }
@media (max-width: 1024px) { .is-style-pyc-carrusel-multi > * { flex-basis: calc((100% - var(--wp--style--block-gap, 1.5rem)) / 2.3) !important; } }
@media (max-width: 600px)  { .is-style-pyc-carrusel-multi > * { flex-basis: 78% !important; } }

.pyc-carousel-wrap { position: relative; }
.pyc-carousel-nav { position: absolute; inset: auto var(--wp--preset--spacing--50, 2rem) var(--wp--preset--spacing--30, 1.25rem) auto; display: flex; gap: .5rem; z-index: 2; }
.pyc-carousel-nav button {
	width: 44px; height: 44px; border: 1px solid currentColor; background: rgba(250, 246, 242, .85);
	color: var(--wp--preset--color--theme-2, #2E2529); cursor: pointer; display: grid; place-items: center; padding: 0;
	transition: background .25s, color .25s;
}
.pyc-carousel-nav button:hover { background: var(--wp--preset--color--theme-2, #2E2529); color: var(--wp--preset--color--theme-1, #FAF6F2); }
.pyc-carousel-dots { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 2; }
.pyc-carousel-dots button { width: 28px; height: 2px; padding: 0; border: 0; background: rgba(46, 37, 41, .3); cursor: pointer; }
.pyc-carousel-dots button[aria-current="true"] { background: var(--wp--preset--color--theme-2, #2E2529); }
.pyc-carousel-wrap--multi .pyc-carousel-nav { top: -3.75rem; bottom: auto; right: 0; }
@media (max-width: 600px) { .pyc-carousel-wrap--multi .pyc-carousel-nav { display: none; } }

/* Banners de colección */
.pyc-banner { overflow: hidden; }
.pyc-banner .wp-block-cover__image-background { transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.pyc-banner:hover .wp-block-cover__image-background { transform: scale(1.05); }

/* Círculos de categorías */
.pyc-cat-circles img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pyc-cat-circles .wp-block-image a:hover img { transform: scale(1.06); }
.pyc-cat-circles .wp-block-image { overflow: hidden; border-radius: 50%; }
.pyc-cat-circles p a { text-decoration: none; }

.pyc-icon { color: var(--wp--preset--color--theme-3, #69385C); display: block; margin-inline: auto; }

/* ---------- Pestañas de productos ---------- */
.pyc-tabs__list { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 2rem; margin: 0 0 2.5rem; }
.pyc-tabs__tab {
	background: none; border: 0; padding: .4rem 0; cursor: pointer; position: relative;
	font: inherit; font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
	color: color-mix(in srgb, var(--wp--preset--color--theme-2, #2E2529) 55%, transparent);
}
.pyc-tabs__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .35s; }
.pyc-tabs__tab[aria-selected="true"] { color: var(--wp--preset--color--theme-2, #2E2529); }
.pyc-tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }

/* ---------- Tarjetas de producto ---------- */
.pyc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem 1.5rem; grid-template-columns: repeat(var(--pyc-cols, 4), minmax(0, 1fr)); }
@media (max-width: 1024px) { .pyc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 781px)  { .pyc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; } }

.pyc-card { position: relative; }
.pyc-card__media { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--wp--preset--color--theme-5, #F1E7E0); }
.pyc-card__media > a { display: block; height: 100%; }
.pyc-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .6s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.pyc-card__img--alt { position: absolute; inset: 0; opacity: 0; }
.pyc-card:hover .pyc-card__img--alt { opacity: 1; }
.pyc-card:hover .pyc-card__img:not(.pyc-card__img--alt) { transform: scale(1.04); }
.pyc-card__badge {
	position: absolute; top: .75rem; left: .75rem; z-index: 2;
	background: var(--wp--preset--color--theme-3, #69385C); color: #fff;
	font-size: .65rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: .3rem .55rem;
}
.pyc-card__badge--out { background: var(--wp--preset--color--theme-2, #2E2529); }
.pyc-card__add {
	position: absolute; left: .75rem; right: .75rem; bottom: .75rem; z-index: 2;
	background: var(--wp--preset--color--theme-1, #FAF6F2); color: var(--wp--preset--color--theme-2, #2E2529);
	text-align: center; text-decoration: none; padding: .8rem .5rem;
	font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
	transform: translateY(calc(100% + 1rem)); transition: transform .45s cubic-bezier(.2,.7,.2,1), background .25s, color .25s;
}
.pyc-card:hover .pyc-card__add, .pyc-card__add:focus-visible { transform: none; }
.pyc-card__add:hover { background: var(--wp--preset--color--theme-2, #2E2529); color: var(--wp--preset--color--theme-1, #FAF6F2); }
.pyc-card__add.loading { opacity: .6; }
.pyc-card__add.added::after { content: " ✓"; }
.pyc-card .added_to_cart { display: none; }
@media (hover: none) { .pyc-card__add { position: static; transform: none; margin-top: .5rem; display: block; border: 1px solid currentColor; } }

.pyc-card__body { padding-top: .9rem; }
.pyc-card__cat { margin: 0 0 .25rem; font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--theme-7, #727B65); }
.pyc-card__title { margin: 0 0 .25rem; font-size: 1rem; font-weight: 400; letter-spacing: .01em; line-height: 1.35; }
.pyc-card__title a { text-decoration: none; color: inherit; }
.pyc-card__title a:hover { color: var(--wp--preset--color--theme-3, #69385C); }
.pyc-card__price { font-size: .95rem; color: var(--wp--preset--color--theme-3, #69385C); }
.pyc-card__price del { opacity: .55; margin-right: .35rem; }
.pyc-card__price ins { text-decoration: none; }

/* ---------- Redes ---------- */
.pyc-redes { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; gap: .9rem; }
.pyc-redes a { color: inherit; display: inline-flex; }
.pyc-redes a:hover { color: var(--wp--preset--color--theme-3, #69385C); }

@media (prefers-reduced-motion: reduce) {
	.is-style-pyc-carrusel, .is-style-pyc-carrusel-multi { scroll-behavior: auto; }
}
