/* Variable Product Card */

.vpc-grid { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vpc-grid.vpc-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.vpc-grid.vpc-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vpc-grid.vpc-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vpc-grid.vpc-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.vpc-grid.vpc-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 1100px) {
	.vpc-grid.vpc-cols-4,
	.vpc-grid.vpc-cols-5,
	.vpc-grid.vpc-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
	.vpc-grid.vpc-cols-3,
	.vpc-grid.vpc-cols-4,
	.vpc-grid.vpc-cols-5,
	.vpc-grid.vpc-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
	.vpc-grid.vpc-cols-2,
	.vpc-grid.vpc-cols-3,
	.vpc-grid.vpc-cols-4,
	.vpc-grid.vpc-cols-5,
	.vpc-grid.vpc-cols-6 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

/* Card */
.vpc-card {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #e4e8f0;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(18, 32, 64, .07);
	color: #111b2e;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	line-height: 1.4;
}
.vpc-card *,
.vpc-card *::before,
.vpc-card *::after { box-sizing: border-box; }

/* Image */
.vpc-card .vpc-media { position: relative; background: #0c0c14; aspect-ratio: 1 / 1; }
.vpc-card .vpc-image { display: block; width: 100%; height: 100%; }
.vpc-card .vpc-img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }

/* COA badge */
.vpc-card .vpc-coa {
	position: absolute; top: 12px; left: 12px; z-index: 2;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 11px;
	background: #fff; color: #0b57d0;
	border: 1px solid #c9d8f5; border-radius: 999px;
	font-size: 12px; font-weight: 700; line-height: 1; text-decoration: none;
}
.vpc-card .vpc-coa:hover { background: #eef4ff; color: #0a3fa8; }

/* Body */
.vpc-card .vpc-body { display: flex; flex-direction: column; flex: 1; gap: 14px; padding: 18px 18px 16px; }

.vpc-card .vpc-title { margin: 0; text-align: center; font-size: 16px; font-weight: 700; line-height: 1.3; color: #111b2e; }
.vpc-card .vpc-title a { color: inherit; text-decoration: none; }
.vpc-card .vpc-title a:hover { color: #0b57d0; }

/* Dropdown */
.vpc-card .vpc-fields { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.vpc-card select.vpc-select {
	display: block; width: 100%; height: 46px; margin: 0;
	padding: 0 44px 0 16px;
	font-family: inherit; font-size: 15px; color: #1c2333;
	background: #fff 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='%239aa4b5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
	border: 2px solid #c9d8f5; border-radius: 12px;
	-webkit-appearance: none; appearance: none;
	cursor: pointer;
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
}
.vpc-card select.vpc-select:focus { outline: none; border-color: #1f5fe0; box-shadow: 0 0 0 4px rgba(31, 95, 224, .15); }

/* Price */
.vpc-card .vpc-price { display: flex; align-items: baseline; justify-content: center; gap: 10px; min-height: 30px; }
.vpc-card .vpc-price-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #6b7587; }
.vpc-card .vpc-price-label:empty { display: none; }
.vpc-card .vpc-price-amount { font-size: 24px; font-weight: 800; color: #111b2e; line-height: 1.1; }
.vpc-card .vpc-price-amount del { opacity: .5; font-size: .62em; font-weight: 600; margin-right: 6px; }
.vpc-card .vpc-price-amount ins { text-decoration: none; background: none; }
.vpc-card .vpc-price-amount .screen-reader-text { display: none; }

/* Add to cart button */
.vpc-card button.vpc-btn {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	width: 100%; height: 52px; margin: 0; padding: 0 16px;
	font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1; color: #fff;
	background: linear-gradient(135deg, #0b57d0, #0a3fa8);
	border: 0; border-radius: 12px;
	box-shadow: 0 8px 20px rgba(11, 87, 208, .28);
	text-transform: none; letter-spacing: 0;
	cursor: pointer;
	transition: transform .12s, box-shadow .12s, opacity .12s, background .2s;
}
.vpc-card button.vpc-btn:hover,
.vpc-card button.vpc-btn:focus { color: #fff; background: linear-gradient(135deg, #0b57d0, #0a3fa8); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11, 87, 208, .36); }
.vpc-card button.vpc-btn:focus-visible { outline: 3px solid #9bbcf5; outline-offset: 2px; }
.vpc-card button.vpc-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.vpc-card button.vpc-btn.is-loading { opacity: .8; cursor: progress; }
.vpc-card button.vpc-btn.is-added,
.vpc-card button.vpc-btn.is-added:hover { background: linear-gradient(135deg, #12a35f, #0b7d47); box-shadow: 0 8px 20px rgba(18, 163, 95, .28); }

/* Message + details link */
.vpc-card .vpc-msg { min-height: 0; text-align: center; font-size: 13px; color: #c0392b; }
.vpc-card .vpc-msg:empty { display: none; }
.vpc-card .vpc-details { text-align: center; font-size: 14px; font-weight: 500; color: #6b7587; text-decoration: none; }
.vpc-card .vpc-details:hover { color: #0b57d0; }

/* WooCommerce ka auto "View cart" link card mein nahi chahiye */
.vpc-card .added_to_cart { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	.vpc-card button.vpc-btn,
	.vpc-card select.vpc-select { transition: none; }
}
