/* ==========================================================================
   Deercoffe — product category archive ("Kawa" and its filter subcategories)
   Loaded only on is_product_category(). Scoped under .deercoffe-shop except
   for the bleed helper, which needs to escape the theme's .container.
   ========================================================================== */

.site-content {
	overflow-x: hidden;
}

.shop-bleed {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

.deercoffe-shop {
	font-family: var(--deercoffe-font-body);
	color: var(--deercoffe-color-text);
	font-size: 15px;
	padding-bottom: 90px;
}

.deercoffe-shop h1 {
	font-family: var(--deercoffe-font-heading);
	font-weight: 400;
	color: var(--deercoffe-color-text);
	margin: 0;
}

.shop-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 50px 40px 0;
}

/* Breadcrumb ------------------------------------------------------------- */

.shop-breadcrumb {
	font-size: 0.8rem;
	color: var(--deercoffe-color-muted);
	margin-bottom: 28px;
}

.shop-breadcrumb a {
	color: var(--deercoffe-color-muted);
}

.shop-breadcrumb a:hover,
.shop-breadcrumb a:focus {
	color: var(--deercoffe-color-primary);
}

.shop-breadcrumb span[aria-hidden] {
	margin: 0 6px;
}

/* Head --------------------------------------------------------------- */

.shop-head {
	max-width: 869px;
	margin-bottom: 40px;
}

.shop-head h1 {
	font-size: clamp(1.6rem, 2.5vw, 2rem);
	letter-spacing: 0.04em;
}

.shop-intro {
	color: var(--deercoffe-color-muted);
	margin-top: 18px;
	line-height: 1.6;
}

.shop-intro p {
	margin: 0;
}

/* Filters -------------------------------------------------------------- */

.shop-filters {
	margin-bottom: 30px;
}

.shop-filters-label {
	display: block;
	color: var(--deercoffe-color-muted);
	margin-bottom: 12px;
}

.shop-filters-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.shop-filter {
	display: inline-flex;
	align-items: center;
	padding: 13px 12px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	color: var(--deercoffe-color-muted);
	font-size: 0.85rem;
	white-space: nowrap;
}

.shop-filter:hover,
.shop-filter:focus {
	color: var(--deercoffe-color-text);
	text-decoration: none;
}

.shop-filter.is-active {
	background: var(--deercoffe-color-primary);
	border-color: var(--deercoffe-color-primary);
	color: #fff;
}

.shop-filter.is-active:hover,
.shop-filter.is-active:focus {
	color: #fff;
}

/* Inline quiz CTA (desktop) ---------------------------------------------- */

.shop-quiz-inline {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-bottom: 44px;
}

.shop-quiz-inline p {
	margin: 0;
	font-size: 0.95rem;
}

/* Product grid ------------------------------------------------------------ */

.shop-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 24px;
}

.shop-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
}

.shop-card-media {
	display: block;
	background: var(--deercoffe-color-bg);
	overflow: hidden;
	aspect-ratio: 308 / 518;
}

.shop-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.shop-card-wishlist {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: #fff;
	color: var(--deercoffe-color-text) !important;
	border: 1px solid var(--deercoffe-color-border);
	border-radius: 18px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
	cursor: pointer;
}

.shop-card-wishlist:hover {
	background: var(--deercoffe-color-bg);
}

.shop-card-wishlist.is-active svg {
	fill: #a1a96a;
	stroke: #a1a96a;
}

.shop-card-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.shop-card-title {
	font-family: var(--deercoffe-font-heading);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	color: var(--deercoffe-color-brown) !important;
}

.shop-card-title:hover,
.shop-card-title:focus {
	text-decoration: none;
	opacity: 0.85;
}

.shop-card-notes {
	font-size: 0.9rem;
	color: #9c9b9b;
	margin: 0;
}

.shop-card-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.shop-card-weights {
	display: flex;
	align-items: center;
	gap: 8px;
}

.shop-card-weight {
	background: none;
	border: 0;
	padding: 8px 4px;
	font-family: var(--deercoffe-font-body);
	font-size: 0.8rem;
	color: #9c9b9b !important;
	cursor: pointer;
}

.shop-card-weight:hover:not(:disabled) {
	color: var(--deercoffe-color-text) !important;
}

.shop-card-weight.is-active {
	color: var(--deercoffe-color-text) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.shop-card-weight:disabled {
	color: var(--deercoffe-color-border) !important;
	cursor: not-allowed;
	text-decoration: line-through;
}

.shop-card-price {
	font-size: 0.9rem;
	white-space: nowrap;
}

.shop-card-price ins {
	text-decoration: none;
	margin-right: 8px;
}

.shop-card-price del {
	color: #9c9b9b;
}

.shop-empty {
	color: var(--deercoffe-color-muted);
}

/* Load more ---------------------------------------------------------------- */

.shop-load-more-wrap {
	margin-top: 48px;
}

.shop-load-more:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* Sticky mobile quiz CTA ---------------------------------------------------- */

.shop-quiz-sticky {
	display: none;
}

/* Responsive ----------------------------------------------------------- */

@media (max-width: 900px) {
	.shop-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 782px) {
	.shop-container {
		padding: 30px 15px 0;
	}

	.shop-head {
		text-align: center;
	}

	.shop-filters-list {
		flex-direction: column;
	}

	.shop-filter {
		justify-content: center;
	}

	.shop-quiz-inline {
		display: none;
	}

	.shop-grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.deercoffe-shop {
		padding-bottom: 110px;
	}

	.shop-quiz-sticky {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 5px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 40;
		background: #fff;
		border-top: 1px solid var(--deercoffe-color-border);
		box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.06);
		padding: 14px 15px;
	}

	.shop-quiz-sticky-copy {
		min-width: 0;
	}

	.shop-quiz-sticky-title {
		margin: 0 0 4px;
		font-family: var(--deercoffe-font-heading);
		font-size: 0.9rem;
		letter-spacing: 0.04em;
	}

	.shop-quiz-sticky-text {
		margin: 0;
		font-size: 0.85rem;
		color: var(--deercoffe-color-muted);
	}

	.shop-quiz-sticky-btn {
		flex-shrink: 0;
		padding: 15px;
	}
}
