/*
Theme Name: GORIXSPORT Premium Athletics
Description: Catálogo deportivo GORIXSPORT para mujer y hombre con edición de textos y fotos.
Version: 1.7.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: gorixsport
*/

:root {
	color-scheme: dark;
	--bg: #101010;
	--ink: #f5f2ed;
	--gold: #cdb483;
	--muted: #bdb8ae;
	--line: #39342d;
	--page: min(1350px, calc(100% - 9vw));
	font: 16px/1.55 "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.top {
	width: var(--page);
	min-height: 138px;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .12em; }
.brand img { width: 116px; height: 116px; object-fit: contain; }
.top-home .brand img { width: 153px; height: 153px; }
.brand small { display: block; font-size: .68rem; color: var(--gold); letter-spacing: .13em; }
.top nav { display: flex; gap: clamp(1rem, 4vw, 3rem); }
.top a:hover, .back:hover { color: var(--gold); }

.hero {
	width: var(--page);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
	border: 1px solid var(--line);
	background: #181613;
}

.hero-inner {
	padding: clamp(2rem, 4vw, 4.75rem);
	align-self: center;
}

.hero-photo {
	display: block;
	width: 100%;
	height: 100%;
	min-height: clamp(29rem, 43vw, 41rem);
	object-fit: cover;
	object-position: right center;
	border-left: 1px solid var(--line);
}

.kicker {
	font-size: .82rem;
	font-weight: 500;
	letter-spacing: .17em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 1.15rem;
}

h1, h2, h3 { font-weight: 400; line-height: 1.03; letter-spacing: -.045em; margin: 0; }
h1 { font-size: clamp(2.8rem, 5.85vw, 6.25rem); }
.hero h1 span { display: block; color: var(--gold); }
h2 { font-size: clamp(2rem, 3.9vw, 3.9rem); }
.intro { color: var(--muted); max-width: 30ch; margin: 1.5rem 0 1.7rem; }

.actions, .tabs { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.button {
	background: var(--gold);
	color: #15120e;
	border: 1px solid var(--gold);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: .6rem 1rem;
	font-size: .91rem;
	font-weight: 600;
}
.button:hover { background: #e5cfa8; border-color: #e5cfa8; }
.button.outline { background: transparent; border-color: #746650; color: var(--ink); }
.button.outline:hover { background: #302a22; border-color: var(--gold); }

.collection { width: var(--page); margin: auto; padding: clamp(2.6rem, 6vw, 5.75rem) 0; }
.section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1.25rem;
	flex-wrap: wrap;
	padding-bottom: 1.2rem;
	margin-bottom: 1.6rem;
	border-bottom: 1px solid var(--line);
}
.tabs { gap: .2rem; }
.tabs a { padding: .52rem 1rem; border: 1px solid transparent; color: var(--muted); }
.tabs a:hover, .tabs a[aria-current="true"] { border-color: var(--line); color: var(--gold); }

.cards, .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.3vw, 2rem); }
.card { display: block; border-bottom: 1px solid var(--line); }
.card img, .gallery img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 4.4;
	object-fit: cover;
	background: #302d28;
}
.card div { padding: 1rem 0 1.1rem; }
.card h3 { font-size: clamp(1.4rem, 2.7vw, 2.35rem); transition: color .2s ease; }
.card:hover h3 { color: var(--gold); }
.card p, .internal .description { color: var(--muted); margin: .6rem 0 0; }
.internal { min-height: 65vh; }
.internal h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.description { white-space: pre-line; }
.back { display: inline-block; color: var(--muted); margin-bottom: 1.7rem; }
.gallery { margin-top: 2rem; }
.gallery img { object-fit: contain; }
.site-footer {
	border-top: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .5rem 1rem;
	padding: 24px 4.5vw;
	color: var(--muted);
}
.site-footer span { letter-spacing: .13em; font-weight: 600; color: var(--ink); }

@media (max-width: 880px) {
	.top { min-height: 106px; flex-wrap: wrap; gap: .5rem 1rem; padding: .5rem 0; }
	.brand { font-size: .8rem; }
	.brand img { width: 84px; height: 84px; }
	.top-home .brand img { width: 110px; height: 110px; }
	.hero { grid-template-columns: 1fr; }
	.hero-inner { padding: 1.75rem 1.35rem 2rem; }
	.hero h1 { font-size: clamp(2.45rem, 10.5vw, 4.6rem); }
	.hero-photo { height: auto; min-height: 0; aspect-ratio: 4 / 3; border-left: 0; border-top: 1px solid var(--line); }
	.cards, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 400px) {
	.cards { grid-template-columns: 1fr; }
	.card img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
	.card h3 { transition: none; }
}

.collection-cover {
	width: var(--page);
	margin-inline: auto;
	display: grid;
	justify-items: center;
	gap: clamp(1.35rem, 3vw, 2.2rem);
	padding: clamp(1.85rem, 4.75vw, 4.25rem) 1.25rem;
	border: 1px solid var(--line);
	background: #050505;
	text-align: center;
}

.collection-cover img {
	display: block;
	width: min(100%, clamp(9.5rem, 23vw, 15.5rem));
	height: auto;
}

.collection-cover h1 {
	font-size: clamp(2.5rem, 6vw, 5rem);
}

.top nav { flex-wrap: wrap; row-gap: .45rem; }
.reservation-count { color: var(--gold); font-size: .82rem; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
.product-gallery { margin-top: 0; grid-template-columns: minmax(0, 1fr); align-content: start; }
.zoom-photo { display: grid; position: relative; align-self: start; cursor: zoom-in; }
.zoom-photo:first-child { grid-column: 1 / -1; }
.zoom-photo img { aspect-ratio: 5 / 4; }
.zoom-photo span {
	justify-self: end;
	position: absolute;
	inset: auto .6rem .6rem auto;
	background: var(--bg);
	padding: .35rem .65rem;
	font-size: .82rem;
}
.product-information .description { margin: 1rem 0 1.4rem; }
button.button { cursor: pointer; font-family: inherit; }
button.button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.reservation-feedback { color: var(--gold); }
.reservation-feedback:empty { display: none; }
.reservation-link { display: block; margin-top: .7rem; color: var(--gold); text-decoration: underline; }
.reservation-link[hidden] { display: none; }
.reservations { border-top: 1px solid var(--line); }
.reservation-note { color: var(--muted); }
.reservation-list { list-style: none; margin: 0; padding: 0; }
.reservation-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.reservation-list img { width: 68px; height: 68px; object-fit: cover; }
.reservation-item { flex: 1 1 9rem; display: grid; }
.reservation-item small { color: var(--muted); }
.photo-dialog { width: fit-content; max-width: min(96vw, 66rem); max-height: 94vh; padding: .75rem; background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.photo-dialog::backdrop { background: #000e; }
.photo-dialog form { display: flex; justify-content: end; margin-bottom: .6rem; }
.photo-dialog img { display: block; max-width: 100%; max-height: calc(94vh - 85px); object-fit: contain; }

@media (max-width: 700px) {
	.product-detail { grid-template-columns: minmax(0, 1fr); }
}

.prenda-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: clamp(.85rem, 2vw, 1.5rem);
	margin-top: 1.75rem;
}
.prenda-grid a { display: block; width: 100%; }
.prenda-grid img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: contain;
	background: #242322;
}
.product-description { color: var(--muted); margin: 1rem 0 1.4rem; }
.product-description img { max-width: 100%; height: auto; }

.product-color { display: grid; gap: .45rem; max-width: 18rem; margin: 0 0 1.15rem; }
.product-color select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); padding: .6rem; }
.button:disabled { opacity: .65; cursor: default; }

.gallery-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .65rem; }
.gallery-controls[hidden] { display: none; }
.gallery-controls span { color: var(--muted); }
