/**
 * OpenIndus — Single Product Page v2
 *
 * Design fidèle au mockup HTML statique (Plus Jakarta Sans).
 * Toutes les variables sont scopées à .oi-single-product.
 *
 * @package Underscore_
 */

/* ───────────────────────────────────────────────
   CUSTOM PROPERTIES
   ─────────────────────────────────────────────── */
.oi-single-product {
	--oi-navy:      #112548;
	--oi-navy-lt:   #1a3560;
	--oi-cyan:      #00a0d2;
	--oi-cyan-dk:   #008cb8;
	--oi-orange:    #f3aa2d;
	--oi-orange-dk: #d9951f;
	--oi-green:     #3dba88;
	--oi-green-dk:  #30a074;
	--oi-text:      #2d3748;
	--oi-text-lt:   #64748b;
	--oi-text-mu:   #94a3b8;
	--oi-border:    #e2e8f0;
	--oi-border-lt: #f1f5f9;
	--oi-bg:        #ffffff;
	--oi-bg-lt:     #f8fafc;
	--oi-bg-hero:   #f0f4f8;
	--oi-font:      'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	--oi-r:     10px;
	--oi-r-lg:  16px;
	--oi-r-xl:  20px;
	--oi-r-pill: 999px;
	--oi-shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
	--oi-shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
	--oi-shadow-md: 0 4px 20px rgba(0,0,0,0.1);
	--oi-shadow-lg: 0 8px 40px rgba(0,0,0,0.12);

	font-family: var(--oi-font);
	color: var(--oi-text);
	font-size: 0.95rem;
	line-height: 1.65;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

/* ── Remove wrapper constraint — layout is internal ── */
.oi-product-wrapper {
	max-width: none;
	padding: 0;
}

/* ───────────────────────────────────────────────
   WOOCOMMERCE NOTICES
   ─────────────────────────────────────────────── */
.oi-single-product .woocommerce-message,
.oi-single-product .woocommerce-info,
.oi-single-product .woocommerce-error {
	max-width: 1160px;
	margin: 0 auto 1rem;
	padding: 10px 16px;
	border-radius: var(--oi-r);
	font-size: 0.88rem;
	line-height: 1.5;
	font-family: var(--oi-font);
	border: none;
}
.oi-single-product .woocommerce-message {
	background: rgba(61,186,136,0.1);
	color: #0c956f;
	border-left: 3px solid var(--oi-green);
}
.oi-single-product .woocommerce-message a {
	color: #0c956f;
	font-weight: 600;
}
.oi-single-product .woocommerce-error {
	background: rgba(229,62,62,0.08);
	color: #c53030;
	border-left: 3px solid #e53e3e;
}
.oi-single-product .woocommerce-info {
	background: rgba(0,160,210,0.08);
	color: #0c556f;
	border-left: 3px solid var(--oi-cyan);
}

/* ───────────────────────────────────────────────
   PRODUCT SECTION (hero gradient background)
   ─────────────────────────────────────────────── */
.oi-product-section {
	background: linear-gradient(180deg, var(--oi-bg-hero) 0%, var(--oi-bg) 100%);
	padding: 3rem 2.5rem 3.5rem;
	border-bottom: 1px solid var(--oi-border);
}

.oi-product-inner {
	max-width: 1160px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto auto;
	grid-template-areas:
		"gallery-main  product-info"
		"gallery-thumbs .";
	column-gap: 4rem;
	row-gap: 0;
	align-items: stretch;
}

/* Gallery uses display:contents so children sit in the parent grid */
.oi-gallery {
	display: contents;
}

/* ───────────────────────────────────────────────
   GALLERY
   ─────────────────────────────────────────────── */
.oi-gallery__main {
	grid-area: gallery-main;
	position: relative;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--oi-border);
	border-radius: var(--oi-r-xl);
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--oi-shadow-sm), inset 0 1px 0 rgba(255,255,255,0.8);
	cursor: zoom-in;
}

.oi-gallery__main::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 30% 20%, rgba(0,160,210,0.04) 0%, transparent 55%),
		radial-gradient(ellipse at 70% 80%, rgba(243,170,45,0.03) 0%, transparent 55%);
	pointer-events: none;
}

.oi-gallery__img {
	width: 75%;
	height: 75%;
	object-fit: contain;
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 12px 32px rgba(0,0,0,0.14));
	transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.oi-gallery__main:hover .oi-gallery__img {
	transform: scale(1.06);
}

/* Badge stock inside gallery */
.oi-badge-stock {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1.5px solid var(--oi-green);
	color: var(--oi-green);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 4px 11px;
	border-radius: var(--oi-r-pill);
	box-shadow: var(--oi-shadow-xs);
}
.oi-badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--oi-green);
	box-shadow: 0 0 0 3px rgba(61,186,136,0.2);
	animation: oiPulse 2s infinite;
}
@keyframes oiPulse {
	0%,100% { box-shadow: 0 0 0 3px rgba(61,186,136,0.2); }
	50%     { box-shadow: 0 0 0 6px rgba(61,186,136,0.05); }
}

/* Zoom button */
.oi-gallery__zoom {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	width: 34px;
	height: 34px;
	background: rgba(255,255,255,0.92);
	border: 1px solid var(--oi-border);
	border-radius: var(--oi-r);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--oi-shadow-xs);
	transition: all 0.15s;
	padding: 0;
}
.oi-gallery__zoom:hover {
	box-shadow: var(--oi-shadow-sm);
	border-color: var(--oi-cyan);
}
.oi-gallery__zoom svg {
	width: 14px;
	height: 14px;
	stroke: var(--oi-text-lt);
}

/* Thumbnails */
.oi-gallery__thumbs {
	grid-area: gallery-thumbs;
	display: grid;
	grid-template-columns: repeat(4,1fr);
	gap: 8px;
	margin-top: 10px;
}
.oi-gallery__thumb {
	aspect-ratio: 1;
	background: #fff;
	border: 1.5px solid var(--oi-border);
	border-radius: var(--oi-r);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	overflow: hidden;
	transition: all 0.15s;
	padding: 0;
}
.oi-gallery__thumb img {
	width: 70%;
	height: 70%;
	object-fit: contain;
	transition: transform 0.2s;
}
.oi-gallery__thumb:hover {
	border-color: var(--oi-cyan);
	box-shadow: var(--oi-shadow-xs);
}
.oi-gallery__thumb:hover img {
	transform: scale(1.08);
}
.oi-gallery__thumb.active {
	border-color: var(--oi-cyan);
	border-width: 2px;
	box-shadow: 0 0 0 2px rgba(0,160,210,0.15);
}

/* ───────────────────────────────────────────────
   LIGHTBOX (zoom overlay)
   ─────────────────────────────────────────────── */
.oi-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0,0,0,0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}
.oi-lightbox.active {
	opacity: 1;
	pointer-events: auto;
}
.oi-lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	background: rgba(255,255,255,0.15);
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 1.5rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
}
.oi-lightbox__close:hover {
	background: rgba(255,255,255,0.3);
}
.oi-lightbox img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 8px;
}

/* ───────────────────────────────────────────────
   PRODUCT INFO
   ─────────────────────────────────────────────── */
.oi-product-info {
	grid-area: product-info;
	padding-top: 0.25rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* Category label */
.oi-prod-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--oi-cyan);
	margin-bottom: 10px;
}
.oi-prod-label::before {
	content: '';
	width: 20px;
	height: 1.5px;
	background: var(--oi-cyan);
	border-radius: 2px;
}

/* Title */
.oi-prod-title {
	font-size: 2.75rem;
	font-weight: 800;
	color: var(--oi-navy);
	letter-spacing: -0.035em;
	line-height: 1.1;
	margin-bottom: 18px;
	font-family: var(--oi-font);
}

/* Features */
.oi-features {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0 0 0;
	padding: 0;
	list-style: none;
}
.oi-feat-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.9rem;
	color: var(--oi-text);
	line-height: 1.5;
}
.oi-feat-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 1px;
	background: rgba(61,186,136,0.12);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.oi-feat-icon svg {
	width: 10px;
	height: 10px;
	stroke: var(--oi-green);
}

/* Separator */
.oi-sep {
	height: 1px;
	background: var(--oi-border);
	margin: 22px 0;
}

/* Price block */
.oi-price-block {
	margin-bottom: 16px;
}
.oi-price-amount {
	font-size: 2.1rem;
	font-weight: 800;
	color: var(--oi-orange);
	letter-spacing: -0.03em;
	line-height: 1;
}
.oi-price-amount .woocommerce-Price-amount {
	color: var(--oi-orange);
}
.oi-price-amount del {
	opacity: 0.45;
	font-size: 0.65em;
	margin-right: 0.4em;
}
.oi-price-amount ins {
	text-decoration: none;
}
.oi-price-note {
	font-size: 0.78rem;
	color: var(--oi-text-mu);
	margin-top: 4px;
	font-weight: 400;
}

/* Stock line */
.oi-stock-line {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--oi-green);
	margin-bottom: 18px;
}
.oi-stock-line svg {
	width: 15px;
	height: 15px;
	stroke: var(--oi-green);
	flex-shrink: 0;
}
.oi-stock-line--out {
	color: #e53e3e;
}
.oi-stock-line--out svg {
	stroke: #e53e3e;
}

/* ───────────────────────────────────────────────
   CTA BLOCK: QUANTITY + CART + DEVIS
   ─────────────────────────────────────────────── */
.oi-cta-block {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.oi-add-to-cart {
	margin: 0;
}
.oi-qty-row {
	display: flex;
	gap: 10px;
	align-items: center;
}

/* Quantity selector */
.oi-qty-row .quantity {
	display: flex;
	align-items: center;
	background: var(--oi-bg-lt);
	border: 1.5px solid var(--oi-border);
	border-radius: var(--oi-r);
	overflow: hidden;
	height: 48px;
}
.oi-qty-row .quantity .oi-qty-btn {
	width: 38px;
	height: 48px;
	background: none;
	border: none;
	color: var(--oi-text-lt);
	font-size: 1.1rem;
	cursor: pointer;
	font-family: var(--oi-font);
	font-weight: 500;
	transition: all 0.15s;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.oi-qty-row .quantity .oi-qty-btn:hover {
	background: var(--oi-border-lt);
	color: var(--oi-navy);
}
.oi-qty-row .quantity input.qty,
.oi-qty-row .quantity input[type="number"] {
	width: 44px;
	text-align: center;
	border: none;
	background: none;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--oi-navy);
	outline: none;
	font-family: var(--oi-font);
	-moz-appearance: textfield;
	appearance: textfield;
	height: 48px;
	padding: 0;
	margin: 0;
}
.oi-qty-row .quantity input::-webkit-outer-spin-button,
.oi-qty-row .quantity input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Cart button — outline green, fills on hover (like devis) */
.oi-btn-cart {
	flex: 1;
	height: auto;
	background: transparent;
	color: var(--oi-green);
	border: 2px solid var(--oi-green);
	border-radius: 7px !important;
	font-family: var(--oi-font);
	font-size: 15px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
	position: relative;
	overflow: hidden;
	letter-spacing: 0;
	padding: 12px 28px !important;
}
.oi-btn-cart::after {
	content: none;
}
.oi-btn-cart:hover {
	background: var(--oi-green);
	color: #fff;
	box-shadow: 0 4px 20px rgba(61,186,136,0.3);
	transform: translateY(-1px);
}

/* ───────────────────────────────────────────────
   TRUST STRIP
   ─────────────────────────────────────────────── */
.oi-trust-strip {
	display: flex;
	gap: 0;
	margin-top: 20px;
	border: 1px solid var(--oi-border);
	border-radius: var(--oi-r);
	overflow: hidden;
	background: var(--oi-bg-lt);
}
.oi-trust-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 12px 10px;
	border-right: 1px solid var(--oi-border);
	font-size: 0.72rem;
	font-weight: 500;
	color: var(--oi-text-lt);
	text-align: center;
	line-height: 1.3;
}
.oi-trust-item:last-child {
	border-right: none;
}
.oi-trust-item svg {
	width: 18px;
	height: 18px;
	stroke: var(--oi-cyan);
	margin-bottom: 2px;
}
.oi-trust-item strong {
	color: var(--oi-navy);
	font-size: 0.75rem;
}

/* ───────────────────────────────────────────────
   PRODUCT META (SKU, categories)
   ─────────────────────────────────────────────── */
.oi-product-meta {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--oi-border);
	font-size: 0.78rem;
	color: var(--oi-text-mu);
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.oi-product-meta strong {
	color: var(--oi-text-lt);
	font-weight: 600;
	margin-right: 4px;
}
.oi-product-meta a {
	color: var(--oi-cyan);
	text-decoration: none;
}
.oi-product-meta a:hover {
	text-decoration: underline;
}

/* ───────────────────────────────────────────────
   TABS
   ─────────────────────────────────────────────── */
.oi-tabs-section {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 2.5rem 4rem;
}
.oi-tabs-nav {
	display: flex;
	gap: 0;
	border-bottom: 1px solid var(--oi-border);
	margin-bottom: 2.5rem;
	margin-top: 3rem;
}
.oi-tab-btn {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	font-family: var(--oi-font);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--oi-text-mu);
	padding: 14px 22px;
	margin-bottom: -1px;
	cursor: pointer;
	transition: all 0.15s;
}
.oi-tab-btn.active {
	color: var(--oi-navy);
	border-bottom-color: var(--oi-cyan);
}
.oi-tab-btn:hover:not(.active) {
	color: var(--oi-text);
}

.oi-tab-pane {
	display: none;
}
.oi-tab-pane.active {
	display: block;
	animation: oiFadeUp 0.3s ease;
}
@keyframes oiFadeUp {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Description text */
.oi-desc-text {
	max-width: 680px;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.8;
	color: var(--oi-text-lt);
}
.oi-desc-text p {
	margin: 0;
}
.oi-desc-text p + p {
	margin-top: 1.1em;
}
.oi-desc-text strong {
	color: var(--oi-navy);
	font-weight: 600;
}
.oi-desc-text h2 {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--oi-navy);
	margin: 0 0 0.4em;
	padding: 0;
	text-transform: none;
	letter-spacing: normal;
	border: none;
}
.oi-desc-text h3 {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--oi-navy);
	margin: 0 0 0.35em;
}
.oi-desc-text ul,
.oi-desc-text ol {
	padding-left: 1.4em;
	margin: 0 0 0.65em;
}
.oi-desc-text li {
	margin-bottom: 0.2em;
}
.oi-desc-text li::marker {
	color: var(--oi-green);
}
.oi-desc-text a {
	color: var(--oi-cyan);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
.oi-desc-text a:hover {
	color: var(--oi-cyan-dk);
}
.oi-desc-text img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 0.5em 0;
}

/* Tab placeholder (empty content) */
.oi-tab-placeholder {
	color: #8b95a5;
	font-style: italic;
	font-size: 0.95rem;
	padding: 24px 0;
}

/* Hide WC headings inside tabs */
.oi-desc-text .woocommerce-Tabs-panel > h2:first-child,
.oi-desc-text > h2.woocommerce-Reviews-title {
	display: none;
}

/* ───────────────────────────────────────────────
   SPECS TABLE (div-based layout)
   ─────────────────────────────────────────────── */
.oi-specs-table {
	max-width: 640px;
	border: 1px solid var(--oi-border);
	border-radius: var(--oi-r-lg);
	overflow: hidden;
}
.oi-spec-row {
	display: flex;
	border-bottom: 1px solid var(--oi-border);
}
.oi-spec-row:last-child {
	border-bottom: none;
}
.oi-spec-row:nth-child(odd) .oi-spec-lbl,
.oi-spec-row:nth-child(odd) .oi-spec-val {
	background: var(--oi-bg-lt);
}
.oi-spec-lbl {
	width: 42%;
	padding: 12px 18px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--oi-navy);
	border-right: 1px solid var(--oi-border);
	flex-shrink: 0;
}
.oi-spec-val {
	padding: 12px 18px;
	font-size: 0.875rem;
	color: var(--oi-text-lt);
	font-weight: 400;
	flex: 1;
}

/* Category header rows in specs */
.oi-spec-row--category {
	background: var(--oi-navy) !important;
}
.oi-spec-row--category .oi-spec-lbl {
	width: 100%;
	color: #fff;
	background: var(--oi-navy);
	border-right: none;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 10px 18px;
}

/* Legacy oi-tech-table support (ACF WYSIWYG) */
.oi-desc-text table,
.oi-tech-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--oi-border);
	border-radius: var(--oi-r-lg);
	overflow: hidden;
	margin: 0;
}
.oi-desc-text table th,
.oi-desc-text table td,
.oi-tech-table th,
.oi-tech-table td {
	padding: 12px 18px;
	border-bottom: 1px solid var(--oi-border);
	font-size: 0.875rem;
	text-align: left;
	vertical-align: top;
}
.oi-desc-text table tr:last-child th,
.oi-desc-text table tr:last-child td,
.oi-tech-table tr:last-child th,
.oi-tech-table tr:last-child td {
	border-bottom: none;
}
.oi-desc-text table tr:nth-child(odd) td,
.oi-desc-text table tr:nth-child(odd) th,
.oi-tech-table tr:nth-child(odd) td,
.oi-tech-table tr:nth-child(odd) th {
	background: var(--oi-bg-lt);
}
.oi-desc-text table th,
.oi-tech-table th {
	width: 42%;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--oi-navy);
	border-right: 1px solid var(--oi-border);
}
.oi-desc-text table td,
.oi-tech-table td {
	color: var(--oi-text-lt);
}
.oi-tech-table tr.oi-tech-category td {
	background: var(--oi-navy);
	color: #fff;
	font-weight: 700;
	font-size: 0.82rem;
	font-family: var(--oi-font);
	letter-spacing: 0.04em;
	padding: 10px 18px;
	border-bottom: none;
}

/* ───────────────────────────────────────────────
   STEPS GRID ("Comment l'utiliser")
   ─────────────────────────────────────────────── */
.oi-steps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	max-width: 820px;
}
.oi-step-card {
	background: var(--oi-bg-lt);
	border: 1px solid var(--oi-border);
	border-radius: var(--oi-r-lg);
	padding: 26px 22px;
	transition: all 0.2s;
	position: relative;
	overflow: hidden;
}
.oi-step-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--oi-cyan), var(--oi-green));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}
.oi-step-card:hover {
	box-shadow: var(--oi-shadow-md);
	transform: translateY(-3px);
	border-color: transparent;
}
.oi-step-card:hover::before {
	transform: scaleX(1);
}
.oi-step-num {
	font-size: 2.2rem;
	font-weight: 800;
	line-height: 1;
	color: var(--oi-cyan);
	opacity: 0.18;
	margin-bottom: 12px;
}
.oi-step-card h4 {
	font-size: 0.9rem;
	font-weight: 700;
	margin-bottom: 7px;
	color: var(--oi-navy);
}
.oi-step-card p {
	font-size: 0.82rem;
	color: var(--oi-text-lt);
	line-height: 1.6;
	margin: 0;
}

/* ───────────────────────────────────────────────
   RELATED PRODUCTS
   ─────────────────────────────────────────────── */
.oi-related-section {
	background: var(--oi-bg-lt);
	border-top: 1px solid var(--oi-border);
	padding: 4rem 2.5rem;
}
.oi-related-inner {
	max-width: 1160px;
	margin: 0 auto;
}

.oi-section-header {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 2rem;
}
.oi-section-title {
	font-size: 1rem;
	font-weight: 800;
	color: var(--oi-navy);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}
.oi-section-line {
	flex: 1;
	height: 1px;
	background: var(--oi-border);
}

.oi-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.oi-related-card {
	background: var(--oi-bg);
	border: 1px solid var(--oi-border);
	border-radius: var(--oi-r-xl);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	display: block;
	transition: all 0.22s;
	box-shadow: var(--oi-shadow-xs);
}
.oi-related-card:hover {
	box-shadow: var(--oi-shadow-lg);
	transform: translateY(-5px);
	border-color: rgba(0,160,210,0.2);
}

.oi-rel-img {
	aspect-ratio: 4/3;
	background: var(--oi-bg-lt);
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid var(--oi-border);
	overflow: hidden;
	position: relative;
}
.oi-rel-img::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 50%, rgba(17,37,72,0.03));
}
.oi-rel-img img {
	width: 60%;
	height: 60%;
	object-fit: contain;
	filter: drop-shadow(0 6px 16px rgba(0,0,0,0.1));
	transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.oi-related-card:hover .oi-rel-img img {
	transform: scale(1.08);
}

.oi-rel-body {
	padding: 18px 18px 22px;
}
.oi-rel-name {
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--oi-navy);
	letter-spacing: 0.02em;
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.4;
	max-height: calc(3 * 1.4 * 1em);
}
.oi-rel-desc {
	font-size: 0.8rem;
	color: var(--oi-text-lt);
	margin-bottom: 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.6;
	max-height: calc(3 * 1.6 * 1em);
}
.oi-btn-info {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--oi-green);
	color: #fff;
	padding: 12px 28px;
	border-radius: 7px;
	font-family: var(--oi-font);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
	letter-spacing: 0;
}
.oi-btn-info svg {
	width: 12px;
	height: 12px;
}
.oi-btn-info:hover {
	background: var(--oi-green-dk);
	transform: translateY(-1px);
	box-shadow: 0 3px 12px rgba(61,186,136,0.3);
}

/* ───────────────────────────────────────────────
   STICKY BAR
   ─────────────────────────────────────────────── */
.oi-sticky-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 300;
	background: rgba(255,255,255,0.97);
	backdrop-filter: blur(12px);
	border-top: 1px solid var(--oi-border);
	box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
	transform: translateY(100%);
	transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
	padding: 12px 2.5rem;
}
.oi-sticky-bar.show {
	transform: translateY(0);
}
.oi-sticky-inner {
	max-width: 1160px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.oi-sticky-left {
	display: flex;
	align-items: center;
	gap: 16px;
}
.oi-sticky-name {
	font-size: 1rem;
	font-weight: 800;
	color: var(--oi-navy);
}
.oi-sticky-price {
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--oi-orange);
}
.oi-sticky-actions {
	display: flex;
	gap: 10px;
}
.oi-sticky-btn-cart {
	height: auto;
	padding: 12px 28px;
	background: var(--oi-green);
	color: #fff;
	border: none;
	border-radius: 7px;
	font-family: var(--oi-font);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
}
.oi-sticky-btn-cart:hover {
	background: var(--oi-green-dk);
	transform: translateY(-1px);
}

/* ───────────────────────────────────────────────
   REVEAL ANIMATION
   ─────────────────────────────────────────────── */
/* Reveal works on gallery children directly since gallery is display:contents */
.oi-single-product .reveal,
.oi-single-product .oi-gallery__main,
.oi-single-product .oi-gallery__thumbs {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}
.oi-single-product .reveal.in,
.oi-single-product .oi-gallery.in .oi-gallery__main,
.oi-single-product .oi-gallery.in .oi-gallery__thumbs {
	opacity: 1;
	transform: translateY(0);
}

/* ───────────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────────── */
@media (max-width: 992px) {
	.oi-product-inner {
		grid-template-columns: 1fr;
		grid-template-areas:
			"gallery-main"
			"gallery-thumbs"
			"product-info";
		row-gap: 1rem;
	}
	.oi-product-section {
		padding: 2rem 1.5rem 2.5rem;
	}
	.oi-gallery__main {
		max-width: 500px;
		margin: 0 auto;
	}
	.oi-gallery__thumbs {
		max-width: 500px;
		margin: 10px auto 0;
	}
	.oi-prod-title {
		font-size: 2.2rem;
	}
	.oi-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.oi-steps-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.oi-tabs-section {
		padding: 0 1.5rem 3rem;
	}
	.oi-related-section {
		padding: 3rem 1.5rem;
	}
}

@media (max-width: 600px) {
	.oi-product-section {
		padding: 1.5rem 1rem 2rem;
	}
	.oi-prod-title {
		font-size: 1.7rem;
	}
	.oi-price-amount {
		font-size: 1.6rem;
	}
	.oi-qty-row {
		flex-wrap: wrap;
	}
	.oi-btn-cart {
		flex: 1 1 100%;
		order: 1;
	}
	.oi-qty-row .quantity {
		order: 0;
	}
	.oi-tabs-section {
		padding: 0 1rem 2rem;
	}
	.oi-tabs-nav {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.oi-tab-btn {
		font-size: 0.7rem;
		padding: 10px 12px;
		white-space: nowrap;
	}
	.oi-related-section {
		padding: 2rem 1rem;
	}
	.oi-related-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.oi-steps-grid {
		grid-template-columns: 1fr;
	}
	.oi-trust-strip {
		flex-direction: column;
	}
	.oi-trust-item {
		border-right: none;
		border-bottom: 1px solid var(--oi-border);
		flex-direction: row;
		gap: 8px;
		padding: 10px 14px;
	}
	.oi-trust-item:last-child {
		border-bottom: none;
	}
	.oi-gallery__thumbs {
		grid-template-columns: repeat(4, 1fr);
	}
	.oi-desc-text {
		font-size: 0.88rem;
	}
	.oi-sticky-bar {
		padding: 10px 1rem;
	}
	.oi-sticky-inner {
		flex-wrap: wrap;
		gap: 8px;
	}
	.oi-sticky-left {
		gap: 10px;
	}
	.oi-sticky-name {
		font-size: 0.88rem;
	}
	.oi-sticky-price {
		font-size: 0.95rem;
	}
	.oi-sticky-btn-cart {
		height: 38px;
		font-size: 0.78rem;
		padding: 0 16px;
	}
}

/* ═══════════════════════════════════════════════════
   ADD-TO-CART ANIMATION — Premium Design
   ═══════════════════════════════════════════════════ */

/* ── Button states ── */
.oi-btn-cart {
	position: relative;
	overflow: hidden;
}
.oi-btn-cart .oi-btn-text,
.oi-btn-cart .oi-btn-success {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.oi-btn-cart .oi-btn-success {
	position: absolute;
	inset: 0;
	justify-content: center;
	transform: translateY(110%);
	opacity: 0;
}
.oi-btn-cart.oi-added .oi-btn-text {
	transform: translateY(-110%);
	opacity: 0;
}
.oi-btn-cart.oi-added .oi-btn-success {
	transform: translateY(0);
	opacity: 1;
}

/* Success checkmark SVG in button */
.oi-btn-cart .oi-check-icon {
	width: 20px;
	height: 20px;
	stroke: #fff;
	stroke-width: 2.5;
	fill: none;
}
.oi-btn-cart .oi-check-icon .oi-check-path {
	stroke-dasharray: 24;
	stroke-dashoffset: 24;
}
.oi-btn-cart.oi-added .oi-check-icon .oi-check-path {
	animation: oi-draw-check 0.45s 0.15s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes oi-draw-check {
	to { stroke-dashoffset: 0; }
}

/* ── Ripple on click ── */
.oi-btn-cart .oi-ripple {
	position: absolute;
	border-radius: 50%;
	background: rgba(255,255,255,0.35);
	transform: scale(0);
	pointer-events: none;
	animation: oi-ripple-expand 0.6s ease-out forwards;
}
@keyframes oi-ripple-expand {
	to {
		transform: scale(4);
		opacity: 0;
	}
}

/* ── Flying product bubble ── */
.oi-fly-bubble {
	position: fixed;
	z-index: 100000;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 8px 32px rgba(17,37,72,0.18), 0 2px 8px rgba(0,0,0,0.08);
	overflow: hidden;
	pointer-events: none;
	transition: none;
	will-change: transform, left, top, width, height, opacity;
}
.oi-fly-bubble img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}
.oi-fly-bubble.oi-fly-go {
	transition: left 0.75s cubic-bezier(0.22, 1, 0.36, 1),
				top 0.75s cubic-bezier(0.55, 0, 0.15, 1),
				width 0.75s cubic-bezier(0.22, 1, 0.36, 1),
				height 0.75s cubic-bezier(0.22, 1, 0.36, 1),
				opacity 0.4s 0.45s ease;
}

/* ── Cart icon pulse ── */
.site-header__action-link--cart.oi-cart-pulse {
	animation: oi-header-cart-pulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes oi-header-cart-pulse {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.35); }
	70%  { transform: scale(0.9); }
	100% { transform: scale(1); }
}

/* Cart count bump */
.header__cart-count.oi-count-bump {
	animation: oi-count-bump 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes oi-count-bump {
	0%   { transform: scale(1); }
	50%  { transform: scale(1.5); }
	100% { transform: scale(1); }
}

/* ── Toast notification ── */
.oi-cart-toast {
	position: fixed;
	bottom: 32px;
	right: 32px;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 48px rgba(17,37,72,0.15), 0 2px 8px rgba(0,0,0,0.06);
	padding: 16px 22px;
	max-width: 380px;
	transform: translateY(120%) scale(0.95);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
				opacity 0.4s ease;
	border-left: 4px solid var(--oi-green, #3dba88);
}
.oi-cart-toast.oi-toast-show {
	transform: translateY(0) scale(1);
	opacity: 1;
	pointer-events: auto;
}
.oi-cart-toast__icon {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--oi-green, #3dba88), #2fa87a);
	display: flex;
	align-items: center;
	justify-content: center;
}
.oi-cart-toast__icon svg {
	width: 22px;
	height: 22px;
	stroke: #fff;
	stroke-width: 2.5;
	fill: none;
}
.oi-cart-toast__icon .oi-toast-check-path {
	stroke-dasharray: 24;
	stroke-dashoffset: 24;
}
.oi-cart-toast.oi-toast-show .oi-toast-check-path {
	animation: oi-draw-check 0.45s 0.3s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.oi-cart-toast__body {
	flex: 1;
	min-width: 0;
}
.oi-cart-toast__title {
	font-family: var(--oi-font, 'Plus Jakarta Sans', sans-serif);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--oi-navy, #112548);
	margin: 0 0 2px;
	line-height: 1.3;
}
.oi-cart-toast__sub {
	font-family: var(--oi-font, 'Plus Jakarta Sans', sans-serif);
	font-size: 0.8rem;
	color: #6b7a8d;
	margin: 0;
	line-height: 1.3;
}
.oi-cart-toast__link {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--oi-font, 'Plus Jakarta Sans', sans-serif);
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--oi-green, #3dba88);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}
.oi-cart-toast__link:hover {
	color: var(--oi-green-dk, #2b9e6e);
}
.oi-cart-toast__link svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	stroke-width: 2.5;
	fill: none;
	transition: transform 0.2s ease;
}
.oi-cart-toast__link:hover svg {
	transform: translateX(3px);
}
.oi-cart-toast__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 20px;
	height: 20px;
	border: none;
	background: none;
	color: #b0b8c4;
	font-size: 16px;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	transition: color 0.15s ease;
}
.oi-cart-toast__close:hover {
	color: #112548;
}

/* Toast progress bar */
.oi-cart-toast__progress {
	position: absolute;
	bottom: 0;
	left: 4px;
	right: 0;
	height: 3px;
	background: var(--oi-green, #3dba88);
	border-radius: 0 0 14px 14px;
	transform-origin: left;
	transform: scaleX(1);
	opacity: 0.4;
}
.oi-cart-toast.oi-toast-show .oi-cart-toast__progress {
	animation: oi-toast-progress 4s 0.5s linear forwards;
}
@keyframes oi-toast-progress {
	to { transform: scaleX(0); }
}

/* ── Mobile toast ── */
@media (max-width: 600px) {
	.oi-cart-toast {
		left: 16px;
		right: 16px;
		bottom: 16px;
		max-width: none;
	}
}