/* The one catalogue product card, as CSS.
   Companion to assets/js/product-card.js (ARProductCard): the same grid and card
   rules the catalogue pages carry inline, for pages that render the shared card
   without loading a catalogue stylesheet. Inner selectors stay at .designer-card
   specificity so mobile-catalogue-polish.css (enqueued last) still wins. */

.designer-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.designer-card {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(125, 165, 205, 0.25);
	border-radius: 21px;
	background: linear-gradient(165deg, rgba(11, 30, 57, 0.97), rgba(3, 11, 25, 0.98));
	box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
	/* The catalogue base font, so the card reads the same on pages that set their own. */
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.designer-card:hover {
	transform: translateY(-7px);
	border-color: #1e90ff;
	box-shadow: 0 0 34px rgba(30, 144, 255, 0.32), 0 22px 50px rgba(0, 0, 0, 0.45);
}

.designer-card .product-media {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	/* No background here: style.css paints the loading shimmer on this element. */
}

.designer-card .product-media img {
	width: 100%;
	height: 100%;
	border-radius: 0;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.designer-card:hover .product-media img {
	transform: scale(1.04);
}

.designer-card .product-badge {
	position: absolute;
	left: 14px;
	top: 14px;
	border: 1px solid rgba(80, 190, 255, 0.45);
	border-radius: 7px;
	padding: 6px 10px;
	background: rgba(3, 15, 32, 0.86);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.designer-card .product-badge.best {
	border-color: #f3b64d;
	color: #ffd477;
}

.designer-card .wishlist {
	position: absolute;
	right: 13px;
	top: 13px;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 50%;
	background: rgba(2, 10, 23, 0.78);
	color: #fff;
	font-size: 1.25rem;
	cursor: pointer;
}

.designer-card .product-body {
	padding: 18px;
}

.designer-card .product-category {
	color: #2caeff;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.designer-card .product-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.25rem;
	margin: 8px 0;
}

.designer-card .product-title a {
	color: inherit;
	text-decoration: none;
}

.designer-card .rating {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #ffc34d;
	font-size: 0.88rem;
}

.designer-card .rating small {
	color: #9daabd;
}

.designer-card .price-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 13px 0;
}

.designer-card .sale-price {
	font-size: 1.55rem;
	font-weight: 850;
	color: #2aa8ff;
}

.designer-card .mrp {
	text-decoration: line-through;
	color: #9199a6;
}

.designer-card .discount {
	font-size: 0.7rem;
	background: #123963;
	color: #bfe4ff;
	border-radius: 5px;
	padding: 4px 7px;
}

.designer-card .feature-row {
	display: flex;
	gap: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.09);
	padding-top: 13px;
	margin-top: 10px;
	color: #d4deea;
	font-size: 0.78rem;
}

.designer-card .feature-row span {
	flex: 1;
}

/* No per-product feature copy to show — drop the divider rather than leave a gap. */
.designer-card .feature-row:empty {
	display: none;
}

.designer-card .view-product {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 16px;
	padding: 12px;
	border-radius: 9px;
	background: linear-gradient(180deg, #168ef0, #0758ac);
	color: #fff;
	text-decoration: none;
	font-weight: 800;
}

@media (max-width: 1100px) {
	.designer-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.designer-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.designer-card .product-body { padding: 12px; }
	.designer-card .product-title { font-size: 1rem; }
	.designer-card .sale-price { font-size: 1.25rem; }
	.designer-card .mrp,
	.designer-card .discount { font-size: 0.65rem; }
	.designer-card .feature-row { display: none; }
	.designer-card .wishlist { width: 36px; height: 36px; }
	.designer-card .product-badge { font-size: 0.6rem; padding: 5px 8px; }
	.designer-card .view-product { font-size: 0.78rem; padding: 10px; }
}

/* Catalogue alignment pass (matches the "v4.0.3 / v5.0.3" blocks the catalogue
   sheets carry): equal-height cards with the price, features and CTA lined up. */
.designer-product-grid {
	align-items: stretch;
}

.designer-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.designer-card .product-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.designer-card .product-title {
	min-height: 2.45em;
}

.designer-card .rating {
	min-height: 1.35rem;
}

.designer-card .price-row {
	display: grid;
	grid-template-columns: auto auto minmax(44px, 1fr);
	align-items: center;
	column-gap: 8px;
}

.designer-card .discount {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: end;
	min-width: 44px;
	min-height: 34px;
	padding: 4px 6px;
	text-align: center;
	line-height: 1.05;
	white-space: normal;
	box-sizing: border-box;
}

.designer-card .feature-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	min-height: 42px;
	margin-top: auto;
	padding-top: 13px;
	border-top: 1px solid rgba(255, 255, 255, 0.09);
	color: #d4deea;
	font-size: 0.76rem;
	line-height: 1.2;
}

.designer-card .feature-row span {
	min-width: 0;
	white-space: nowrap;
}

.designer-card .feature-row span:last-child {
	justify-self: end;
	text-align: right;
}

.designer-card .view-product {
	margin-top: 10px;
}

@media (max-width: 1180px) and (min-width: 761px) {
	.designer-card .feature-row {
		font-size: 0.7rem;
		gap: 7px;
	}
}

@media (max-width: 760px) {
	.designer-product-grid { grid-auto-rows: 1fr; }
	.designer-card .product-body { min-height: 205px; }
	.designer-card .product-category { min-height: 1.05rem; }
	.designer-card .product-title { min-height: 2.55em; line-height: 1.18; }
	.designer-card .rating { min-height: 2.1rem; align-items: flex-start; flex-wrap: wrap; gap: 2px 6px; line-height: 1.1; }
	.designer-card .price-row { grid-template-columns: auto auto minmax(42px, 1fr); min-height: 42px; gap: 5px; margin: 10px 0 12px; }
	.designer-card .discount { width: 46px; min-width: 46px; min-height: 36px; padding: 4px; font-size: 0.62rem; }
	.designer-card .feature-row { display: none; }
	.designer-card .view-product { margin-top: auto; min-height: 40px; box-sizing: border-box; }
}
