/**
 * Bundle offer card styling.
 * Matches Zoi brand (colors, typography, responsive).
 */

/* ================================================================
   BUNDLE OFFER CARD
   ================================================================ */

.zoi-bundle-card {
	background: white;
	border: 1px solid #e0ddd4;
	border-radius: 2px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	transition: box-shadow 0.2s ease-out;
}

.zoi-bundle-card:hover {
	box-shadow: 0 4px 12px rgba(43, 32, 24, 0.1);
}

@media (prefers-reduced-motion: reduce) {
	.zoi-bundle-card {
		transition: none;
	}
}

/* Title */
.zoi-bundle-card__title {
	font-size: 1.3rem;
	font-weight: 600;
	margin: 0;
	color: #2b2018;
	font-family: 'Cormorant Garamond', serif;
}

/* Description */
.zoi-bundle-card__description {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #5f554a;
	margin: 0;
}

/* Component products grid */
.zoi-bundle-card__products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 1rem;
	padding: 1rem 0;
	border-top: 1px solid #f0ebe3;
	border-bottom: 1px solid #f0ebe3;
}

.zoi-bundle-product {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	text-align: center;
}

.zoi-bundle-product__image {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	background: #f0ebe3;
	border-radius: 2px;
}

.zoi-bundle-product__name {
	font-size: 0.85rem;
	font-weight: 600;
	margin: 0;
	color: #2b2018;
	line-height: 1.2;
}

.zoi-bundle-product__price {
	font-size: 0.8rem;
	color: #5f554a;
	margin: 0;
}

/* Pricing section */
.zoi-bundle-card__pricing {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem 0;
	background: #f9f7f4;
	padding: 1rem;
	border-radius: 2px;
}

.zoi-bundle-card__price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.95rem;
	color: #5f554a;
}

.zoi-bundle-card__label {
	font-weight: 500;
}

.zoi-bundle-card__value {
	text-align: right;
	font-weight: 600;
}

/* Discount row (green) */
.zoi-bundle-card__price-row--discount {
	color: #2b7a0b;
}

.zoi-bundle-card__value--discount {
	color: #2b7a0b;
}

/* Total row (large, emphasized) */
.zoi-bundle-card__price-row--total {
	border-top: 1px solid #e0ddd4;
	padding-top: 0.75rem;
	margin-top: 0.75rem;
	font-size: 1.1rem;
	color: #2b2018;
}

.zoi-bundle-card__value--total {
	color: #2b2018;
	font-size: 1.2rem;
}

/* Availability status */
.zoi-bundle-card__status {
	padding: 0.75rem;
	border-radius: 2px;
	background: #fffaf5;
	border: 1px solid #d4c5b9;
}

.zoi-bundle-card__status--unavailable {
	background: #fef2f2;
	border-color: #e5b4b4;
}

.zoi-bundle-card__status p {
	margin: 0;
	font-size: 0.9rem;
	color: #5f554a;
}

.zoi-bundle-card__status--unavailable p {
	color: #c41e1e;
	font-weight: 500;
}

/* Button */
.zoi-bundle-card__button {
	padding: 1rem;
	font-size: 0.95rem;
	font-weight: 600;
	background: #2b2018;
	color: #f4eee3;
	border: none;
	border-radius: 2px;
	cursor: pointer;
	transition: all 0.2s ease-out;
	font-family: 'Archivo', sans-serif;
	width: 100%;
}

.zoi-bundle-card__button:hover:not(:disabled),
.zoi-bundle-card__button:focus:not(:disabled) {
	background: #1a0f09;
	outline: 2px solid #9a6d3f;
	outline-offset: 2px;
}

.zoi-bundle-card__button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ================================================================
   BUNDLE GRID (ON SHOP/ARCHIVE PAGES)
   ================================================================ */

.zoi-bundles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
	margin: 2rem 0;
}

@media (max-width: 768px) {
	.zoi-bundles-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 1.5rem;
	}
}

@media (max-width: 480px) {
	.zoi-bundles-grid {
		grid-template-columns: 1fr;
	}
}

/* ================================================================
   BUNDLE SECTION HEADING
   ================================================================ */

.zoi-bundles-heading {
	font-size: 1.8rem;
	font-weight: 500;
	margin: 2rem 0 1rem;
	color: #2b2018;
	font-family: 'Cormorant Garamond', serif;
}

.zoi-bundles-subtext {
	font-size: 0.95rem;
	color: #5f554a;
	margin-bottom: 2rem;
	line-height: 1.6;
}

/* ================================================================
   CROSS-SELL SUGGESTIONS
   ================================================================ */

.zoi-cross-sell-suggestion {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background: #f9f7f4;
	border-radius: 2px;
	margin-top: 1.5rem;
}

.zoi-cross-sell-suggestion__image {
	width: 80px;
	height: 100px;
	object-fit: cover;
	background: #f0ebe3;
	border-radius: 2px;
	flex-shrink: 0;
}

.zoi-cross-sell-suggestion__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.zoi-cross-sell-suggestion__title {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0;
	color: #2b2018;
}

.zoi-cross-sell-suggestion__price {
	font-size: 0.9rem;
	color: #5f554a;
	margin: 0;
}

.zoi-cross-sell-suggestion__button {
	align-self: flex-start;
	padding: 0.5rem 1rem;
	background: #2b2018;
	color: #f4eee3;
	border: none;
	border-radius: 2px;
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 600;
	font-family: 'Archivo', sans-serif;
	transition: background 0.2s ease-out;
}

.zoi-cross-sell-suggestion__button:hover,
.zoi-cross-sell-suggestion__button:focus {
	background: #1a0f09;
	outline: 2px solid #9a6d3f;
	outline-offset: 2px;
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */

.zoi-bundle-card__button:focus-visible {
	outline: 2px solid #9a6d3f;
	outline-offset: 2px;
}

@media (prefers-contrast: more) {
	.zoi-bundle-card {
		border-width: 2px;
	}

	.zoi-bundle-card__button:focus {
		outline-width: 3px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zoi-bundle-card__button {
		transition: none;
	}
}
