/* Nature Pet Core - page tabs (1.0.100). Inert unless np-tabs.js adds body.np-tabs-on. */
html.np-tabs-html { overflow-anchor: none; }
html body.np-tabs-on .np-tab-hidden { display: none !important; }

/* Tab bar */
html body.np-tabs-on .np-preview.np-stick.np-tabs-bar { padding-top: 12px !important; padding-bottom: 12px !important; }
html body.np-tabs-on .np-tabs-bar .np-btn-group {
	display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px !important;
	margin: 0 !important; padding: 0 !important; width: auto;
}
html body.np-tabs-on .np-tabs-bar .np-btn-group > .fusion-button-wrapper {
	display: block; flex: 0 0 auto !important; width: auto !important; margin: 0 !important; padding: 0 !important;
}
html body.np-tabs-on .np-preview.np-stick.np-tabs-bar .np-chips a.fusion-button.np-chip {
	box-sizing: border-box !important; display: inline-flex !important; align-items: center; justify-content: center;
	height: 44px !important; min-height: 44px !important; width: auto !important; min-width: 0 !important;
	padding: 0 20px !important; margin: 0 !important; border-radius: 999px !important;
	background: #fff !important; background-image: none !important; border: 1px solid #D2D2D7 !important;
	color: #1D1D1F !important; box-shadow: none !important; text-transform: none !important;
	font-family: inherit !important; font-size: 15px !important; font-weight: 600 !important; line-height: 1 !important;
	letter-spacing: 0 !important; white-space: nowrap !important; text-decoration: none !important;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
html body.np-tabs-on .np-preview.np-stick.np-tabs-bar .np-chips a.fusion-button.np-chip .fusion-button-text {
	color: inherit !important; font: inherit !important; line-height: 1 !important; white-space: nowrap; padding: 0 !important; margin: 0 !important;
}
html body.np-tabs-on .np-preview.np-stick.np-tabs-bar .np-chips a.fusion-button.np-chip:hover { background: #EEF3EE !important; background-image: none !important; color: #1D1D1F !important; border-color: #D2D2D7 !important; }
html body.np-tabs-on .np-preview.np-stick.np-tabs-bar .np-chips a.fusion-button.np-chip[aria-selected="true"],
html body.np-tabs-on .np-preview.np-stick.np-tabs-bar .np-chips a.fusion-button.np-chip[aria-selected="true"]:hover {
	background: #3D6F42 !important; background-image: none !important; border-color: #3D6F42 !important; color: #fff !important;
}
html body.np-tabs-on .np-preview.np-stick.np-tabs-bar .np-chips a.fusion-button.np-chip[role="tab"]:focus-visible:not(.np-kphoto):not(.np-kthumb):not(.np-kview):not(.np-kdot):not(.np-pp):not(.swiper-pagination-bullet):not(.awb-swiper-button) { outline: 2px solid #3D6F42 !important; outline-offset: 2px !important; box-shadow: none !important; }
html body.np-tabs-on .np-preview.np-stick.np-tabs-bar .np-chips a.fusion-button.np-chip::before,
html body.np-tabs-on .np-preview.np-stick.np-tabs-bar .np-chips a.fusion-button.np-chip::after { display: none !important; }

/* Panel: 24px under the bar, same content width, 150ms fade */
html body.np-tabs-on .np-tabs-first { padding-top: 24px !important; margin-top: 0 !important; }
@keyframes npTabFade { from { opacity: 0; } to { opacity: 1; } }
html body.np-tabs-on .np-tab-fade { animation: npTabFade .15s ease-out both; }
@media (prefers-reduced-motion: reduce) {
	html body.np-tabs-on .np-tab-fade { animation: none; }
	html body.np-tabs-on .np-preview.np-stick.np-tabs-bar .np-chips a.fusion-button.np-chip { transition: none; }
}

/* Conseils: a visible guide column takes the full content width, cards in a grid */
html body.np-tabs-on .np-blocks .np-blk:not(.np-tab-hidden) { grid-column: 1 / -1 !important; width: 100% !important; max-width: none !important; }
html body.np-tabs-on .np-blocks .np-blk:not(.np-tab-hidden) .fusion-builder-row-inner {
	display: grid !important; flex-direction: row !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
@media (max-width: 1024px) {
	html body.np-tabs-on .np-blocks .np-blk:not(.np-tab-hidden) .fusion-builder-row-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	html body.np-tabs-on .np-blocks .np-blk:not(.np-tab-hidden) .fusion-builder-row-inner { grid-template-columns: minmax(0, 1fr); }
}

/* Phones: one row, scrolls sideways, soft fade on the right edge, same height */
@media (max-width: 767px) {
	html body.np-tabs-on .np-preview.np-stick.np-tabs-bar .np-chips > .fusion-column-wrapper.np-tabs-scroll {
		display: block !important; overflow-x: auto !important; overflow-y: hidden !important; -webkit-overflow-scrolling: touch;
		scrollbar-width: none; -ms-overflow-style: none; padding: 0 24px 0 var(--np-g, 20px) !important; box-sizing: border-box;
		width: 100% !important; max-width: 100% !important; min-width: 0 !important; scroll-snap-type: none !important;
		-webkit-mask-image: none !important; mask-image: none !important;
	}
	html body.np-tabs-on .np-preview.np-stick.np-tabs-bar .np-chips > .fusion-column-wrapper.np-tabs-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
	html body.np-tabs-on .np-preview.np-stick.np-tabs-bar .np-chips > .fusion-column-wrapper.np-tabs-scroll.np-tabs-more {
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent) !important;
		mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent) !important;
	}
	html body.np-tabs-on .np-tabs-bar .np-btn-group { flex-wrap: nowrap !important; width: max-content; min-width: 100%; }
}

/* Desktop: the fixed 48px site header would cover a bar stuck at top:0, so stick just below it. */
@media (min-width: 1025px) {
	html body.np-tabs-on .np-preview.np-stick.np-tabs-bar { top: 48px !important; }
}

/* Exactly 24px between the tab bar and the first panel (the theme adds a 10px title margin on phones). */
body.np-tabs-on .np-tabs-first > .fusion-builder-row:first-child .fusion-column-wrapper > .fusion-title:first-child { margin-top: 0 !important; }
