/**
 * Product category archive layout
 * @package Creative_Custom_Boxes
 */

/* -------------------------------------------------------------------------
 * Category page shell — contained sections (matches static category.html)
 * ------------------------------------------------------------------------- */

.ccb-main--category {
	display: block;
	overflow-x: hidden;
}

.ccb-main--category .ccb-cat-products {
	padding-top: 56px;
	padding-bottom: 64px;
}

.ccb-main--category .ccb-cat-seo {
	padding-bottom: 64px;
}

/* Layout + materials + FAQ styles: assets/css/ccb-category.css (static prototype) */

/* -------------------------------------------------------------------------
 * Hero enhancements
 * ------------------------------------------------------------------------- */

.ccb-product-cat-hero__breadcrumb {
	margin-bottom: 12px;
	font-size: var(--ccb-text-small);
}

.ccb-product-cat-hero__breadcrumb .woocommerce-breadcrumb {
	margin: 0;
	color: var(--ccb-mid-gray);
}

.ccb-product-cat-hero__breadcrumb a {
	color: var(--ccb-charcoal);
}

.ccb-product-cat-hero__breadcrumb a:hover {
	color: var(--ccb-orange);
}

.ccb-product-cat-hero__teaser {
	margin: 0 0 20px;
	max-width: 560px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--ccb-mid-gray);
}

.ccb-product-cat-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.ccb-btn--ghost {
	color: var(--ccb-charcoal);
	background: var(--ccb-white);
	border: 1px solid #ddd;
}

.ccb-btn--ghost:hover,
.ccb-btn--ghost:focus {
	color: var(--ccb-charcoal);
	border-color: var(--ccb-orange);
	background: var(--ccb-off-white);
}

.ccb-product-cat-hero__trust.ccb-trust-badges {
	justify-content: flex-start;
	padding: 0;
	background: transparent;
	border-radius: 0;
	gap: 12px 20px;
}

.ccb-product-cat-hero--no-image .ccb-product-cat-hero__trust.ccb-trust-badges {
	justify-content: center;
}

/* -------------------------------------------------------------------------
 * Pillar archives (child category grid, no product loop)
 * ------------------------------------------------------------------------- */

/* Hide default WooCommerce toolbar on category archives */
.ccb-main--category .woocommerce-result-count,
.ccb-main--category .woocommerce-ordering,
.ccb-main--shop .woocommerce-result-count,
.ccb-main--shop .woocommerce-ordering,
.tax-product_cat .woocommerce-result-count,
.tax-product_cat .woocommerce-ordering,
.post-type-archive-product .woocommerce-result-count,
.post-type-archive-product .woocommerce-ordering {
	display: none !important;
}

/* Main shop: same card grid as category archives (no loop CTAs). */
.ccb-main--shop .ccb-loop-quote-btn,
.ccb-main--shop .woocommerce-loop-product__link + .button,
.ccb-main--shop a.button.product_type_simple,
.ccb-main--shop .added_to_cart {
	display: none !important;
}

.ccb-cat-pillar .woocommerce-no-products-found {
	display: none !important;
}

/* -------------------------------------------------------------------------
 * Empty category / shop (no products in loop)
 * ------------------------------------------------------------------------- */

.ccb-main--category .woocommerce-no-products-found .woocommerce-info,
.ccb-main--shop .woocommerce-no-products-found .woocommerce-info,
.ccb-cat-empty-wrap .woocommerce-info {
	display: none !important;
}

.ccb-cat-empty {
	max-width: 560px;
	margin: 0 auto;
	padding: 40px 32px;
	text-align: center;
	background: var(--ccb-soft-blue-gray, #e0eaf0);
	border: 1px solid rgba(36, 36, 36, 0.08);
	border-radius: 12px;
}

.ccb-cat-empty__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--ccb-white, #fff);
	color: var(--ccb-orange, #f59a57);
	font-size: 26px;
	box-shadow: 0 2px 8px rgba(36, 36, 36, 0.06);
}

.ccb-cat-empty__title {
	margin: 0 0 12px;
	font-family: var(--ccb-font-heading, 'Urbanist', sans-serif);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ccb-charcoal, #242424);
}

.ccb-cat-empty__message {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--ccb-mid-gray, #767676);
}

.ccb-cat-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* -------------------------------------------------------------------------
 * Pillar archives — child categories use shared product-card grid
 * ------------------------------------------------------------------------- */

.ccb-main--pillar .woocommerce-breadcrumb {
	display: none !important;
}

.ccb-main--pillar .ccb-cat-products {
	padding-top: 56px;
	padding-bottom: 56px;
}

/* Child categories — same card size/layout as homepage industry grid */
.ccb-cat-child-grid.category-grid {
	gap: 20px;
	margin-top: 0;
	margin-bottom: 0;
}

.ccb-main--pillar .ccb-cat-child-grid .cat-card {
	height: 100%;
}

/* -------------------------------------------------------------------------
 * SEO body content (below FAQ — not in static mock, kept for SEO)
 * ------------------------------------------------------------------------- */

.ccb-cat-seo {
	margin: var(--ccb-space-3xl) 0;
	padding: var(--ccb-space-2xl);
	background: var(--ccb-off-white);
	border-radius: var(--ccb-radius-panel);
}

.ccb-cat-seo__inner {
	max-width: 900px;
	color: var(--ccb-mid-gray);
}

.ccb-cat-seo__inner h2,
.ccb-cat-seo__inner h3 {
	margin-top: 1.5em;
	margin-bottom: 0.5em;
	font-family: var(--ccb-font-heading);
	color: var(--ccb-charcoal);
}

.ccb-cat-seo__inner > :first-child {
	margin-top: 0;
}

/* -------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */

@media (max-width: 767px) {
	.ccb-main--pillar .ccb-cat-products {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.ccb-cat-empty {
		padding: 32px 20px;
	}

	.ccb-cat-empty__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ccb-cat-empty__actions .btn-primary,
	.ccb-cat-empty__actions .btn-outline-orange {
		width: 100%;
		justify-content: center;
	}

	.ccb-product-cat-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ccb-product-cat-hero__actions .ccb-btn {
		width: 100%;
	}

	.ccb-cat-seo {
		padding: var(--ccb-space-lg);
	}
}

