/* ==========================================================================
   WootFishing — boutique, cartes produit, fiche produit, encart « Ajouté au panier »
   ========================================================================== */

/* En-tête de la boutique : titre, onglets, tri */
.wf-shophead { display: flex; align-items: flex-end; flex-wrap: wrap; justify-content: space-between; gap: 26px 40px; margin-bottom: 30px; scroll-margin-top: 90px; }
.wf-shophead__title { margin: 0; font-family: var(--wf-display); font-weight: 800; font-size: clamp(48px, 6.94vw, 100px); line-height: .9; letter-spacing: -.045em; }
.wf-shophead__count { margin: 0; font-size: 14px; color: var(--wf-t3); }
.wf-shopbar {
	display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 16px 30px;
	padding: 18px 0; margin-bottom: clamp(30px, 3.3vw, 48px);
	border-top: 1px solid var(--wf-rule); border-bottom: 1px solid var(--wf-rule);
}
.wf-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.wf-tab {
	display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px;
	border: 1px solid var(--wf-border); border-radius: 999px; background: transparent; color: var(--wf-ink);
	font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.wf-tab:hover { border-color: var(--wf-ink); }
.wf-tab.is-active { background: var(--wf-ink); border-color: var(--wf-ink); color: var(--wf-white); }
.wf-tab__n { font-size: 12px; font-weight: 500; opacity: .6; }
.wf-sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--wf-t3); }
.wf-sort select {
	height: 44px; padding: 0 36px 0 16px; border: 1px solid var(--wf-border); border-radius: 999px; background-color: transparent;
	font-family: inherit; font-size: 14px; font-weight: 600; color: var(--wf-ink); cursor: pointer;
	-webkit-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}

/* Grille et cartes produit */
.wf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(36px, 3.9vw, 56px) clamp(20px, 1.9vw, 28px); }
.wf-card { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; width: auto; float: none; }
.wf-card.is-hidden { display: none; }
.wf-card__media { position: relative; display: flex; align-items: center; height: clamp(300px, 27vw, 390px); margin-bottom: 18px; border-bottom: 1px solid var(--wf-rule); }
/* Fondu des bords : la photo se fond dans le fond de page, quelle que soit la photo envoyée */
.wf-card__img, .wf-pdp__photo {
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
	mask-composite: intersect;
}
.wf-card__img { display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
.wf-card__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wf-card.outofstock .wf-card__img img { opacity: .5; }
.wf-card__badge {
	position: absolute; top: 14px; left: 0; display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
	border-radius: 999px; background: var(--wf-ink); color: var(--wf-white);
	font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.wf-card__cat { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--wf-t4); }
.wf-card__titlelink { display: block; margin-bottom: 6px; }
.wf-card__title { margin: 0; font-family: var(--wf-display); font-weight: 700; font-size: clamp(20px, 1.53vw, 22px); line-height: 1.2; letter-spacing: -.025em; }
.wf-card__detail { margin: 0 0 6px; font-size: 15px; line-height: 1.5; color: var(--wf-t2); }
.wf-card__sizes { margin: 0 0 12px; font-size: 13px; color: var(--wf-t3); }
.wf-card__foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wf-card__price { display: flex; flex-direction: column; gap: 2px; }
.wf-card__price small { font-size: 12px; color: var(--wf-t3); }
.wf-card__price strong { font-family: var(--wf-display); font-weight: 700; font-size: 20px; }
.wf-card__btn {
	display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; box-sizing: border-box;
	border: 1px solid var(--wf-border); border-radius: 999px; background: transparent; color: var(--wf-ink);
	font-family: var(--wf-text); font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.wf-card__btn:hover, .wf-card__btn.added { background: var(--wf-ink); border-color: var(--wf-ink); color: var(--wf-white); }
.wf-card__btn.loading { opacity: .6; }
.wf-card__btn::after { content: none !important; }
.wf-card .added_to_cart { display: none; }
/* Survol d'une carte (souris uniquement) : photo légèrement agrandie, filet sous la photo et bouton « Choisir » en noir. */
.wf-card__media { transition: border-color .35s ease; }
.wf-card__img img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) {
	.wf-card:hover .wf-card__media { border-bottom-color: var(--wf-ink); }
	.wf-card:hover .wf-card__img img { transform: scale(1.05); }
	.wf-card:hover .wf-card__btn { background: var(--wf-ink); border-color: var(--wf-ink); color: var(--wf-white); }
}
@media (prefers-reduced-motion: reduce) { .wf-card__img img { transition: none; } .wf-card:hover .wf-card__img img { transform: none; } }
.wf-card__soon { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; box-sizing: border-box; border: 1px solid var(--wf-rule); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--wf-t4); }

/* Fiche produit */
.wf-pdp { color: var(--wf-ink); }
.wf-pdp__top { margin-bottom: clamp(28px, 3.3vw, 48px); }
.wf-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--wf-t3); }
.wf-crumbs a { color: var(--wf-t3); }
.wf-crumbs a:hover, .wf-crumbs__current { color: var(--wf-ink); }
.wf-pdp__main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(36px, 4.2vw, 64px); align-items: start; }
.wf-pdp__photos { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wf-pdp__photo { margin: 0; width: 100%; min-width: 0; aspect-ratio: var(--wf-aspect, 3 / 2); overflow: hidden; }
.wf-pdp__photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Changement de coloris : la nouvelle photo arrive par-dessus l'ancienne (voir theme.js). */
.wf-pdp__photo[data-wf-main-photo] { position: relative; }
.wf-pdp__photo img.wf-pdp__photo-next { position: absolute; inset: 0; pointer-events: none; }
.wf-pdp__buy { position: sticky; top: 104px; }
.wf-pdp__cat { margin: 0 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--wf-t4); }
.wf-pdp__title { margin: 0 0 10px; font-family: var(--wf-display); font-weight: 800; font-size: clamp(40px, 3.9vw, 56px); line-height: .95; letter-spacing: -.04em; }
.wf-pdp__detail { margin: 0 0 22px; font-size: 16px; color: var(--wf-t2); }
.wf-pdp__price { margin: 0 0 28px; font-family: var(--wf-display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; }
.wf-pdp__price .woocommerce-Price-amount { font: inherit; }
.wf-pdp__price del { opacity: .5; margin-right: 8px; }
.wf-pdp__price ins { text-decoration: none; }

.wf-buy { margin: 0; padding: 0; border: 0; }
.wf-buy::before, .wf-buy::after { content: none !important; }
.wf-opt { position: relative; padding: 22px 0; border-top: 1px solid var(--wf-rule); }
.wf-opt__label { margin: 0 0 14px; font-size: 14px; color: var(--wf-t3); }
.wf-opt__label strong { color: var(--wf-ink); font-weight: 600; }
.wf-opt__list { display: flex; flex-wrap: wrap; gap: 8px; }
.wf-opt__btn {
	box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
	min-width: 64px; height: 46px; padding: 0 20px; border: 1px solid var(--wf-border); border-radius: 999px; background: transparent; color: var(--wf-ink);
	font-family: var(--wf-text); font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.wf-opt__btn:hover { border-color: var(--wf-ink); }
.wf-opt__btn.is-selected { background: var(--wf-ink); border-color: var(--wf-ink); color: var(--wf-white); }
.wf-opt__btn.is-out:not(.is-selected) { color: var(--wf-t4); text-decoration: line-through; }
/* Coloris : vignettes — la liste passe à la ligne, 10 à 12 coloris restent lisibles */
.wf-opt[data-kind="color"] .wf-opt__btn { width: 76px; min-width: 0; height: 52px; padding: 3px; border: 1.5px solid var(--wf-rule); border-radius: 3px; background: var(--wf-paper); }
.wf-opt[data-kind="color"] .wf-opt__btn:hover { border-color: var(--wf-ink); }
.wf-opt[data-kind="color"] .wf-opt__btn.is-selected { border-color: var(--wf-ink); background: var(--wf-paper); }
.wf-opt[data-kind="color"] .wf-opt__btn.is-out:not(.is-selected) { opacity: .5; text-decoration: none; }
.wf-opt__thumb { display: block; width: 100%; height: 100%; background: center / cover no-repeat; }
.wf-opt__native { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wf-buy__foot { padding-top: 22px; border-top: 1px solid var(--wf-rule); }
.wf-stock { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--wf-ink); }
.wf-stock__dot { flex: none; width: 8px; height: 8px; box-sizing: border-box; border: 1.5px solid currentColor; border-radius: 999px; background: currentColor; }
.wf-stock.is-out { color: var(--wf-t4); }
.wf-stock.is-out .wf-stock__dot { background: transparent; }
.wf-buy__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wf-qty { display: flex; align-items: center; height: 56px; border: 1px solid var(--wf-border); border-radius: 999px; }
.wf-qty.is-off { opacity: .45; pointer-events: none; }
.wf-qty__btn { width: 48px; height: 100%; padding: 0; border: 0; background: transparent; color: var(--wf-ink); font-size: 20px; line-height: 1; cursor: pointer; }
.wf-pdp input.wf-qty__input {
	width: 36px; height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: center;
	font-family: var(--wf-text); font-size: 16px; font-weight: 600; color: var(--wf-ink); -moz-appearance: textfield; appearance: textfield; outline: 0;
}
.wf-qty__input::-webkit-outer-spin-button, .wf-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wf-pdp .single_add_to_cart_button.wf-add {
	flex: 1 1 220px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 30px; box-sizing: border-box;
	border: 0; border-radius: 999px; background: var(--wf-ink); color: var(--wf-white);
	font-family: var(--wf-text); font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; opacity: 1; transition: background .2s ease;
}
.wf-pdp .single_add_to_cart_button.wf-add:hover { background: #2A2822; color: var(--wf-white); }
.wf-pdp .single_add_to_cart_button.wf-add:disabled,
.wf-pdp .single_add_to_cart_button.wf-add.is-soldout,
.wf-pdp .single_add_to_cart_button.wf-add.disabled { background: var(--wf-rule); color: var(--wf-t3); cursor: not-allowed; opacity: 1; }

.wf-pdp__info { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 4.2vw, 64px); margin-top: clamp(64px, 7vw, 100px); padding-top: clamp(40px, 4.2vw, 60px); border-top: 1px solid var(--wf-rule); }
.wf-pdp__texts { display: grid; gap: 40px; align-content: start; }
.wf-pdp__h { margin: 0 0 18px; font-size: 15px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--wf-t3); }
.wf-pdp__text { max-width: 620px; font-size: 17px; line-height: 1.65; color: var(--wf-t2); }
.wf-pdp__text p { margin: 0 0 1em; }
.wf-pdp__text p:last-child { margin-bottom: 0; }
.wf-specs { margin: 0; border-top: 1px solid var(--wf-rule); }
.wf-specs__row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--wf-rule); font-size: 15px; }
.wf-specs dt { color: var(--wf-t3); }
.wf-specs dd { margin: 0; text-align: right; font-weight: 600; }
.wf-specs dd.is-tbc { color: var(--wf-t4); }
.wf-pdp__related { margin-top: clamp(64px, 7.2vw, 104px); }
.wf-pdp__relatedtitle { margin: 0 0 clamp(30px, 3.3vw, 48px); font-family: var(--wf-display); font-weight: 800; font-size: clamp(32px, 3.89vw, 56px); line-height: .95; letter-spacing: -.042em; }
.wf-pdp__related .wf-card__media { height: clamp(260px, 22vw, 320px); }
@media (max-width: 999px) {
	.wf-pdp__main, .wf-pdp__info { grid-template-columns: minmax(0, 1fr); }
	.wf-pdp__buy { position: static; }
}

/* Encart « Ajouté au panier » */
.wf-toast {
	position: fixed; top: 88px; right: clamp(16px, 4.2vw, 60px); z-index: 85;
	box-sizing: border-box; width: min(380px, calc(100vw - 32px)); padding: 20px;
	background: var(--wf-paper); border: 1px solid var(--wf-rule); border-radius: 3px; box-shadow: 0 18px 50px rgba(10, 10, 10, .14);
}
.admin-bar .wf-toast { top: 120px; }
.wf-toast[hidden] { display: none; }
.wf-toast__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.wf-toast__title { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.wf-toast__close { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--wf-ink); cursor: pointer; }
.wf-toast__close:hover { background: #E8E6E2; }
.wf-toast__item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--wf-rule); }
.wf-toast__img { width: 72px; height: 72px; background: var(--wf-paper) center / contain no-repeat; -webkit-mask-image: radial-gradient(ellipse at center, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse at center, #000 70%, transparent 100%); }
.wf-toast__name { margin: 0; font-family: var(--wf-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.wf-toast__variant { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--wf-t2); }
.wf-toast__price { margin: 6px 0 0; font-size: 14px; font-weight: 600; }
.wf-toast__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.wf-toast__view { display: flex; align-items: center; justify-content: center; height: 50px; border-radius: 999px; background: var(--wf-ink); color: var(--wf-white); font-size: 15px; font-weight: 600; }
.wf-toast__view:hover { background: #2A2822; color: var(--wf-white); }
.wf-toast__more { height: 46px; border: 1px solid var(--wf-border); border-radius: 999px; background: transparent; color: var(--wf-ink); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.wf-toast__more:hover { border-color: var(--wf-ink); }

/* Lien « Voir le panier » ajouté par WooCommerce après un ajout AJAX : remplacé par l’encart « Ajouté au panier ». */
.wf-buy a.added_to_cart,
.wf-card a.added_to_cart { display: none !important; }
