/* InoBags Noir — product page. Mobile first; desktop from 1000px. */

.single-product .site-main > .ct-container-full, .single-product .site-main > .ct-container { width: 100%; max-width: none; padding: 0; }
.single-product .site-main > .ct-container > article { margin: 0; }
.single-product [data-vertical-spacing] { --theme-content-vertical-spacing: 0px; }
.ibn-pdp { padding-bottom: 8px; }
.ibn-pdp__crumbs { padding-top: 0; }
.ibn-pdp__grid { padding-inline: 0; }

/* Gallery — swipe on phones; on desktop a sticky 3:4 stage with vertical thumbnails */
.ibn-gallery { position: relative; }
.ibn-gallery__stage { position: relative; }
.ibn-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ibn-gallery__track::-webkit-scrollbar { display: none; }
.ibn-gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; height: min(124vw, 520px); background: #ECE7E2; overflow: hidden; }
.ibn-gallery__slide.is-cover { background: var(--ibn-cover); }
.ibn-gallery__open { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.ibn-gallery__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ibn-gallery__slide:not(.is-cover) .ibn-gallery__img { mix-blend-mode: multiply; }
.ibn-gallery__badge { top: 12px; left: 12px; }
.ibn-gallery__counter { position: absolute; right: 12px; bottom: 12px; padding: 4px 9px; background: rgba(18, 11, 13, .75); color: var(--ibn-ink); font-size: 12px; pointer-events: none; }
.ibn-gallery__arrow {
	position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: flex; align-items: center; justify-content: center;
	background: rgba(18, 11, 13, .7); color: var(--ibn-ink); border: 1px solid rgba(212, 176, 122, .3); cursor: pointer; opacity: 0; transition: opacity .2s, background-color .2s;
}
.ibn-gallery__arrow.is-prev { left: 12px; }
.ibn-gallery__arrow.is-next { right: 12px; }
.ibn-gallery__arrow.is-next svg { transform: scaleX(-1); }
.ibn-gallery__stage:hover .ibn-gallery__arrow, .ibn-gallery__arrow:focus-visible { opacity: 1; }
.ibn-gallery__arrow:hover { background: var(--ibn-gold); color: var(--ibn-on-gold); }
.ibn-gallery__arrow[disabled] { opacity: 0 !important; pointer-events: none; }
.ibn-gallery__thumbs { display: flex; gap: 8px; padding: 10px 16px 0; overflow-x: auto; scrollbar-width: none; }
.ibn-gallery__thumbs::-webkit-scrollbar { display: none; }
.ibn-gallery__thumb { flex: 0 0 64px; height: 80px; padding: 0; border: 1px solid transparent; background: #ECE7E2; overflow: hidden; cursor: pointer; }
.ibn-gallery__thumb:first-child { background: var(--ibn-cover); }
.ibn-gallery__thumb.is-on { border-color: var(--ibn-gold); }
.ibn-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ibn-gallery__thumb:not(:first-child) img { mix-blend-mode: multiply; }

/* Buy panel */
.ibn-buy { display: flex; flex-direction: column; gap: 14px; padding: 22px 16px 0; }
.ibn-buy .ibn-crumbs { font-size: 12px; }
.ibn-buy__title { margin: 0; font-size: 30px; }
.ibn-buy__rating { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; text-decoration: none; }
.ibn-buy__rating .ibn-stars { font-size: 13px; }
.ibn-buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.ibn-buy__now { font-size: 30px; font-weight: 700; color: var(--ibn-ink); }
.ibn-buy__now .woocommerce-Price-amount { color: inherit; }
.ibn-buy__was { color: var(--ibn-muted); font-size: 16px; }
.ibn-buy__save { padding: 4px 8px; background: var(--ibn-wine); color: var(--ibn-ink); font-size: 12px; font-weight: 700; }
.ibn-buy__save .woocommerce-Price-amount { color: inherit; }
.ibn-buy__label { margin: 0 0 4px; font-size: 14px; color: var(--ibn-ink-2); }
.ibn-buy__label strong { color: var(--ibn-ink); }
.ibn-buy__swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.ibn-pswatch { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.ibn-pswatch span { display: block; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(243, 234, 226, .35); box-sizing: border-box; transition: box-shadow .2s; }
.ibn-pswatch:hover span { box-shadow: 0 0 0 2px var(--ibn-bg), 0 0 0 4px rgba(212, 176, 122, .5); }
.ibn-pswatch.is-on span { box-shadow: 0 0 0 2px var(--ibn-bg), 0 0 0 4px var(--ibn-gold); }
.ibn-buy__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ibn-ink); }
.ibn-buy__stock { color: var(--ibn-ok); }
.ibn-buy__stock.is-out { color: #E9A9A0; }

/* WooCommerce add-to-cart form (Blocksy wraps quantity + button in .ct-cart-actions) */
.ibn-buy__cart form.cart { margin: 0; }
.ibn-buy__cart .ct-cart-actions, .ibn-buy__cart form.cart:not(.variations_form):not(:has(.ct-cart-actions)) { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: stretch; }
.ibn-buy__cart p.stock.in-stock { display: none; }
.ibn-buy__cart .quantity { position: relative; display: flex; align-items: stretch; height: 52px; margin: 0; border: 1px solid rgba(243, 234, 226, .35); border-radius: 0; }
.ibn-buy__cart .quantity .ct-decrease { order: 1; }
.ibn-buy__cart .quantity input.qty { order: 2; }
.ibn-buy__cart .quantity .ct-increase { order: 3; }
.ibn-buy__cart .quantity .ct-increase svg, .ibn-buy__cart .quantity .ct-decrease svg { width: 12px; height: 12px; }
.ibn-buy__cart .quantity .ct-increase:hover, .ibn-buy__cart .quantity .ct-decrease:hover { color: var(--ibn-gold); }
.ibn-buy__cart .quantity input.qty { flex: 1; min-width: 0; width: auto; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ibn-ink); font: 600 16px var(--ibn-sans); text-align: center; -moz-appearance: textfield; }
.ibn-buy__cart .quantity input.qty::-webkit-inner-spin-button, .ibn-buy__cart .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; }
.ibn-buy__cart .quantity .ct-increase, .ibn-buy__cart .quantity .ct-decrease { position: static; inset: auto; transform: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 40px; height: 100%; color: var(--ibn-ink); background: none; border: 0; }
.ibn-buy__cart .single_add_to_cart_button {
	min-height: 52px; width: 100%; margin: 0; border-radius: var(--ibn-radius);
	background: var(--ibn-gold); color: var(--ibn-on-gold); font: 600 15px/1 var(--ibn-sans); letter-spacing: .02em;
}
.ibn-buy__cart .single_add_to_cart_button:hover { background: var(--ibn-gold-hover); color: var(--ibn-on-gold); }
.ibn-buy__cart .variations { width: 100%; margin: 0 0 12px; }
.ibn-buy__cart .variations th, .ibn-buy__cart .variations td { padding: 6px 0; color: var(--ibn-ink); text-align: left; border: 0; }
.ibn-buy__cart .variations select { width: 100%; height: 48px; background: var(--ibn-surface); color: var(--ibn-ink); border: 1px solid rgba(243, 234, 226, .22); }
.ibn-buy__cart .woocommerce-variation-add-to-cart { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.ibn-buy__cart .stock.out-of-stock { color: #E9A9A0; }

/* Delivery box */
.ibn-delivery { list-style: none; margin: 6px 0 0; padding: 4px 16px; background: var(--ibn-surface); border: 1px solid rgba(212, 176, 122, .16); }
.ibn-delivery li { display: flex; align-items: center; gap: 14px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--ibn-line-soft); color: var(--ibn-gold); }
.ibn-delivery li:last-child { border-bottom: 0; }
.ibn-delivery svg { flex: 0 0 auto; }
.ibn-delivery span { display: flex; flex-direction: column; font-size: 13px; color: var(--ibn-muted); line-height: 1.4; }
.ibn-delivery .ibn-delivery__txt { display: block; }
.ibn-delivery a { color: var(--ibn-ink); text-decoration: underline; text-underline-offset: 3px; }
.ibn-delivery a:hover { color: var(--ibn-gold); }
.ibn-delivery strong { font-size: 14px; color: var(--ibn-ink); font-weight: 600; }

.ibn-buy__short { margin-top: 8px; color: var(--ibn-ink); font-size: 15px; }
.ibn-buy__short p { margin: 0 0 .6em; }
.ibn-buy__short p:last-child { margin-bottom: 0; }

/* Accordions */
.ibn-acc { margin-top: 8px; border-bottom: 1px solid var(--ibn-line); }
.ibn-acc__item { border-top: 1px solid var(--ibn-line); }
.ibn-acc__item > summary {
	display: flex; align-items: center; justify-content: space-between; min-height: 58px; list-style: none; cursor: pointer;
	color: var(--ibn-ink); font: 600 15px var(--ibn-sans);
}
.ibn-acc__item > summary::-webkit-details-marker { display: none; }
.ibn-acc__item > summary::after { content: '+'; color: var(--ibn-gold); font: 400 22px/1 var(--ibn-sans); }
.ibn-acc__item[open] > summary::after { content: '−'; }
.ibn-acc__body { padding-bottom: 16px; }
.ibn-specs { margin: 0 0 14px; }
.ibn-specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--ibn-line-soft); font-size: 14px; }
.ibn-specs > div:last-child { border-bottom: 0; }
.ibn-specs dt { color: var(--ibn-muted); flex: 0 0 auto; }
.ibn-specs dd { margin: 0; color: var(--ibn-ink); text-align: right; }
.ibn-prose { color: var(--ibn-muted); font-size: 14px; line-height: 1.65; }
.ibn-prose h2, .ibn-prose h3, .ibn-prose h4 { margin: 1.2em 0 .4em; font: 600 15px/1.4 var(--ibn-sans); color: var(--ibn-ink); }
.ibn-prose > :first-child { margin-top: 0; }
.ibn-prose p { margin: 0 0 .9em; }
.ibn-prose a { color: var(--ibn-gold); }

/* Reviews (WooCommerce template inside the accordion) — one column */
.ibn-reviews-box #reviews, .ibn-reviews-box #reviews #comments, .ibn-reviews-box #review_form_wrapper { display: block; width: 100%; max-width: none; margin: 0; padding: 0; float: none; }
.ibn-reviews-box .woocommerce-Reviews-title { margin: 0 0 12px; font: 600 14px/1.4 var(--ibn-sans); color: var(--ibn-muted); }
.ibn-reviews-box .woocommerce-Reviews-title span { color: var(--ibn-muted); }
.ibn-reviews-box .commentlist { list-style: none; margin: 0; padding: 0; }
.ibn-reviews-box .commentlist li { margin: 0 0 12px; padding: 16px; background: var(--ibn-surface); border: 1px solid rgba(212, 176, 122, .14); }
.ibn-reviews-box .comment_container, .ibn-reviews-box .comment-text { display: block; margin: 0; padding: 0; border: 0; }
.ibn-reviews-box .star-rating { position: static; float: none; display: block; margin: 0 0 6px; color: var(--ibn-gold); }
.ibn-reviews-box .meta { margin: 0 0 6px; font-size: 13px; color: var(--ibn-muted); }
.ibn-reviews-box .woocommerce-review__author { color: var(--ibn-ink); font-weight: 600; }
.ibn-reviews-box .description { color: var(--ibn-ink); font-size: 14px; line-height: 1.55; }
.ibn-reviews-box .description p { margin: 0; }
.ibn-reviews-box .woocommerce-noreviews { color: var(--ibn-muted); font-size: 14px; }
.ibn-reviews-box #review_form_wrapper { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ibn-line-soft); }
.ibn-reviews-box .comment-reply-title { display: block; margin-bottom: 8px; font: 600 15px var(--ibn-sans); color: var(--ibn-ink); }
.ibn-reviews-box .comment-notes { font-size: 13px; color: var(--ibn-muted); }
.ibn-reviews-box .comment-form { display: flex; flex-direction: column; gap: 12px; }
.ibn-reviews-box .comment-form > p { margin: 0; }
.ibn-reviews-box .comment-form label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--ibn-ink-2); text-transform: none; letter-spacing: 0; }
.ibn-reviews-box .comment-form-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ibn-reviews-box .comment-form-rating label { margin: 0; }
.ibn-reviews-box .stars a { color: var(--ibn-gold); }
.ibn-reviews-box textarea, .ibn-reviews-box input[type="text"], .ibn-reviews-box input[type="email"] { width: 100%; min-height: 48px; background: var(--ibn-bg); color: var(--ibn-ink); border: 1px solid rgba(243, 234, 226, .22); font: 500 16px var(--ibn-sans); }
.ibn-reviews-box textarea { min-height: 120px; }
.ibn-reviews-box .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ibn-muted); }
.ibn-reviews-box .comment-form-cookies-consent label { margin: 0; color: var(--ibn-muted); }
.ibn-reviews-box .form-submit input[type="submit"], .ibn-reviews-box .form-submit .submit { min-height: 52px; padding: 0 26px; background: var(--ibn-gold); color: var(--ibn-on-gold); border: 0; border-radius: var(--ibn-radius); font: 600 15px var(--ibn-sans); cursor: pointer; }

/* Lightbox */
.ibn-lb { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; background: rgba(10, 6, 7, .96); color: var(--ibn-ink); }
.ibn-lb[hidden] { display: none; }
.ibn-lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 16px; flex: 0 0 auto; }
.ibn-lb__count { font-size: 14px; color: var(--ibn-muted); }
.ibn-lb__tools { display: flex; gap: 4px; }
.ibn-lb__track { flex: 1 1 auto; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ibn-lb__track::-webkit-scrollbar { display: none; }
.ibn-lb__slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ibn-lb__slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.ibn-lb__slide.is-zoomed { overflow: auto; display: block; cursor: grab; }
.ibn-lb__slide.is-zoomed img { max-width: none; max-height: none; width: 250%; cursor: zoom-out; }
.ibn-lb__nav { position: absolute; top: 50%; margin-top: -26px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(18, 11, 13, .8); border: 1px solid rgba(212, 176, 122, .3); color: var(--ibn-ink); cursor: pointer; }
.ibn-lb__nav:hover { background: var(--ibn-gold); color: var(--ibn-on-gold); }
.ibn-lb__nav.is-prev { left: 16px; }
.ibn-lb__nav.is-next { right: 16px; }
.ibn-lb__nav.is-next svg { transform: scaleX(-1); }
.ibn-lb__nav[disabled] { opacity: .3; pointer-events: none; }
@media (max-width: 999.98px) { .ibn-lb__nav { display: none; } }

/* More in this colour */
.ibn-pdp__more { padding-top: 40px; }
.ibn-pdp__rail > * { flex-basis: 160px; }
.ibn-pdp__rail .ibn-card__name { font-size: 13px; }

/* Sticky add-to-cart bar (markup from inc/shop-tweaks.php) */
.single-product .inobags-sticky-checkout { display: none; }
@media (max-width: 999.98px) {
	.single-product .inobags-sticky-checkout {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: var(--ibn-surface); border-top: 1px solid rgba(212, 176, 122, .3); transition: transform .2s ease;
	}
	.single-product .inobags-sticky-checkout.is-hidden { transform: translateY(110%); }
	.single-product .inobags-sticky-checkout .inobags-sticky-checkout__button.inobags-sticky-checkout__button {
		display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; margin: 0; padding: 0 18px;
		background: var(--ibn-gold); color: var(--ibn-on-gold); border: 0; border-radius: var(--ibn-radius); font: 600 15px var(--ibn-sans); text-align: left; cursor: pointer;
	}
	.single-product .inobags-sticky-checkout__amount { font-weight: 700; white-space: nowrap; }
	.single-product .inobags-sticky-checkout__amount .woocommerce-Price-amount { color: inherit; }
	.single-product .ibn-pdp { padding-bottom: 84px; }
}

@media (min-width: 1000px) {
	.ibn-pdp__crumbs { padding-block: 24px; }
	.ibn-pdp__grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 64px; align-items: start; padding-inline: var(--ibn-gutter); }
	/* Whichever column is shorter stays in view; a column taller than the screen sticks by its bottom edge (top set in product.js). */
	.ibn-gallery, .ibn-buy { position: sticky; top: var(--ibn-sticky-top, 108px); }
	.ibn-gallery__track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; }
	.ibn-gallery__slide { height: auto; aspect-ratio: 4 / 5; }
	.ibn-gallery__slide:first-child { grid-column: span 2; aspect-ratio: 16 / 13; }
	.ibn-gallery__slide:last-child:nth-child(even) { grid-column: span 2; aspect-ratio: 16 / 9; }
	.ibn-gallery__slide .ibn-gallery__img { transition: transform .5s ease; }
	.ibn-gallery__slide:hover .ibn-gallery__img { transform: scale(1.03); }
	.ibn-gallery__thumbs, .ibn-gallery__counter, .ibn-gallery__arrow { display: none !important; }

	.ibn-gallery__badge { top: 16px; left: 16px; font-size: 13px; }

	.ibn-buy { padding: 0; gap: 18px; }
	.ibn-buy__title { font-size: 44px; }
	.ibn-buy__now { font-size: 36px; }
	.ibn-buy__was { font-size: 18px; }
	.ibn-buy__save { font-size: 13px; }
	.ibn-buy__cart .ct-cart-actions, .ibn-buy__cart .woocommerce-variation-add-to-cart { grid-template-columns: 130px 1fr; }
	.ibn-delivery { padding: 4px 18px; }

	.ibn-pdp__more { padding-top: 110px; }
	.ibn-pdp__rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
	.ibn-pdp__rail .ibn-card__name { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .ibn-gallery__track { scroll-behavior: auto; } }
.ibn-buy__cart .added_to_cart { display: none; }

/* Variants that share a colour: photo tiles */
.ibn-buy__variants { display: flex; flex-wrap: wrap; gap: 10px; }
.ibn-variant { display: flex; flex-direction: column; gap: 6px; width: 88px; color: var(--ibn-muted); font-size: 12px; line-height: 1.3; text-decoration: none; }
.ibn-variant img { display: block; width: 88px; height: 110px; object-fit: cover; background: var(--ibn-cover); border: 1px solid rgba(243, 234, 226, .2); box-sizing: border-box; transition: border-color .2s; }
.ibn-variant:hover { color: var(--ibn-ink); }
.ibn-variant:hover img { border-color: rgba(212, 176, 122, .6); }
.ibn-variant.is-on { color: var(--ibn-gold); }
.ibn-variant.is-on img { border: 2px solid var(--ibn-gold); }

/* One item in stock: WooCommerce hides the quantity — the button takes the full row */
.ibn-buy__cart .ct-cart-actions:has(> .quantity.hidden) { grid-template-columns: 1fr !important; }
.ibn-buy__cart .quantity.hidden { display: none; }
.ibn-buy__rating { min-height: 44px; }
