/*
 * Tienda con el diseño nuevo (Figma 211:43).
 * Ancho de contenido = 1120px, el mismo del logo y el menu del header.
 */

.cgc-shop {
	--cgc-red: #f82c1f;
	--cgc-lime: #c1fe01;
	--cgc-bg: #ececec;
	--cgc-ink: #000;
	--cgc-muted: #444;
	--cgc-display: "Saira Extra Condensed", "Saira ExtraCondensed", Impact, sans-serif;
	--cgc-ui: "Bricolage Grotesque", system-ui, sans-serif;
	--cgc-text: "Anek Latin", system-ui, sans-serif;
	background: var(--cgc-bg);
	color: var(--cgc-ink);
	font-family: var(--cgc-text);
	padding: 120px 0 96px; /* el header del sitio flota encima */
	box-sizing: border-box;
}

.cgc-shop * { box-sizing: border-box; }

.cgc-shop h1,
.cgc-shop h2,
.cgc-shop h3,
.cgc-shop p,
.cgc-shop ul {
	margin: 0;
	padding: 0;
}

.cgc-shop-in {
	max-width: 1120px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* Intro */
.cgc-shop-intro {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 760px;
	padding-top: 48px;
}

.cgc-shop-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--cgc-ui);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--cgc-red);
	white-space: nowrap;
}

.cgc-shop-eyebrow span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	flex: none;
}

.cgc-shop-title {
	font-family: var(--cgc-display);
	font-weight: 800;
	font-size: 76px;
	line-height: .9;
	text-transform: uppercase;
	color: var(--cgc-ink);
}

.cgc-shop-title em,
.cgc-shop-h2 em,
.cgc-shop-cta__title em {
	font-style: normal;
	color: var(--cgc-red);
}

.cgc-shop-lead {
	font-size: 18px;
	line-height: 1.5;
	color: var(--cgc-muted);
}

/* Caminos */
.cgc-shop-tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.cgc-shop .cgc-shop-tile {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	min-height: 210px;
	padding: 22px;
	border-radius: 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: left;
	background: #fff;
	color: var(--cgc-ink);
	transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}

.cgc-shop .cgc-shop-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.cgc-shop .cgc-shop-tile:focus-visible { outline: 3px solid var(--cgc-red); outline-offset: 3px; }
.cgc-shop .cgc-shop-tile.is-on { background: #0b0b0b; color: #fff; }

.cgc-shop-tile__icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--cgc-bg);
	color: var(--cgc-ink);
	flex: none;
}

.cgc-shop-tile.is-on .cgc-shop-tile__icon { background: var(--cgc-red); color: #fff; }

.cgc-shop-tile__title {
	font-family: var(--cgc-display);
	font-weight: 800;
	font-size: 30px;
	line-height: 1;
	text-transform: uppercase;
}

.cgc-shop-tile__sub {
	font-family: var(--cgc-text);
	font-size: 15px;
	line-height: 1.35;
	opacity: .75;
}

.cgc-shop-tile__from {
	margin-top: auto;
	font-family: var(--cgc-ui);
	font-weight: 800;
	font-size: 14px;
	white-space: nowrap;
}

/* Secciones */
.cgc-shop-sec { scroll-margin-top: 120px; }
.cgc-shop-sec[hidden] { display: none; }

.cgc-shop-sec__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 20px;
}

.cgc-shop-h2 {
	font-family: var(--cgc-display);
	font-weight: 800;
	font-size: 44px;
	line-height: 1;
	text-transform: uppercase;
	color: var(--cgc-ink);
}

.cgc-shop-sec__note {
	font-size: 16px;
	line-height: 1.45;
	color: #555;
	max-width: 640px;
}

.cgc-shop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 16px;
}

/* Tarjeta */
.cgc-shop-card {
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .2s, box-shadow .2s;
}

.cgc-shop-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .12); }

.cgc-shop-card__img {
	position: relative;
	display: block;
	height: 150px;
	background: #111;
}

.cgc-shop-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
	display: block;
	opacity: .9;
}

.cgc-shop-card__tag {
	position: absolute;
	left: 12px;
	top: 12px;
	height: 28px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	border-radius: 99px;
	background: var(--cgc-lime);
	color: #111;
	font-family: var(--cgc-ui);
	font-weight: 800;
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
}

.cgc-shop-card__body {
	padding: 18px 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.cgc-shop-card__name {
	font-family: var(--cgc-ui);
	font-weight: 800;
	font-size: 17px;
	line-height: 1.2;
}

.cgc-shop-card__name a {
	color: inherit;
	text-decoration: none;
}

.cgc-shop-card__name a:hover { color: var(--cgc-red); }

.cgc-shop-card__line {
	font-size: 14px;
	line-height: 1.35;
	color: #555;
}

.cgc-shop-card__foot {
	margin-top: auto;
	padding-top: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

.cgc-shop-card__price {
	font-family: var(--cgc-display);
	font-weight: 800;
	font-size: 30px;
	line-height: 1;
	white-space: nowrap;
}

.cgc-shop .cgc-shop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 99px;
	background: var(--cgc-red);
	color: #fff;
	font-family: var(--cgc-ui);
	font-weight: 800;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, opacity .15s;
}

.cgc-shop .cgc-shop-btn:hover { background: #d81f13; color: #fff; }
.cgc-shop .cgc-shop-btn.loading { opacity: .6; pointer-events: none; }
.cgc-shop .cgc-shop-btn.added,
.cgc-shop .cgc-shop-btn.added:hover { background: #0b0b0b; color: #fff; }

/* La barra del carrito reemplaza el enlace "Ver carrito" de WooCommerce. */
[data-cgc-shop] .added_to_cart { display: none !important; }

/* WooCommerce agrega un enlace "Ver carrito" despues del boton (ficha de producto). */
.cgc-shop .added_to_cart {
	font-size: 14px;
	font-weight: 600;
	color: var(--cgc-ink);
	white-space: nowrap;
}

/* Barra fija del carrito */
.cgc-shop-bar {
	position: fixed;
	left: 50%;
	bottom: 20px;
	z-index: 90;
	transform: translateX(-50%);
	width: calc(100% - 32px);
	max-width: 720px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 12px 12px 24px;
	border-radius: 99px;
	background: #0b0b0b;
	color: #fff;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
	font-family: var(--cgc-text);
	animation: cgc-shop-bar-in .3s ease-out;
}

.cgc-shop-bar[hidden] { display: none; }

@keyframes cgc-shop-bar-in {
	from { opacity: 0; transform: translate(-50%, 20px); }
	to { opacity: 1; transform: translate(-50%, 0); }
}

.cgc-shop .cgc-shop-bar__info {
	margin: 0;
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cgc-shop-bar__info strong { font-family: var(--cgc-ui); }
.cgc-shop-bar__dot { opacity: .6; }

.cgc-shop .cgc-shop-bar__btn {
	height: 48px;
	padding: 0 26px;
	display: inline-flex;
	align-items: center;
	border-radius: 99px;
	background: var(--cgc-red);
	color: #fff;
	font-family: var(--cgc-ui);
	font-weight: 800;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
	flex: none;
}

.cgc-shop .cgc-shop-bar__btn:hover { background: #d81f13; color: #fff; }

/* CTA */
.cgc-shop-cta .cgc-shop-eyebrow { margin-bottom: 14px; }

.cgc-shop-cta {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 32px;
	padding: 56px;
	border-radius: 24px;
	overflow: hidden;
	color: #fff;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .35) 100%),
		var(--cgc-cta-img) center / cover no-repeat,
		#111;
}

.cgc-shop-cta__title {
	font-family: var(--cgc-display);
	font-weight: 800;
	font-size: 56px;
	line-height: .95;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 14px !important;
}

.cgc-shop-cta__text > p:last-child {
	font-size: 17px;
	line-height: 1.3;
	max-width: 520px;
}

.cgc-shop-cta__btns {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: none;
}

.cgc-shop .cgc-shop-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 28px;
	border-radius: 99px;
	border: 1.5px solid #fff;
	color: #fff;
	font-family: var(--cgc-text);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.cgc-shop .cgc-shop-pill--white { background: #fff; color: var(--cgc-ink); }
.cgc-shop .cgc-shop-pill:hover { opacity: .85; }

/* Responsivo */
@media (max-width: 1159px) {
	.cgc-shop-in { padding: 0 20px; }
}

@media (max-width: 1023px) {
	.cgc-shop { padding-top: 96px; }
	.cgc-shop-intro { padding-top: 32px; }
	.cgc-shop-title { font-size: 60px; }
	.cgc-shop-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cgc-shop .cgc-shop-tile { min-height: 180px; }
	.cgc-shop-cta { flex-direction: column; align-items: flex-start; padding: 40px; }
	.cgc-shop-cta__btns { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 767px) {
	.cgc-shop { padding: 76px 0 110px; }
	.cgc-shop-in { gap: 32px; }
	.cgc-shop-title { font-size: 48px; }
	.cgc-shop-lead { font-size: 16px; }
	.cgc-shop-tiles { gap: 12px; }
	.cgc-shop .cgc-shop-tile { min-height: 0; padding: 16px; gap: 8px; border-radius: 18px; }
	.cgc-shop-tile__icon { width: 40px; height: 40px; border-radius: 12px; }
	.cgc-shop-tile__title { font-size: 24px; }
	.cgc-shop-tile__sub { font-size: 13px; }
	.cgc-shop-h2 { font-size: 36px; }
	.cgc-shop-cta { padding: 32px 24px; }
	.cgc-shop-cta__title { font-size: 42px; }
	.cgc-shop-cta__btns { flex-direction: column; align-self: stretch; }
	.cgc-shop-bar { bottom: 12px; padding: 8px 8px 8px 18px; }
	.cgc-shop .cgc-shop-bar__btn { height: 44px; padding: 0 20px; }
}

@media (max-width: 479px) {
	.cgc-shop-grid { grid-template-columns: 1fr; }
	.cgc-shop-card__img { height: 180px; }
	.cgc-shop-title { font-size: 42px; }
}
