/* ==========================================================================
   TattooClub — Pages catégories (/styles/{slug}/).
   Hero catégorie, section « Où porter », contenu éditorial. Le catalogue
   (filtres, tri, grille, pagination, tiroir mobile) reprend shop.css et
   product-card.css de la Boutique.
   ========================================================================== */
.tax-product_cat {
	--shp-ink: #111111; --shp-cream: #F9F5EF; --shp-line: #E8E4DC; --shp-muted: #68645E; --shp-body: #4A4640;
	--shp-green: #B7E41C; --shp-green-txt: #4F7A00; --shp-green-soft: #F1F8D9; --shp-red: #B42318;
	--shp-head: 'Archivo Black', 'Arial Black', sans-serif; --shp-font: 'Space Grotesk', system-ui, sans-serif;
}
.tax-product_cat .tc-cat-page { font-family: var(--shp-font); color: var(--shp-body); }
.tax-product_cat .tc-cat-page *, .tax-product_cat .tc-cat-page *::before, .tax-product_cat .tc-cat-page *::after { box-sizing: border-box; }
.tax-product_cat .woocommerce-result-count,
.tax-product_cat .nv-woo-filters,
.tax-product_cat .nv-bc-count-wrap .woocommerce-ordering,
.tax-product_cat .woocommerce-products-header { display: none !important; }

@font-face { font-family: 'Permanent Marker'; font-style: normal; font-weight: 400; font-display: swap; src: url('../tattooclub-careers/fonts/PermanentMarker.woff2') format('woff2'); }

/* ---------- Hero ---------- */
.tc-cat-hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: center; min-height: 300px;
	padding: 44px clamp(24px, 5vw, 64px) 48px;
	border-radius: 18px; background: #111111; color: #F9F5EF;
}
.tc-cat-hero__media { position: absolute; inset: 0; z-index: -1; }
.tc-cat-hero__img { width: 100%; height: 100% !important; max-width: none; object-fit: cover; object-position: center 35%; display: block; }
/* Photo carrée ou portrait : à droite, fondue dans l'encre (le texte reste sur fond sombre). */
.tc-cat-hero.has-img .tc-cat-hero__media { left: 42%; }
.tc-cat-hero.has-img .tc-cat-hero__img { object-position: center 45%; }
.tc-cat-hero.has-img .tc-cat-hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, #111111 0%, rgba(17, 17, 17, .55) 28%, rgba(17, 17, 17, .08) 60%, rgba(17, 17, 17, .25) 100%);
}
/* Repli de marque : motifs réels de la catégorie en filigrane */
.tc-cat-hero__art { position: absolute; inset: 0 0 0 46%; display: flex; align-items: center; justify-content: flex-end; gap: 4%; padding-right: 6%; }
.tc-cat-hero__motif { width: 30%; max-width: 220px; height: auto !important; filter: invert(1) grayscale(1) !important; mix-blend-mode: screen; opacity: .2 !important; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); }
.tc-cat-hero__motif:nth-child(2) { transform: translateY(14%) rotate(-6deg); opacity: .13 !important; }
.tc-cat-hero__motif:nth-child(3) { transform: translateY(-10%) rotate(5deg); opacity: .09 !important; }
.tc-cat-hero.no-img::before { content: ""; position: absolute; inset: auto -8% -55% auto; z-index: -1; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(183, 228, 28, .16), rgba(183, 228, 28, 0) 70%); }

.tc-cat-hero__inner { position: relative; max-width: 620px; }
.tc-cat-hero__label {
	display: inline-block; margin-bottom: 14px; padding: 5px 9px; border-radius: 4px;
	background: #B7E41C; color: #111111; font: 700 12px/1 var(--shp-font); letter-spacing: .12em; text-transform: uppercase;
}
.tc-cat-hero__title {
	margin: 0 !important; color: #FFFFFF !important;
	font: 400 clamp(40px, 6vw, 76px)/.92 var(--shp-head) !important; letter-spacing: -.015em; text-transform: uppercase;
	text-wrap: balance; overflow-wrap: normal; word-break: normal;
}
.tc-cat-hero__intro { margin: 16px 0 0 !important; max-width: 52ch; color: #ECE7DE; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.5; }
.tc-cat-hero__benefits { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 24px 0 0 !important; padding: 0 !important; list-style: none; }
.tc-cat-hero__benefits li { display: flex; align-items: center; gap: 8px; margin: 0; color: #F9F5EF; font-size: 13.5px; font-weight: 500; }
.tc-cat-hero__benefits .tc-cat-ico { flex: none; color: #B7E41C; }
.tc-cat-hero__tag {
	position: absolute; right: clamp(24px, 6vw, 80px); top: 22%; margin: 0 !important;
	color: #FFFFFF; font: 400 clamp(24px, 2.6vw, 38px)/1.05 'Permanent Marker', var(--shp-head);
	transform: rotate(-8deg); text-align: center; max-width: 260px;
}
.tc-cat-hero__count {
	position: absolute; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; margin: 0 !important;
	padding: 9px 14px; border-radius: 8px; background: rgba(17, 17, 17, .66); border: 1px solid rgba(255, 255, 255, .14);
	color: #FFFFFF; font: 600 14px/1 var(--shp-font); backdrop-filter: blur(6px);
}
.tc-cat-hero__count .tc-cat-ico { width: 16px; height: 16px; color: #B7E41C; }

/* ---------- Catalogue : puces de sous-catégories seulement si elles existent ---------- */
.tc-cat-page .tc-shop-chips-wrap { display: none !important; }
.tc-cat-page .tc-shop-chips-wrap:has(.tc-shop-chip) { display: flex !important; }
.tc-cat-page .tc-shop-empty__t { margin: 0 0 8px; color: var(--shp-ink); font: 400 22px/1.15 var(--shp-head); text-transform: uppercase; }
/* Catégorie sans design : ni filtres ni tri, juste l'état « bientôt » */
.tc-cat-page #shp-catalogue:has(.tc-shop-empty--soon) #shp-sidebar,
.tc-cat-page #shp-catalogue:has(.tc-shop-empty--soon) .tc-shop-bar { display: none !important; }
.tc-cat-page #shp-catalogue:has(.tc-shop-empty--soon) #shp-main { width: 100% !important; max-width: none !important; flex: 1 1 100% !important; }
.tc-cat-page .tc-shop-empty--soon .tc-shop-empty__ico { background: var(--shp-green-soft); color: var(--shp-green-txt); }

/* ---------- Où porter ---------- */
.tc-cat-disc {
	position: relative; isolation: isolate; overflow: hidden;
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px 40px; align-items: center;
	padding: clamp(24px, 3.4vw, 40px); border-radius: 18px; background: #111111; color: #F9F5EF;
}
.tc-cat-disc__media { position: absolute; inset: 0 50% 0 0; z-index: -1; }
.tc-cat-disc__media img { width: 100%; height: 100% !important; object-fit: cover; opacity: .38; display: block; }
.tc-cat-disc__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 17, 17, .35), #111111); }
.tc-cat-disc__label { display: inline-block; margin-bottom: 12px; padding: 5px 9px; border-radius: 4px; background: #B7E41C; color: #111111; font: 700 11px/1 var(--shp-font); letter-spacing: .12em; text-transform: uppercase; }
.tc-cat-disc__t { margin: 0 !important; color: #FFFFFF !important; font: 400 clamp(24px, 2.6vw, 34px)/1.02 var(--shp-head) !important; text-transform: uppercase; text-wrap: balance; }
.tc-cat-disc__txt { margin: 12px 0 0 !important; max-width: 52ch; color: #D9D4CB; font-size: 15px; line-height: 1.55; }
.tc-cat-disc__side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.tc-cat-disc__zones { list-style: none !important; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none; }
.tc-cat-disc__zones li { margin: 0; padding: 0; list-style: none !important; }
.tc-cat-disc__zones li::before, .tc-cat-disc__zones li::marker { content: none !important; display: none !important; }
.tc-cat-disc__zone {
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
	min-height: 52px; padding: 8px 14px 8px 8px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16);
	background: rgba(255, 255, 255, .04); color: #FFFFFF !important; text-decoration: none !important;
	transition: border-color .15s ease, background-color .15s ease;
}
a.tc-cat-disc__zone:hover, a.tc-cat-disc__zone:focus-visible { border-color: #B7E41C; background: rgba(183, 228, 28, .08); }
a.tc-cat-disc__zone:focus-visible { outline: 2px solid #B7E41C; outline-offset: 2px; }
.tc-cat-disc__ico { grid-row: 1 / 3; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); color: #B7E41C; }
.tc-cat-disc__ico .tc-cat-ico { width: 18px; height: 18px; }
.tc-cat-disc__zn { font: 700 14px/1.2 var(--shp-font); }
.tc-cat-disc__zc { color: #D9D4CB; font-size: 12.5px; line-height: 1.3; }
.tc-cat-disc__cta {
	display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 8px;
	background: #FFFFFF; color: #111111 !important; font: 700 14px/1 var(--shp-font); text-decoration: none !important;
	border: 1.5px solid #FFFFFF; transition: background-color .15s ease, border-color .15s ease;
}
.tc-cat-disc__cta:hover, .tc-cat-disc__cta:focus-visible { background: #B7E41C; border-color: #B7E41C; }
.tc-cat-disc__cta:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.tc-cat-disc__cta .tc-cat-ico { width: 18px; height: 18px; }

/* ---------- Contenu éditorial ---------- */
.tc-cat-disc { margin-top: 48px; }
.tc-cat-about { margin-top: 32px; max-width: 760px; color: var(--shp-body); font-size: 16px; line-height: 1.65; }
.tc-cat-about p { margin: 0 0 12px; }

/* ---------- Tablette ---------- */
@media (max-width: 1024px) {
	.tc-cat-hero { min-height: 260px; }
	.tc-cat-hero__tag { display: none; }
	.tc-cat-disc { grid-template-columns: minmax(0, 1fr); }
	.tc-cat-disc__media { inset: 0; }
	.tc-cat-disc__media::after { background: linear-gradient(180deg, rgba(17, 17, 17, .55), #111111 75%); }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.tc-cat-hero { display: block; min-height: 0; padding: 28px 18px 72px; border-radius: 14px; }
	.tc-cat-hero.has-img .tc-cat-hero__media { left: 0; }
	.tc-cat-hero.has-img .tc-cat-hero__media::after { background: linear-gradient(180deg, rgba(17, 17, 17, .5) 0%, rgba(17, 17, 17, .9) 72%); }
	.tc-cat-hero__art { display: none; }
	.tc-cat-hero__label { margin-bottom: 12px; font-size: 11px; }
	.tc-cat-hero__title { font-size: clamp(34px, 11vw, 46px) !important; }
	.tc-cat-hero__intro { margin-top: 10px !important; font-size: 15px; }
	.tc-cat-hero__benefits { gap: 8px 16px; margin-top: 16px !important; }
	.tc-cat-hero__benefits li { font-size: 12.5px; }
	.tc-cat-hero__benefits .tc-cat-ico { width: 18px; height: 18px; }
	.tc-cat-hero__count { right: auto; left: 18px; bottom: 18px; padding: 8px 12px; font-size: 13px; }
	.tc-cat-disc { padding: 22px 18px; border-radius: 14px; }
	.tc-cat-disc__zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
	.tc-cat-disc__zone { padding-right: 10px; }
	.tc-cat-disc__cta { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.tc-cat-disc__zone, .tc-cat-disc__cta { transition: none; }
}