/* ============================================================
   TRULY EPIC — SHOP / CATEGORY PAGE
   ============================================================ */

.te-shop { padding:0; }

/* Toolbar */
.te-shop-toolbar {
	display: flex; justify-content: space-between; align-items: center;
	flex-wrap: wrap; gap: 1rem;
	background: #f4f4f4; padding: .85rem 1.25rem; margin-bottom: 1.5rem;
}
.te-shop-count { color: #444; font-size: .95rem; }
.te-shop-controls { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.te-ctrl { font-size: .9rem; color: #555; }
.te-shop-controls select { padding: .35rem .5rem; border: 1px solid #ccc; margin-left: .35rem; }

/* Layout */
.te-shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; align-items: start; }
body.search-results .te-shop-sidebar{display: none;}
body.search-results .te-shop-layout{grid-template-columns: 1fr;}

/* Sidebar */
.te-filters-heading { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; margin: 0 0 1.25rem; }
.te-filter-group { margin-bottom: 1.4rem; border-bottom: 1px solid #D3D3D3; padding-bottom: 1.2rem; }
.te-filter-title { font-size: 1rem; font-weight: 700; text-transform: uppercase; margin: 0 0 .75rem; color: #111; }
.te-filter-list { list-style: none; margin: 0; padding: 0; }
.te-filter-list li { margin-bottom: .5rem; }
.te-filter-list label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; cursor: pointer; color: #333; }
.te-filter-list .te-filter-name { flex: 1; }
.te-shop-title {
	display: none;
}
/* See more — collapse long lists to 6 items */
.te-filter-list.has-more li.te-overflow { display: none; }
.te-filter-list.has-more.is-expanded { max-height: 280px; overflow-y: auto; padding-right: 15px;}
.te-filter-list.has-more.is-expanded li.te-overflow { display: block; }
.te-see-more { display: inline-block; margin-top: .5rem; font-size: .85rem; font-weight: 600; color: var(--te-blue, #1a1aa8); text-decoration: none; }

.te-select { width: 100%; padding: .5rem; border: 1px solid #ccc; }

/* ---------- Product grid (5 columns like the design) ---------- */
.te-shop-main { position: relative; }
.te-shop-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid #CDCDCD; border-left: 1px solid #CDCDCD; }
.te-shop-grid .te-product-card { background: #fff; border-right: 1px solid #CDCDCD; border-bottom: 1px solid #CDCDCD; padding: .5rem; }

.te-product-thumb { position: relative; overflow: hidden; }
.te-product-thumb img { width: 100%; height: 130px; object-fit: contain; display: block; }
.te-product-actions {
	position: absolute; left: 0; right: 0; bottom: 0;
	display: flex; gap: .5rem; justify-content: center; padding: .5rem;
	opacity: 0; transform: translateY(100%); transition: all .25s ease;
}
.te-product-thumb:hover .te-product-actions { opacity: 1; transform: translateY(0); }

.te-product-actions .dashicons { font-size: 1.1rem; width: auto; height: auto; line-height: 1; }
.te-product-actions .added_to_cart { display: none; }
.te-shop-sidebar{position: sticky;top: 0;}

.te-product-info { padding: .5rem .25rem; }
.te-product-name { display: block; font-size: .85rem; font-weight: 700; color: #111; text-decoration: none; line-height: 1.25; margin-bottom: .35rem; }
.te-product-name:hover { color: var(--te-red, #e01414); }
.te-product-desc { font-size: .72rem; color: #666; text-transform: uppercase; margin-bottom: .3rem; }
.te-product-sku { font-size: .72rem; color: #333; font-weight: 600; }
.te-product-upc { font-size: .7rem; color: #999; margin-bottom: .35rem; }
.te-product-price { color: var(--te-red, #e01414); font-weight: 800; font-size: .95rem; }

.te-no-products { grid-column: 1 / -1; text-align: center; padding: 3rem; color: #777; }

@media (max-width: 1200px) { .te-shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 992px)  { .te-shop-layout { grid-template-columns: 1fr; } }
@media (max-width: 700px)  { .te-shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .te-shop-grid { grid-template-columns: 1fr; } }

/* ---------- Loading spinner overlay ---------- */
.te-shop-overlay {
	position: absolute; inset: 0; background: rgba(255,255,255,.7);
	display: none; align-items: center; justify-content: center; z-index: 5;
}
.te-shop-overlay.is-active { display: flex; }
.te-spinner {
	width: 46px; height: 46px; border-radius: 50%;
	border: 4px solid #ddd; border-top-color: var(--te-red, #e01414);
	animation: te-spin .8s linear infinite;
}
@keyframes te-spin { to { transform: rotate(360deg); } }

/* Pagination */
.te-shop-pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.te-page { min-width: 40px; height: 40px; padding: 0 .75rem; border: 1px solid #ccc; background: #fff; cursor: pointer; font-weight: 600; color: #333; }
.te-page.is-active { background: var(--te-blue, #1a1aa8); color: #fff; border-color: var(--te-blue, #1a1aa8); }

.te-filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom:0; }
.te-filters-head .te-filters-heading { margin: 0; }
.te-clear-filters {
	background: none; border: 0; cursor: pointer;
	color: var(--te-red, #e01414); font-size: .85rem; font-weight: 700;
	text-decoration: underline;
}
.te-clear-filters:hover { opacity: .8; }


.te-clear-filters {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--red) !important;
	font-size: .85rem;
	font-weight: 700;
	text-decoration: underline;
	background: transparent !important;
}
.te-clear-filters.is-visible { display: inline-block; }

.te-cat-group { margin-bottom: 1rem; }
.te-cat-parent { display: block; font-weight: 700; margin-bottom: .5rem; color: #111; }
.te-cat-group .te-filter-list { margin: 0; }

/* Mobile filter button + close — desktop pe hidden */
.te-filter-toggle, .te-filter-close { display: none; }
.te-filter-toggle {
	background: var(--te-blue, #1a1aa8); color: #fff; border: 0;
	padding: .7rem 1.2rem; font-weight: 700; cursor: pointer; margin-bottom: 1rem;
	font-size: 14px;
  font-weight: 500;
  letter-spacing: 3%;
}
#te-filter-toggle:hover {
	background: var(--red);
}
.te-filter-backdrop {
	position: fixed; inset: 0; background: rgba(0,0,0,.5);
	z-index: 998; display: none;
}
.te-filter-backdrop.is-active { display: block; }

@media (max-width: 992px) {
	.te-filter-toggle { display: inline-block; }

	/* Sidebar becomes a slide-in drawer */
	.te-shop-sidebar {
		position: fixed; top: 0; left: 0; bottom: 0;
		width: 300px; max-width: 85%;
		background: #fff; z-index: 999;
		padding: 1.5rem; overflow-y: auto;
		transform: translateX(-100%);
		transition: transform .3s ease;
		box-shadow: 2px 0 20px rgba(0,0,0,.15);
	}
	.te-shop-sidebar.is-open { transform: translateX(0); }
	.te-filters-head {width: max-content;gap: 20px;}
	.te-clear-filters {font-size: 12px;}

	.te-filter-close {
		display: block; position: absolute; top: .75rem; right: 1rem;
		background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: #333;
	}
	.te-filter-close {
	background: var(--red);
	width: 20px;
	height: 20px;
	border-radius: 100%;
	padding: 0;
	right: 10px;
	top: 20px;
	color: #fff;
}
}



/*=== Custom Css ===*/
.te-shop {
	margin-bottom: 9.375rem;
}
.te-shop-toolbar {
	background: #F6F6F6;
	padding: 1.3125rem 5.3125rem;
	margin-bottom: 4.0625rem;
}
.te-shop-count strong {font-family: Poppins;font-weight: 700;font-size: 1.125rem;line-height: 100%;letter-spacing: -3%;color: var(--dark);}
.te-shop-count {
	font-family: Poppins;
	font-weight: 400;
	font-size: 1.125rem;
	line-height: 100%;
	letter-spacing: -3%;
	color: var(--dark);
}
.te-ctrl {
	font-family: Poppins;
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 100%;
	letter-spacing: -3%;
	color: var(--dark);
}
.te-shop-controls select {
	padding: 0 0 0 9px;
	width: 66px;
	color: var(--dark);
	font-family: Poppins;
	font-weight: 400;
	font-size: 16px;
	line-height: 100%;
	letter-spacing: -3%;
	height: 28px;
	background-color: #fff;
	border: 0;
}
.te-shop-controls select#te-orderby {
	width: 146px;
}
.te-filters-head{margin-bottom: 2.375rem;}
.te-filters-head .te-filters-heading {
	font-family: Poppins;
	font-weight: 700;
	font-size: 2.75rem;
	line-height: 1.1;
	letter-spacing: -3%;
	text-transform: uppercase;
	color: var(--blue);
	margin-bottom: 0;
}
.te-filter-list label {
	font-family: Roboto;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.1;
	letter-spacing: -3%;
	color: var(--dark);
}

.te-filter-list li{margin-bottom: 1.25rem;}
.te-filter-list label input {
	border-radius: 0;
}
.te-shop-grid #te-capacity {
	color: #2B2B2B;
	border: 1px solid #BDBDBD;
	font-family: Poppins;
	font-weight: 400;
	font-size: 1rem;
	line-height: 100%;
	letter-spacing: -3%;
	padding: 8px 10px;
}
.te-filter-title {
	font-family: Poppins;
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 100%;
	letter-spacing: -3%;
	text-transform: uppercase;
	color: var(--dark);
	margin-bottom: 15px;
}
.te-shop-sidebar .te-see-more {
	color: #2B2B2B;
	font-family: Poppins;
	font-weight: 700;
	font-size: 1rem;
	line-height: 100%;
	letter-spacing: -3%;
}
.te-product-info .te-product-name {
	font-family: Poppins;
	font-weight: 700;
	font-size: 1.0625rem;
	letter-spacing: -3%;
	color: var(--dark);
}
.te-product-info .te-product-name:hover{color: var(--red);}
.te-shop-grid .te-product-card .te-product-thumb {
	background: #fff;
	height: auto;
}
.te-shop-grid .te-product-desc {
	font-family: Poppins;
	font-weight: 300;
	font-size: 1rem;
	line-height: 100%;
	letter-spacing: -3%;
	color: var(--dark);
}
.te-shop-grid .te-product-sku {
	font-family: Poppins;
	font-weight: 800;
	font-size: 1.125rem;
	line-height: 100%;
	letter-spacing: -3%;
	color: var(--dark);
	margin: 5px 0 10px
}
.te-shop-grid .te-product-upc {
	font-family: Poppins;
	font-weight: 400;
	font-size: 1rem;
	line-height: 100%;
	letter-spacing: -3%;
	color: var(--dark);
}
.te-shop-grid .te-product-card .te-product-thumb img {
	height: 160px;
	object-fit: contain;
}

/* ============================================================
   Shop product card — even alignment
   ============================================================ */

.te-shop-grid .te-product-card { display: flex; flex-direction: column; height: 100%; }
.te-shop-grid .te-product-thumb { flex: none; }
.te-shop-grid .te-product-info { display: flex; flex-direction: column; flex: 1 1 auto; padding: .75rem .5rem; }
.te-shop-grid .te-product-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; line-height: 1.2; margin-bottom: .5rem; flex: none; }
.te-shop-grid .te-product-desc { min-height: 1em; margin-bottom: .4rem; flex: none; }

/* SKU + UPC — normal */
.te-shop-grid .te-product-sku, .te-shop-grid .te-product-upc { flex: none; }
.te-shop-grid .te-product-price { margin-top: auto; padding-top: .5rem; }
.te-shop-grid .te-product-price {
	font-family: Poppins;
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 2rem;
	letter-spacing: -3%;
	color: var(--red);
}
.te-shop-grid .te-product-price del {
	font-size: 1.3rem;
	margin-right: 5px;
}

.te-product-actions .ajax_add_to_cart:not(.add_to_cart_button) {
	opacity: .4;
	pointer-events: none;   /* click bhi na ho */
}
.te-shop-grid:has(.te-no-products) {
	border: 0;
}
#te-shop-pagination {
	width: max-content;
	margin-left: auto;
	margin-right: auto;
	gap: 0;
	border: 1px solid #d1d4db;
}
#te-shop-pagination .te-page {
	border: 0;
	border-right: 1px solid #d1d4db;
	border-radius: 0;
	padding: 0 20px;
	font-size: 20px;
	font-weight: 400;
	color: #847f83;
}
#te-shop-pagination .te-page:last-of-type{border-right: 0;}
#te-shop-pagination .te-page.is-active,#te-shop-pagination .te-page:hover,
#te-shop-pagination .te-page:focus {
	background: #eff6ff;
	color: var(--blue);
}




/*=== Responsive ===*/

@media (max-width: 1190px){

	.te-filter-list label{font-size: 14px;}
	.te-filter-title {font-size: 18px;}
	.te-shop-sidebar .te-see-more {font-size: 15px;}
	.te-product-info .te-product-name,.te-shop-grid .te-product-sku,.te-shop-grid .te-product-desc {font-size: 15px;}
	.te-shop-grid .te-product-upc {font-size: 15px;}
	.te-shop-grid .te-product-price {font-size: 20px;padding-top: 10px;}
	.te-shop-grid .te-product-price del {font-size: 18px;}
	.te-shop-count,.te-shop-count strong,.te-ctrl {font-size: 16px;}
	.te-shop-toolbar {padding-left: 15px;padding-right: 15px;}

}


@media (max-width: 767px){
	.te-shop-toolbar {justify-content: center;gap: 20px;flex-direction: column;padding-top: 20px;padding-bottom: 20px;}
	#te-shop-pagination .te-page {padding: 2px 14px;font-size: 14px;}
}

@media (max-width: 480px){
	.te-shop-controls {flex-direction: column;justify-content: center;text-align: center;}
}