/* Zoneway product list + detail */

.zw-products-archive,
.zw-product-detail {
	width: 100%;
	max-width: none;
	margin: 0;
	background: #fff;
	color: var(--wp--preset--color--ink, #212529);
}

.zw-products-hero {
	position: relative;
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #024965;
	background-image:
		linear-gradient(90deg, rgba(2, 73, 101, 0.72), rgba(2, 119, 136, 0.55)),
		var(--zw-products-hero-image, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #fff;
}

.zw-products-hero__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display, Poppins, sans-serif);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-align: center;
}

.zw-products-archive__layout,
.zw-product-detail__wrap {
	width: min(var(--zw-wide, 1600px), calc(100% - 48px));
	margin: 0 auto;
	padding: 32px 0 64px;
}

.zw-products-archive__layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.zw-products-sidebar {
	border: 1px solid #e6e6e6;
	background: #fff;
	overflow: hidden;
}

.zw-products-sidebar__head,
.zw-products-main__cat {
	background: var(--wp--preset--color--brand, #027788);
	color: #fff;
	padding: 12px 16px;
	font-weight: 600;
	font-size: 1rem;
}

.zw-products-sidebar__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.zw-products-sidebar__list a {
	display: block;
	padding: 11px 16px;
	border-bottom: 1px solid #f0f0f0;
	color: #333;
	text-decoration: none;
	font-size: 0.92rem;
	transition: background 0.2s ease, color 0.2s ease;
}

.zw-products-sidebar__list a:hover,
.zw-products-sidebar__list .is-active a {
	background: #e8f6f8;
	color: var(--wp--preset--color--brand, #027788);
}

.zw-products-main__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.zw-products-breadcrumb {
	font-size: 0.875rem;
	color: #666;
}

.zw-products-breadcrumb a {
	color: #666;
	text-decoration: none;
}

.zw-products-breadcrumb a:hover {
	color: var(--wp--preset--color--brand, #027788);
}

.zw-products-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.zw-product-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #ececec;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	overflow: hidden;
}

.zw-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(2, 119, 136, 0.14);
}

.zw-product-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: #f3f6f9;
	overflow: hidden;
}

.zw-product-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.zw-product-card:hover .zw-product-card__image {
	transform: scale(1.05);
}

.zw-product-card__placeholder,
.zw-related-products__ph {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 120px;
	background:
		linear-gradient(135deg, #dbe7ec, #f3f6f9 55%, #cfe0e6);
}

.zw-product-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 16px 18px;
	flex: 1;
}

.zw-product-card__title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.25;
}

.zw-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.zw-product-card__specs {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.86rem;
	color: #555;
	line-height: 1.55;
	flex: 1;
}

.zw-product-card__spec-label {
	color: #333;
	font-weight: 500;
}

.zw-product-card__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: auto;
}

.zw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid transparent;
	border-radius: 2px;
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.zw-btn--ghost {
	background: #f2f2f2;
	color: #333;
	border-color: #e6e6e6;
}

.zw-btn--ghost:hover {
	background: #e8e8e8;
	color: #111;
}

.zw-btn--primary {
	background: var(--wp--preset--color--brand, #027788);
	color: #fff;
}

.zw-btn--primary:hover {
	background: var(--wp--preset--color--brand-dark, #024965);
	color: #fff;
}

.zw-btn--accent {
	background: #f2c400;
	color: #1a1a1a;
}

.zw-btn--accent:hover {
	background: #e0b400;
	color: #111;
}

.zw-btn--lg {
	min-height: 48px;
	padding: 0 22px;
	font-size: 1rem;
}

.zw-products-pagination {
	margin-top: 28px;
}

.zw-products-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.zw-products-pagination a,
.zw-products-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #ddd;
	color: #333;
	text-decoration: none;
	background: #fff;
}

.zw-products-pagination .current {
	background: var(--wp--preset--color--brand, #027788);
	border-color: var(--wp--preset--color--brand, #027788);
	color: #fff;
}

.zw-products-empty {
	padding: 40px 16px;
	text-align: center;
	color: #666;
}

/* Detail */
.zw-product-detail__wrap {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.zw-product-detail__top {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.9fr);
	gap: 28px;
	align-items: start;
}

.zw-product-gallery {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 12px;
}

.zw-product-gallery__thumbs {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.zw-product-gallery__thumb {
	padding: 0;
	border: 2px solid transparent;
	background: #f3f6f9;
	cursor: pointer;
	overflow: hidden;
}

.zw-product-gallery__thumb.is-active,
.zw-product-gallery__thumb:hover {
	border-color: var(--wp--preset--color--brand, #027788);
}

.zw-product-gallery__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.zw-product-gallery__stage {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	background: #f7fafb;
	border: 1px solid #ececec;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	cursor: zoom-in;
}

.zw-product-gallery__main {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.35s ease;
	pointer-events: none;
}

.zw-product-gallery__stage:hover .zw-product-gallery__main {
	transform: scale(1.04);
}

html.zw-gallery-lightbox-open {
	overflow: hidden;
}

.zw-product-gallery__lightbox[hidden] {
	display: none !important;
}

.zw-product-gallery__lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.zw-product-gallery__lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgb(8 18 28 / 78%);
	backdrop-filter: blur(2px);
}

.zw-product-gallery__lightbox-dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 56rem);
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-rows: auto auto;
	align-items: center;
	gap: 0.75rem 0.5rem;
}

.zw-product-gallery__lightbox-figure {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	text-align: center;
}

.zw-product-gallery__lightbox-image {
	display: block;
	max-width: 100%;
	max-height: min(78vh, 44rem);
	margin-inline: auto;
	border-radius: 4px;
	box-shadow: 0 24px 64px rgb(0 0 0 / 35%);
	background: #111;
}

.zw-product-gallery__lightbox-counter {
	grid-column: 1 / -1;
	grid-row: 2;
	margin: 0;
	text-align: center;
	color: rgb(255 255 255 / 72%);
	font-size: 0.8125rem;
}

.zw-product-gallery__lightbox-nav,
.zw-product-gallery__lightbox-close {
	border: 0;
	background: rgb(255 255 255 / 12%);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}

.zw-product-gallery__lightbox-nav {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	font-size: 1.75rem;
	line-height: 1;
}

.zw-product-gallery__lightbox-nav:hover,
.zw-product-gallery__lightbox-close:hover {
	background: rgb(255 255 255 / 22%);
}

.zw-product-gallery__lightbox-prev {
	grid-column: 1;
	grid-row: 1;
}

.zw-product-gallery__lightbox-next {
	grid-column: 3;
	grid-row: 1;
}

.zw-product-gallery__lightbox-close {
	position: absolute;
	top: -0.25rem;
	right: 0;
	z-index: 2;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	font-size: 1.5rem;
	line-height: 1;
}

@media (max-width: 720px) {
	.zw-product-gallery__lightbox-dialog {
		grid-template-columns: 1fr;
	}

	.zw-product-gallery__lightbox-figure {
		grid-column: 1;
	}

	.zw-product-gallery__lightbox-prev,
	.zw-product-gallery__lightbox-next {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		grid-column: auto;
		grid-row: auto;
	}

	.zw-product-gallery__lightbox-prev {
		left: 0.25rem;
	}

	.zw-product-gallery__lightbox-next {
		right: 0.25rem;
	}
}

.zw-product-summary {
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	background: #fff;
	padding: 22px 22px 20px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.zw-product-summary__title {
	margin: 0;
	padding-bottom: 14px;
	border-bottom: 1px solid #ececec;
	font-size: clamp(1.35rem, 2vw, 1.75rem);
	font-weight: 600;
	color: #333;
}

.zw-product-summary__contact {
	list-style: none;
	margin: 16px 0 18px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 0.95rem;
	color: #444;
}

.zw-product-summary__contact li {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.zw-product-summary__icon {
	display: inline-flex;
	color: #666;
	margin-right: 2px;
}

.zw-product-summary__contact-label {
	font-weight: 500;
	color: #333;
}

.zw-product-summary__contact a {
	color: #555;
	text-decoration: none;
}

.zw-product-summary__contact a:hover {
	color: var(--wp--preset--color--brand, #027788);
}

.zw-product-summary__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 16px;
}

.zw-btn--advisory {
	background: var(--wp--preset--color--brand, #027788);
	color: #fff;
	border-radius: 8px;
	min-height: 44px;
	gap: 8px;
}

.zw-btn--advisory:hover {
	background: var(--wp--preset--color--brand-dark, #024965);
	color: #fff;
}

.zw-btn--related {
	background: #fff;
	color: #e67e22;
	border: 1px solid #f0c040;
	border-radius: 8px;
	min-height: 44px;
	gap: 8px;
}

.zw-btn--related:hover {
	background: #fff8e8;
	color: #d35400;
}

.zw-btn__icon {
	display: inline-flex;
}

.zw-product-summary__cta {
	margin: 0 0 16px;
	font-size: 0.92rem;
	color: #666;
	line-height: 1.55;
}

.zw-product-summary__cta strong {
	color: #333;
}

.zw-product-summary__meta {
	padding-top: 14px;
	border-top: 1px solid #ececec;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.zw-product-summary__meta-row {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.zw-product-summary__meta-label {
	font-size: 0.95rem;
	font-weight: 500;
	color: #333;
}

.zw-product-summary__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.zw-tag {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 999px;
	background: #f2f2f2;
	color: #333;
	font-size: 0.88rem;
	text-decoration: none;
}

a.zw-tag:hover {
	background: #e8f6f8;
	color: var(--wp--preset--color--brand, #027788);
}

.zw-product-detail__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 390px;
	gap: 24px;
	align-items: start;
	margin-top: 28px;
}

.zw-product-tabs__nav {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0;
	border-bottom: 2px solid var(--wp--preset--color--brand, #027788);
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.zw-product-tabs__nav::-webkit-scrollbar {
	display: none;
}

.zw-product-tabs__btn {
	appearance: none;
	flex: 0 0 auto;
	border: 1px solid var(--wp--preset--color--brand, #027788);
	border-bottom: none;
	background: #fff;
	color: var(--wp--preset--color--brand, #027788);
	padding: 12px 22px;
	margin-right: 6px;
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
}

.zw-product-tabs__btn.is-active {
	background: var(--wp--preset--color--brand, #027788);
	color: #fff;
}

.zw-product-tabs__panel {
	padding: 22px 4px 8px;
}

.zw-product-tabs__panel[hidden] {
	display: none;
}

.zw-product-tabs__empty {
	margin: 8px 0 0;
	color: #8a94a6;
	font-size: 0.95rem;
}

.zw-product-details-list {
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: 1.8;
	font-size: 0.98rem;
}

.zw-product-details-list strong {
	margin-right: 6px;
}

.zw-product-params table,
.zw-product-params__table {
	width: 100%;
	border-collapse: collapse;
}

.zw-product-params th,
.zw-product-params td,
.zw-product-params__table th,
.zw-product-params__table td {
	border: 1px solid #e6e6e6;
	padding: 10px 12px;
	text-align: left;
}

.zw-product-params__table th {
	width: 36%;
	background: #f7fafb;
	font-weight: 600;
}

.zw-product-pdfs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.zw-product-pdfs li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	border: 1px solid #e6e6e6;
	background: #fafbfc;
}

.zw-shared-section {
	margin-top: 36px;
}

.zw-shared-section__title {
	margin: 0 0 16px;
	padding: 12px 16px;
	background: var(--wp--preset--color--brand, #027788);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 600;
}

.zw-shared-grid {
	display: grid;
	gap: 16px;
}

.zw-shared-grid--equip {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.zw-shared-grid--honor {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.zw-shared-card {
	margin: 0;
	background: #fff;
}

.zw-shared-card__media {
	display: block;
	overflow: hidden;
	line-height: 0;
}

.zw-shared-card__img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.35s ease;
}

.zw-shared-grid--equip .zw-shared-card:hover .zw-shared-card__img {
	transform: scale(1.08);
}

.zw-shared-card__ph {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, #dbe7ec, #f3f6f9);
}

.zw-shared-grid--honor .zw-shared-card__img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: #f3f6f9;
}

.zw-shared-card figcaption {
	padding: 10px 12px;
	font-size: 0.88rem;
	text-align: center;
	color: #333;
	line-height: 1.4;
}

.zw-shared-faq__item {
	border: 1px solid #e6e6e6;
	border-bottom: none;
	background: #fff;
}

.zw-shared-faq__item:last-child {
	border-bottom: 1px solid #e6e6e6;
}

.zw-shared-faq__item summary {
	cursor: pointer;
	padding: 14px 16px;
	font-weight: 600;
	list-style: none;
}

.zw-shared-faq__item summary::-webkit-details-marker {
	display: none;
}

.zw-shared-faq__answer {
	padding: 0 16px 16px;
	color: #555;
	line-height: 1.7;
}

@media (max-width: 1100px) {
	.zw-shared-grid--equip,
	.zw-shared-grid--honor {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.zw-shared-grid--equip,
	.zw-shared-grid--honor {
		grid-template-columns: 1fr;
	}
}

.zw-product-cat-picker {
	margin-bottom: 28px;
}

.zw-product-cat-picker__select {
	width: 100%;
	appearance: none;
	border: 0;
	border-radius: 2px;
	background-color: var(--wp--preset--color--brand, #027788);
	/* Chevron drawn inline so the control needs no extra asset. */
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M8 11 3 6h10z'/%3E%3C/svg%3E" );
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 14px;
	color: #fff;
	font: inherit;
	font-weight: 600;
	padding: 12px 40px 12px 16px;
	cursor: pointer;
}

.zw-product-cat-picker__select:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.zw-product-cat-picker__select option {
	background: #fff;
	color: #333;
	font-weight: 400;
}

.zw-related-block {
	margin-top: 8px;
}

.zw-related-block__heading {
	margin: 0 0 16px;
	font-size: 1.15rem;
	font-weight: 600;
	color: #333;
}

.zw-related-products {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.zw-related-products__item {
	margin: 0;
}

.zw-related-products__card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.zw-related-products__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.zw-related-products__media {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #eef3f6;
	overflow: hidden;
	border-radius: 8px 8px 0 0;
}

.zw-related-products__img,
.zw-related-products__ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zw-related-products__ph {
	background: linear-gradient(135deg, #dbe7ec, #f3f6f9);
}

.zw-related-products__title {
	display: block;
	margin: 0;
	padding: 14px 12px;
	background: #f7f7f7;
	text-align: center;
	font-size: 0.95rem;
	font-weight: 500;
	color: #333;
	border-radius: 0 0 8px 8px;
}

/* Quote modal */
.zw-quote-modal[hidden] {
	display: none !important;
}

.zw-quote-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 24px;
}

.zw-quote-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 20, 30, 0.55);
}

.zw-quote-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(560px, 100%);
	max-height: min(90vh, 800px);
	overflow: auto;
	background: #fff;
	padding: 28px 24px 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.zw-quote-modal__close {
	position: absolute;
	top: 8px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.zw-quote-modal__title {
	margin: 0 0 8px;
	font-size: 1.35rem;
}

.zw-quote-modal__subtitle {
	margin: 0 0 16px;
	color: #666;
	font-size: 0.92rem;
}

html.zw-quote-modal-open {
	overflow: hidden;
}

@media (max-width: 1100px) {
	.zw-products-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.zw-product-detail__body {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 860px) {
	.zw-products-archive__layout,
	.zw-product-detail__top {
		grid-template-columns: 1fr;
	}

	.zw-product-gallery {
		grid-template-columns: 1fr;
	}

	.zw-product-gallery__thumbs {
		flex-direction: row;
		overflow-x: auto;
	}

	.zw-product-gallery__thumb {
		flex: 0 0 64px;
	}
}

@media (max-width: 640px) {
	.zw-products-archive__layout,
	.zw-product-detail__wrap {
		width: calc(100% - 28px);
		padding-top: 20px;
	}

	.zw-products-grid {
		grid-template-columns: 1fr;
	}

	.zw-product-card__actions,
	.zw-product-summary__actions {
		grid-template-columns: 1fr;
	}

	.zw-product-tabs__btn {
		padding: 10px 14px;
		margin-right: 4px;
		font-size: 0.8125rem;
	}
}
