/**
 * Vision Printed Boxes — WooCommerce / catalog styles
 * @package Creative_Custom_Boxes
 */

/* -------------------------------------------------------------------------
 * Header: logo left-aligned (Woodmart)
 * ------------------------------------------------------------------------- */

.whb-main-header .whb-row.whb-col-1 .whb-flex-row,
.whb-main-header .whb-row.whb-col-1 .whb-column {
	justify-content: flex-start;
}

.whb-main-header .whb-col-center .site-logo {
	margin-left: 0;
	margin-right: auto;
}

.rtl .whb-main-header .whb-col-center .site-logo {
	margin-left: auto;
	margin-right: 0;
}

/* -------------------------------------------------------------------------
 * Product category hero
 * ------------------------------------------------------------------------- */

.ccb-product-cat-hero {
	position: relative;
	margin-bottom: var(--ccb-space-lg);
	background-color: transparent;
}

.ccb-product-cat-hero::before {
	content: '';
	position: absolute;
	z-index: 0;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	background:
		radial-gradient(ellipse 75% 70% at 88% 18%, rgba(245, 154, 87, 0.09) 0%, transparent 55%),
		radial-gradient(ellipse 55% 50% at 8% 92%, rgba(255, 255, 255, 0.85) 0%, transparent 50%),
		linear-gradient(125deg, #f6f4f2 0%, #eef1f4 38%, #e6eaef 68%, #dfe5eb 100%);
}

.ccb-product-cat-hero__container {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

.ccb-product-cat-hero__inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: var(--ccb-space-xl);
	padding-top: 36px;
	padding-bottom: 36px;
}

.ccb-product-cat-hero__content {
	flex: 1 1 auto;
	min-width: 0;
	text-align: start;
}

.ccb-product-cat-hero__title {
	margin: 0 0 0.45em;
	font-family: var(--ccb-font-heading);
	font-size: var(--ccb-text-h1);
	font-weight: 700;
	line-height: 1.1;
	color: var(--ccb-charcoal);
}

.ccb-product-cat-hero__content .term-description {
	margin: 0;
	color: var(--ccb-mid-gray);
}

.ccb-product-cat-hero__content .term-description > :last-child {
	margin-bottom: 0;
}

.ccb-product-cat-hero__media {
	flex: 0 0 auto;
	margin-inline-start: auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	max-width: 45%;
}

.ccb-product-cat-hero__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 500px;
	object-fit: contain;
}

.ccb-product-cat-hero--no-image .ccb-product-cat-hero__inner {
	justify-content: center;
}

.ccb-product-cat-hero--no-image .ccb-product-cat-hero__content {
	margin-inline: auto;
	text-align: center;
}

@media (min-width: 768px) {
	.ccb-product-cat-hero:not(.ccb-product-cat-hero--no-image) .ccb-product-cat-hero__inner {
		align-items: stretch;
		padding-block: 0;
		min-height: 280px;
	}

	.ccb-product-cat-hero:not(.ccb-product-cat-hero--no-image) .ccb-product-cat-hero__content {
		align-self: center;
		padding-top: 28px;
		padding-bottom: 28px;
	}

	.ccb-product-cat-hero__media {
		align-self: stretch;
		align-items: stretch;
		overflow: hidden;
		max-width: 42%;
		max-height: 500px;
	}

	.ccb-product-cat-hero__img {
		width: 100%;
		height: 100%;
		max-width: none;
		max-height: 500px;
		object-fit: cover;
		object-position: center;
	}
}

@media (min-width: 1025px) {
	.ccb-product-cat-hero:not(.ccb-product-cat-hero--no-image) .ccb-product-cat-hero__inner {
		min-height: 300px;
	}

	.ccb-product-cat-hero:not(.ccb-product-cat-hero--no-image) .ccb-product-cat-hero__content {
		padding-top: 40px;
		padding-bottom: 40px;
		padding-right: 50px;
	}

	.ccb-product-cat-hero__media {
		max-width: 45%;
	}
}

@media (max-width: 767.98px) {
	.ccb-product-cat-hero__inner {
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		min-height: 500px;
		padding-top: 32px;
		padding-bottom: 24px;
		gap: 20px;
	}

	.ccb-product-cat-hero__title {
		font-size: 36px;
	}

	.ccb-product-cat-hero__content {
		flex: 0 0 auto;
		width: 100%;
		text-align: center;
		order: 1;
	}

	.ccb-product-cat-hero__content .term-description {
		text-align: center;
	}

	.ccb-product-cat-hero__media {
		order: 2;
		margin-top: auto;
		margin-inline-start: 0;
		max-width: 100%;
		width: 100%;
		justify-content: center;
	}

	.ccb-product-cat-hero__img {
		max-height: 500px;
		object-fit: contain;
		margin-inline: auto;
	}
}

/* -------------------------------------------------------------------------
 * Product loop (category archives)
 * ------------------------------------------------------------------------- */

.archive.tax-product_cat .wd-swatches-grid,
.archive.tax-product_cat .star-rating,
.archive.tax-product_cat .price {
	display: none !important;
}

.archive.tax-product_cat .wd-loop-builder-off[class*="wd-stretch-cont"] .wd-product .product-element-bottom {
	text-align: center;
}

.archive.tax-product_cat .wd-product.wd-hover-tiled .wd-swatches-grid {
	justify-content: center;
}

.archive.tax-product_cat .wd-loop-builder-off .star-rating {
	align-self: center;
}

.archive.tax-product_cat .wd-loop-builder-off .wd-product .wd-entities-title {
	font-size: 20px;
}

/* Product card hover — orange border + lift */
.archive.tax-product_cat .wd-product,
.wd-products .wd-product {
	transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.archive.tax-product_cat .wd-product:hover,
.wd-products .wd-product:hover {
	border-color: var(--ccb-orange) !important;
	box-shadow: var(--ccb-shadow-card-hover);
	transform: translateY(-4px);
}

/* Loop quote CTA */
.ccb-loop-quote-btn {
	margin-top: var(--ccb-space-md);
}

.ccb-loop-quote-btn .ccb-btn {
	width: 100%;
	padding: 12px 20px;
	font-size: 13px;
}

/* -------------------------------------------------------------------------
 * Category archive — prototype product card grid
 * ------------------------------------------------------------------------- */

.tax-product_cat .ccb-cat-shop-head,
.tax-product_cat .ccb-cat-products__head {
	text-align: center;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

ul.products.ccb-cat-product-grid,
.ccb-main--category ul.products.ccb-cat-product-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
	gap: 24px;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	width: 100%;
	clear: both;
}

ul.products.ccb-cat-product-grid::before,
ul.products.ccb-cat-product-grid::after,
.ccb-main--category ul.products.ccb-cat-product-grid::before,
.ccb-main--category ul.products.ccb-cat-product-grid::after {
	display: none !important;
	content: none !important;
}

ul.products.ccb-cat-product-grid li.product,
ul.products.ccb-cat-product-grid li.ccb-cat-loop-item {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
}

@media (max-width: 991.98px) {
	ul.products.ccb-cat-product-grid,
	.tax-product_cat ul.products.ccb-cat-product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 575.98px) {
	ul.products.ccb-cat-product-grid,
	.tax-product_cat ul.products.ccb-cat-product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

/* -------------------------------------------------------------------------
 * Single product — PDP grid + WooCommerce layout reset
 * ------------------------------------------------------------------------- */

.single-product .ccb-pdp-product {
	margin: 0;
}

.single-product .ccb-pdp-summary > .images,
.single-product .ccb-pdp-summary > .woocommerce-product-gallery,
.single-product .ccb-pdp-summary > .ccb-pdp-gallery {
	float: none !important;
	width: 100% !important;
	max-width: none;
	margin: 0 !important;
}

.single-product .woocommerce-product-gallery {
	display: none !important;
}

.single-product .ccb-pdp-buy.summary {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	clear: none !important;
}

.single-product .ccb-pdp-buy .product_title {
	margin: 0 0 14px;
	font-family: var(--ccb-font-heading, 'Urbanist', sans-serif);
	font-size: 34px;
	font-weight: 800;
	line-height: 1.12;
	color: var(--ccb-charcoal, #242424);
}

.single-product .woocommerce-product-gallery {
	margin-bottom: 0;
}

.single-product .woocommerce-product-gallery__image img {
	border-radius: 12px;
}

.single-product .ccb-pdp-breadcrumb .woocommerce-breadcrumb {
	margin: 0;
	padding: 0;
	background: transparent;
	font-size: inherit;
	color: inherit;
}

@media (max-width: 767.98px) {
	.single-product .ccb-pdp-buy .product_title {
		font-size: 26px;
	}
}

/* -------------------------------------------------------------------------
 * Single product — description + quote form
 * ------------------------------------------------------------------------- */

.single-product .summary .ccb-product-summary-desc {
	margin-bottom: 28px;
	font-size: var(--ccb-text-body);
	line-height: 1.65;
	color: var(--ccb-mid-gray);
}

.single-product .summary .ccb-product-summary-desc p:last-child {
	margin-bottom: 0;
}

.single-product .summary .ccb-product-trust {
	margin: var(--ccb-space-xl) 0;
}

.ccb-product-quote {
	margin-top: var(--ccb-space-xl);
	padding-top: 28px;
	border-top: 1px solid var(--ccb-soft-blue-gray);
}

.ccb-product-quote__head {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--ccb-space-md);
	margin-bottom: 20px;
}

.ccb-product-quote__title {
	margin: 0;
	font-family: var(--ccb-font-heading);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--ccb-orange);
	text-transform: uppercase;
}

.ccb-product-quote__id {
	font-size: var(--ccb-text-body);
	color: var(--ccb-mid-gray);
	white-space: nowrap;
}

.ccb-product-quote__form .wpcf7-form {
	margin: 0;
}

.ccb-cf7-rows {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ccb-cf7-field--dims {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 110px;
	gap: 12px;
	align-items: stretch;
}

.ccb-cf7-field--triple {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-items: stretch;
}

.ccb-cf7-rows > p,
.ccb-cf7-field--full > p,
.ccb-cf7-field--dims > p,
.ccb-cf7-field--triple > p,
.ccb-cf7-field--submit > p {
	display: contents;
	margin: 0;
}

.ccb-cf7-field--dims br,
.ccb-cf7-field--triple br {
	display: none;
}

.ccb-cf7-field--submit {
	display: flex;
	justify-content: flex-end;
	margin-top: 6px;
}

.ccb-product-quote .ccb-cf7-field--full .wpcf7-form-control-wrap,
.ccb-product-quote .ccb-cf7-field--submit .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.ccb-product-quote .ccb-cf7-field--dims .wpcf7-form-control-wrap,
.ccb-product-quote .ccb-cf7-field--triple .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
	min-width: 0;
}

.ccb-product-quote .ccb-cf7-input,
.ccb-product-quote .ccb-cf7-select,
.ccb-product-quote .ccb-cf7-textarea,
.ccb-quote-modal .ccb-cf7-input,
.ccb-quote-modal .ccb-cf7-select,
.ccb-quote-modal .ccb-cf7-textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #cccccc;
	border-radius: var(--ccb-radius-subtle);
	padding: 12px 14px;
	font-family: var(--ccb-font-body);
	font-size: var(--ccb-text-body);
	line-height: 1.4;
	color: var(--ccb-charcoal);
	background-color: var(--ccb-white);
	transition: border-color 0.2s ease;
}

.ccb-product-quote .ccb-cf7-input::placeholder,
.ccb-product-quote .ccb-cf7-textarea::placeholder,
.ccb-quote-modal .ccb-cf7-input::placeholder,
.ccb-quote-modal .ccb-cf7-textarea::placeholder {
	color: var(--ccb-mid-gray);
}

.ccb-product-quote .ccb-cf7-input:focus,
.ccb-product-quote .ccb-cf7-select:focus,
.ccb-product-quote .ccb-cf7-textarea:focus,
.ccb-quote-modal .ccb-cf7-input:focus,
.ccb-quote-modal .ccb-cf7-select:focus,
.ccb-quote-modal .ccb-cf7-textarea:focus {
	outline: none;
	border-color: var(--ccb-orange);
}

.ccb-product-quote .ccb-cf7-textarea,
.ccb-quote-modal .ccb-cf7-textarea {
	min-height: 120px;
	resize: vertical;
}

/* CF7 submit: styled in ccb-buttons.css */

.ccb-product-quote .wpcf7-not-valid-tip,
.ccb-quote-modal .wpcf7-not-valid-tip {
	font-size: var(--ccb-text-small);
	margin-top: 6px;
	color: var(--ccb-charcoal);
}

.ccb-product-quote .wpcf7-not-valid,
.ccb-quote-modal .wpcf7-not-valid {
	border-color: var(--ccb-orange) !important;
}

.ccb-product-quote .wpcf7-response-output,
.ccb-quote-modal .wpcf7-response-output {
	margin: var(--ccb-space-md) 0 0;
	padding: 12px 14px;
	border-radius: var(--ccb-radius-subtle);
	font-size: var(--ccb-text-small);
}

.ccb-product-quote--missing {
	padding: var(--ccb-space-md);
	background: var(--ccb-off-white);
	border: 1px solid var(--ccb-orange);
	border-radius: var(--ccb-radius-subtle);
	font-size: var(--ccb-text-small);
}

@media (max-width: 900px) {
	.ccb-cf7-field--triple {
		grid-template-columns: 1fr;
	}

	.ccb-cf7-field--dims {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 767px) {
	.ccb-product-quote__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.ccb-cf7-field--dims,
	.ccb-cf7-field--triple {
		grid-template-columns: 1fr;
	}

	.ccb-cf7-field--submit {
		justify-content: stretch;
	}

}

/* Single product primary CTA above quote form */
.ccb-product-cta-wrap {
	margin: var(--ccb-space-lg) 0;
}

.wd-loop-builder-off .wd-product .wd-entities-title {
	font-size: 20px;
}
