/* ==========================================================================
   WooCommerce pages: breadcrumb, shop / category header, toolbar, product grid
   ========================================================================== */
.woocommerce .woocommerce-breadcrumb { margin: 0 0 24px; color: var(--tech-ae-grey); font-size: 14px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--tech-ae-grey); }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--tech-ae-primary); }

/* Header: title · description · image (image + description only when the category has them) */
.tech-ae-shop-head {
	padding-block: 24px 32px;
	border-bottom: 1px solid var(--tech-ae-border);
	background: linear-gradient(135deg, var(--tech-ae-soft), rgba(11, 81, 153, .02));
}
.tech-ae-shop-head .woocommerce-breadcrumb { margin-bottom: 18px; }
.tech-ae-shop-head__inner { display: grid; gap: 24px; align-items: center; }
.tech-ae-shop-head__title { margin: 0; }
.tech-ae-shop-head__title::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 14px;
	border-radius: 4px;
	background: var(--tech-ae-primary);
}
.tech-ae-shop-head__desc { max-width: 820px; margin-top: 16px; color: var(--tech-ae-grey); }
.tech-ae-shop-head__desc > *:last-child { margin-bottom: 0; }
.tech-ae-shop-head__media {
	display: flex;
	align-items: center;
	justify-content: center;
	order: -1;
	max-width: 320px;
	aspect-ratio: 4 / 3;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--tech-ae-border);
	border-radius: var(--tech-ae-radius-lg);
	background: var(--tech-ae-white);
}
.tech-ae-shop-head__media img { width: 100%; height: 100%; object-fit: contain; }

@media (min-width: 768px) {
	.tech-ae-shop-head { padding-block: 28px 44px; }
	.tech-ae-shop-head--media .tech-ae-shop-head__inner { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
	.tech-ae-shop-head__media { order: 0; max-width: none; }
}
@media (min-width: 1200px) {
	.tech-ae-shop-head--media .tech-ae-shop-head__inner { grid-template-columns: minmax(0, 1fr) 340px; }
}

.tech-ae-section--shop { padding-top: 28px; }

/* Toolbar: result count · ordering */
.tech-ae-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 22px;
}
.woocommerce .tech-ae-shop-toolbar .woocommerce-result-count,
.woocommerce .tech-ae-shop-toolbar .woocommerce-ordering { float: none; margin: 0; }
.woocommerce .woocommerce-result-count { color: var(--tech-ae-grey); font-size: 14px; }
.woocommerce .woocommerce-ordering select {
	min-height: 44px;
	padding: 8px 36px 8px 14px;
	border: 1px solid var(--tech-ae-border-strong);
	border-radius: var(--tech-ae-radius);
	background-color: var(--tech-ae-white);
	color: var(--tech-ae-dark);
	font-family: var(--tech-ae-font);
	font-size: 15px;
}

/* Product grid: CSS grid instead of WooCommerce floats */
.woocommerce ul.products {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0 0 24px;
	padding: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
	float: none;
	width: auto !important;
	margin: 0 !important;
}
@media (min-width: 768px) { .woocommerce ul.products { gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .woocommerce ul.products { gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Sub-category cards (category display type "subcategories" / "both") */
.woocommerce ul.products li.product-category {
	overflow: hidden;
	padding: 0;
	border: 1px solid var(--tech-ae-border);
	border-radius: var(--tech-ae-radius-lg);
	background: var(--tech-ae-white);
	text-align: center;
	transition: border-color var(--tech-ae-ease);
}
.woocommerce ul.products li.product-category:hover { border-color: var(--tech-ae-primary); }
.woocommerce ul.products li.product-category img { aspect-ratio: 1; margin: 0; padding: 14px; object-fit: contain; }
.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
	margin: 0;
	padding: 12px 14px 16px;
	color: var(--tech-ae-dark);
	font-size: 15px;
	font-weight: 500;
}
.woocommerce ul.products li.product-category .count { background: none; color: var(--tech-ae-grey); font-size: 13px; }

/* ==========================================================================
   Sidebar cards — shared by the category and product sidebars
   ========================================================================== */
.tech-ae-aside-card {
	display: block;
	padding: 20px;
	border: 1px solid var(--tech-ae-border);
	border-radius: var(--tech-ae-radius-lg);
	background: var(--tech-ae-white);
}
.tech-ae-aside-card__title { margin: 0 0 14px; font-family: var(--tech-ae-font-head); font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.tech-ae-aside-card__text { margin: -6px 0 16px; font-size: 14px; }

.tech-ae-aside-card--help { border: 0; background: linear-gradient(150deg, var(--tech-ae-primary), #073a6f); color: rgba(255, 255, 255, .85); }
.tech-ae-aside-card--help .tech-ae-aside-card__title { color: var(--tech-ae-white); }

.tech-ae-aside-contact { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tech-ae-aside-contact__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: var(--tech-ae-radius);
	background: rgba(255, 255, 255, .1);
	color: var(--tech-ae-white);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	word-break: break-word;
	transition: background var(--tech-ae-ease);
}
.tech-ae-aside-contact__link:hover { background: rgba(255, 255, 255, .2); color: var(--tech-ae-white); }
.tech-ae-aside-contact__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--tech-ae-white);
	color: var(--tech-ae-primary);
}
.tech-ae-aside-contact__link--whatsapp .tech-ae-aside-contact__icon { background: #25D366; color: var(--tech-ae-white); }

/* ==========================================================================
   Layout: products · sidebar (left from 992px; below the products on phones)
   ========================================================================== */
.tech-ae-shop-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.tech-ae-shop-main { min-width: 0; }
.tech-ae-shop-aside { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 992px) {
	.tech-ae-shop-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
	.tech-ae-shop-aside { grid-row: 1; grid-column: 1; }
	.tech-ae-shop-main { grid-column: 2; }
}
@media (min-width: 1200px) {
	.tech-ae-shop-layout { grid-template-columns: 290px minmax(0, 1fr); gap: 40px; }
}

/* Category tree */
.tech-ae-cat-tree { margin: 0; padding: 0; list-style: none; }
.tech-ae-cat-tree .tech-ae-cat-tree { margin: 2px 0 4px 12px; padding-left: 10px; border-left: 2px solid var(--tech-ae-border); }
.tech-ae-cat-tree a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 10px;
	border-radius: var(--tech-ae-radius);
	color: var(--tech-ae-dark);
	font-size: 14px;
	line-height: 1.35;
	transition: background var(--tech-ae-ease), color var(--tech-ae-ease);
}
.tech-ae-cat-tree a:hover { background: var(--tech-ae-soft); color: var(--tech-ae-primary); }
.tech-ae-cat-tree .is-open > a { font-weight: 600; }
.tech-ae-cat-tree a.is-active { background: var(--tech-ae-primary); color: var(--tech-ae-white); font-weight: 600; }
.tech-ae-cat-tree__count {
	flex-shrink: 0;
	min-width: 28px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--tech-ae-soft);
	color: var(--tech-ae-grey);
	font-size: 12px;
	text-align: center;
}
.tech-ae-cat-tree a.is-active .tech-ae-cat-tree__count { background: rgba(255, 255, 255, .2); color: var(--tech-ae-white); }

/* Brand tags */
.tech-ae-aside-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tech-ae-aside-tags a {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid var(--tech-ae-border);
	border-radius: 999px;
	color: var(--tech-ae-dark);
	font-size: 13px;
	font-weight: 500;
	transition: border-color var(--tech-ae-ease), color var(--tech-ae-ease);
}
.tech-ae-aside-tags a:hover,
.tech-ae-aside-tags a.is-active { border-color: var(--tech-ae-primary); color: var(--tech-ae-primary); }
