/*
 * Peptix shop: [peptix_shop], default WooCommerce shop/category pages,
 * single product and related products. Cards come from peptix-shortcode.css.
 */

/* ---------- Page container (default WooCommerce pages) ---------- */

.peptix-woo__container {
	max-width: var(--peptix-container, 1620px);
	margin: 0 auto;
	padding: 60px 40px 80px;
}

.peptix-woo .woocommerce-products-header__title,
.peptix-woo .product_title {
	margin: 0 0 16px;
	color: var(--peptix-secondary, #0f172a);
}

.peptix-woo .woocommerce-breadcrumb {
	margin: 0 0 24px;
	color: var(--peptix-text, #757575);
	font-size: 15px;
}

.peptix-woo .woocommerce-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.peptix-woo .woocommerce-breadcrumb a:hover {
	color: var(--peptix-primary, #3b82f6);
}

/* ---------- Product grid (every WooCommerce loop) ---------- */

.peptix-shop-grid {
	clear: both;
	width: 100%;
	margin: 0 0 40px;
}

.peptix-shop-grid .peptix-product-grid-row {
	grid-template-columns: repeat(var(--peptix-columns, 4), minmax(0, 1fr));
	grid-template-rows: none;
	gap: 24px !important;
}

@media (max-width: 1199px) {
	.peptix-shop-grid .peptix-product-grid-row {
		grid-template-columns: repeat(min(var(--peptix-columns, 4), 3), minmax(0, 1fr));
	}
}

/* Layout 2: sidebar takes space, so 2 columns read better */
@media (min-width: 992px) and (max-width: 1199px) {
	.peptix-shop--layout-2:not(.has-sidebar-hidden) .peptix-shop-grid .peptix-product-grid-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.peptix-shop-grid .peptix-product-grid-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px !important;
	}
}

@media (max-width: 600px) {
	.peptix-shop-grid .peptix-product-grid-row {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Category chips ---------- */

.peptix-shop__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 32px;
}

.peptix-shop__chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10PX;
	color: var(--peptix-secondary, #0f172a);
	font-size: 18PX !important;
  	line-height: 28PX !important;
	text-decoration: none;
	transition: background var(--peptix-transition, 0.3s ease), border-color var(--peptix-transition, 0.3s ease), color var(--peptix-transition, 0.3s ease);
}

.peptix-shop__chip:hover,
.peptix-shop__chip:focus-visible {
	border-color: var(--peptix-primary, #3b82f6);
	color: var(--peptix-primary, #3b82f6);
}

.peptix-shop__chip.is-active {
	background: var(--peptix-primary, #3b82f6);
	border-color: var(--peptix-primary, #3b82f6);
	color: #fff;
}
.peptix-shop__chip.is-active:hover{color: #fff;}
/* ---------- Result count + sorting ---------- */

.peptix-shop .woocommerce-result-count,
.peptix-woo .woocommerce-result-count {
	float: left;
	margin: 0 0 24px;
	color: var(--peptix-secondary, #0f172a);
	font-size: 15px;
	line-height: 40px;
}

.peptix-shop .woocommerce-ordering,
.peptix-woo .woocommerce-ordering {
	float: right;
	margin: 0 0 24px;
}

.peptix-shop .woocommerce-ordering select,
.peptix-woo .woocommerce-ordering select {
	height: 40px;
	padding: 0 36px 0 12px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%230f172a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	color: var(--peptix-secondary, #0f172a);
	font: inherit;
	font-size: 15px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.peptix-shop .woocommerce-ordering select:focus,
.peptix-woo .woocommerce-ordering select:focus {
	border-color: var(--peptix-primary, #3b82f6);
	outline: none;
}

/* ---------- Pagination ---------- */

.woocommerce nav.woocommerce-pagination,
.peptix-shop nav.woocommerce-pagination {
	clear: both;
	margin: 8px 0 0;
	text-align: center;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers,
.peptix-shop nav.woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li,
.peptix-shop nav.woocommerce-pagination ul.page-numbers li {
	float: none;
	margin: 0;
	border: 0;
	overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li .page-numbers,
.peptix-shop nav.woocommerce-pagination ul.page-numbers li .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	color: var(--peptix-secondary, #0f172a);
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	transition: background var(--peptix-transition, 0.3s ease), border-color var(--peptix-transition, 0.3s ease), color var(--peptix-transition, 0.3s ease);
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers:focus,
.peptix-shop nav.woocommerce-pagination ul.page-numbers li a.page-numbers:hover {
	background: var(--peptix-lite-bg, #f0f6ff);
	border-color: var(--peptix-primary, #3b82f6);
	color: var(--peptix-primary, #3b82f6);
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li span.current,
.peptix-shop nav.woocommerce-pagination ul.page-numbers li span.current {
	background: var(--peptix-primary, #3b82f6);
	border-color: var(--peptix-primary, #3b82f6);
	color: #fff;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li span.dots {
	min-width: 0;
	border: 0;
	background: transparent;
}

/* ---------- Single product ---------- */

.peptix-woo div.product .product_title {
	font-size: 40px;
	line-height: 1.2;
}

.peptix-woo div.product p.price,
.peptix-woo div.product span.price {
	color: var(--peptix-primary, #3b82f6);
	font-size: 24px;
}

.peptix-woo div.product div.images img {
	border: 1px solid #dbeafe;
	border-radius: var(--peptix-radius, 8px);
	background: #fff;
}

.peptix-woo div.product form.cart .button,
.peptix-woo .button.alt {
	padding: 12px 28px;
	background: var(--peptix-primary, #3b82f6);
	border: 1px solid var(--peptix-primary, #3b82f6);
	border-radius: 999px;
	color: #fff;
	font-weight: 500;
	transition: background var(--peptix-transition, 0.3s ease), color var(--peptix-transition, 0.3s ease);
}

.peptix-woo div.product form.cart .button:hover,
.peptix-woo .button.alt:hover {
	background: #fff;
	color: var(--peptix-primary, #3b82f6);
}

.peptix-woo div.product form.cart .qty {
	height: 46px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
}

.peptix-woo div.product .woocommerce-tabs ul.tabs {
	padding: 0;
}

.peptix-woo div.product .woocommerce-tabs ul.tabs li {
	background: #fff;
	border-color: #e5e7eb;
	border-radius: 8px 8px 0 0;
}

.peptix-woo div.product .woocommerce-tabs ul.tabs li.active {
	background: var(--peptix-lite-bg, #f0f6ff);
	border-bottom-color: var(--peptix-lite-bg, #f0f6ff);
}

.peptix-woo div.product .woocommerce-tabs ul.tabs li a {
	color: var(--peptix-secondary, #0f172a);
}

/* Related / up-sells / cross-sells use the shop grid. */
.peptix-woo .related > h2,
.peptix-woo .upsells > h2,
.peptix-woo .cross-sells > h2 {
	margin: 60px 0 24px;
	color: var(--peptix-secondary, #0f172a);
}

/* ---------- [peptix_shop] layouts ---------- */

.peptix-shop {
	--shop-primary: var(--peptix-primary, #3b82f6);
	--shop-dark: var(--peptix-secondary, #0f172a);
	--shop-text: var(--peptix-text, #757575);
	--shop-tint: var(--e-global-color-background-lite-blue, #f0f6ff);
	--shop-tint-border: #dbeafe;
	--shop-border: #e5e7eb;
}

.peptix-shop [hidden] {
	display: none !important;
}

.peptix-shop__form {
	margin: 0;
}

.peptix-shop .peptix-shop__categories {
	margin: 0;
}

.peptix-shop__chip {
	gap: 8px;
	cursor: pointer;
}

.peptix-shop__chip-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 6px;
	background: var(--shop-tint);
	color: var(--shop-primary);
}

.peptix-shop__chip-icon img {
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.peptix-shop__chip.is-active .peptix-shop__chip-icon {
	background:#fff;
	color: #fff;
}

/* Icon buttons (search, filter, view) */
.peptix-shop .peptix-shop__icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	background: var(--shop-tint);
	border: 1px solid var(--shop-tint-border);
	border-radius: 6px;
	color: var(--shop-primary);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.peptix-shop .peptix-shop__icon-btn:hover,
.peptix-shop .peptix-shop__icon-btn.is-active,
.peptix-shop .peptix-shop__icon-btn[aria-expanded="true"] {
	background: var(--shop-primary);
	border-color: var(--shop-primary);
	color: #fff;
	border-radius: 6px !important;
}

/* Sort select */
.peptix-shop__sort {
	display: flex;
	align-items: center;
	gap: 12px;
}

.peptix-shop__sort-label {
	color: var(--shop-dark);
	font-size: 15px;
	white-space: nowrap;
}

.peptix-shop .peptix-shop__select {
	height: 40px;
	min-width: 180px;
	padding: 0 36px 0 12px;
	background: var(--shop-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%233b82f6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
	border: 1px solid var(--shop-primary);
	border-radius: 4px;
	color: var(--shop-primary);
	font: inherit;
	font-size: 15px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

/* ----- Layout 1: chips row with tools ----- */

.peptix-shop__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 32px;
}

.peptix-shop__tools {
	display: flex;
	align-items: center;
	gap: 10px;
}

.peptix-shop .peptix-shop__search input[type="search"] {
	width: 220px;
	height: 40px;
	margin: 0;
	padding: 0 12px;
	background: var(--shop-tint);
	border: 1px solid var(--shop-tint-border);
	border-radius: 6px;
	color: var(--shop-dark);
	font: inherit;
	font-size: 15px;
}

.peptix-shop .peptix-shop__search input[type="search"]:focus {
	border-color: var(--shop-primary);
	outline: none;
}

.peptix-shop__panel {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px 40px;
	margin: -12px 0 32px;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--shop-border);
	border-radius: 12px;
}

.peptix-shop__panel .peptix-shop__filter {
	margin: 0;
	border: 0;
	padding: 0;
}

/* ----- Layout 2: toolbar + sidebar ----- */

.peptix-shop--layout-2 .peptix-shop__categories {
	margin: 0 0 32px;
}

.peptix-shop__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 24px;
}

.peptix-shop__toolbar-start,
.peptix-shop__toolbar-end {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}

.peptix-shop .peptix-shop__filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	margin: 0;
	padding: 0 16px;
	background: #fff;
	border: 1px solid var(--shop-primary);
	border-radius: 4px;
	color: var(--shop-primary);
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}

.peptix-shop .peptix-shop__filter-btn[aria-expanded="true"] {
	background: var(--shop-tint);
}

.peptix-shop__count {
	color: var(--shop-dark);
	font-size: 15px;
}

.peptix-shop__view {
	display: flex;
	align-items: center;
	gap: 8px;
}

.peptix-shop__view-label {
	margin-right: 4px;
	color: var(--shop-dark);
	font-size: 15px;
}

.peptix-shop__body {
	display: block;
}

.peptix-shop--layout-2 .peptix-shop__body {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.peptix-shop--layout-2.has-sidebar-hidden .peptix-shop__body {
	grid-template-columns: minmax(0, 1fr);
}

/* Filters (sidebar + layout 1 panel) */
.peptix-shop__filter {
	padding: 0 0 20px;
	margin: 0 0 20px;
	border-bottom: 1px solid var(--shop-border);
}

.peptix-shop__filter summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--shop-dark);
	font-size: 18px;
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}

.peptix-shop__filter summary::-webkit-details-marker {
	display: none;
}

.peptix-shop__filter summary::after {
	content: "+";
	color: var(--shop-primary);
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
}

.peptix-shop__filter[open] summary::after {
	content: "−";
}

.peptix-shop__filter-body {
	padding-top: 16px;
}

.peptix-shop__check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	color: var(--shop-dark);
	font-size: 15px;
	cursor: pointer;
}

.peptix-shop .peptix-shop__check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--shop-primary);
}

.peptix-shop__check-count {
	margin-left: auto;
	color: var(--shop-dark);
}

.peptix-shop__price-note {
	margin: 0 0 16px;
	color: var(--shop-text);
	font-size: 14px;
	text-transform: capitalize;
}

/* Dual price slider */
.peptix-shop__range {
	--low: 0%;
	--high: 100%;
	position: relative;
	height: 24px;
	margin: 0 0 16px;
}

.peptix-shop__range::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 3px;
	transform: translateY(-50%);
	border-radius: 3px;
	background: linear-gradient(to right, var(--shop-border) var(--low), var(--shop-primary) var(--low), var(--shop-primary) var(--high), var(--shop-border) var(--high));
}

.peptix-shop .peptix-shop__range input[type="range"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 24px;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.peptix-shop__range input[type="range"]::-webkit-slider-thumb {
	width: 16px;
	height: 16px;
	border: 2px solid var(--shop-primary);
	border-radius: 50%;
	background: #fff;
	pointer-events: auto;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.peptix-shop__range input[type="range"]::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border: 2px solid var(--shop-primary);
	border-radius: 50%;
	background: #fff;
	pointer-events: auto;
	cursor: pointer;
}

.peptix-shop__range input[type="range"]::-moz-range-track {
	background: none;
}

.peptix-shop__price-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.peptix-shop__price-inputs label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--shop-primary);
}

.peptix-shop .peptix-shop__price-inputs input {
	width: 100%;
	min-width: 0;
	height: 38px;
	margin: 0;
	padding: 0 10px;
	background: #fff;
	border: 1px solid #D8E6FD;
	border-radius: 4px;
	font: inherit;
	font-size: 14px;
	text-align: center;
	color:var(--shop-primary);
}

.peptix-shop .peptix-shop__price-inputs input:focus {
	border-color: var(--shop-primary);
	background: var(--shop-tint);
	outline: none;
}

/* Grid, empty state, loading */
.peptix-shop .peptix-shop-grid {
	margin: 0;
	transition: opacity 0.2s ease;
}

.peptix-shop.is-loading .peptix-shop-grid {
	opacity: 0.45;
	pointer-events: none;
}

.peptix-shop__empty {
	padding: 40px 0;
	color: var(--shop-text);
	text-align: center;
}

.peptix-shop__more {
	margin-top: 32px;
	text-align: center;
}

.peptix-shop .peptix-shop__more-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 4px 12px;
	background: none;
	border: 0;
	color: var(--shop-dark);
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}

.peptix-shop .peptix-shop__more-btn:hover {
	color: var(--shop-primary);
}

.peptix-shop .peptix-shop__spinner {
	display: block;
	width: 40px;
	height: 40px;
	max-width: none;
}

.peptix-shop.is-loading-more .peptix-shop__spinner {
	animation: peptix-shop-spin 0.8s linear infinite;
}

@keyframes peptix-shop-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.peptix-shop.is-loading-more .peptix-shop__spinner {
		animation: none;
	}
}

/* List view (layout 2 "View as") */
.peptix-shop.is-list .peptix-shop-grid .peptix-product-grid-row {
	grid-template-columns: minmax(0, 1fr);
}

.peptix-shop.is-list .peptix-product-grid-item .research-slide-block {
	display: flex;
	align-items: center;
	gap: 24px;
}

.peptix-shop.is-list .peptix-product-grid-item .research-image {
	flex: 0 0 220px;
	max-width: 220px;
}

.peptix-shop.is-list .peptix-product-grid-item .research-main-detail {
	flex: 1;
	min-width: 0;
}

/* Responsive */
@media (max-width: 991px) {
	.peptix-shop--layout-2 .peptix-shop__body {
		grid-template-columns: minmax(0, 1fr);
	}

	.peptix-shop--layout-2 .peptix-shop__sidebar {
		padding: 20px;
		border: 1px solid var(--shop-border);
		border-radius: 12px;
	}

	.peptix-shop__panel {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.peptix-shop__categories {
		flex-wrap: nowrap;
		overflow-x: scroll;
		padding-bottom: 6px;
		scrollbar-width: thin;
	}

	.peptix-shop__chip {
		flex: 0 0 auto;
		font-size: 14px !important;
		padding: 5px !important;
		line-height: 22px !important;
	}

	.peptix-shop__bar,
	.peptix-shop__toolbar { 
		align-items: stretch;
	}

	.peptix-shop__tools {
		justify-content: flex-end;
	}

	.peptix-shop .peptix-shop__search input[type="search"] {
		width: 100%;
	}

	.peptix-shop__search {
		flex: 1;
	}

	.peptix-shop__toolbar-end {
		justify-content: space-between;
	}

	.peptix-shop .peptix-shop__select {
		min-width: 0;
	}

	.peptix-shop.is-list .peptix-product-grid-item .research-slide-block {
		gap: 16px;
	}

	.peptix-shop.is-list .peptix-product-grid-item .research-image {
		flex-basis: 160px;
		max-width: 160px;
	}
}

@media (max-width: 480px) {
	.peptix-shop.is-list .peptix-product-grid-item .research-slide-block {
		gap: 12px;
	}

	.peptix-shop.is-list .peptix-product-grid-item .research-image {
		flex-basis: 110px;
		max-width: 110px;
	}
}

/* ---------- Shop Layout (Elementor design) ---------- */

.peptix-shop-layout {
	display: block;
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
	.peptix-woo__container {
		padding: 32px 20px 60px;
	}

	.peptix-shop .woocommerce-result-count,
	.peptix-woo .woocommerce-result-count,
	.peptix-shop .woocommerce-ordering,
	.peptix-woo .woocommerce-ordering {
		float: none;
		margin-bottom: 16px;
	}

	.peptix-shop .woocommerce-ordering select,
	.peptix-woo .woocommerce-ordering select {
		width: 100%;
	}

	.peptix-woo div.product .product_title {
		font-size: 30px;
	}
}
