/* =========================================================================
   PRODUCT GRID / CARD
   Matches the inspiration design's `.gift-card` exactly. Applies to
   WooCommerce's <ul class="products"> loop wrapper (used by the shop grid
   and the custom Elementor "Product List" widget).
   ========================================================================= */
ul.products {
	max-width: var(--container-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	list-style: none;
	padding: 0;
	width: 100%;
}

.gift-card {
	background: rgba(255, 253, 248, 0.75);
	backdrop-filter: blur(4px);
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: 0 8px 20px rgba(53, 29, 43, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	list-style: none;
}
.gift-card:hover { box-shadow: 0 18px 40px rgba(53, 29, 43, 0.15); }

.gift-image {
	position: relative;
	aspect-ratio: 1 / 0.88;
	overflow: hidden;
	background: #f2dce1;
	flex-shrink: 0;
	cursor: pointer;
}
.gift-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}
.gift-card:hover .gift-image img { transform: scale(1.05); }

.badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #efc86f;
	color: var(--burgundy);
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(53, 29, 43, 0.08);
	z-index: 2;
}

.gift-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.gc-rating { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.gc-rating .stars { color: #f4b740; letter-spacing: 1px; font-size: 13px; }

.gift-title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 4px;
}
.gift-name {
	font-family: var(--font-serif);
	font-size: 17px;
	color: var(--burgundy);
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	transition: color 0.3s ease;
}
.gift-card:hover .gift-name,
.gift-name:hover { color: var(--pink); }
.gift-price {
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: 800;
	color: var(--pink);
	white-space: nowrap;
	flex-shrink: 0;
	background: #fff0f3;
	padding: 4px 10px;
	border-radius: 9999px;
}
.gift-price del { opacity: 0.6; font-weight: 400; font-size: 11px; margin-right: 4px; }
.gift-price ins { text-decoration: none; }

.gift-desc {
	color: var(--muted);
	line-height: 1.6;
	font-size: 12px;
	margin: 8px 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Stacked, full-width buttons (outline "Personalize" above the filled
   "Add") — matches the reference shop design. */
.buttons { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 14px; }

.customize-btn {
	width: 100%;
	background: #fff5f4;
	color: var(--pink);
	border: 1.5px solid #e0b3c0;
	text-decoration: none;
	text-align: center;
	padding: 9px 10px;
	border-radius: 9999px;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.02em;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
	white-space: nowrap;
}
.customize-btn:hover { background: var(--pink); border-color: var(--pink); color: var(--white); }

.add-btn {
	width: 100%;
	background: var(--pink);
	color: var(--white);
	text-decoration: none;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 9px 14px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.03em;
	transition: background 0.25s ease;
	white-space: nowrap;
	border: none;
	cursor: pointer;
}
.add-btn:hover { background: var(--burgundy); color: var(--white); }
.add-btn.loading { opacity: 0.6; pointer-events: none; }

/* =========================================================================
   RESPONSIVE — 4 columns desktop, stepping down to 3 / 2 / 1 as the
   viewport narrows (card design/buttons unchanged, only the column count).
   ========================================================================= */
@media screen and (max-width: 1180px) {
	ul.products { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media screen and (max-width: 860px) {
	ul.products { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.gift-content { padding: 16px; }
	.badge { font-size: 9px; padding: 4px 9px; }
}
@media screen and (max-width: 560px) {
	ul.products { grid-template-columns: 1fr; gap: 20px; max-width: 480px; margin: 0 auto; }
	.customize-btn, .add-btn { padding: 11px; font-size: 13px; }
}
