/**
 * Dentaluck Modern Shop & Product Catalog Stylesheet
 * 
 * Medical-grade, high-end e-commerce layout for dental equipment & supplies.
 * Features left-hand filter sidebar, 100% equal-height product cards,
 * border-radius <= 8px, and fully responsive grid.
 * 
 * @package Dentaluck
 * @version 1.4.0
 */

/* ==========================================================================
   1. General Shop Layout
   ========================================================================== */
.dentaluck-shop-page-wrap {
	background-color: #f8fafc;
	min-height: calc(100vh - 350px);
	padding: 24px 0 60px 0;
}

.dentaluck-shop-page-wrap .container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

.dentaluck-shop-grid-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	width: 100%;
	box-sizing: border-box;
}

/* ==========================================================================
   2. Left Sidebar - Filter Card
   ========================================================================== */
.dentaluck-shop-sidebar {
	width: 100%;
	box-sizing: border-box;
	position: sticky !important;
	top: 76px !important;
	align-self: start !important;
	z-index: 20;
}

.dentaluck-filter-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
	padding: 18px;
	box-sizing: border-box;
	max-height: calc(100vh - 96px);
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 #f8fafc;
}

.dentaluck-filter-card::-webkit-scrollbar {
	width: 5px;
}

.dentaluck-filter-card::-webkit-scrollbar-track {
	background: #f8fafc;
	border-radius: 4px;
}

.dentaluck-filter-card::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

/* Filter Card Header */
.filter-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 14px;
	border-bottom: 1px solid #e2e8f0;
	margin-bottom: 18px;
}

.filter-header-title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.filter-header-title h3 {
	font-size: 14px;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.btn-clear-all-filters {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 700;
	color: #ef4444;
	text-decoration: none;
	background: #fee2e2;
	padding: 3px 8px;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.btn-clear-all-filters:hover {
	background: #ef4444;
	color: #ffffff;
}

/* Các tiêu chí lọc vị trí ngay dưới text Bộ lọc tìm kiếm */
.filter-sidebar-active-chips {
	margin-bottom: 16px;
}

.filter-sidebar-active-chips:empty {
	display: none;
}

.filter-sidebar-active-chips .shop-active-filters-bar {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-shadow: none;
}

.active-filters-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.filter-sidebar-active-chips .active-filters-label {
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
	margin: 0;
}

.btn-clear-all-chips,
.filter-sidebar-active-chips .btn-clear-all-chips {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fee2e2;
	color: #ef4444;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
	border: none;
	padding: 0;
	flex-shrink: 0;
}

.btn-clear-all-chips:hover,
.filter-sidebar-active-chips .btn-clear-all-chips:hover {
	background: #ef4444;
	color: #ffffff;
	transform: scale(1.1);
}

.filter-sidebar-active-chips .active-filters-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.filter-sidebar-active-chips .active-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	padding: 4px 8px;
	font-size: 11.5px;
	font-weight: 600;
	color: #0066cc;
	cursor: pointer;
	transition: all 0.15s ease;
}

.filter-sidebar-active-chips .active-filter-chip:hover {
	background: #dbeafe;
	border-color: #93c5fd;
}

.filter-sidebar-active-chips .active-filter-chip svg {
	width: 10px;
	height: 10px;
	color: #64748b;
}

.filter-sidebar-active-chips .btn-clear-all-chips {
	display: inline-flex;
	align-items: center;
	font-size: 11.5px;
	font-weight: 700;
	color: #dc2626;
	background: #fee2e2;
	padding: 3px 8px;
	border-radius: 4px;
	text-decoration: none;
	margin-top: 4px;
	width: fit-content;
}

/* Ẩn hoàn toàn thanh Clear All / woof_products_top_panel dư thừa của plugin */
.woof_products_top_panel,
.woof_products_top_panel_ul,
.woof_products_top_panel_content {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

/* Filter Groups */
.filter-group {
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #f1f5f9;
}

.filter-group:last-of-type {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.filter-group-header {
	margin-bottom: 12px;
}

.filter-group-header h4 {
	font-size: 13.5px;
	font-weight: 700;
	color: #1e293b;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
}

.filter-group-header h4 svg {
	color: #0284c7;
	flex-shrink: 0;
}

/* Category Filter List */
.filter-categories-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 240px;
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
}

.filter-cat-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 7px 10px;
	border-radius: 6px;
	font-size: 13px;
	color: #475569;
	cursor: pointer;
	transition: all 0.15s ease;
	position: relative;
	user-select: none;
}

.filter-cat-item:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.filter-cat-item.active {
	background: #e0f2fe;
	color: #0284c7;
	font-weight: 700;
}

.filter-cat-radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.cat-label {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 6px;
}

.cat-count {
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	background: #f1f5f9;
	padding: 1px 6px;
	border-radius: 4px;
	flex-shrink: 0;
}

.filter-cat-item.active .cat-count {
	background: #bae6fd;
	color: #0369a1;
}

/* Price Filter Presets */
.quick-price-presets {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 12px;
}

.quick-price-btn {
	text-align: left;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 7px 10px;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	cursor: pointer;
	transition: all 0.15s ease;
	width: 100%;
}

.quick-price-btn:hover {
	border-color: #cbd5e1;
	background: #f1f5f9;
	color: #0f172a;
}

.quick-price-btn.active {
	background: #0284c7;
	color: #ffffff;
	border-color: #0284c7;
	box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

/* Custom Price Inputs */
.custom-price-inputs {
	display: flex;
	align-items: center;
	gap: 6px;
}

.price-input-wrapper {
	flex: 1;
	min-width: 0;
}

.price-field {
	width: 100%;
	height: 34px;
	padding: 0 8px;
	font-size: 12px;
	font-weight: 600;
	color: #0f172a;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #ffffff;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
	-moz-appearance: textfield;
}

.price-field::-webkit-outer-spin-button,
.price-field::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.price-field:focus {
	border-color: #0284c7;
	box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.price-separator {
	color: #94a3b8;
	font-weight: 600;
}

.btn-apply-price {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0284c7;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.2s ease;
}

.btn-apply-price:hover {
	background: #0369a1;
}

/* Brand Filter List */
/* Filter Quick Search Box (for Brands & Origins) */
.filter-search-box {
	position: relative;
	margin-bottom: 10px;
}

.filter-search-box svg {
	position: absolute;
	left: 9px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}

.filter-search-input {
	width: 100%;
	height: 32px;
	padding: 0 8px 0 28px;
	font-size: 12px;
	color: #0f172a;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	outline: none;
	box-sizing: border-box;
	transition: all 0.2s ease;
}

.filter-search-input:focus {
	background: #ffffff;
	border-color: #0284c7;
	box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12);
}

/* Brand & Origin Filter Lists */
.filter-brands-list,
.filter-origins-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 220px;
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 #f8fafc;
}

.filter-brands-list::-webkit-scrollbar,
.filter-origins-list::-webkit-scrollbar {
	width: 4px;
}

.filter-brands-list::-webkit-scrollbar-thumb,
.filter-origins-list::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

/* Generic Checkbox Item (Brand, Origin, Status) */
.filter-checkbox-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 8px;
	border-radius: 6px;
	font-size: 12.5px;
	color: #475569;
	cursor: pointer;
	transition: all 0.15s ease;
	user-select: none;
	position: relative;
}

.filter-checkbox-item:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.filter-checkbox-item.checked {
	color: #0284c7;
	font-weight: 700;
	background: #f0f9ff;
}

.custom-checkbox-input {
	margin-right: 8px;
	accent-color: #0284c7;
	width: 15px;
	height: 15px;
	cursor: pointer;
	flex-shrink: 0;
}

.item-label {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 6px;
	line-height: 1.3;
}

.item-count {
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	background: #f1f5f9;
	padding: 1px 6px;
	border-radius: 4px;
	flex-shrink: 0;
}

.filter-checkbox-item.checked .item-count {
	background: #bae6fd;
	color: #0369a1;
}

/* Status & Promotions Group */
.filter-status-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.filter-status-item {
	padding: 7px 8px;
}

/* Active Filter Chips Bar (Above Product Grid) */
.shop-active-filters-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 20px;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.active-filters-label {
	font-size: 12.5px;
	font-weight: 700;
	color: #64748b;
	margin-right: 4px;
}

.active-filters-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.active-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 6px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	color: #0369a1;
	cursor: pointer;
	transition: all 0.15s ease;
	line-height: 1;
}

.active-filter-chip:hover {
	background: #e0f2fe;
	border-color: #7dd3fc;
	color: #0284c7;
}

.active-filter-chip svg {
	color: #0284c7;
	transition: transform 0.15s ease;
}

.active-filter-chip:hover svg {
	transform: scale(1.15);
	color: #ef4444;
}

.btn-clear-all-chips {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 700;
	color: #ef4444;
	text-decoration: underline;
	margin-left: 6px;
	cursor: pointer;
	transition: color 0.15s ease;
}

.btn-clear-all-chips:hover {
	color: #b91c1c;
}

.filter-actions-mobile {
	display: none;
}

/* ==========================================================================
   3. Right Main Content Area & Top Toolbar
   ========================================================================== */
.dentaluck-shop-main {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.shop-top-toolbar {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 10px 18px;
	margin-bottom: 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.02);
}

.shop-toolbar-heading {
	display: flex;
	align-items: center;
	margin: 0;
}

.shop-page-title {
	font-size: 16px;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
	line-height: 1.2;
}

.shop-toolbar-controls {
	display: flex;
	align-items: center;
	gap: 10px;
}

.btn-toggle-filter-mobile {
	display: none;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 12px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 700;
	color: #334155;
	cursor: pointer;
}

.btn-toggle-filter-mobile:hover {
	border-color: #0066cc;
	color: #0066cc;
}

/* Sorting Dropdown */
.shop-sort-select-wrap,
.woocommerce-ordering {
	margin: 0 !important;
	float: none !important;
}

.woocommerce-ordering select,
.shop-sort-select-wrap select {
	height: 34px;
	padding: 0 28px 0 12px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 8px center;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	outline: none;
	cursor: pointer;
	appearance: none;
	transition: border-color 0.2s ease;
}

.woocommerce-ordering select:focus,
.shop-sort-select-wrap select:focus {
	border-color: #0066cc;
	box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.12);
}

/* Hide duplicated elements in default woocommerce_before_shop_loop */
.shop-products-wrap > .woocommerce-result-count,
.shop-products-wrap > .woocommerce-ordering {
	display: none !important;
}
.shop-products-wrap .woocommerce-ordering {
	display: none !important;
}

/* ==========================================================================
   4. Products Grid & 100% Equal-Height Product Cards
   ========================================================================== */
.shop-products-wrap {
	width: 100%;
	box-sizing: border-box;
}

/* Product list container: 3 columns on desktop */
.dentaluck-shop-main ul.products,
.shop-products-wrap ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 20px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.dentaluck-shop-main ul.products::before,
.dentaluck-shop-main ul.products::after,
.shop-products-wrap ul.products::before,
.shop-products-wrap ul.products::after {
	display: none !important;
}

/* Each item li inside the grid */
.dentaluck-shop-main ul.products li.product,
.shop-products-wrap ul.products li.product,
.product-card-col {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	float: none !important;
	height: 100% !important;
	box-sizing: border-box !important;
}

/* The card itself: Uniform Height, Flexbox Alignment */
.dentaluck-product-card {
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
	height: 100% !important;
	width: 100% !important;
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px !important;
	padding: 0 !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	position: relative !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.dentaluck-product-card:hover {
	border-color: #e2e8f0 !important;
	transform: translateY(-4px) !important;
	box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.1) !important;
}

/* Discount Badge */
.product-discount-badge {
	position: absolute !important;
	top: 8px !important;
	left: 8px !important;
	background: #ef4444 !important;
	color: #ffffff !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	padding: 2px 7px !important;
	border-radius: 4px !important;
	z-index: 3 !important;
	box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25) !important;
}

/* Product Image Box (Aspect ratio 1/1 square, flush with card edges, no inner box/shadow) */
.product-image-wrap {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1 !important;
	max-height: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #ffffff !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	overflow: hidden !important;
	position: relative !important;
	box-sizing: border-box !important;
}

.product-thumb-link {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	text-decoration: none !important;
}

.product-card-img {
	max-height: none !important;
	max-width: 100% !important;
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: cover !important;
	object-position: center !important;
	background-color: #ffffff !important;
	display: block !important;
	margin: 0 auto !important;
	transition: transform 0.3s ease !important;
}

.dentaluck-product-card:hover .product-card-img {
	transform: scale(1.05) !important;
}

/* Card Body */
.product-card-body {
	display: flex !important;
	flex-direction: column !important;
	flex-grow: 1 !important;
	justify-content: space-between !important;
	padding: 12px 14px 14px !important;
	gap: 6px !important;
	width: 100% !important;
	background: #ffffff !important;
	box-sizing: border-box !important;
}

/* Brand Tag */
.product-brand-wrap,
.product-brand-tag,
.product-rating-row {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Product Title (Chuẩn 14px, đúng 2 dòng, dòng 3 cắt ..., không bị cắt chữ) */
.product-card-title {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #0F172A !important;
	line-height: 22px !important;
	margin: 0 0 6px !important;
	min-height: 44px !important;
	height: auto !important;
	max-height: none !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	word-break: break-word !important;
}

.product-card-title a {
	color: inherit !important;
	text-decoration: none !important;
	transition: color 0.2s ease !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	word-break: break-word !important;
	line-height: 22px !important;
	max-height: 100% !important;
}

.product-card-title a:hover {
	color: #0066CC !important;
}

/* Price Row */
.product-price-row {
	min-height: auto !important;
	height: auto !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: baseline !important;
	flex-wrap: wrap !important;
	gap: 6px !important;
	margin: 4px 0 8px !important;
	line-height: 1.2 !important;
}

.product-current-price,
.price-sale {
	font-size: 17px !important;
	font-weight: 800 !important;
	color: #0066CC !important;
	line-height: 22px !important;
	letter-spacing: -0.3px !important;
	text-decoration: none !important;
}

.product-current-price .woocommerce-Price-amount,
.price-sale .woocommerce-Price-amount {
	color: #0066CC !important;
	font-weight: 800 !important;
	font-size: 17px !important;
}

.product-old-price,
.price-regular {
	font-size: 12px !important;
	font-weight: 500 !important;
	color: #94A3B8 !important;
	text-decoration: line-through !important;
	height: auto !important;
	min-height: auto !important;
	line-height: 1.2 !important;
	display: inline-block !important;
	margin: 0 !important;
}

.product-old-price.price-spacer,
.price-regular.price-spacer,
.price-spacer {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.product-old-price .woocommerce-Price-amount,
.price-regular .woocommerce-Price-amount {
	color: #94A3B8 !important;
	font-weight: 500 !important;
	text-decoration: line-through !important;
}

/* Action Button Pinned to Bottom */
.product-action-row {
	margin-top: auto;
	padding-top: 0;
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
}

.dentaluck-product-card .btn-buy-now {
	flex: 1;
	background-color: #0066CC !important;
	color: #FFFFFF !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	height: 35px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 6px !important;
	text-align: center;
	text-decoration: none !important;
	transition: all 0.25s ease;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(0, 102, 204, 0.2);
	box-sizing: border-box;
	padding: 0 10px;
}

.dentaluck-product-card .btn-buy-now:hover {
	background-color: #0052A3 !important;
	box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
	transform: translateY(-1.5px);
	color: #FFFFFF !important;
}

.dentaluck-product-card .btn-cart-icon {
	width: 35px !important;
	height: 35px !important;
	min-width: 35px !important;
	flex: 0 0 35px !important;
	background-color: #EFF6FF !important;
	border: 1.5px solid #0066CC !important;
	border-radius: 6px !important;
	color: #0066CC !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	padding: 0 !important;
	margin: 0 !important;
	transition: all 0.25s ease !important;
	box-sizing: border-box !important;
	box-shadow: 0 1px 3px rgba(0, 102, 204, 0.1) !important;
}

.dentaluck-product-card .btn-cart-icon:hover {
	background-color: #0066CC !important;
	color: #FFFFFF !important;
	border-color: #0066CC !important;
	transform: translateY(-1.5px) !important;
	box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25) !important;
}

.dentaluck-product-card .btn-cart-icon::after,
.dentaluck-product-card .btn-cart-icon.added::after,
.btn-cart-icon::after,
.btn-cart-icon.added::after {
	display: none !important;
	content: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
}

/* ==========================================================================
   5. Pagination
   ========================================================================== */
/* ==========================================================================
   5. Pagination & Result Count Card (Góc phải dưới của card)
   ========================================================================== */
.woocommerce-pagination,
.woocommerce nav.woocommerce-pagination,
nav.woocommerce-pagination {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px !important;
	padding: 14px 22px !important;
	margin-top: 30px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-wrap: wrap !important;
	gap: 16px !important;
	box-sizing: border-box !important;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
	text-align: left !important;
}

.pagination-pages-wrap {
	display: flex !important;
	align-items: center !important;
}

/* XÓA HOÀN TOÀN TẤT CẢ ĐƯỜNG KẺ, KHUNG VIỀN MẶC ĐỊNH CỦA WOOCOMMERCE TRÊN UL VÀ LI */
.woocommerce nav.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul.page-numbers,
.woocommerce .woocommerce-pagination ul,
.woocommerce .woocommerce-pagination ul.page-numbers,
.woocommerce-pagination ul,
.woocommerce-pagination ul.page-numbers,
.pagination-pages-wrap ul,
.pagination-pages-wrap ul.page-numbers {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-width: 0 !important;
	border-style: none !important;
	border-top: none !important;
	border-bottom: none !important;
	border-left: none !important;
	border-right: none !important;
	list-style: none !important;
	background: transparent !important;
	box-shadow: none !important;
	white-space: normal !important;
	clear: none !important;
	float: none !important;
}

.woocommerce nav.woocommerce-pagination ul li,
.woocommerce nav.woocommerce-pagination ul.page-numbers li,
.woocommerce .woocommerce-pagination ul li,
.woocommerce .woocommerce-pagination ul.page-numbers li,
.woocommerce-pagination ul li,
.woocommerce-pagination ul.page-numbers li,
.pagination-pages-wrap ul li,
.pagination-pages-wrap ul.page-numbers li {
	display: inline-flex !important;
	align-items: center !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-width: 0 !important;
	border-style: none !important;
	border-top: none !important;
	border-bottom: none !important;
	border-left: none !important;
	border-right: none !important;
	list-style: none !important;
	float: none !important;
	background: transparent !important;
	box-shadow: none !important;
	overflow: visible !important;
}

/* Từng nút số trang độc lập, gọn gàng, viền bo mềm mại */
.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span,
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce nav.woocommerce-pagination ul.page-numbers li a,
.woocommerce nav.woocommerce-pagination ul.page-numbers li span {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 38px !important;
	height: 38px !important;
	padding: 0 10px !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	color: #334155 !important;
	text-decoration: none !important;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
	background: #ffffff !important;
	box-sizing: border-box !important;
	line-height: 1 !important;
	margin: 0 !important;
}

.woocommerce-pagination ul.page-numbers li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul.page-numbers li a:hover {
	border-color: #0066cc !important;
	color: #0066cc !important;
	background: #f0f7ff !important;
	transform: translateY(-1px) !important;
}

/* Trang hiện tại (Active) */
.woocommerce-pagination ul.page-numbers li span.current,
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul.page-numbers li span.current {
	background: #0066cc !important;
	color: #ffffff !important;
	border: 1px solid #0066cc !important;
	box-shadow: 0 3px 10px rgba(0, 102, 204, 0.3) !important;
}

/* Dấu ba chấm (...) */
.woocommerce-pagination ul.page-numbers li span.dots,
.woocommerce nav.woocommerce-pagination ul li span.dots,
.woocommerce nav.woocommerce-pagination ul.page-numbers li span.dots {
	border: none !important;
	background: transparent !important;
	color: #94a3b8 !important;
	min-width: 24px !important;
	padding: 0 !important;
	box-shadow: none !important;
}

/* Dòng hiển thị kết quả góc phải dưới của card */
.pagination-result-count {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.pagination-result-count .woocommerce-result-count,
.woocommerce-pagination .woocommerce-result-count {
	display: block !important;
	font-size: 13.5px !important;
	color: #64748b !important;
	margin: 0 !important;
	font-weight: 600 !important;
	white-space: nowrap !important;
	float: none !important;
}

@media (max-width: 768px) {
	.woocommerce-pagination {
		flex-direction: column !important;
		justify-content: center !important;
		text-align: center !important;
		padding: 14px 16px !important;
		gap: 12px !important;
	}
	.pagination-result-count {
		margin-left: 0 !important;
	}
}

/* ==========================================================================
   6. Loading Overlay during AJAX filter
   ========================================================================== */
.shop-products-wrap {
	position: relative;
	min-height: 200px;
	transition: opacity 0.2s ease;
}

.shop-products-wrap.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

.shop-loading-spinner {
	position: absolute;
	top: 100px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px 24px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #0284c7;
}

.spinner-svg {
	animation: dentaluck-spin 0.9s linear infinite;
	flex-shrink: 0;
}

@keyframes dentaluck-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* ==========================================================================
   7. Responsive Breakpoints
   ========================================================================== */

/* Laptops & Tablets Landscape (<= 1100px) */
@media (max-width: 1100px) {
	.dentaluck-shop-main ul.products,
	.shop-products-wrap ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* Tablets (<= 992px): Left sidebar becomes drawer or stacks */
@media (max-width: 992px) {
	.dentaluck-shop-grid-layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.btn-toggle-filter-mobile {
		display: inline-flex;
	}

	.dentaluck-shop-sidebar {
		display: none;
	}

	.dentaluck-shop-sidebar.is-open {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 320px;
		max-width: 85vw;
		height: 100vh;
		z-index: 99999;
		background: #ffffff;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
		overflow-y: auto;
	}

	.dentaluck-shop-sidebar.is-open .dentaluck-filter-card {
		position: static;
		border: none;
		border-radius: 0;
		box-shadow: none;
		max-height: none;
		padding: 24px 20px 80px 20px;
	}

	.filter-actions-mobile {
		display: flex;
		flex-direction: column;
		gap: 8px;
		margin-top: 20px;
	}

	.btn-filter-apply-mobile {
		width: 100%;
		height: 42px;
		background: #0284c7;
		color: #ffffff;
		border: none;
		border-radius: 6px;
		font-size: 14px;
		font-weight: 700;
		cursor: pointer;
	}

	.btn-filter-reset-mobile {
		width: 100%;
		height: 40px;
		background: #f1f5f9;
		color: #475569;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 6px;
		font-size: 13px;
		font-weight: 600;
		text-decoration: none;
	}

	.shop-filter-backdrop {
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		background: rgba(15, 23, 42, 0.5);
		z-index: 99998;
		display: none;
	}

	.shop-filter-backdrop.is-open {
		display: block;
	}
}

/* Mobile Screens (<= 576px) */
@media (max-width: 576px) {
	.shop-top-toolbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 14px;
	}

	.shop-toolbar-controls {
		width: 100%;
		justify-content: space-between;
	}

	.dentaluck-shop-main ul.products,
	.shop-products-wrap ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 10px !important;
	}

	.dentaluck-product-card {
		padding: 0 !important;
		border-radius: 8px !important;
		overflow: hidden !important;
	}

	.product-image-wrap {
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 1 / 1 !important;
		max-height: none !important;
		padding: 0 !important;
		margin: 0 !important;
		border: none !important;
		border-radius: 0 !important;
	}

	.product-card-img {
		max-height: none !important;
		width: 100% !important;
		height: 100% !important;
		aspect-ratio: 1 / 1 !important;
	}

	.product-card-body {
		padding: 8px 8px 10px !important;
	}

	.product-card-title {
		font-size: 13px !important;
		line-height: 19px !important;
		min-height: 38px !important;
		height: auto !important;
		max-height: none !important;
		-webkit-line-clamp: 2 !important;
		display: -webkit-box !important;
		-webkit-box-orient: vertical !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		word-break: break-word !important;
		margin: 0 0 6px !important;
	}

	.product-price-row {
		flex-direction: row !important;
		align-items: baseline !important;
		gap: 4px !important;
		min-height: auto !important;
		height: auto !important;
		margin-bottom: 6px !important;
	}

	.product-current-price {
		font-size: 14px;
	}

	.dentaluck-product-card .btn-buy-now {
		height: 32px !important;
		font-size: 11.5px !important;
		padding: 0 6px !important;
		border-radius: 5px !important;
	}

	.dentaluck-product-card .btn-cart-icon {
		width: 32px !important;
		height: 32px !important;
		min-width: 32px !important;
		flex: 0 0 32px !important;
		border-radius: 5px !important;
	}

	.btn-card-add-to-cart {
		height: 32px !important;
		font-size: 11.5px !important;
		padding: 0 6px !important;
	}
}
