/* Custom WooCommerce Product Card Styles
   INSTALL: Save this file at your-theme/css/product-card-style.css
   (overwrite the existing one) */

ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 768px) {
	ul.products {
		grid-template-columns: repeat(4, 1fr);
	}
}

li.product.cpc-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
	box-shadow: none;
	transition: box-shadow 0.2s ease;
}

li.product.cpc-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Image area */
.cpc-image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #f3f4f6;
}

.cpc-image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.cpc-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Badges */
.cpc-badge {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 6px;
	z-index: 2;
	white-space: nowrap;
}

.cpc-badge-bulk {
	top: 10px;
	left: 10px;
	background: #e8f0fb;
	color: #1e293b;
}

.cpc-badge-rating {
	bottom: 10px;
	left: 10px;
	background: rgba(255, 255, 255, 0.95);
	color: #111827;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.cpc-rating-icon {
	color: #8b5cf6;
	font-size: 11px;
}

.cpc-badge-variants {
	bottom: 10px;
	right: 10px;
	background: rgba(255, 255, 255, 0.95);
	color: #111827;
	border-radius: 999px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* When the action row is visible on hover it sits where the rating/variant
   badges normally live, so nudge those badges up out of the way. */
li.product.cpc-card:hover .cpc-badge-rating,
li.product.cpc-card:hover .cpc-badge-variants {
	opacity: 0;
	pointer-events: none;
}

.cpc-dots {
	display: inline-flex;
}

.cpc-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 1px solid #fff;
	margin-left: -4px;
}

.cpc-dot-1 {
	background: #2563eb;
	margin-left: 0;
}

.cpc-dot-2 {
	background: #f97316;
}

.cpc-dot-3 {
	background: #1e3a8a;
}

/* Info section */
.cpc-info {
	padding: 12px 14px 16px;
}

.cpc-price-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.cpc-sale-price .amount {
	font-size: 17px;
	font-weight: 700;
	color: #111827;
}

.cpc-regular-price .amount {
	text-decoration: line-through;
	color: #9ca3af;
	font-size: 13px;
}

.cpc-discount {
	font-size: 13px;
	font-weight: 700;
	color: #16a34a;
}

.cpc-best-price {
	margin-top: 8px;
	background: #ecfdf5;
	color: #16a34a;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 10px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.cpc-title {
	margin: 10px 0 0;
	font-size: 13px;
	font-weight: 400;
	color: #6b7280;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ===== Hover action row: Buy Now + Add to Cart, side by side ===== */

.cpc-actions {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	display: flex;
	transform: translateY(100%);
	opacity: 0;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

li.product.cpc-card:hover .cpc-actions,
li.product.cpc-card:focus-within .cpc-actions {
	transform: translateY(0);
	opacity: 1;
}

.cpc-actions .cpc-buy-now,
.cpc-actions .cpc-add-to-cart {
	flex: 1 1 50%;
	min-width: 0;
}

/* Single-button case (no Buy Now, e.g. out of stock) still fills the row */
.cpc-actions-single .cpc-add-to-cart {
	flex: 1 1 100%;
}

.cpc-actions .cpc-buy-now {
	display: block;
	text-align: center;
	background: #111827 !important;
	color: #fff !important;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 12px 0;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cpc-actions .cpc-buy-now:hover {
	background: #000 !important;
}

.cpc-actions .cpc-add-to-cart a,
.cpc-actions .cpc-add-to-cart button {
	display: block;
	width: 100%;
	text-align: center;
	background: #ffffff !important;
	color: #111827 !important;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 12px 0;
	border: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cpc-actions .cpc-add-to-cart a:hover,
.cpc-actions .cpc-add-to-cart button:hover {
	background: #f9fafb !important;
}

/* Touch devices can't hover — show the action row permanently, stacked
   under the card instead of overlaid on the image, so it never blocks
   product art on a phone. */
@media (max-width: 767px) {
	.cpc-actions {
		position: static;
		transform: none;
		opacity: 1;
		border-top: 1px solid #e5e7eb;
	}
}

/* =====================================================================
   Shop filter sidebar (Veirdo-style)
   Wraps the shop loop in a sidebar + grid layout. Pair with the
   functions.php snippet that registers the "Shop Filters" widget area
   and opens/closes these wrapper divs around the product loop.
   ===================================================================== */

.pmt-shop-layout {
	display: flex;
	align-items: flex-start;
	gap: 28px;
	margin-bottom: 20px;
}

.pmt-shop-sidebar {
	flex: 0 0 220px;
	max-width: 220px;
}

.pmt-shop-main {
	flex: 1 1 auto;
	min-width: 0;
}

.pmt-filter-widget {
	border-bottom: 1px solid #e5e7eb;
	padding: 16px 0;
}

.pmt-filter-widget:first-child {
	padding-top: 0;
}

.pmt-filter-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 12px;
	color: #111827;
}

.pmt-filter-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pmt-filter-widget li {
	margin-bottom: 10px;
	font-size: 13px;
}

/* Style WooCommerce's native "Filter by Attribute" links as checkbox rows */
.pmt-filter-widget .woocommerce-widget-layered-nav-list__item a,
.pmt-filter-widget .wc-layered-nav-term a {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #374151;
}

.pmt-filter-widget .woocommerce-widget-layered-nav-list__item a::before,
.pmt-filter-widget .wc-layered-nav-term a::before {
	content: "";
	width: 16px;
	height: 16px;
	border: 1px solid #d1d5db;
	border-radius: 3px;
	flex-shrink: 0;
	display: inline-block;
}

.pmt-filter-widget .woocommerce-widget-layered-nav-list__item--chosen a::before {
	background: #111827;
	border-color: #111827;
}

/* Native "Filter by Price" slider */
.pmt-filter-widget .price_slider_wrapper .ui-slider {
	background: #e5e7eb;
	height: 4px;
	border: none;
}

.pmt-filter-widget .price_slider_wrapper .ui-slider .ui-slider-range {
	background: #111827;
}

.pmt-filter-widget .price_slider_wrapper .ui-slider .ui-slider-handle {
	background: #111827;
	border: none;
	width: 14px;
	height: 14px;
	top: -5px;
}

.pmt-filter-widget .price_slider_amount .button {
	background: #111827 !important;
	color: #fff !important;
	border-radius: 4px;
	font-size: 12px;
	padding: 6px 12px;
}

@media (max-width: 900px) {
	.pmt-shop-layout {
		flex-direction: column;
	}

	.pmt-shop-sidebar {
		max-width: 100%;
		flex-basis: auto;
		width: 100%;
	}
}


.veirdo-card-btn
{
    padding: 30px;
}