/*
Theme Name: Le Luxury
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: le-luxury
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts margin-block-start: var(--wp--style--block-gap) between the
   template's top-level sections (header part, main, footer part) — a gap that
   exists even when no markup asks for it. Zero it so sections butt edge-to-edge
   and own their vertical rhythm via padding; this does not affect block gaps
   inside nested layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

:root {
	--brand-ivory: var(--wp--preset--color--ivory);
	--brand-paper: var(--wp--preset--color--paper);
	--brand-noir: var(--wp--preset--color--noir);
	--brand-gold: var(--wp--preset--color--gold);
	--brand-gold-light: var(--wp--preset--color--gold-light);
	--brand-stone: var(--wp--preset--color--stone);
	--brand-smoke: var(--wp--preset--color--smoke);
}

/* === reset === */
/* === header === */
.site-header {
	background: var(--brand-paper);
	border-bottom: 1px solid var(--brand-stone);
	position: relative;
	z-index: 30;
}
.site-header__inner {
	padding: 1.1rem clamp(1.5rem, 4vw, 3rem);
	gap: 2rem;
}
.site-header__brand {
	gap: 0 !important;
}
.site-header__logo {
	margin: 0;
}
.site-header__logo img {
	height: 66px;
	width: auto;
	display: block;
}
.site-header__nav {
	font-family: var(--wp--preset--font-family--body);
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	gap: 2.2rem !important;
}
.site-header__nav a {
	text-decoration: none;
	color: var(--brand-noir);
	padding-bottom: 0.3rem;
	border-bottom: 1px solid transparent;
}
.site-header__nav a:hover,
.site-header__nav .current-menu-item a {
	color: var(--brand-noir);
	border-bottom-color: var(--brand-gold);
}
.site-header__actions {
	gap: 1rem !important;
	align-items: center;
}
.site-header__actions .wc-block-mini-cart__button,
.site-header__actions a {
	color: var(--brand-noir);
}
.wc-block-customer-account__link {
	display: flex !important;
	align-items: center;
	justify-content: center;
}
.wc-block-customer-account__link svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}
.wc-block-customer-account__link svg path {
	fill: currentColor;
}
.site-header__search.wc-block-product-search {
	margin: 0;
}
.site-header__search .wc-block-product-search__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
.site-header__search .wc-block-product-search__fields {
	display: flex;
	align-items: center;
	gap: 0;
	border-bottom: 1px solid var(--brand-stone);
}
.site-header__search .wc-block-product-search__field {
	border: none;
	background: transparent;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.85rem;
	color: var(--brand-noir);
	width: 130px;
	padding: 0.3rem 0.2rem;
}
.site-header__search .wc-block-product-search__field:focus {
	outline: none;
}
.site-header__search .wc-block-product-search__button {
	background: transparent;
	border: none;
	color: var(--brand-noir);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.7rem;
	cursor: pointer;
	padding: 0.3rem 0.4rem;
}
.site-header__search .wc-block-product-search__button:hover {
	color: var(--brand-gold);
}
/* === hero === */
.hero {
	position: relative;
	background: var(--brand-noir);
	min-height: 640px;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.hero__collage {
	position: absolute;
	inset: 0;
	margin: 0;
}
.hero__collage img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}
.hero__collage::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20,19,17,0.15) 0%, rgba(20,19,17,0.02) 45%);
}
.hero__card {
	position: relative;
	z-index: 2;
	background: rgba(247, 244, 238, 0.94);
	backdrop-filter: blur(2px);
	max-width: 460px;
	margin-left: clamp(1.5rem, 6vw, 6rem);
	padding: clamp(2rem, 4vw, 3.2rem);
	border: 1px solid rgba(20, 19, 17, 0.08);
}
.hero__mark {
	margin-bottom: 1.4rem;
	align-items: center;
}
.hero__logo {
	margin: 0;
}
.hero__logo img {
	height: 190px;
	width: auto;
	display: block;
}
.hero__tagline {
	font-size: 1.05rem;
	color: var(--brand-smoke);
	margin: 0 0 1.8rem;
	max-width: 34ch;
}
.hero__cta .wp-element-button {
	background: var(--brand-noir);
	color: var(--brand-ivory);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.8rem;
	padding: 1rem 2rem;
	border-radius: 0;
}
.hero__cta .wp-element-button:hover {
	background: var(--brand-gold);
	color: var(--brand-noir);
}
/* === categories === */
.categories {
	padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem);
	background: var(--brand-ivory);
}
.categories__title {
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	line-height: 0.95;
	margin: 0 0 clamp(2rem, 5vw, 3.5rem);
}
.categories__grid {
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 1.25rem !important;
}
.categories__card {
	position: relative;
	overflow: hidden;
	height: 340px;
	display: flex;
	align-items: flex-end;
	padding: 1.5rem;
}
.categories__image {
	position: absolute;
	inset: 0;
	margin: 0 !important;
	height: 100%;
	width: 100%;
	z-index: 0;
}
.categories__image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
}
.categories__image img {
	display: block;
	height: 100%;
	width: 100%;
	object-fit: cover;
}
.categories__card-chaussures { background: linear-gradient(200deg, #d7dde2 0%, #6d7580 100%); }
.categories__card-maillots-foot { background: linear-gradient(200deg, #cbb98a 0%, #5c4326 100%); }
.categories__card-maillot-bain { background: linear-gradient(200deg, var(--brand-stone) 0%, #3a3733 100%); }
.categories__card-portefeuille { background: linear-gradient(200deg, var(--brand-gold-light) 0%, var(--brand-noir) 100%); }
.categories__label {
	margin: 0;
	position: relative;
	z-index: 1;
}
.categories__label a {
	color: var(--brand-ivory);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}
.categories__label a:hover {
	border-bottom-color: var(--brand-ivory);
}
/* === featured === */
.featured {
	padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem) clamp(4rem, 8vw, 7rem);
	background: var(--brand-paper);
	border-top: 1px solid var(--brand-stone);
}
.featured__title {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
	margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
	text-align: center;
}
.featured__grid {
	gap: 2rem !important;
}
.featured__grid .wc-block-product-price {
	color: var(--brand-gold);
	font-family: var(--wp--preset--font-family--body);
}
.featured__grid .wp-block-post-title a {
	color: var(--brand-noir);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.3rem;
}
.featured__grid .wp-block-button__link {
	background: transparent;
	color: var(--brand-noir);
	border: 1px solid var(--brand-noir);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.75rem;
	border-radius: 0;
}
.featured__grid .wp-block-button__link:hover {
	background: var(--brand-noir);
	color: var(--brand-ivory);
}
.product-stock-badge {
	text-align: center;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #5a7a4f;
	margin: 0.3rem 0 0.6rem;
}
.wc-block-components-product-image {
	background: linear-gradient(200deg, var(--brand-stone) 0%, var(--brand-smoke) 100%);
	aspect-ratio: 1 / 1;
	height: auto !important;
	width: 100% !important;
}
.wc-block-components-product-image img.woocommerce-placeholder {
	display: none;
}
.product_cat-sneakers .wc-block-components-product-image {
	background: linear-gradient(160deg, #2f3b52 0%, #6f88ad 45%, #c7d3e2 100%);
}
.product_cat-maroquinerie .wc-block-components-product-image {
	background: linear-gradient(200deg, var(--brand-gold-light) 0%, #4a3c22 100%);
}
.product_cat-vetements .wc-block-components-product-image {
	background: linear-gradient(200deg, var(--brand-stone) 0%, #3a3733 100%);
}
.product_cat-accessoires .wc-block-components-product-image {
	background: linear-gradient(165deg, #cfe8df 0%, #1c2b26 65%);
}
/* === footer === */
.site-footer {
	background: var(--brand-noir);
	padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}
.site-footer__inner {
	gap: 0.6rem !important;
	text-align: center;
}
.site-footer__brand {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.6rem;
	color: var(--brand-ivory);
	margin: 0;
}
.site-footer__copy {
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	color: var(--brand-smoke);
	margin: 0;
}
/* Yellow glow effect on product cards on hover */
.product-card:hover {
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  transition: box-shadow 0.3s ease;
}

/* Ensure product cards are styled to show the glow effect */
.product-card {
  position: relative;
  overflow: hidden;
}

/* Optional: Add a subtle background to enhance the glow effect */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 215, 0, 0.1);
  z-index: -1;
}
.shop-archive {
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem);
}
.shop-archive__title {
	font-size: var(--wp--preset--font-size--x-large);
	margin: 1rem 0 2rem;
}
.shop-archive__layout {
	gap: clamp(2rem, 4vw, 3.5rem) !important;
	align-items: flex-start !important;
}
.shop-archive__sidebar {
	position: sticky;
	top: 1.5rem;
	max-height: calc(100vh - 3rem);
	overflow-y: auto;
	overscroll-behavior: contain;
	border-right: 1px solid var(--brand-stone);
	padding-right: 1.5rem;
	padding-bottom: 1rem;
	scrollbar-width: thin;
	scrollbar-color: var(--brand-stone) transparent;
}
.shop-archive__sidebar::-webkit-scrollbar {
	width: 6px;
}
.shop-archive__sidebar::-webkit-scrollbar-thumb {
	background-color: var(--brand-stone);
	border-radius: 3px;
}
.shop-archive__filter-title {
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 1rem;
}
.shop-archive__filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.shop-archive__filter-list li {
	margin: 0 0 0.7rem;
}
.shop-archive__filter-list a {
	color: var(--brand-smoke);
	text-decoration: none;
	font-size: 0.95rem;
	border-bottom: 1px solid transparent;
	padding-bottom: 0.15rem;
}
.shop-archive__filter-list a:hover {
	color: var(--brand-noir);
	border-bottom-color: var(--brand-gold);
}
.shop-archive__filter-list a.is-active {
	color: var(--brand-noir);
	border-bottom-color: var(--brand-noir);
}
.shop-archive__filter-title--second {
	margin-top: 2.2rem;
	padding-top: 1.6rem;
	border-top: 1px solid var(--brand-stone);
}
.shop-filter-group {
	margin: 0 0 1.4rem !important;
	padding-bottom: 1.2rem;
	border-bottom: 1px solid var(--brand-stone);
}
.shop-filter-toggle {
	position: relative;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.85rem;
	color: var(--brand-noir);
	margin: 0;
	padding-right: 1.4rem;
	user-select: none;
}
.shop-filter-toggle::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 0;
	font-size: 1rem;
	color: var(--brand-gold);
}
.shop-filter-group.is-open .shop-filter-toggle::after {
	content: "\2212";
}
.shop-filter-group > *:not(.shop-filter-toggle) {
	display: none;
	margin-top: 0.9rem;
}
.shop-filter-group.is-open > *:not(.shop-filter-toggle) {
	display: block;
}
.shop-archive__filters .wc-block-components-filter-submit-button,
.shop-archive__filters .wc-block-components-filter-reset-button {
	font-size: 0.8rem;
}
.shop-archive__filters .wc-block-components-checkbox-list label,
.shop-archive__filters .wc-block-components-price-slider__range-text {
	font-size: 0.88rem;
	color: var(--brand-smoke);
}
.shop-archive__filters .wc-block-components-price-slider__range-input-progress {
	accent-color: var(--brand-gold);
}

/* === generic archive/search === */
main .wp-block-query {
	padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}
main .wp-block-post-template > li {
	border-bottom: 1px solid var(--brand-stone);
	padding-bottom: 1.5rem;
	margin-bottom: 1.5rem;
}
main .wp-block-post-template .wp-block-post-title a {
	text-decoration: none;
	color: var(--brand-noir);
}
main .wp-block-post-template .wp-block-post-date {
	color: var(--brand-smoke);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* === responsive === */
@media (max-width: 782px) {
	.site-header__inner {
		display: grid !important;
		grid-template-columns: auto auto 1fr auto;
		align-items: center;
		padding: 0.65rem 1rem 0.85rem;
		gap: 0.55rem 0.7rem !important;
	}
	.site-header__brand {
		grid-column: 1;
		grid-row: 1;
	}
	.site-header__logo img {
		height: 42px;
	}
	.site-header__nav {
		grid-column: 2;
		grid-row: 1;
		margin-left: 0;
		justify-self: start;
		gap: 0.75rem !important;
	}
	.site-header .site-header__actions.is-layout-flex {
		display: contents !important;
	}
	.site-header__search {
		grid-column: 1 / -1 !important;
		grid-row: 2 !important;
		width: 100%;
		max-width: none;
	}
	.site-header__actions > :not(.site-header__search) {
		grid-row: 1;
		justify-self: end;
	}
	.site-header__search .wc-block-product-search__fields {
		width: 100%;
		border-bottom-color: var(--brand-stone);
	}
	.site-header__search .wc-block-product-search__field {
		width: 100%;
		min-width: 0;
		font-size: 0.82rem;
		padding: 0.45rem 0.15rem;
	}
	.site-header__search .wc-block-product-search__button {
		font-size: 0.68rem;
		padding: 0.45rem 0.35rem;
		white-space: nowrap;
	}

	.hero {
		display: flex;
		flex-direction: column;
		flex-wrap: wrap;
		align-items: stretch;
		min-height: 0;
		padding: 0 0 1.75rem;
	}
	.hero > .is-layout-flex {
		display: flex;
		flex-direction: column;
		flex-wrap: wrap !important;
		width: 100%;
		max-width: 100%;
		align-items: stretch;
	}
	.hero .wp-block-details {
		display: none !important;
	}
	.hero__collage {
		position: relative;
		order: -1;
		width: 100%;
		height: 240px;
		margin: 0;
		grid-template-columns: none !important;
	}
	.hero__collage img {
		width: 100%;
		height: 240px;
		object-fit: cover;
		object-position: center;
	}
	.hero__collage::after {
		background: linear-gradient(180deg, rgba(20, 19, 17, 0.05) 0%, rgba(20, 19, 17, 0.35) 100%);
	}
	.hero__card {
		width: auto !important;
		max-width: none;
		margin: -2.75rem 1rem 0 !important;
		padding: 1.15rem 1.1rem 1.35rem;
		text-align: center;
	}
	.hero__card .is-nowrap {
		flex-wrap: wrap !important;
		justify-content: center;
	}
	.hero__mark {
		margin-bottom: 0.5rem;
		align-items: center;
	}
	.hero__card .wp-block-gallery.has-nested-images {
		display: flex;
		justify-content: center;
		gap: 0;
	}
	.hero__card .wp-block-gallery.has-nested-images .wp-block-image {
		width: auto !important;
		flex: 0 0 auto !important;
		margin: 0;
	}
	.hero__card .wp-block-gallery.has-nested-images img,
	.hero__logo img {
		height: 96px !important;
		width: auto !important;
		max-width: 180px;
		object-fit: contain;
		margin-inline: auto;
	}
	.hero__tagline {
		max-width: 36ch;
		margin: 0 auto 1.25rem;
		font-size: 0.98rem;
		line-height: 1.5;
	}
	.hero__cta {
		justify-content: center;
	}
	.hero__cta .wp-element-button {
		display: inline-block;
		width: auto;
		min-width: 12.5rem;
		padding: 0.9rem 1.5rem;
		white-space: nowrap;
	}

	.categories {
		padding: 2.5rem 1.15rem 3rem;
	}
	.categories__title {
		font-size: clamp(2rem, 9vw, 2.75rem);
		margin-bottom: 1.5rem;
		text-align: center;
	}
	.categories__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 0.75rem !important;
	}
	.categories__card {
		height: 200px;
		padding: 1rem;
	}
	.categories__label a {
		font-size: 1.15rem;
	}

	.featured {
		padding: 2.4rem 1.15rem 3.2rem;
	}
	.featured__title {
		font-size: clamp(2rem, 8vw, 2.6rem);
		margin-bottom: 1.35rem;
	}
	.featured__grid .wc-block-product-template,
	.featured__grid ul.wp-block-post-template {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 1.25rem 0.85rem !important;
	}
	.featured__grid .wc-block-product-template > li,
	.featured__grid .wp-block-post-template > li {
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
	}
	.featured__grid .wp-block-post-title a {
		font-size: 1.02rem;
	}
	.featured__grid .wp-block-button__link {
		font-size: 0.68rem;
		letter-spacing: 0.05em;
		padding: 0.65rem 0.35rem;
		white-space: normal;
		text-align: center;
		min-height: 2.4rem;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.shop-archive {
		padding: 1.5rem 1.15rem 3rem;
	}
	.shop-archive__layout {
		display: flex !important;
		flex-direction: column !important;
	}
.shop-archive__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
		position: static;
		max-height: none;
		width: 100%;
		border-right: none;
		border-bottom: 1px solid var(--brand-stone);
		padding-right: 0;
		padding-bottom: 1.25rem;
		margin-bottom: 0.5rem;
	}
}
