/* =========================================================
 * Tienda Sugar Sun — showcase de 4 productos personalizado
 * Hero crema + grid de tarjetas con fondos degradados
 * ========================================================= */

.ss-shop {
	background: transparent;
	min-height: 60vh;
	padding: 0;
	font-family: var(--OZ-Font-Base, Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
}

/* Contenido editable de la página Tienda inyectado desde el maquetador. */
.ss-shop__page-content {
	width: 100%;
}
.ss-shop__page-content > * {
	max-width: 100%;
}

/* ---------- Hero ---------- */
.ss-shop__hero {
	padding: 80px 24px 64px;
	text-align: center;
	background: transparent;
}

.ss-shop__hero-title {
	margin: 0;
	font-size: clamp(36px, 5.5vw, 72px);
	font-weight: 900;
	line-height: 1.05;
	color: #1a1a1a;
	letter-spacing: -.01em;
	text-transform: uppercase;
}

/* ---------- Grid de tarjetas ---------- */
.ss-shop__grid-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 64px 24px 0;
}

.ss-shop__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

/* ---------- Tarjeta de producto ---------- */
.ss-shop__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 28px 16px 28px;
	border-radius: 28px;
	color: #ffffff;
	text-decoration: none;
	min-height: 360px;
	transition: transform .35s cubic-bezier(.2, .8, .25, 1),
	            box-shadow .35s ease,
	            filter .35s ease;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
	overflow: hidden;
	position: relative;
	isolation: isolate;
}

/* Brillo diagonal que cruza la tarjeta al hacer hover. */
.ss-shop__card::before {
	content: "";
	position: absolute;
	top: 0;
	left: -75%;
	width: 50%;
	height: 100%;
	background: linear-gradient(
		120deg,
		transparent 0%,
		rgba(255, 255, 255, .18) 50%,
		transparent 100%
	);
	transform: skewX(-20deg);
	transition: left .8s ease;
	pointer-events: none;
	z-index: 1;
}

.ss-shop__card:hover {
	transform: translateY(-10px) scale(1.02);
	box-shadow: 0 22px 44px rgba(0, 0, 0, .28);
	filter: brightness(1.05);
}
.ss-shop__card:hover::before {
	left: 130%;
}
.ss-shop__card:active {
	transform: translateY(-6px) scale(1.01);
	transition-duration: .12s;
}

.ss-shop__card-image {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 8px 0;
	position: relative;
	z-index: 2;
}
.ss-shop__card-img,
.ss-shop__card-image img {
	max-width: 75%;
	max-height: 280px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .25));
	transition: transform .45s cubic-bezier(.2, .8, .25, 1),
	            filter .35s ease;
}
.ss-shop__card:hover .ss-shop__card-img,
.ss-shop__card:hover .ss-shop__card-image img {
	transform: scale(1.08) rotate(-2deg);
	filter: drop-shadow(0 20px 32px rgba(0, 0, 0, .35));
}

.ss-shop__card-title {
	margin: 18px 0 0;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #ffffff;
	text-align: center;
	line-height: 1.25;
	position: relative;
	z-index: 2;
	transition: letter-spacing .35s ease;
	text-decoration: none;
}
/* El título hereda de un <a>, que en algunos temas/plugins
   activa text-decoration: underline en :hover. Lo neutralizamos. */
.ss-shop__card:hover,
.ss-shop__card:hover .ss-shop__card-title,
.ss-shop__card:focus,
.ss-shop__card:focus .ss-shop__card-title {
	text-decoration: none;
}
.ss-shop__card:hover .ss-shop__card-title {
	letter-spacing: .08em;
}

@media (prefers-reduced-motion: reduce) {
	.ss-shop__card,
	.ss-shop__card::before,
	.ss-shop__card-img,
	.ss-shop__card-image img,
	.ss-shop__card-title { transition: none !important; }
	.ss-shop__card:hover { transform: none; }
	.ss-shop__card:hover .ss-shop__card-img,
	.ss-shop__card:hover .ss-shop__card-image img { transform: none; }
}

.ss-shop__empty {
	grid-column: 1 / -1;
	text-align: center;
	font-size: 18px;
	color: #555;
	padding: 60px 0;
}

/* =========================================================
 *  Responsive
 * ========================================================= */
@media (max-width: 1024px) {
	.ss-shop__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.ss-shop__card { min-height: 320px; }
}

@media (max-width: 640px) {
	.ss-shop__hero { padding: 48px 16px 40px; }
	.ss-shop__grid-wrap { padding: 0 16px; }
	.ss-shop__grid { grid-template-columns: 1fr; gap: 18px; }
	.ss-shop__card { min-height: 280px; padding: 24px 14px; border-radius: 22px; }
	.ss-shop__card-img,
	.ss-shop__card-image img { max-height: 220px; }
	.ss-shop__card-title { font-size: 16px; margin-top: 14px; }
}

/* =========================================================
 *  Oculta elementos heredados de la tienda WooCommerce
 *  (filtros, sidebar, contador, sorting, breadcrumbs, hero
 *  con título gris, etc.) por si algún hook los inyecta.
 * ========================================================= */
.ss-shop .oz-shop-archive__sidebar,
.ss-shop .oz-shop-archive__header,
.ss-shop .woocommerce-result-count,
.ss-shop .woocommerce-ordering,
.ss-shop .woocommerce-breadcrumb,
.ss-shop .oz-shop-active-filters,
.ss-shop .oz-shop-sidebar,
.ss-shop .ozsg-toolbar,
.ss-shop .oz-shop-page-banner,
.ss-shop .oz-page-hero,
body.post-type-archive-product .oz-shop-page-banner,
body.post-type-archive-product .oz-page-hero,
body.tax-product_cat .oz-shop-page-banner,
body.tax-product_cat .oz-page-hero { display: none !important; }
