/*
 * ZakuPlaner storefront: product archives and product detail.
 * Presentation only; selectors are intentionally scoped to WooCommerce views.
 */

:root {
	--zkp-store-ink: #172033;
	--zkp-store-muted: #687386;
	--zkp-store-border: #dde3ec;
	--zkp-store-soft: #f6f8fb;
	--zkp-store-accent: #e72f6d;
	--zkp-store-violet: #4b36db;
	--zkp-store-success: #217a4b;
}

body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag,
body.single-product {
	color: var(--zkp-store-ink);
}

/* Archive heading and controls */
body.post-type-archive-product .wd-builder-off-content,
body.tax-product_cat .wd-builder-off-content,
body.tax-product_tag .wd-builder-off-content {
	background: #fff;
}

body.post-type-archive-product .wd-shop-tools,
body.tax-product_cat .wd-shop-tools,
body.tax-product_tag .wd-shop-tools {
	min-height: 52px;
	margin-bottom: 20px;
	padding: 9px 12px;
	border: 1px solid var(--zkp-store-border);
	border-radius: 10px;
	background: #fff;
}

body.post-type-archive-product .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_tag .woocommerce-result-count {
	color: var(--zkp-store-muted);
	font-size: 14px;
}

body.post-type-archive-product .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select,
body.tax-product_tag .woocommerce-ordering select {
	min-height: 42px;
	border: 1px solid var(--zkp-store-border);
	border-radius: 8px;
	background-color: #fff;
}

/* Attribute filters */
body.post-type-archive-product .widget-area .widget,
body.tax-product_cat .widget-area .widget,
body.tax-product_tag .widget-area .widget,
body.post-type-archive-product .wd-sidebar .widget,
body.tax-product_cat .wd-sidebar .widget,
body.tax-product_tag .wd-sidebar .widget {
	margin-bottom: 0;
	padding: 18px 0;
	border-bottom: 1px solid var(--zkp-store-border);
}

body.post-type-archive-product .widget-area .widget-title,
body.tax-product_cat .widget-area .widget-title,
body.tax-product_tag .widget-area .widget-title,
body.post-type-archive-product .wd-sidebar .widget-title,
body.tax-product_cat .wd-sidebar .widget-title,
body.tax-product_tag .wd-sidebar .widget-title {
	margin-bottom: 12px;
	color: var(--zkp-store-ink);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
}

body.post-type-archive-product .widget_layered_nav ul li a,
body.tax-product_cat .widget_layered_nav ul li a,
body.tax-product_tag .widget_layered_nav ul li a {
	min-height: 34px;
	color: #465166;
	font-size: 14px;
}

/* Product cards */
body.post-type-archive-product .product-grid-item,
body.tax-product_cat .product-grid-item,
body.tax-product_tag .product-grid-item,
body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product {
	height: 100%;
	border: 1px solid var(--zkp-store-border);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.post-type-archive-product .product-grid-item:hover,
body.tax-product_cat .product-grid-item:hover,
body.tax-product_tag .product-grid-item:hover,
body.post-type-archive-product ul.products li.product:hover,
body.tax-product_cat ul.products li.product:hover,
body.tax-product_tag ul.products li.product:hover {
	border-color: #cfd6e2;
	box-shadow: 0 10px 28px rgba(23, 32, 51, .09);
	transform: translateY(-2px);
}

body.post-type-archive-product .product-grid-item .product-element-top,
body.tax-product_cat .product-grid-item .product-element-top,
body.tax-product_tag .product-grid-item .product-element-top {
	margin-bottom: 0;
	background: #fff;
}

body.post-type-archive-product .product-grid-item .product-element-top img,
body.tax-product_cat .product-grid-item .product-element-top img,
body.tax-product_tag .product-grid-item .product-element-top img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 12px;
}

body.post-type-archive-product .product-grid-item .product-information,
body.tax-product_cat .product-grid-item .product-information,
body.tax-product_tag .product-grid-item .product-information,
body.post-type-archive-product .product-grid-item .wd-product-info,
body.tax-product_cat .product-grid-item .wd-product-info,
body.tax-product_tag .product-grid-item .wd-product-info {
	display: flex;
	flex-direction: column;
	min-height: 170px;
	padding: 14px 15px 16px;
	border-top: 1px solid #eef1f5;
}

body.post-type-archive-product .product-grid-item .wd-entities-title,
body.tax-product_cat .product-grid-item .wd-entities-title,
body.tax-product_tag .product-grid-item .wd-entities-title {
	margin-bottom: 8px;
	color: var(--zkp-store-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.38;
}

body.post-type-archive-product .product-grid-item .price,
body.tax-product_cat .product-grid-item .price,
body.tax-product_tag .product-grid-item .price {
	margin-top: auto;
	color: var(--zkp-store-violet);
	font-size: 17px;
	font-weight: 800;
}

body.post-type-archive-product .product-grid-item .wd-add-btn a,
body.tax-product_cat .product-grid-item .wd-add-btn a,
body.tax-product_tag .product-grid-item .wd-add-btn a {
	min-height: 42px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 800;
	text-transform: none;
}

/* Product detail */
body.single-product .wd-content-layout > .elementor {
	--zkp-pdp-gap: 28px;
}

body.single-product .wd-single-breadcrumbs {
	margin-bottom: 18px;
	color: var(--zkp-store-muted);
	font-size: 13px;
}

body.single-product .product_title,
body.single-product .wd-entities-title {
	color: var(--zkp-store-ink);
	letter-spacing: -.02em;
}

body.single-product .product_title {
	font-size: clamp(26px, 3vw, 38px) !important;
	line-height: 1.16 !important;
}

body.single-product .woocommerce-product-gallery,
body.single-product .wd-single-gallery {
	overflow: visible;
}

body.single-product .wd-single-gallery .wd-gallery-images {
	border: 1px solid var(--zkp-store-border);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

/* Keep unusually tall supplier photos from stretching the whole product page. */
body.single-product .wd-single-gallery .woocommerce-product-gallery__wrapper {
	height: 560px;
}

body.single-product .wd-single-gallery .woocommerce-product-gallery__wrapper > .wd-carousel-item,
body.single-product .wd-single-gallery .woocommerce-product-gallery__wrapper > .wd-carousel-item > .woocommerce-product-gallery__image,
body.single-product .wd-single-gallery .woocommerce-product-gallery__wrapper > .wd-carousel-item > .woocommerce-product-gallery__image > a {
	height: 100%;
}

body.single-product .wd-single-gallery .woocommerce-product-gallery__wrapper > .wd-carousel-item > .woocommerce-product-gallery__image > a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

body.single-product .wd-single-gallery .woocommerce-product-gallery__wrapper > .wd-carousel-item > .woocommerce-product-gallery__image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

body.single-product .summary-inner,
body.single-product .product-summary-shadow .summary-inner {
	padding: 4px 0;
}

body.single-product .summary-inner .price,
body.single-product .wd-single-price .price {
	color: var(--zkp-store-violet);
	font-size: clamp(25px, 3vw, 34px) !important;
	font-weight: 800;
}

body.single-product .stock.in-stock {
	color: var(--zkp-store-success);
	font-weight: 700;
}

body.single-product form.cart {
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin: 18px 0;
	padding: 16px;
	border: 1px solid var(--zkp-store-border);
	border-radius: 10px;
	background: var(--zkp-store-soft);
}

body.single-product form.cart .quantity input.qty {
	min-height: 48px;
	border-color: #cfd6e2;
	border-radius: 8px;
}

body.single-product form.cart .single_add_to_cart_button {
	min-height: 48px;
	border-radius: 8px;
	background: var(--zkp-store-accent);
	font-size: 15px;
	font-weight: 800;
	text-transform: none;
}

body.single-product form.cart .single_add_to_cart_button:hover {
	background: #cf245e;
}

body.single-product .product_meta {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--zkp-store-border);
	color: var(--zkp-store-muted);
	font-size: 13px;
}

body.single-product .zkp-delivery-pdp {
	border-radius: 10px;
	box-shadow: none;
}

body.single-product .woocommerce-tabs.wc-tabs-wrapper {
	margin-top: 28px;
}

/* Product navigation: keep it below the sticky site header. */
body.single-product .elementor-element-e4246f9 {
	border: 1px solid var(--zkp-store-border);
	border-radius: 10px !important;
	background: rgba(255, 255, 255, .98) !important;
	box-shadow: 0 6px 20px rgba(23, 32, 51, .08);
	backdrop-filter: blur(10px);
}

body.single-product .elementor-element-e4246f9.elementor-sticky--active {
	top: 80px !important;
}

body.admin-bar.single-product .elementor-element-e4246f9.elementor-sticky--active {
	top: 112px !important;
}

body.single-product .elementor-element-e4246f9 .wd-nav > li > a {
	min-height: 40px;
	padding: 8px 16px !important;
	border-radius: 7px !important;
	color: #3f4859 !important;
	font-size: 14px;
	font-weight: 750;
	text-transform: none;
}

body.single-product .elementor-element-e4246f9 .wd-nav > li > a:hover,
body.single-product .elementor-element-e4246f9 .wd-nav > li.wd-active > a,
body.single-product .elementor-element-e4246f9 .wd-nav > li.current-menu-item > a {
	background: #fff0f5 !important;
	color: var(--zkp-store-accent) !important;
}

/* ZakuPlaner procurement assurance block replacing the Woodmart demo delivery box. */
.zkp-pdp-assurance {
	margin: 18px 0 4px;
	padding: 18px;
	border: 1px solid var(--zkp-store-border);
	border-radius: 10px;
	background: #fff;
}

.zkp-pdp-assurance__eyebrow {
	margin: 0 0 5px;
	color: var(--zkp-store-accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.zkp-pdp-assurance h3 {
	margin: 0 0 14px;
	color: var(--zkp-store-ink);
	font-size: 18px;
	line-height: 1.3;
}

.zkp-pdp-assurance__items {
	display: grid;
	gap: 0;
}

.zkp-pdp-assurance__item {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 11px;
	padding: 12px 0;
	border-top: 1px solid #edf0f4;
}

.zkp-pdp-assurance__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: #f0edff;
	color: var(--zkp-store-violet);
	font-size: 16px;
	font-weight: 800;
}

.zkp-pdp-assurance__item strong {
	display: block;
	margin-bottom: 2px;
	color: var(--zkp-store-ink);
	font-size: 14px;
	line-height: 1.35;
}

.zkp-pdp-assurance__item p {
	margin: 0;
	color: var(--zkp-store-muted);
	font-size: 13px;
	line-height: 1.45;
}

/* PDP action buttons */
body.single-product .summary-inner .button,
body.single-product .wd-single-action-btn > a,
body.single-product .wd-compare-btn > a,
body.single-product .wd-wishlist-btn > a {
	min-height: 42px;
	border-radius: 8px !important;
	font-weight: 800;
	text-transform: none !important;
}

body.single-product .wd-single-action-btn > a,
body.single-product .wd-compare-btn > a,
body.single-product .wd-wishlist-btn > a {
	padding: 9px 13px;
	border: 1px solid var(--zkp-store-border);
	background: #fff;
	color: #3f4859;
}

body.single-product .wd-single-action-btn > a:hover,
body.single-product .wd-compare-btn > a:hover,
body.single-product .wd-wishlist-btn > a:hover {
	border-color: #cbd2de;
	background: var(--zkp-store-soft);
	color: var(--zkp-store-accent);
}

@media (max-width: 1024px) {
	body.single-product .wd-single-gallery .woocommerce-product-gallery__wrapper {
		height: 480px;
	}

	body.post-type-archive-product .wd-shop-tools,
	body.tax-product_cat .wd-shop-tools,
	body.tax-product_tag .wd-shop-tools {
		position: sticky;
		top: 8px;
		z-index: 30;
		box-shadow: 0 6px 20px rgba(23, 32, 51, .08);
	}

	body.single-product form.cart {
		flex-wrap: wrap;
	}
}

@media (max-width: 767px) {
	body.single-product .wd-single-gallery .woocommerce-product-gallery__wrapper {
		height: 380px;
	}

	body.single-product .wd-single-gallery .woocommerce-product-gallery__wrapper > .wd-carousel-item > .woocommerce-product-gallery__image > a {
		padding: 16px;
	}

	body.single-product .elementor-element-e4246f9 {
		display: none !important;
	}

	body.post-type-archive-product .product-grid-item .product-information,
	body.tax-product_cat .product-grid-item .product-information,
	body.tax-product_tag .product-grid-item .product-information,
	body.post-type-archive-product .product-grid-item .wd-product-info,
	body.tax-product_cat .product-grid-item .wd-product-info,
	body.tax-product_tag .product-grid-item .wd-product-info {
		min-height: 150px;
		padding: 12px;
	}

	body.post-type-archive-product .product-grid-item .wd-entities-title,
	body.tax-product_cat .product-grid-item .wd-entities-title,
	body.tax-product_tag .product-grid-item .wd-entities-title {
		font-size: 14px;
	}

	body.single-product .product_title {
		font-size: 25px !important;
	}

	body.single-product form.cart {
		padding: 12px;
	}

	body.single-product form.cart .single_add_to_cart_button {
		flex: 1 1 190px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.post-type-archive-product .product-grid-item,
	body.tax-product_cat .product-grid-item,
	body.tax-product_tag .product-grid-item {
		transition: none;
	}
}
