/* Min Pet Shop — product page and shop / category pages (markup: inc/shop.php,
 * woocommerce/archive-product.php, woocommerce/single-product/layouts/product-mps.php).
 * Values follow the reference's product_style / collection / breadcrumb_style CSS.
 * Breakpoints of the reference: 1199 / 991 / 767. */

/* ---------- 1. Breadcrumb bar ---------- */
.mps-bread-crumb { background: #eee; margin-bottom: 50px; }
.mps-bread-crumb .container { padding-left: 15px; padding-right: 15px; }
.mps-bread-crumb .breadcrumb { margin: 0; padding: 15px 0; list-style: none; font-size: 16px; line-height: 24px; width: 100%; }
.mps-bread-crumb .breadcrumb li { display: inline; margin: 0; }
.mps-bread-crumb .breadcrumb li > a { color: #000; }
.mps-bread-crumb .breadcrumb li > a:hover, .mps-bread-crumb .breadcrumb li strong { color: var(--mainColor); }
.mps-bread-crumb .breadcrumb li strong { font-weight: 700; }
.mps-bread-crumb .breadcrumb li span { display: inline; word-break: break-word; }
.mps-bread-crumb .breadcrumb .mr_lr { padding: 0 8px; color: #000; }
.mps-bread-crumb .breadcrumb .mr_lr svg { width: 10px; height: 10px; margin-top: -2px; vertical-align: middle; }

/* ---------- 2. Product page: layout + gallery ---------- */
.mps-product .product-main { padding: 0; }
.mps-product .mps-product-row > .col { padding-bottom: 0; }
.mps-product .product-gallery .product-images { margin-bottom: 0; }
.mps-product .product-gallery-slider .woocommerce-product-gallery__image > a,
.mps-product .product-gallery-slider .woocommerce-product-gallery__image--placeholder {
	display: block;
	position: relative;
	padding-bottom: 100%;
	height: 0;
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
}
.mps-product .product-gallery-slider .woocommerce-product-gallery__image img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	margin: 0;
}
.mps-product .product-images .image-tools,
.mps-product .product-images .badge-container { display: none; }
.mps-product .product-gallery-slider .flickity-prev-next-button { display: none; }
.mps-product .product-thumbnails { margin: 20px -5px 0 !important; padding: 0 !important; width: auto !important; }
.mps-product .product-thumbnails .col { padding: 0 5px !important; }
.mps-product .product-thumbnails a {
	display: block;
	position: relative;
	padding-bottom: 100%;
	height: 0;
	overflow: hidden;
	border: 1px solid #eee;
	border-radius: 10px;
	background: #fff;
	transform: none !important;
}
.mps-product .product-thumbnails img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	opacity: 1 !important;
	margin: 0 !important;
	transform: none !important;
}
.mps-product .product-thumbnails .is-nav-selected a, .mps-product .product-thumbnails a:hover { border-color: var(--mainColor); }
@media (min-width: 992px) {
	.mps-product .product-image-block, .mps-product .details-pro { position: sticky; top: 140px; }
}
@media (max-width: 991px) {
	.mps-product .mps-product-row > .col { flex-basis: 100%; max-width: 100%; }
	.mps-product .product-image-block { margin-bottom: 20px; }
}

/* ---------- 3. Product page: details column ---------- */
.mps-product .details-pro { font-size: 14px; line-height: 1.5; color: #000; }
.mps-product .title-product { font-size: 30px; font-weight: 700; margin: 0 0 5px; line-height: 1.2; color: #000; text-transform: none; letter-spacing: 0; }
@media (max-width: 991px) {
	.mps-product .title-product { font-size: 20px; }
}
.mps-product .inventory_quantity { font-size: 16px; margin-bottom: 20px; }
.mps-product .inventory_quantity .thump-break { display: flex; gap: 10px; flex-wrap: wrap; }
.mps-product .inventory_quantity .mb-break { position: relative; display: inline-block; }
.mps-product .inventory_quantity .a-vendor { color: var(--mainColor); font-weight: 500; }
@media (max-width: 767px) {
	.mps-product .inventory_quantity .mb-break { font-size: 14px; }
}
.mps-product .details-pro > .price-box { margin-bottom: 20px; }
.mps-product .price-box .special-price { font-size: 30px; font-weight: 700; color: var(--price); display: inline-block; line-height: 30px; margin-right: 5px; }
.mps-product .price-box .special-price .amount { color: var(--price); font-weight: 700; }
.mps-product .details-pro > .price-box .price { font-size: inherit; line-height: inherit; font-weight: inherit; margin: 0; }
.mps-product .price-box .old-price { color: #545454; font-size: 16px; display: inline-block; }
.mps-product .price-box .old-price del, .mps-product .price-box .old-price .amount { color: #545454; text-decoration: line-through; font-weight: 400; opacity: 1; }
.mps-product .price-box .old-price[hidden] { display: none; }

/* Khuyến mãi đặc biệt */
.mps-product .khuyen-mai-pro { margin: 30px 0 20px; padding: 30px 10px 10px; border: 1px solid #bdbdbd; border-radius: 15px; position: relative; }
.mps-product .khuyen-mai-pro .title { position: absolute; top: -10px; left: -7px; background: var(--price); color: #fff; padding: 4px 10px; display: flex; align-items: center; border-radius: 5px 5px 5px 0; font-size: 16px; font-weight: 700; line-height: 1.5; }
.mps-product .khuyen-mai-pro .title svg { width: 22px; height: 22px; margin-right: 5px; color: var(--price); }
.mps-product .khuyen-mai-pro .title::after { content: ""; position: absolute; top: 100%; left: 0; border: 0 solid transparent; border-top-width: 4px; border-left-width: 6px; border-top-color: color-mix(in srgb, var(--price) 70%, transparent); }
.mps-product .khuyen-mai-pro ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.mps-product .khuyen-mai-pro li { display: flex; align-items: center; margin: 0; }
.mps-product .khuyen-mai-pro li svg { min-width: 24px; width: 24px; height: 24px; margin-right: 5px; color: var(--mainColor); }
@media (max-width: 1199px) {
	.mps-product .khuyen-mai-pro ul { grid-template-columns: minmax(0, 1fr); }
}

/* Coupon chips */
.mps-product .voucher-product { margin-bottom: 15px; position: relative; }
.mps-product .voucher-product .title { margin-bottom: 10px; font-weight: 700; }
.mps-product .voucher-product .voucher-thumb { overflow: hidden; position: relative; }
.mps-product .voucher-product .voucher {
	display: inline-block;
	overflow: hidden;
	margin: 0 5px 0 0;
	padding: 0;
	min-height: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	line-height: inherit;
	letter-spacing: 0;
	text-transform: none;
	vertical-align: top;
	cursor: pointer;
}
.mps-product .voucher-product .voucher span { position: relative; display: inline-block; padding: 3px 12px; border-radius: 5px; background: var(--price); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.mps-product .voucher-product .voucher span::before, .mps-product .voucher-product .voucher span::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 1px solid var(--price); transform: translateY(-50%); z-index: 1; }
.mps-product .voucher-product .voucher span::before { left: -5px; }
.mps-product .voucher-product .voucher span::after { right: -5px; }

/* Notice line */
.mps-product .product-notice { position: relative; padding-left: 22px; margin-bottom: 15px; }
.mps-product .product-notice svg { position: absolute; left: 0; top: 0; width: 24px; height: 24px; }
.mps-product .product-notice svg path { fill: var(--mainColor); }
.mps-product .product-notice .number { font-weight: 700; color: var(--mainColor); }

/* Quantity + Thêm vào giỏ + Mua ngay */
.mps-product form.cart { margin: 0 0 20px; width: 100%; }
.mps-product form.cart:not(.variations_form), .mps-product .woocommerce-variation-add-to-cart { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px; width: 100%; }
.mps-product form.cart .ux-quantity {
	display: inline-flex;
	align-items: center;
	flex: none;
	margin: 0;
	padding: 2px;
	border: 1px solid var(--mainColor);
	border-radius: 20px;
	background: transparent;
	align-self: center;
	opacity: 1;
}
.mps-product form.cart .ux-quantity .ux-quantity__button {
	width: 35px;
	height: 35px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 20px;
	color: transparent;
	font-size: 0;
	line-height: 35px;
	background: var(--mainColor) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 6L8 12L14 18'/%3E%3C/svg%3E") center / 20px no-repeat;
	box-shadow: none;
	cursor: pointer;
}
.mps-product form.cart .ux-quantity .ux-quantity__button--plus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 6L16 12L10 18'/%3E%3C/svg%3E"); }
.mps-product form.cart .ux-quantity .ux-quantity__button:hover { background-color: var(--hover); }
.mps-product form.cart .ux-quantity .qty {
	width: 60px;
	max-width: 60px;
	height: 35px;
	min-height: 0;
	margin: 0;
	padding: 0 2px;
	border: 0;
	border-radius: 20px;
	box-shadow: none;
	background: transparent;
	font-size: 15px;
	text-align: center;
	-moz-appearance: textfield;
}
.mps-product form.cart .ux-quantity .qty::-webkit-outer-spin-button, .mps-product form.cart .ux-quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mps-product form.cart .single_add_to_cart_button, .mps-product form.cart .mps-buy-now {
	flex: 1 1 0;
	min-width: 0;
	height: 54px;
	min-height: 0;
	margin: 0;
	padding: 0 5px;
	border-radius: 25px;
	font-size: 18px;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: none;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mps-product form.cart .single_add_to_cart_button { border: 0; background: var(--mainColor); color: #fff; font-weight: 400; }
.mps-product form.cart .single_add_to_cart_button:hover { background: var(--hover); color: #fff; }
.mps-product form.cart .single_add_to_cart_button.disabled { opacity: .6; }
.mps-product form.cart .mps-buy-now { border: 1px solid var(--mainColor); background: #fff; color: var(--mainColor); font-weight: 600; }
.mps-product form.cart .mps-buy-now:hover { background: var(--hover); border-color: var(--hover); color: #fff; }
@media (max-width: 767px) {
	.mps-product form.cart:not(.variations_form), .mps-product .woocommerce-variation-add-to-cart { flex-direction: column; }
	.mps-product form.cart .ux-quantity { align-self: flex-start; }
	.mps-product form.cart .single_add_to_cart_button, .mps-product form.cart .mps-buy-now { flex: none; width: 100%; }
}
/* Variable products: options table, the price is shown in the price box above */
.mps-product form.variations_form table.variations { display: block; margin: 0 0 10px; border: 0; }
.mps-product form.variations_form table.variations tbody, .mps-product form.variations_form table.variations tr { display: block; }
.mps-product form.variations_form table.variations tr { margin-bottom: 5px; }
.mps-product form.variations_form table.variations th, .mps-product form.variations_form table.variations td { display: block; padding: 0; border: 0; font-size: 14px; text-align: left; line-height: 1.5; }
.mps-product form.variations_form table.variations th.label { margin-bottom: 5px; }
.mps-product form.variations_form table.variations th.label label { font-weight: 600; margin: 0; font-size: 14px; color: #000; }
.mps-product form.variations_form table.variations select { margin: 0; border-radius: 5px; border: 1px solid #ddd; min-width: 180px; height: 40px; font-size: 14px; box-shadow: none; }
.mps-product form.variations_form table.variations select.mps-swatch-select { display: none; }
.mps-product .mps-swatch { display: flex; flex-wrap: wrap; gap: 5px; }
.mps-product .mps-swatch .swatch-element {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 5px 15px;
	min-height: 0;
	border: 1px solid #ddd;
	border-radius: 5px !important;
	overflow: hidden;
	background: #fff;
	color: #000;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
}
.mps-product .mps-swatch .swatch-element:hover, .mps-product .mps-swatch .swatch-element.active { border-color: var(--mainColor); }
.mps-product .mps-swatch .swatch-element.active::after { content: "✓"; position: absolute; top: 0; left: 0; width: 14px; height: 10px; padding: 0 0 0 3px; border-radius: 0 0 10px 0; background: var(--mainColor); color: #fff; font-size: 7px; line-height: 10px; }
.mps-product .mps-swatch .swatch-element:disabled { opacity: .4; cursor: not-allowed; }
.mps-product form.variations_form .reset_variations { display: none !important; }
.mps-product .woocommerce-variation-price, .mps-product .woocommerce-variation-availability { display: none; }
.mps-product .single_variation_wrap .woocommerce-variation { margin: 0; }

/* Service badges */
.mps-product .cam-ket { margin: 20px 0; padding: 20px; border-radius: 20px; background: var(--bg); }
.mps-product .cam-ket ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.mps-product .cam-ket li { display: flex; align-items: center; margin: 0; padding: 5px 10px; border-radius: 10px; background: #fff; font-size: 16px; line-height: 1.5; }
.mps-product .cam-ket li .icon { flex: none; display: flex; }
.mps-product .cam-ket li img { max-width: 20px; height: auto; margin-right: 10px; }
@media (max-width: 1199px) {
	.mps-product .cam-ket ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.mps-product .cam-ket ul { grid-template-columns: minmax(0, 1fr); }
}

/* Sản phẩm đã xem */
.mps-product .recently-viewed h3 { color: var(--mainColor); font-size: 24px; font-weight: 700; margin: 0 0 10px; line-height: 1.2; }
.mps-product #viewed-products > p { margin: 0; }
.mps-product .viewed-list { max-height: 206px; overflow-y: auto; padding-right: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mps-product .viewed-list:empty { display: none; }
.mps-product .viewed-list::-webkit-scrollbar { width: 5px; background-color: var(--mainColor); }
.mps-product .viewed-list::-webkit-scrollbar-thumb { border-radius: 5px; background-color: var(--mainColor); }
.mps-product .viewed-list::-webkit-scrollbar-track { border-radius: 5px; background-color: #f5f5f5; }
.mps-product .viewed-item { display: flex; align-items: center; padding: 10px; border-radius: 10px; background: var(--bg); }
.mps-product .viewed-item .image { width: 80px; flex: none; }
.mps-product .viewed-item .image a { position: relative; display: block; padding-bottom: 100%; overflow: hidden; }
.mps-product .viewed-item .image img { position: absolute; inset: 0; margin: auto; width: auto; max-width: 100%; max-height: 100%; }
.mps-product .viewed-item .info { width: calc(100% - 70px); padding-left: 20px; }
.mps-product .viewed-item .info a { font-size: 16px; color: #000; }
.mps-product .viewed-item .info .price { display: block; color: var(--price); font-weight: 700; }
.mps-product .viewed-item .info .compare-price { color: #999; font-size: 12px; text-decoration: line-through; }
@media (max-width: 767px) {
	.mps-product .viewed-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 4. Product page: tabs ---------- */
.mps-product .product-footer .woocommerce-tabs { margin: 50px 0; padding: 0; max-width: none; border: 0; }
.mps-product .product-footer .woocommerce-tabs > .product-tabs {
	display: inline-flex;
	flex-wrap: nowrap;
	gap: 10px;
	margin: 0;
	padding: 10px;
	border: 0;
	border-radius: 10px 10px 0 0;
	background-color: color-mix(in srgb, var(--mainColor) 5%, transparent);
	text-transform: none;
	letter-spacing: 0;
	max-width: 100%;
	overflow-x: auto;
}
.mps-product .product-footer .product-tabs::before, .mps-product .product-footer .product-tabs > li::before, .mps-product .product-footer .product-tabs > li > a::before { display: none !important; }
.mps-product .product-footer .product-tabs > li { display: block !important; width: auto !important; margin: 0; flex: 0 0 auto; border: 0 !important; }
.mps-product .product-footer .product-tabs > li > a {
	display: block;
	padding: 5px 10px;
	margin: 0;
	border-bottom: 2px solid transparent;
	color: #000;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
}
.mps-product .product-footer .product-tabs > li.active > a, .mps-product .product-footer .product-tabs > li > a:hover { border-bottom-color: var(--hover); color: var(--hover); }
.mps-product .product-footer .woocommerce-tabs .tab-panels { padding: 0; }
.mps-product .product-footer .woocommerce-tabs .panel { padding: 20px; border: 1px solid #eee; border-radius: 0 10px 10px 10px; font-size: 16px; }
.mps-product .product-footer .woocommerce-tabs .panel:not(.active) { display: none; }
.mps-product .product-footer .woocommerce-tabs .panel p { margin-bottom: 10px; }
.mps-product .product-footer .woocommerce-tabs .panel > :last-child { margin-bottom: 0; }
@media (max-width: 991px) {
	.mps-product .product-footer .woocommerce-tabs { margin: 30px 0; }
}

/* ---------- 5. Product page: related + same price range ---------- */
.mps-product .product-footer .related-products-wrapper { margin: 0 0 50px; padding: 0; border: 0; }
.mps-product .product-footer .product-section { border-top: 0; }
.mps-product .product-footer .product-section-title {
	margin: 0 0 20px;
	padding: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--mainColor);
	text-transform: none;
	letter-spacing: 0;
	max-width: none;
}
.mps-product .product-footer .related-products-wrapper .row { margin-left: -10px; margin-right: -10px; }
.mps-product .product-footer .related-products-wrapper .product-small.col { padding: 0 10px; margin-bottom: 0; }
.mps-product .product-footer .related-products-wrapper .flickity-prev-next-button {
	top: 50% !important;
	bottom: auto !important;
	width: 40px !important;
	height: 40px !important;
	padding: 10px;
	margin: 0;
	border-radius: 50%;
	background: var(--mainColor) !important;
	color: #fff;
	opacity: 1 !important;
	box-shadow: none !important;
	transform: translateY(-50%) !important;
}
.mps-product .product-footer .related-products-wrapper .flickity-prev-next-button svg { fill: #fff; color: #fff; border: 0 !important; position: static; width: 100%; height: 100%; padding: 0; }
.mps-product .product-footer .related-products-wrapper .flickity-prev-next-button:disabled { display: none; }
.mps-product .product-footer .related-products-wrapper .flickity-prev-next-button:hover { background: var(--hover) !important; }
.mps-product .product-footer .related-products-wrapper .flickity-prev-next-button.next { right: 3px !important; left: auto !important; }
.mps-product .product-footer .related-products-wrapper .flickity-prev-next-button.previous { left: 3px !important; right: auto !important; }
@media (max-width: 991px) {
	.mps-product .product-footer .related-products-wrapper { margin-bottom: 30px; }
}
@media (max-width: 767px) {
	.mps-product .product-footer .product-section-title { font-size: 20px; margin-bottom: 15px; }
	.mps-product .product-footer .related-products-wrapper .row { margin-left: -5px; margin-right: -5px; }
	.mps-product .product-footer .related-products-wrapper .product-small.col { padding: 0 5px; }
}

/* ---------- 6. Coupon list popup ---------- */
.mps-voucher-overlay { position: fixed; inset: 0; z-index: 99998; background: rgba(0, 0, 0, .5); }
.mps-voucher-overlay[hidden], .voucher-popup[hidden] { display: none; }
.voucher-popup {
	position: fixed;
	left: 50%;
	top: 10%;
	z-index: 99999;
	width: 500px;
	max-width: 98%;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	transform: translateX(-50%);
	opacity: 0;
	transition: opacity .3s;
	color: #000;
	font-size: 14px;
}
.voucher-popup.active { opacity: 1; }
.voucher-popup .title { position: relative; display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 5px 10px; background: var(--mainColor); color: #fff; font-size: 18px; font-weight: 700; line-height: 1.5; }
.voucher-popup .close-popup { margin: 0; padding: 4px; min-height: 0; border: 0; background: none; color: #fff; line-height: 1; box-shadow: none; cursor: pointer; }
.voucher-popup .content { max-height: 500px; overflow-y: auto; padding: 25px; }
.voucher-popup .content::-webkit-scrollbar { width: 3px; }
.voucher-popup .content::-webkit-scrollbar-thumb { background-color: var(--mainColor); }
.voucher-popup .coupon_item { position: relative; display: flex; min-height: 120px; margin-bottom: 20px; padding-left: 3px; border: 1px solid #f3f3f3; border-radius: 0 10px 10px 0; background: #fff; box-shadow: 6px 6px 0 0 rgba(0, 0, 0, .04); color: var(--mainColor); }
.voucher-popup .coupon_item:last-child { margin-bottom: 0; }
.voucher-popup .coupon_item::before { content: ""; position: absolute; top: 0; left: -3px; width: 10px; height: 100%; background: repeating-linear-gradient(#efefef, #efefef 5px, transparent 0, transparent 9px, #efefef 0, #efefef 10px) 0 / 1px 100% no-repeat, radial-gradient(circle at 0 7px, transparent, transparent 2px, #efefef 0, #efefef 3px, currentColor 0) 1px 0 / 100% 10px repeat-y; }
.voucher-popup .coupon_body { display: flex; flex-direction: column; justify-content: space-between; width: 100%; padding: 8px 8px 8px 17px; color: #000; }
.voucher-popup .coupon_head { margin-bottom: 5px; font-size: 13px; }
.voucher-popup .coupon_code { font-size: 18px; }
.voucher-popup .coupon_code b { font-weight: 600; color: var(--hover); }
.voucher-popup .coupon_date { font-size: 14px; color: #898989; font-weight: 500; }
.voucher-popup .coupon_button { display: flex; justify-content: flex-end; align-items: center; }
.voucher-popup .coupon-code { margin: 0; padding: 5px 20px; min-height: 0; border: 0; border-radius: 20px; background: var(--mainColor); color: #fff; font-size: 14px; line-height: 1.5; text-transform: none; letter-spacing: 0; box-shadow: none; cursor: pointer; }
.voucher-popup .coupon-code:hover, .voucher-popup .coupon-code.iscopied { background: var(--hover); }
@media (max-width: 767px) {
	.voucher-popup { top: 20px; width: 98%; }
}

/* ---------- 7. Shop / category: header content (banners, categories, featured products) ---------- */
#content.mps-shop-top > .section { margin-bottom: 40px; }
#content.mps-shop-top > .section.section_product_shop { margin-bottom: 50px; }
#content.mps-shop-top .banner-col-row { --per: 3; --gap: 20px; }
#content.mps-shop-top .banner-col-row .img, #content.mps-shop-top .banner-col-row .img-inner { border-radius: 10px; overflow: hidden; }
#content.mps-shop-top .banner-col-row img { width: 100%; height: auto; display: block; }
#content.mps-shop-top .section_product_shop .thumb-pro > .col-inner { padding: 20px; border-radius: 10px; box-shadow: 0 0 5px 0 var(--mainColor); }
#content.mps-shop-top .section_product_shop .thumb-pro .title-index { margin-bottom: 20px; }
@media (max-width: 1199px) {
	#content.mps-shop-top .banner-col-row { --per: 3; }
}
@media (max-width: 767px) {
	#content.mps-shop-top .banner-col-row { --per: 1; }
	#content.mps-shop-top .section_product_shop .thumb-pro > .col-inner { padding: 20px 15px; }
}

/* ---------- 8. Shop / category: filter box + product grid ---------- */
.mps-collection .mps-collection-row > .col { padding-bottom: 0; }
.mps-collection .sidebar-collection { padding: 20px; border-radius: 10px; box-shadow: 0 0 5px 0 var(--mainColor); background: #fff; }
.mps-collection .aside-filter { display: block; width: 100%; }
.mps-collection .aside-item { position: relative; width: 100%; margin-bottom: 15px; font-size: 16px; line-height: 1.5; }
.mps-collection .aside-item:last-child { margin-bottom: 0; }
.mps-collection .aside-item .title-head { display: block; position: relative; padding: 0 0 5px; color: var(--mainColor); font-size: 20px; font-weight: 700; line-height: 1.2; }
.mps-collection .aside-item .aside-content { position: relative; width: 100%; max-height: 200px; overflow-y: auto; padding: 0; }
.mps-collection .aside-item .aside-content::-webkit-scrollbar { width: 3px; }
.mps-collection .aside-item .aside-content::-webkit-scrollbar-thumb { background-color: var(--mainColor); }
.mps-collection .aside-item ul { margin: 0; padding: 0; list-style: none; }
.mps-collection .aside-item li { display: flex; align-items: center; margin: 5px 0; }
.mps-collection .aside-item input[type="checkbox"] { width: 15px; height: 15px; margin: 0 5px 0 0; flex: none; position: relative; }
.mps-collection .aside-item label { display: inline; margin: 0; font-size: 16px; font-weight: 400; color: #000; cursor: pointer; }
.mps-collection .aside-item label:hover { color: var(--mainColor); }
.mps-collection .mps-open-filters, .mps-collection .mps-filter-overlay { display: none; }

/* Sort pills */
.mps-collection .sort-cate-left { display: flex; align-items: center; margin-bottom: 20px; }
.mps-collection .sort-cate-left h3 { display: flex; align-items: center; gap: 3px; flex: none; margin: 2px 0 0; color: #000; font-size: 14px; font-weight: 500; line-height: 1.2; }
.mps-collection .sort-cate-left h3 svg { width: 20px; height: 20px; color: #000; }
.mps-collection .sort-cate-left ul { display: flex; margin: 0; padding: 0; list-style: none; }
.mps-collection .sort-cate-left li { margin: 0 0 0 10px; }
.mps-collection .sort-cate-left li span { display: block; padding: 5px 10px; border: 1px solid #eee; border-radius: 5px; color: #000; font-size: 14px; line-height: 1.5; cursor: pointer; }
.mps-collection .sort-cate-left li.active span, .mps-collection .sort-cate-left li:hover span { background: var(--hover); border-color: var(--hover); color: #fff; }
@media (max-width: 1199px) and (min-width: 767px) {
	.mps-collection .sort-cate-left li span { padding: 5px; }
}
@media (max-width: 767px) {
	.mps-collection .sort-cate-left h3 { min-width: 90px; }
	.mps-collection .sort-cate-left ul { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
	.mps-collection .sort-cate-left li { flex: 0 0 auto; white-space: nowrap; }
}

/* Product grid (cards: inc/woocommerce.php + site.css) */
.mps-collection .shop-container .products.row { margin-left: -10px; margin-right: -10px; width: auto; }
.mps-collection .shop-container .products.row > .product-small { padding: 0 10px; margin-bottom: 20px; }
.mps-collection .shop-container { margin-bottom: 50px; }
@media (max-width: 500px) {
	.mps-collection .shop-container .products.row { margin-left: -5px; margin-right: -5px; }
	.mps-collection .shop-container .products.row > .product-small { padding: 0 5px; margin-bottom: 10px; }
}

/* Pagination */
.mps-collection .woocommerce-pagination { margin-top: 15px; }
.mps-collection .woocommerce-pagination .container { padding: 0; }
.mps-collection .woocommerce-pagination ul { display: flex; justify-content: center; align-items: center; gap: 5px; margin: 0; padding: 0; }
.mps-collection .woocommerce-pagination li { margin: 0; }
.mps-collection .woocommerce-pagination .page-number { display: block; min-width: 35px; height: 35px; padding: 0 5px; border: 1px solid #eee; border-radius: 8px; background: transparent; color: #000; font-size: 14px; font-weight: 400; line-height: 33px; text-align: center; }
.mps-collection .woocommerce-pagination .page-number:hover, .mps-collection .woocommerce-pagination .page-number.current { border-color: var(--mainColor); background: var(--mainColor); color: #fff; font-weight: 700; }

/* Tablet + phone: the filter box slides in from the right */
@media (max-width: 991px) {
	.mps-collection .mps-collection-row > .mps-collection-aside { flex: 0 0 0; max-width: 0; padding: 0; }
	.mps-collection .mps-collection-row > .mps-collection-main { flex-basis: 100%; max-width: 100%; }
	.mps-collection .sidebar-collection {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 9999;
		width: 80%;
		padding: 10px 15px 0;
		border-radius: 0;
		box-shadow: none;
		overflow-y: auto;
		visibility: hidden;
		transform: translateX(100%);
		transition: all .35s ease;
	}
	.mps-collection .openf .sidebar-collection { visibility: visible; transform: translateX(0); }
	.mps-collection .mps-open-filters {
		display: block;
		position: fixed;
		right: 0;
		top: 35%;
		z-index: 99;
		width: 43px;
		height: 40px;
		margin: 0;
		padding: 0;
		min-height: 0;
		border: 0;
		border-radius: 5px 0 0 5px !important;
		background: var(--mainColor) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M3 4h18l-7 8.5V19l-4 2v-8.5z'/%3E%3C/svg%3E") center / 15px no-repeat;
		box-shadow: 1px 3px 6px #888;
		transition: all .35s ease;
		cursor: pointer;
	}
	.mps-collection .openf .mps-open-filters { right: 80%; z-index: 10000; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
	.mps-collection .openf .mps-filter-overlay { display: block; position: fixed; inset: 0; z-index: 9998; background: rgba(0, 0, 0, .8); }
}
@media (max-width: 991px) and (min-width: 767px) {
	.mps-collection .sidebar-collection { width: 400px; }
	.mps-collection .openf .mps-open-filters { right: 400px; }
}

/* Search results (reference /search?q=…): full-width grid 6 / 3 / 2 columns, no filter box. */
.mps-search .mps-collection-row > .mps-collection-main { flex-basis: 100%; max-width: 100%; }
@media (min-width: 550px) and (max-width: 849px) {
	.mps-search .products > .col { flex-basis: 33.3333%; max-width: 33.3333%; }
}
