/**
 * Modern shop archive — quiet luxury grid (v1.6.120)
 */

.rw-shop-archive {
	max-width: 1280px;
	margin: 0 auto;
	padding: 1rem 1rem 2.5rem;
}

.rw-shop-archive__header {
	margin-bottom: 1.25rem;
}

.rw-shop-title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(1.75rem, 5vw, 2.5rem);
	font-weight: 400;
	letter-spacing: 0.02em;
	color: #2c2c2c;
	margin: 0 0 0.5rem;
	line-height: 1.15;
}

.rw-shop-subtitle {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #5c4033;
	margin: 0;
	max-width: 42rem;
}

.rw-shop-filters {
	position: sticky;
	top: 0;
	z-index: 10;
	background: #fdfaf6;
	padding: 10px 0;
	overflow-x: auto;
	display: flex;
	gap: 8px;
	border-bottom: 0.5px solid #e8e0d6;
	scrollbar-width: none;
	-ms-overflow-style: none;
	margin-bottom: 1rem;
}

.rw-shop-filters::-webkit-scrollbar {
	display: none;
}

.rw-shop-filter-btn {
	white-space: nowrap;
	padding: 6px 14px;
	border: 0.5px solid #c9a96e;
	border-radius: 2px;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5c4033;
	background: transparent;
	cursor: pointer;
	flex-shrink: 0;
	text-decoration: none;
}

.rw-shop-filter-btn.active {
	background: #4a5240;
	border-color: #4a5240;
	color: #f5f0e8;
}

.rw-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.rw-shop-count {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #888;
	margin: 0;
}

.rw-shop-sort select {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border: 0.5px solid #e8e0d6;
	background: #fff;
	padding: 8px 12px;
	border-radius: 2px;
	color: #2c2c2c;
}

.rw-modern-shop-archive ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rw-modern-shop-archive ul.products::before,
.rw-modern-shop-archive ul.products::after {
	display: none !important;
}

.rw-modern-shop-archive ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

@media (min-width: 900px) {
	.rw-modern-shop-archive ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.5rem 1.25rem;
	}
}

/* Product card */
.rw-shop-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.rw-shop-card__media {
	position: relative;
	aspect-ratio: 3 / 4;
	background: #f8f5f2;
	border-radius: 4px;
	overflow: hidden;
}

.rw-shop-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rw-shop-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	font-size: 9px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.92);
	color: #2c2c2c;
	padding: 4px 8px;
	border-radius: 2px;
}

.rw-wish-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	border: 0.5px solid rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	padding: 0;
}

.rw-wish-btn__icon {
	color: #2c2c2c;
}

.rw-wish-btn.active .rw-wish-btn__icon,
.rw-wish-btn.wishlisted .rw-wish-btn__icon {
	color: #8b1a1a;
}

.rw-wish-btn {
	transition: all 0.2s ease;
}

.rw-wish-btn:hover {
	background: #fff;
	transform: scale(1.05);
}

.rw-shop-card__body {
	padding: 0.65rem 0 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1;
}

.rw-shop-card__brand {
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #9e9e9e;
	margin: 0;
}

.rw-shop-card__title {
	font-size: 13px;
	line-height: 1.35;
	margin: 0;
	font-weight: 400;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rw-shop-card__title a {
	color: #2c2c2c;
	text-decoration: none;
}

.rw-shop-card__price {
	font-weight: 600;
	color: #5c4033;
	font-size: 13px;
}

.rw-shop-card__price del {
	font-weight: 400;
	opacity: 0.65;
}

.rw-shop-card__colors {
	display: flex;
	gap: 6px;
}

.rw-shop-card__swatch {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--rw-swatch, #d4c4a8);
	border: 0.5px solid rgba(0, 0, 0, 0.12);
}

.rw-shop-card__sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.rw-shop-card__size {
	font-size: 9px;
	letter-spacing: 0.06em;
	padding: 2px 5px;
	border: 0.5px solid #e8e0d6;
	color: #5c4033;
}

.rw-shop-card__size.is-unavailable {
	opacity: 0.35;
	text-decoration: line-through;
}

.rw-shop-card__atc {
	margin-top: auto;
	width: 100%;
	text-align: center;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 10px 12px;
	background: #f5f0e8;
	border: 0.5px solid #5c4033 !important;
	color: #5c4033 !important;
	border-radius: 2px;
}

.rw-shop-card__atc:hover {
	background: #e8e0d6;
}

.rw-shop-seo {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 0.5px solid #e8e0d6;
}

.rw-shop-seo__title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.35rem;
	font-weight: 400;
	margin: 0 0 1rem;
	color: #2c2c2c;
}

.rw-shop-seo__text {
	font-size: 0.875rem;
	line-height: 1.65;
	color: #5c4033;
}

.rw-shop-seo__text p {
	margin: 0 0 1rem;
}

.rw-modern-shop-archive .woocommerce-pagination {
	margin-top: 2rem;
	text-align: center;
}

.rw-modern-shop-archive .woocommerce-pagination ul {
	display: inline-flex;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.rw-modern-shop-archive .woocommerce-pagination a,
.rw-modern-shop-archive .woocommerce-pagination span {
	padding: 6px 12px;
	border: 0.5px solid #e8e0d6;
	text-decoration: none;
	font-size: 12px;
	color: #2c2c2c;
}

.rw-modern-shop-archive .woocommerce-pagination .current {
	background: #4a5240;
	color: #f5f0e8;
	border-color: #4a5240;
}

@media (max-width: 767px) {
	body.rw-modern-shop-archive.rw-has-mobile-bottom-nav {
		padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
	}
}
