/**
 * VDuma shop page — Duma Official collection layout.
 * Scoped to body.rwot-vduma-shop
 */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&display=swap");

/* ── Page shell — align with header (48px / 16px) ───────────── */
body.rwot-vduma-shop {
	--vduma-page-gutter: 48px;
}

body.rwot-vduma-shop .shop-page.container-lg {
	max-width: 100%;
	padding-left: var(--vduma-page-gutter) !important;
	padding-right: var(--vduma-page-gutter) !important;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
}

body.rwot-vduma-shop #primary.content-area {
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
	padding-left: 0;
	padding-right: 0;
}

body.rwot-vduma-shop #sidebar,
body.rwot-vduma-shop .rwot-is-mobile #sidebar-mobile,
body.rwot-vduma-shop .rwot-coupon-widget,
body.rwot-vduma-shop .d-lg-none.mt-base {
	display: none !important;
}

body.rwot-vduma-shop .site-main {
	padding: 0;
}

/* ── Title ──────────────────────────────────────────────────── */
.vduma-shop {
	width: 100%;
	padding: 48px 0 0; /* horizontal gutter comes from .shop-page */
	position: relative;
	z-index: 200; /* above product cards (theme sets li.product z-index: 100) */
}

.vduma-shop-header {
	text-align: center;
	margin-bottom: 36px;
}

.vduma-shop-title {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 400;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #1a1a1a;
	margin: 0;
	line-height: 1.15;
}

/* ── Toolbar ────────────────────────────────────────────────── */
.vduma-shop-toolbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 0 0 28px;
	border-bottom: 1px solid #ececec;
	margin-bottom: 4px;
	position: relative;
	z-index: 210;
	overflow: visible;
}

.vduma-shop-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 28px;
}

.vduma-shop-meta {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-shrink: 0;
}

.vduma-shop-count {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #1a1a1a;
	white-space: nowrap;
}

.vduma-shop-mobile-filter {
	display: none;
	appearance: none;
	background: none;
	border: 1px solid #1a1a1a;
	padding: 10px 18px;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #1a1a1a;
	cursor: pointer;
}

/* ── Filter dropdown ────────────────────────────────────────── */
.vduma-filter {
	position: relative;
	z-index: 1;
}

.vduma-filter.is-open {
	z-index: 220;
}

.vduma-filter-trigger {
	appearance: none;
	background: none;
	border: 0;
	padding: 6px 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #1a1a1a;
	cursor: pointer;
	line-height: 1.2;
}

.vduma-filter.is-active .vduma-filter-trigger,
.vduma-filter.is-open .vduma-filter-trigger {
	opacity: 0.55;
}

.vduma-filter-chevron {
	transition: transform 0.2s ease;
}

.vduma-filter.is-open .vduma-filter-chevron {
	transform: rotate(180deg);
}

.vduma-filter-panel {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 220px;
	max-height: 320px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e8e8e8;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
	padding: 12px 0;
	z-index: 230;
}

.vduma-filter-panel--right {
	left: auto;
	right: 0;
}

.vduma-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vduma-filter-option {
	display: block;
	padding: 10px 20px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #1a1a1a;
	text-decoration: none;
	transition: background 0.15s ease;
}

.vduma-filter-option:hover,
.vduma-filter-option.is-selected {
	background: #f6f6f6;
}

/* ── Product grid — force exact 3 columns (large cards like Duma) ── */
body.rwot-vduma-shop .site-main > ul.products,
body.rwot-vduma-shop .shop-page #main > ul.products,
body.rwot-vduma-shop .shop-page ul.products.columns-3,
body.rwot-vduma-shop .shop-page ul.products.columns-4,
body.archive.rwot-vduma-shop .shop-page ul.products[class*="columns-"]:not(.splide__list):not(.vduma-recently-viewed-list) {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 16px !important;
	row-gap: 24px !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.rwot-vduma-shop ul.products::before,
body.rwot-vduma-shop ul.products::after {
	display: none !important;
	content: none !important;
}

body.rwot-vduma-shop .shop-page ul.products[class*="columns-"]:not(.splide__list) li.product,
body.rwot-vduma-shop .shop-page #main > ul.products li.product {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
	padding: 0 !important;
	background: #fff;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	z-index: 1 !important;
	isolation: auto;
}

body.rwot-vduma-shop ul.products li.product:hover {
	box-shadow: none !important;
}

/* Card: large portrait image, minimal chrome */
body.rwot-vduma-shop ul.products li.product .vdouma-img-wrapper,
body.rwot-vduma-shop ul.products li.product .card-product-thumb {
	aspect-ratio: 3 / 4;
	width: 100%;
	background: #f3f1ee;
}

body.rwot-vduma-shop ul.products li.product .vdouma-img,
body.rwot-vduma-shop ul.products li.product .card-product-thumb img,
body.rwot-vduma-shop ul.products li.product img {
	width: 100%;
	height: 100%;
	object-fit: cover !important;
	object-position: center top;
}

body.rwot-vduma-shop ul.products li.product .card-product-body {
	padding: 16px 12px 4px;
	text-align: center;
	align-items: center;
}

body.rwot-vduma-shop ul.products li.product .card-product-body > a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
}

body.rwot-vduma-shop ul.products li.product .woocommerce-loop-product__title {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1a1a1a !important;
	margin: 0 !important;
	line-height: 1.45 !important;
	text-align: center;
}

body.rwot-vduma-shop ul.products li.product .card-product-footer {
	padding: 4px 12px 20px;
}

body.rwot-vduma-shop ul.products li.product .card-product-footer-content {
	align-items: center !important;
	justify-content: center !important;
}

body.rwot-vduma-shop ul.products li.product .vdouma-price-row {
	width: 100%;
	justify-content: center !important;
	align-items: center !important;
	gap: 8px !important;
}

body.rwot-vduma-shop ul.products li.product .price,
body.rwot-vduma-shop ul.products li.product .price .amount,
body.rwot-vduma-shop ul.products li.product .price .woocommerce-Price-amount {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	color: #b04a3c !important;
	justify-content: center;
	text-align: center;
}

body.rwot-vduma-shop ul.products li.product .sale-price,
body.rwot-vduma-shop ul.products li.product .sale-price .amount,
body.rwot-vduma-shop ul.products li.product del .amount {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 12px !important;
	color: #b0b0b0 !important;
	text-decoration: line-through !important;
}

body.rwot-vduma-shop ul.products li.product .vdouma-swatches {
	justify-content: center;
	gap: 6px;
	margin-top: 6px;
}

body.rwot-vduma-shop ul.products li.product .vdouma-swatch {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #1a1a1a;
}

body.rwot-vduma-shop ul.products li.product .vdouma-swatch.is-light {
	box-shadow: 0 0 0 1px #bdbdbd;
}

body.rwot-vduma-shop ul.products li.product .vdouma-swatch-more {
	font-size: 10px;
	line-height: 1;
	color: #666;
}

body.rwot-vduma-shop ul.products li.product .add_to_cart_button,
body.rwot-vduma-shop ul.products li.product .button[data-product_sku],
body.rwot-vduma-shop ul.products li.product .wishlist-icon,
body.rwot-vduma-shop ul.products li.product .rwot-free-shipping-badge {
	display: none !important;
}

body.rwot-vduma-shop .woocommerce-pagination {
	padding: 40px 0 64px;
	text-align: center;
}

/* ── Mobile drawer ──────────────────────────────────────────── */
.vduma-shop-mobile-drawer {
	position: fixed;
	inset: 0;
	z-index: 1200;
	background: rgba(0, 0, 0, 0.35);
}

.vduma-shop-mobile-drawer[hidden] {
	display: none !important;
}

.vduma-shop-mobile-drawer-inner {
	position: absolute;
	top: 0;
	right: 0;
	width: min(100%, 360px);
	height: 100%;
	background: #fff;
	padding: 20px;
	overflow-y: auto;
	animation: vdumaDrawerIn 0.25s ease;
}

@keyframes vdumaDrawerIn {
	from { transform: translateX(16px); opacity: 0.6; }
	to { transform: translateX(0); opacity: 1; }
}

.vduma-shop-mobile-drawer-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid #ececec;
}

.vduma-shop-mobile-drawer-close {
	appearance: none;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #1a1a1a;
}

.vduma-shop-mobile-hint {
	display: none;
}

.vduma-mobile-section {
	margin-bottom: 24px;
}

.vduma-mobile-section-title {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0 0 8px;
	color: #1a1a1a;
}

.vduma-mobile-section .vduma-filter-option {
	padding-left: 0;
	padding-right: 0;
}

.vduma-mobile-section .vduma-filter-option.is-selected {
	background: transparent;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 767px) {
	body.rwot-vduma-shop {
		--vduma-page-gutter: 16px; /* match header-vduma mobile padding */
	}
}

@media (max-width: 991.98px) {
	.vduma-shop {
		padding: 28px 0 0;
	}

	.vduma-shop-header {
		margin-bottom: 20px;
	}

	.vduma-shop-filters,
	.vduma-shop-meta {
		display: none;
	}

	.vduma-shop-toolbar {
		justify-content: flex-end;
		border-bottom: 0;
		padding-bottom: 16px;
	}

	.vduma-shop-mobile-filter {
		display: inline-flex;
	}

	body.rwot-vduma-shop .shop-page ul.products[class*="columns-"]:not(.splide__list),
	body.rwot-vduma-shop .shop-page #main > ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
		row-gap: 20px !important;
	}
}

@media (max-width: 575.98px) {
	body.rwot-vduma-shop .shop-page ul.products[class*="columns-"]:not(.splide__list),
	body.rwot-vduma-shop .shop-page #main > ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.vduma-shop-title {
		letter-spacing: 0.12em;
	}
}

/* ── Recently Viewed slider ─────────────────────────────────── */
body.rwot-vduma-shop .vduma-recently-viewed {
	width: 100%;
	margin: 56px 0 72px;
	padding: 0;
	position: relative;
	z-index: 5;
}

body.rwot-vduma-shop .vduma-recently-viewed-title {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-align: center;
	color: #1a1a1a;
	margin: 0 0 28px;
}

/* Carousel viewport (native scroll-snap — no JS library dependency) */
body.rwot-vduma-shop .vduma-carousel-viewport {
	position: relative;
	width: 100%;
}

body.rwot-vduma-shop ul.products.rwot-vduma-image-grid {
	display: flex !important;
	flex-wrap: nowrap !important;
	grid-template-columns: none !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	gap: 24px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	width: 100% !important;
	max-width: 100% !important;
	cursor: grab;
	touch-action: pan-x;
}

body.rwot-vduma-shop ul.products.rwot-vduma-image-grid.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
	-webkit-user-select: none;
}

body.rwot-vduma-shop ul.products.rwot-vduma-image-grid.is-dragging a {
	pointer-events: none;
}

body.rwot-vduma-shop ul.products.rwot-vduma-image-grid::-webkit-scrollbar {
	display: none;
}

body.rwot-vduma-shop ul.products.rwot-vduma-image-grid::before,
body.rwot-vduma-shop ul.products.rwot-vduma-image-grid::after {
	display: none !important;
	content: none !important;
}

body.rwot-vduma-shop ul.products.rwot-vduma-image-grid li.product.rwot-vduma-image-card {
	flex: 0 0 calc((100% - 48px) / 3) !important;
	width: calc((100% - 48px) / 3) !important;
	max-width: calc((100% - 48px) / 3) !important;
	min-width: 0 !important;
	margin: 0 !important;
	float: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent;
	border: none;
	padding: 0 !important;
	scroll-snap-align: start;
}

body.rwot-vduma-shop .rwot-vduma-image-card .vduma-pdp-image-card {
	width: 100%;
	border-radius: 0 !important;
	background: transparent;
	overflow: hidden;
	position: relative;
	display: block;
}

body.rwot-vduma-shop .rwot-vduma-image-card .vduma-pdp-image-card-link {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	height: auto;
	position: relative;
	text-decoration: none;
	background: #f3f1ee;
}

body.rwot-vduma-shop .rwot-vduma-image-card .vduma-pdp-image-card-imgwrap {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
}

body.rwot-vduma-shop .rwot-vduma-image-card .vduma-pdp-image-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	transition: opacity 0.4s ease;
}

body.rwot-vduma-shop .rwot-vduma-image-card .vduma-pdp-image-card-img--primary {
	opacity: 1;
	z-index: 1;
}

body.rwot-vduma-shop .rwot-vduma-image-card .vduma-pdp-image-card-img--hover {
	opacity: 0;
	z-index: 2;
}

body.rwot-vduma-shop .rwot-vduma-image-card:hover .vduma-pdp-image-card-img--hover {
	opacity: 1;
}

body.rwot-vduma-shop .rwot-vduma-image-card:hover .vduma-pdp-image-card-img--primary {
	opacity: 0;
}

body.rwot-vduma-shop .rwot-vduma-image-card .vdouma-sale-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	background: #fff;
	color: #c0392b;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding: 3px 8px;
	border-radius: 0;
	line-height: 1.3;
}

/* Carousel arrows */
body.rwot-vduma-shop .vduma-carousel-arrow {
	position: absolute;
	top: 38%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #e8e8e8;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	color: #1a1a1a;
	cursor: pointer;
	z-index: 10;
	padding: 0;
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
	pointer-events: auto;
}

body.rwot-vduma-shop .vduma-carousel-arrow--prev {
	left: 12px;
}

body.rwot-vduma-shop .vduma-carousel-arrow--next {
	right: 12px;
}

body.rwot-vduma-shop .vduma-carousel-arrow:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

body.rwot-vduma-shop .vduma-carousel-arrow:disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

@media (max-width: 991.98px) {
	body.rwot-vduma-shop .vduma-recently-viewed {
		margin: 40px 0 56px;
	}

	body.rwot-vduma-shop ul.products.rwot-vduma-image-grid {
		gap: 16px !important;
		padding-bottom: 4px;
	}

	body.rwot-vduma-shop .vduma-carousel-arrow {
		display: none;
	}

	body.rwot-vduma-shop ul.products.rwot-vduma-image-grid li.product.rwot-vduma-image-card {
		flex: 0 0 calc((100% - 16px) / 2) !important;
		width: calc((100% - 16px) / 2) !important;
		max-width: calc((100% - 16px) / 2) !important;
	}
}

@media (max-width: 575.98px) {
	body.rwot-vduma-shop ul.products.rwot-vduma-image-grid {
		gap: 10px !important;
	}

	body.rwot-vduma-shop ul.products.rwot-vduma-image-grid li.product.rwot-vduma-image-card {
		flex-basis: 78% !important;
		width: 78% !important;
		max-width: 78% !important;
	}
}

/* ── Infinite scroll ────────────────────────────────────────── */
body.rwot-vduma-shop .shop-bottom-navigation,
body.rwot-vduma-shop .woocommerce-pagination,
body.rwot-vduma-shop .woocommerce-result-count {
	display: none !important;
}

body.rwot-vduma-shop .vduma-infinite-scroll {
	width: 100%;
	padding: 28px 0 8px;
	text-align: center;
}

body.rwot-vduma-shop .vduma-infinite-scroll-loader {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #666;
	min-height: 28px;
}

body.rwot-vduma-shop .vduma-infinite-scroll-loader[hidden] {
	display: none !important;
}

body.rwot-vduma-shop .vduma-infinite-scroll-spinner {
	width: 14px;
	height: 14px;
	border: 1.5px solid #ddd;
	border-top-color: #1a1a1a;
	border-radius: 50%;
	animation: vdumaSpin 0.7s linear infinite;
}

@keyframes vdumaSpin {
	to { transform: rotate(360deg); }
}

body.rwot-vduma-shop .vduma-infinite-scroll-sentinel {
	width: 100%;
	height: 1px;
	pointer-events: none;
}

body.rwot-vduma-shop .vduma-infinite-scroll-fallback {
	display: inline-block;
	margin-top: 12px;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #1a1a1a;
}
