/*
Theme Name: Bois d'Amour
Template: twentytwentyfive
Description: Thème enfant WooCommerce pour Bois d'Amour — t-shirts et sweats en coton bio.
Version: 1.0.0
Text Domain: boisdamour
*/

/* Header */
.bda-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.bda-header .wp-block-navigation a { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 500; }
.bda-header { padding: 16px 40px !important; }
.bda-header .wp-block-search,
.bda-header .wp-block-search__inside-wrapper { height: auto; padding: 0; border: 0; align-items: center; }
.bda-header .wp-block-search__searchfield-hidden .wp-block-search__input { height: 0; min-height: 0; padding: 0; }
.bda-header .wp-block-search__button { display: flex; align-items: center; justify-content: center; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; color: var(--wp--preset--color--ink); }
.bda-header .wp-block-search__button svg { width: 20px; height: 20px; min-width: 20px; min-height: 20px; fill: currentColor; }
.bda-header .wp-block-woocommerce-customer-account svg,
.bda-header .wc-block-mini-cart__button svg { width: 20px; height: 20px; }

/* Hero video — height follows content like the Shopify hero: 100px top, title at 60% width, 71px bottom */
.bda-hero { position: relative; overflow: hidden; background: #111; color: #fff; text-align: center; }
.bda-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bda-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 100px 16px 71px; }
.bda-hero__title { display: block; width: 60vw; height: auto; }
.bda-hero__tagline { margin: 27px 0 0; font-size: 32px; line-height: 51px; font-weight: 600; letter-spacing: .96px; }
.bda-hero .bda-button { margin-top: 36px; }
.bda-button { display: inline-block; padding: 16px 24px; border-radius: 5px; box-shadow: inset 0 0 0 1px currentColor; color: inherit; background: transparent; text-decoration: none; text-transform: uppercase; font-size: 16px; line-height: 26px; font-weight: 400; letter-spacing: normal; transition: background .2s, color .2s; }
.bda-hero .bda-button:hover { background: #fff; color: var(--wp--preset--color--ink); }
@media (max-width: 749px) {
	.bda-hero__inner { padding: 70px 16px 50px; }
	.bda-hero__title { width: 100%; }
	.bda-hero__tagline { margin-top: 24px; }
	.bda-hero .bda-button { margin-top: 35px; }
}

/* Category grid — matches the Shopify collection list (3 cols, 8px gap, 4:5 transparent images, white label pill) */
.bda-cats { max-width: none; margin: 0; padding: 48px 40px; }
.bda-cats h2 { margin: 0 0 28px; font-size: 18px; line-height: 1.1; font-weight: 600; letter-spacing: normal; text-transform: uppercase; color: #333; }
.bda-cats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bda-cat { display: block; color: #333; text-decoration: none; }
.bda-cat__img { aspect-ratio: 4 / 5; background: transparent; overflow: hidden; }
.bda-cat__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bda-cat:hover .bda-cat__img img { transform: scale(1.03); }
.bda-cat__name { display: inline-block; margin-top: 8px; padding: 4px 8px; border-radius: 5px; background: #fff; font-size: 16px; line-height: 26px; font-weight: 400; color: #333; }

/* Labels / certifications */
.bda-labels { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3rem; padding: 3rem 1.5rem; border-top: 1px solid var(--wp--preset--color--line); }
.bda-labels img { height: 72px; width: auto; object-fit: contain; }

/* Footer */
.bda-footer { border-top: 1px solid var(--wp--preset--color--line); font-size: .8rem; }
.bda-footer a { text-decoration: none; }
.bda-footer a:hover { text-decoration: underline; }

/* WooCommerce tweaks */
.wc-block-components-product-price,
.woocommerce-Price-amount { font-weight: 500; }
.wp-block-add-to-cart-form .variations select { border: 1px solid var(--wp--preset--color--ink); padding: .6rem .8rem; background: transparent; }

/* Shop listing — measured on the Shopify collection page (1278px wide) */
.bda-shop { padding: 48px 40px 64px; color: #333; }
.bda-shop__title { margin: 0 0 65px; font-size: 18px; line-height: 1.1; font-weight: 600; text-transform: uppercase; color: #333; }
.bda-shop__bar { position: relative; z-index: 5; display: flex; align-items: center; gap: 24px; margin: 0 0 22px; font-size: 16px; line-height: 25.6px; }
.bda-shop__facets { display: contents; }
.bda-shop__filter-toggle,
.bda-shop__drawer-head { display: none; }
.bda-facet { position: relative; }
.bda-facet summary { display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; user-select: none; }
.bda-facet summary::-webkit-details-marker { display: none; }
.bda-facet summary svg { transition: transform .2s; }
.bda-facet[open] summary svg { transform: rotate(180deg); }
.bda-facet__panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 206px; padding: 12px 16px; display: grid; gap: 8px; background: var(--wp--preset--color--cream); border-radius: 14px; box-shadow: 0 4px 20px rgba(0, 0, 0, .15); white-space: nowrap; }
.bda-facet__panel--right { left: auto; right: 0; }
.bda-check, .bda-radio { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.bda-check input, .bda-radio input { width: 16px; height: 16px; margin: 0; accent-color: #333; }
.bda-price-range { display: flex; align-items: center; gap: 10px; }
.bda-price-range label { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid rgba(51, 51, 51, .3); border-radius: 5px; }
.bda-price-range input { width: 64px; border: 0; padding: 0; background: transparent; font: inherit; color: inherit; -moz-appearance: textfield; }
.bda-price-range input::-webkit-inner-spin-button { -webkit-appearance: none; }
.bda-price-range input:focus { outline: none; }
.bda-facet__hint { margin: 0; font-size: 14px; color: rgba(51, 51, 51, .6); }
.bda-shop__clear { color: inherit; text-decoration: underline; }
.bda-shop__count { margin-left: auto; color: rgba(51, 51, 51, .6); }
.bda-facet--sort { order: 3; margin-right: -4px; }
.bda-shop__count { order: 2; }
.bda-shop__views { order: 4; display: flex; gap: 5px; }
.bda-view { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: rgba(51, 51, 51, .45); cursor: pointer; }
.bda-view[aria-pressed="true"] { color: #333; background: rgba(51, 51, 51, .08); }
.bda-view--mobile { display: none; }

.bda-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 16px; row-gap: 24px; margin: 0; padding: 0; list-style: none; }
.bda-shop[data-view="zoom-out"] .bda-grid { grid-template-columns: repeat(10, 1fr); }
.bda-card { position: relative; min-width: 0; container-type: inline-size; }
.bda-card__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--wp--preset--color--cream); }
.bda-card__track { display: flex; width: 100%; height: 100%; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.bda-card .bda-card__img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.bda-card.has-hover:hover .bda-card__track { transform: translateX(-100%); }
.bda-card__quick { position: absolute; right: 13px; top: calc(125cqw - 48px); display: grid; place-items: center; width: 36px; height: 36px; padding: 2px; border: 0; background: none; cursor: pointer; opacity: 0; transition: opacity .2s; }
.bda-card__quick span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50px; background: var(--wp--preset--color--cream); color: #333; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.bda-card:hover .bda-card__quick,
.bda-card__quick:focus-visible { opacity: 1; }
.bda-card__title { display: block; margin-top: 8px; font-size: 16px; line-height: 16px; font-weight: 600; color: #333; text-decoration: none; }
.bda-card__price { margin-top: 4px; font-size: 14px; line-height: 16.8px; font-weight: 500; letter-spacing: .42px; }
.bda-card__price .woocommerce-Price-amount { font-weight: 500; }
.bda-shop[data-view="zoom-out"] .bda-card__title { font-size: 12px; line-height: 14px; font-weight: 400; }
.bda-shop[data-view="zoom-out"] .bda-card__price,
.bda-shop[data-view="zoom-out"] .bda-card__quick { display: none; }
.bda-shop__more { display: block; width: max-content; margin: 40px auto 0; color: inherit; }
.bda-shop__more.is-loading { opacity: .5; }
.bda-shop__empty { padding: 40px 0; }

.bda-quick { width: min(720px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 14px; background: var(--wp--preset--color--cream); color: #333; box-shadow: 0 4px 20px rgba(0, 0, 0, .15); }
.bda-quick::backdrop { background: rgba(0, 0, 0, .35); }
.bda-quick__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
.bda-quick__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #333; cursor: pointer; }
.bda-quick__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bda-quick__body { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; }
.bda-quick__name { font-size: 20px; font-weight: 600; color: #333; text-decoration: none; }
.bda-quick__label { margin: 16px 0 0; font-size: 14px; }
.bda-quick__sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.bda-size { min-width: 48px; padding: 8px 12px; border: 1px solid rgba(51, 51, 51, .3); border-radius: 5px; background: transparent; color: #333; font: inherit; cursor: pointer; }
.bda-size[aria-pressed="true"] { border-color: #333; box-shadow: inset 0 0 0 1px #333; }
.bda-size:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.bda-quick__add { margin-top: 16px; padding: 16px 24px; border: 0; border-radius: 5px; background: #333; color: #fff; font: inherit; text-transform: uppercase; cursor: pointer; }
.bda-quick__add:disabled { opacity: .4; cursor: not-allowed; }
.bda-quick__msg { min-height: 1.4em; margin: 0; font-size: 14px; }
.bda-quick__msg a { color: inherit; }
html.bda-no-scroll { overflow: hidden; }

@media (max-width: 749px) {
	.bda-shop { padding: 34px 0 48px; }
	.bda-shop__title { margin: 0 16px 30px; }
	.bda-shop__bar { margin: 0 16px 18px; justify-content: space-between; }
	.bda-shop__filter-toggle { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #333; font: inherit; font-size: 18px; text-transform: uppercase; cursor: pointer; }
	.bda-shop__count, .bda-view--desktop { display: none; }
	.bda-view--mobile { display: grid; }
	.bda-shop__facets { position: fixed; inset: 0; z-index: 1000; display: none; flex-direction: column; gap: 0; padding: 0 16px 24px; overflow-y: auto; background: var(--wp--preset--color--cream); }
	.bda-shop__facets.is-open { display: flex; }
	.bda-shop__drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-weight: 600; text-transform: uppercase; }
	.bda-shop__drawer-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: #333; }
	.bda-facet { order: 0; margin: 0; border-top: 1px solid rgba(51, 51, 51, .15); }
	.bda-facet summary { justify-content: space-between; padding: 16px 0; }
	.bda-facet__panel, .bda-facet__panel--right { position: static; min-width: 0; padding: 0 0 16px; background: none; box-shadow: none; white-space: normal; }
	.bda-grid { column-gap: 12px; row-gap: 12px; grid-template-columns: repeat(2, 1fr); }
	.bda-shop[data-view="single"] .bda-grid { grid-template-columns: 1fr; }
	.bda-card__title, .bda-card__price { padding: 0 8px; }
	.bda-card__title { line-height: 18px; }
	.bda-card__quick { opacity: 1; }
	.bda-quick__inner { grid-template-columns: 1fr; }
	.bda-quick__img { display: none; }
}

@media (max-width: 600px) {
	.bda-cats { padding: 32px 16px; }
	.bda-cats__grid { grid-template-columns: repeat(2, 1fr); }
	.bda-cat__name { font-size: 14px; line-height: 22px; }
	.bda-labels { gap: 1.5rem; }
	.bda-labels img { height: 52px; }
}

/* Product page — measured on the Shopify product page (1278px and 390px wide) */
.bda-product { display: grid; grid-template-columns: minmax(0, 1fr) 33.333%; column-gap: 24px; align-items: start; padding: 0 40px; color: #333; }
.bda-product__media { position: relative; min-width: 0; }
.bda-product__track { display: flex; flex-direction: column; gap: 4px; }
.bda-product__slide { margin: 0; height: calc(100vh - 68px); min-height: 480px; background: var(--wp--preset--color--cream); }
.bda-product .bda-product__img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bda-product__dots { display: none; }
.bda-product__info { position: sticky; top: 0; padding: 24px 0 0 24px; }
.bda-product__title { margin: 0; font-size: 18px; line-height: 1.1; font-weight: 600; text-transform: uppercase; color: #333; }
.bda-product__price { margin-top: 16px; font-size: 14px; line-height: 16.8px; font-weight: 500; letter-spacing: .42px; }
.bda-product__price del { opacity: .6; margin-right: 6px; }
.bda-product__price ins { text-decoration: none; }
.bda-product__divider { height: 0; margin: 28px 0; border: 0; border-top: 1px solid #dfdfdf; }
.bda-product__option { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.bda-product__option legend { padding: 0; margin-bottom: 8px; font-size: 16px; line-height: 25.6px; }
.bda-product__choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 52px; gap: 11px; }
.bda-choice { position: relative; display: grid; cursor: pointer; }
.bda-choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: inherit; }
.bda-choice span { box-sizing: border-box; display: grid; place-items: center; height: 52px; padding: 0 8px; border: 1px solid #e6e6e6; border-radius: 5px; background: #fff; color: #000; font-size: 16px; line-height: 25.6px; transition: border-color .15s, background-color .15s; }
.bda-choice:hover span { border-color: #333; }
.bda-choice input:checked + span { background: #333; border-color: #000; color: #fff; }
.bda-choice input:focus-visible + span { outline: 2px solid #333; outline-offset: 2px; }
.bda-choice input:disabled + span { color: rgba(0, 0, 0, .6); border-color: #eee; background: #fff linear-gradient(to top right, transparent calc(50% - .5px), #e6e6e6 50%, transparent calc(50% + .5px)); }
.bda-choice:has(input:disabled) { cursor: not-allowed; }
.bda-qty { box-sizing: border-box; display: inline-flex; align-items: center; width: 126px; height: 52px; border: 1px solid rgba(0, 0, 0, .13); border-radius: 5px; background: #fff; color: rgba(0, 0, 0, .53); }
.bda-qty__step { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.bda-qty__step:hover { color: #333; }
.bda-qty input { width: 36px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 16px; text-align: center; -moz-appearance: textfield; }
.bda-qty input::-webkit-inner-spin-button, .bda-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bda-qty input:focus { outline: none; }
.bda-product__buttons { display: flex; flex-wrap: wrap; gap: 11.2px; }
.bda-product__buttons .bda-qty { flex: none; }
.bda-product__add { flex: 1 1 260px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 13px 24px; border: 0; border-radius: 5px; background: #333; color: #fff; font: inherit; font-size: 16px; line-height: 25.6px; text-transform: uppercase; cursor: pointer; transition: background-color .15s; }
.bda-product__add:hover { background: #000; }
.bda-product__add:disabled { opacity: .45; cursor: not-allowed; }
.bda-product__msg { min-height: 0; margin: 8px 0 0; font-size: 14px; }
.bda-product__msg:empty { margin: 0; }
.bda-product__msg a { color: inherit; }
.bda-product__content { margin-top: 32px; padding-bottom: 24px; font-size: 16px; line-height: 25.6px; }
.bda-product__content > div { margin-bottom: 12px; }
.bda-product__content h2 { margin: 0 0 4px; font-size: 16px; line-height: 16px; font-weight: 600; }
.bda-product__content ul { margin: 0; padding-left: 24px; }
.bda-product__content p { margin: 0 0 8px; }
.bda-product__content img { display: block; max-width: 100%; height: auto; }
.bda-related { padding: 48px 40px 48px; color: #333; }
.bda-related__title { margin: 0 0 28px; font-size: 24px; line-height: 24px; font-weight: 600; color: #333; }
.bda-grid--related { grid-template-columns: repeat(4, 1fr); column-gap: 12px; }

@media (max-width: 749px) {
	.bda-product { display: block; padding: 0; }
	.bda-product__track { flex-direction: row; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.bda-product__track::-webkit-scrollbar { display: none; }
	.bda-product__slide { flex: 0 0 100%; height: auto; min-height: 0; aspect-ratio: 4 / 5; scroll-snap-align: start; }
	.bda-product__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 0; }
	.bda-product__dot { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
	.bda-product__dot span { width: 9px; height: 9px; border-radius: 50%; background: #bdbdbd; }
	.bda-product__dot[aria-current="true"] span { background: #000; }
	.bda-product__info { position: static; padding: 20px 16px 0; }
	.bda-product__price { margin-top: 15px; }
	.bda-product__divider { margin: 24px 0; }
	.bda-product__option { margin-bottom: 24px; }
	.bda-product__buttons { row-gap: 5px; }
	.bda-related { padding: 32px 0 40px; }
	.bda-related__title { margin: 0 16px 20px; font-size: 20px; line-height: 22px; }
	.bda-grid--related { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Contact page (matches the Shopify contact form) ---------- */
.bda-contact { padding: 50px 40px 84px; color: #333; }
.bda-contact__title { margin: 0 0 32px; font-size: 16px; line-height: 16px; font-weight: 600; text-align: center; color: #333; }
.bda-contact__form { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin: 0 auto; }
.bda-contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bda-contact__field { display: block; margin: 0; }
.bda-contact__field input,
.bda-contact__field textarea { box-sizing: border-box; display: block; width: 100%; margin: 0; padding: 16px 20px; border: 1px solid rgba(0, 0, 0, .13); border-radius: 4px; background: #fff; font: 400 16px/26px var(--wp--preset--font-family--montserrat); color: #333; box-shadow: none; }
.bda-contact__field input { height: 60px; }
.bda-contact__field textarea { height: 290px; resize: vertical; }
.bda-contact__field ::placeholder { color: rgba(0, 0, 0, .53); opacity: 1; }
.bda-contact__field input:focus,
.bda-contact__field textarea:focus { outline: 1px solid #333; outline-offset: 0; border-color: #333; }
.bda-contact__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bda-contact__submit { align-self: flex-start; margin-top: 1px; min-height: 58px; padding: 16px 24px; border: 0; border-radius: 5px; background: transparent; box-shadow: inset 0 0 0 1px #000; font: 400 16px/25.6px Helvetica, Arial, sans-serif; text-transform: uppercase; color: #000; cursor: pointer; transition: background-color .2s, color .2s; }
.bda-contact__submit:hover { background: #000; color: #fff; }
.bda-contact__note { margin: 0; padding: 14px 20px; border-radius: 4px; font-size: 14px; background: #eef6ee; color: #1e5b2a; }
.bda-contact__note--invalid,
.bda-contact__note--error { background: #fbeeee; color: #8a1f1f; }
@media (max-width: 749px) {
	.bda-contact { padding: 35px 16px 58px; }
	.bda-contact__title { margin-bottom: 22px; }
	.bda-contact__row { grid-template-columns: 1fr; }
}

/* ---------- Focus ring: none on mouse click, kept for keyboard navigation ---------- */
:focus:not(:focus-visible) { outline: none; }
.wc-block-components-button:not(.is-link):focus:not(:focus-visible) { box-shadow: none; }
.wc-block-components-button:not(.is-link).is-style-outline:focus:not(:focus-visible),
.wc-block-components-button:not(.is-link).outlined:focus:not(:focus-visible) { box-shadow: inset 0 0 0 1px currentColor; }
