/* Product details — ported from the approved slice
   (assets/css/modules/product-details.css + product-details-responsive.css).
   Used by single-marcoeco_product.php / the products archive / the
   product_group taxonomy archive (see inc/enqueue.php's conditional). */

body.page-product { background: var(--skin-grey-5); }

/* Breadcrumb (design's "Return to parent page" back-link — distinct from
   the Schema.org breadcrumb trail rendered by marcoeco_render_breadcrumbs(),
   which uses .site-breadcrumbs/.breadcrumb-list from design-system.css) */
.breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--skin-dark);
	text-decoration: none;
	margin-bottom: 40px;
	transition: color 0.2s;
}
.breadcrumb i { color: var(--skin-teal); font-size: 15px; }
.breadcrumb:hover { color: var(--skin-teal); }

/* Section shell */
.product-panel { padding-top: 40px; padding-bottom: 100px; }
.product-panel__row { display: flex; gap: 72px; align-items: flex-start; }

/* Gallery */
.product-gallery { display: flex; gap: 15px; flex-shrink: 0; }
.product-gallery__thumbs { display: flex; flex-direction: column; gap: 12px; }
.product-gallery__thumb {
	width: 100px; height: 100px;
	border-radius: 18px;
	border: 1px solid var(--skin-teal-20);
	overflow: hidden;
	cursor: pointer;
	padding: 0;
	background: none;
	flex-shrink: 0;
	transition: border-color 0.2s;
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery__thumb.is-active { border: 2px solid var(--skin-teal); }
.product-gallery__main {
	position: relative;
	width: 772px; height: 772px;
	border-radius: 18px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--skin-white);
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.product-gallery__zoom {
	position: absolute; left: 24px; bottom: 24px;
	width: 52px; height: 52px;
	border-radius: 1000px;
	border: 1px solid var(--skin-teal);
	background: rgba(255,255,255,0.2);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: var(--skin-teal);
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: zoom-in;
	box-shadow: inset 0 -2px 15px rgba(0,0,0,0.2), inset 0 2px 15px rgba(255,255,255,0.4);
	transition: background 0.2s;
}
.product-gallery__zoom:hover { background: rgba(255,255,255,0.4); }
.product-gallery__nav { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 8px; }
.product-gallery__nav-arrow {
	width: 52px; height: 52px;
	border-radius: 1000px;
	border: 1px solid var(--skin-teal);
	background: rgba(255,255,255,0.2);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: var(--skin-teal);
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: inset 0 -2px 15px rgba(0,0,0,0.2), inset 0 2px 15px rgba(255,255,255,0.4);
	transition: background 0.2s;
}
.product-gallery__nav-arrow:hover { background: rgba(255,255,255,0.4); }

/* Info panel */
.product-info { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; flex: 1; min-width: 0; }

.product-info__tagline p { margin: 0; color: var(--skin-dark); }

.product-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.product-icon-badge { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 120px; margin-bottom: 16px; }
.product-icon-badge__circle {
	width: 72px; height: 72px; overflow: hidden;
	border-radius: 1000px;
	border: 1px solid var(--skin-teal);
	background: rgba(255,255,255,0.2);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: inset 0 -2px 15px rgba(0,0,0,0.2), inset 0 2px 15px rgba(255,255,255,0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Some icon assets already bake their own circular background into the
   raster — .product-icon-badge__circle--flat drops the glass-circle frame
   so it isn't drawn twice (per-badge toggle: "Icon already has its own
   circular background" in ACF). */
.product-icon-badge__circle--flat { border: none; background: none; box-shadow: none; }
.product-icon-badge__circle--flat img { width: 72px; height: 72px; }
.product-icon-badge__circle img { max-height: 72px; }
.product-icon-badge span { text-align: center; color: var(--skin-dark); font-size: 11px; line-height: 1}

.product-colours { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.product-colours__row { display: flex; gap: 8px; }
.colour-swatch { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 90px; background: none; border: none; padding: 0; cursor: pointer; }
.colour-swatch__img { width: 90px; height: 90px; border-radius: 18px; border: 1px solid var(--skin-teal-20); overflow: hidden; transition: border-color 0.2s; }
.colour-swatch__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.colour-swatch.is-active .colour-swatch__img { border: 2px solid var(--skin-teal); }
.colour-swatch span { font-family: var(--font-body); font-weight: 300; font-size: 16px; line-height: 26px; letter-spacing: 0.32px; color: var(--skin-dark-60); text-align: center; width: 100%; }
.colour-swatch.is-active span { font-weight: 500; }

/* Description / Specification accordion — same glass/teal-border language as .office-tab */
.product-tabs { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.product-tab {
	border: 1px solid var(--skin-teal);
	background: rgba(255,255,255,0.2);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 32px;
	box-shadow: inset 0 2px 15px rgba(255,255,255,0.4), inset 0 -2px 15px rgba(0,0,0,0.2);
	overflow: hidden;
}
.product-tab__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: none;
	border: none;
	cursor: pointer;
	padding: 18px 24px;
	color: var(--skin-teal);
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.product-tab__icon { font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 20px; }
.product-tab__panel { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; padding: 0 24px; }
.product-tab.is-open .product-tab__panel { max-height: 400px; overflow-y: auto; padding-bottom: 20px; }
.product-tab__list { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.product-tab__list li { display: flex; gap: 8px; align-items: flex-start; color: var(--skin-dark); font-size: 16px; line-height: 26px; letter-spacing: 0.32px; }
.product-tab__bullet { width: 12px; height: 5px; border-radius: 4px; flex-shrink: 0; margin-top: 10px; background: var(--skin-gradient); }
.product-tab__placeholder { font-style: italic; color: #8a8482; padding-bottom: 4px; }

.product-actions { display: flex; gap: 12px; }

/* Product Sheet Gallery — full-size images (not cropped thumbnails), each
   opening the lightbox below on click. */
.product-sheet-gallery { padding-bottom: 100px; }
.product-sheet-gallery__heading { margin-bottom: 32px; }
.product-sheet-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-sheet-gallery__item {
	display: block; width: 100%; padding: 0; margin: 0;
	border: 1px solid var(--skin-teal-20);
	background: var(--skin-white);
	border-radius: 18px;
	overflow: hidden;
	cursor: zoom-in;
	transition: border-color 0.2s;
}
.product-sheet-gallery__item:hover { border-color: var(--skin-teal); }
.product-sheet-gallery__item img { width: 100%; height: auto; display: block; }

/* Lightbox overlay — dependency-free (see assets/js/product-details.js) */
.marcoeco-lightbox {
	position: fixed; inset: 0; z-index: 1000;
	display: none; align-items: center; justify-content: center;
	background: rgba(10, 10, 10, 0.92);
}
.marcoeco-lightbox.is-open { display: flex; }
body.marcoeco-lightbox-open { overflow: hidden; }
.marcoeco-lightbox__stage { max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.marcoeco-lightbox__img { max-width: 90vw; max-height: 90vh; width: auto; height: auto; display: block; border-radius: 8px; }
.marcoeco-lightbox__close,
.marcoeco-lightbox__nav {
	position: absolute;
	border-radius: 1000px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid var(--skin-teal);
	color: var(--skin-teal);
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background 0.2s;
}
.marcoeco-lightbox__close:hover,
.marcoeco-lightbox__nav:hover { background: rgba(255, 255, 255, 0.3); }
.marcoeco-lightbox__close { top: 24px; right: 24px; width: 48px; height: 48px; font-size: 20px; }
.marcoeco-lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 20px; }
.marcoeco-lightbox__nav--prev { left: 24px; }
.marcoeco-lightbox__nav--next { right: 24px; }

/* ───── Responsive — same 4-tier system as responsive.css: 1199.98 / 991.98 / 767.98 / 575.98 ───── */
@media (max-width: 1199.98px) {
	.product-panel__row { gap: 40px; }
	.product-gallery__main { width: 100%; height: auto; aspect-ratio: 1 / 1; }
	.product-gallery__thumb { width: 80px; height: 80px; }
}

@media (max-width: 991.98px) {
	.product-panel { padding-top: 24px; padding-bottom: 70px; }
	.product-panel__row { flex-direction: column; }
	.product-gallery { width: 100%; flex-direction: column; }
	.product-gallery__main { order: 1; width: 100%; aspect-ratio: 1 / 1; }
	.product-gallery__thumbs { order: 2; flex-direction: row; overflow-x: auto; gap: 12px; padding-bottom: 4px; }
	.product-gallery__thumb { flex-shrink: 0; }
	.product-info { width: 100%; }
	.product-sheet-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
	.breadcrumb { margin-bottom: 24px; }
	.product-icons { flex-wrap: wrap; gap: 24px 8px; }
	.product-icon-badge { width: calc(50% - 4px); }
	.product-colours__row { flex-wrap: wrap; }
	.product-actions { flex-direction: column; width: 100%; }
	.product-actions .skin-btn { justify-content: center; }
	.product-gallery__thumb { width: 70px; height: 70px; }
	.product-sheet-gallery { padding-bottom: 70px; }
	.marcoeco-lightbox__close { top: 16px; right: 16px; width: 40px; height: 40px; font-size: 17px; }
	.marcoeco-lightbox__nav { width: 42px; height: 42px; font-size: 17px; }
	.marcoeco-lightbox__nav--prev { left: 12px; }
	.marcoeco-lightbox__nav--next { right: 12px; }
}

@media (max-width: 575.98px) {
	.product-icon-badge { width: 100%; }
	.product-sheet-gallery__grid { grid-template-columns: 1fr; }
}
