/**
 * Catalogue + product page — match design preview
 */

/* -------------------------------------------------------------------------- */
/* Shop / category archives                                                   */
/* -------------------------------------------------------------------------- */

body.dd-shell.woocommerce-shop #main,
body.dd-shell.tax-product_cat #main,
body.dd-shell.tax-product_tag #main,
body.dd-shell.post-type-archive-product #main,
body.dd-shell.woocommerce #main.dd-main {
	max-width: 1280px;
	margin: 0 auto !important;
	padding: 1.5rem clamp(1rem, 4vw, 3rem) 4rem !important;
	background: transparent;
}

body.dd-shell .shop-page-title,
body.dd-shell .page-title,
body.dd-shell .category-page-title,
body.dd-shell .page-title-bg,
body.dd-shell .page-header-wrapper {
	display: none !important;
}

body.dd-shell .woocommerce-products-header,
body.dd-shell .shop-container,
body.dd-shell .category-page-row,
body.dd-shell .row.category-page-row {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.dd-shell .dd-archive-head {
	text-align: center;
	margin: 0.5rem 0 2.5rem;
}

body.dd-shell .dd-archive-head .dd-eyebrow {
	color: var(--dd-champagne-deep, #9a7a52);
}

body.dd-shell .dd-archive-head h1 {
	font-family: var(--dd-font-display, "Cormorant Garamond", Georgia, serif) !important;
	font-weight: 500 !important;
	font-size: clamp(2rem, 4vw, 3rem) !important;
	letter-spacing: 0.02em !important;
	color: var(--dd-ink, #141210) !important;
	margin: 0 !important;
}

body.dd-shell .woocommerce-result-count,
body.dd-shell .woocommerce-ordering {
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	color: var(--dd-muted, #6b6560);
}

body.dd-shell .woocommerce-ordering select {
	border-radius: 0 !important;
	border: 1px solid var(--dd-line, rgba(20, 18, 16, 0.12)) !important;
	min-height: 42px;
	background: #fff;
}

/* Product cards — same as homepage / preview */
body.dd-shell ul.products,
body.dd-shell .products.row,
body.dd-shell .product-section .products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 1.75rem 1.5rem !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

body.dd-shell ul.products::before,
body.dd-shell ul.products::after,
body.dd-shell .products.row::before,
body.dd-shell .products.row::after {
	display: none !important;
	content: none !important;
}

body.dd-shell ul.products li.product,
body.dd-shell .products .product-small,
body.dd-shell .products .col {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	flex: none !important;
}

body.dd-shell .product-small .col-inner,
body.dd-shell .product-small .box,
body.dd-shell .product-small .box-text {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	border-radius: 0 !important;
}

/* Fix Flatsome equal-height padding bug: fill portrait frame evenly */
body.dd-shell .product-small .box-image,
body.dd-shell .has-equal-box-heights .box-image,
body.dd-shell .product .box-image,
body.dd-shell .products .box-image,
body.dd-shell .product-small .box-image.image-fade_in_back {
	position: relative !important;
	padding: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	aspect-ratio: 2 / 3 !important;
	background: var(--dd-porcelain-deep, #efe8df) !important;
	overflow: hidden !important;
	margin: 0 0 0.85rem !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

/* Keep wrappers filling the frame */
body.dd-shell .product-small .box-image > div,
body.dd-shell .product-small .box-image .image-fade_in_back,
body.dd-shell .product-small .box-image .image-wrapper,
body.dd-shell .products .box-image > div {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
}

/* CRITICAL: product link must fill the image area or clicks miss */
body.dd-shell .product-small .box-image a,
body.dd-shell .products .box-image a,
body.dd-shell .product-small .box-image > a {
	position: absolute !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	display: block !important;
	z-index: 5 !important;
	pointer-events: auto !important;
}

body.dd-shell .product-small .box-image img,
body.dd-shell .products .box-image img,
body.dd-shell .product-small .box-image .show-on-hover {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center top !important;
	margin: 0 !important;
	padding: 0 !important;
	pointer-events: none !important; /* clicks pass through image to the <a> */
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

body.dd-shell .product-small:hover .box-image img {
	transform: scale(1.04);
}

/* Overlays must never block clicks */
body.dd-shell .product-small .image-tools,
body.dd-shell .product-small .overlay,
body.dd-shell .product-small .box-image .overlay,
body.dd-shell .product-small .image-icon {
	pointer-events: none !important;
	z-index: 1 !important;
}

/* Title / price links stay clickable */
body.dd-shell .product-small .box-text,
body.dd-shell .product-small .box-text a {
	position: relative !important;
	z-index: 6 !important;
	pointer-events: auto !important;
}

body.dd-shell .product-small .box-text {
	padding: 0 !important;
	text-align: left !important;
}

body.dd-shell .product-small .category,
body.dd-shell .product-small .product-cat,
body.dd-shell .product-small .posted_in,
body.dd-shell .badge-container,
body.dd-shell .product-small .image-tools,
body.dd-shell .product-small .quick-view,
body.dd-shell .product-small .add-to-cart-button,
body.dd-shell .product-small .add_to_cart_button,
body.dd-shell .product-small .button,
body.dd-shell .product-small .out-of-stock-label,
body.dd-shell .product-small .star-rating {
	display: none !important;
}

body.dd-shell .product-small .product-title,
body.dd-shell .product-small .name,
body.dd-shell .woocommerce-loop-product__title,
body.dd-shell .product-small h3,
body.dd-shell .product-small h2 {
	font-family: var(--dd-font-display, "Cormorant Garamond", Georgia, serif) !important;
	font-size: 1.15rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.02em !important;
	line-height: 1.25 !important;
	text-transform: none !important;
	color: var(--dd-ink, #141210) !important;
	margin: 0 0 0.3rem !important;
}

body.dd-shell .product-small .price,
body.dd-shell .products .price {
	font-family: var(--dd-font-body, Manrope, sans-serif) !important;
	font-size: 0.85rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.04em !important;
	color: var(--dd-muted, #6b6560) !important;
	margin: 0 !important;
}

body.dd-shell .product-small .price .amount,
body.dd-shell .product-small .price ins {
	color: var(--dd-ink, #141210) !important;
	text-decoration: none !important;
}

/* Soften Afterpay under cards */
body.dd-shell .product-small .afterpay-paragraph,
body.dd-shell .product-small [class*="afterpay"],
body.dd-shell .product-small [class*="Afterpay"] {
	font-size: 0.72rem !important;
	color: var(--dd-muted, #6b6560) !important;
	margin-top: 0.35rem !important;
	line-height: 1.35 !important;
}

/* -------------------------------------------------------------------------- */
/* Single product — side-by-side like preview                                 */
/* -------------------------------------------------------------------------- */

body.dd-shell.single-product #main {
	max-width: 1200px;
	margin: 0 auto !important;
	padding: 1rem clamp(1rem, 4vw, 2.5rem) 3.5rem !important;
}

body.dd-shell.single-product .product-container {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Flatsome wraps gallery + summary in .row.content-row */
body.dd-shell.single-product .product-main {
	margin: 0 !important;
	padding: 0 !important;
}

body.dd-shell.single-product .product-main .row.content-row,
body.dd-shell.single-product .product-main > .row {
	display: grid !important;
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr) !important;
	gap: clamp(1.5rem, 3vw, 2.75rem) !important;
	align-items: start !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: none !important;
	float: none !important;
}

body.dd-shell.single-product .product-main .row.content-row::before,
body.dd-shell.single-product .product-main .row.content-row::after,
body.dd-shell.single-product .product-main > .row::before,
body.dd-shell.single-product .product-main > .row::after {
	display: none !important;
	content: none !important;
}

/* Left: gallery */
body.dd-shell.single-product .product-gallery {
	width: 100% !important;
	max-width: none !important;
	flex: none !important;
	float: none !important;
	padding: 0 !important;
	margin: 0 !important;
	grid-column: 1;
}

/* Right: buy panel */
body.dd-shell.single-product .product-info,
body.dd-shell.single-product .product-summary,
body.dd-shell.single-product .entry-summary {
	width: 100% !important;
	max-width: 26rem !important;
	flex: none !important;
	float: none !important;
	padding: 0 !important;
	margin: 0 !important;
	grid-column: 2;
	justify-self: start;
}

/* Hide narrow Flatsome sidebar that breaks the 2-col layout */
body.dd-shell.single-product #product-sidebar,
body.dd-shell.single-product .product-sidebar-small {
	display: none !important;
}

body.dd-shell.single-product .product-gallery,
body.dd-shell.single-product .woocommerce-product-gallery,
body.dd-shell.single-product .product-images {
	background: var(--dd-porcelain-deep, #efe8df);
}

body.dd-shell.single-product .product-gallery-slider,
body.dd-shell.single-product .woocommerce-product-gallery__wrapper {
	margin-bottom: 0.75rem !important;
}

body.dd-shell.single-product .woocommerce-product-gallery__image,
body.dd-shell.single-product .product-gallery-slider .slide {
	max-height: min(72vh, 720px);
	overflow: hidden;
	background: var(--dd-porcelain-deep, #efe8df);
}

body.dd-shell.single-product .woocommerce-product-gallery__image img,
body.dd-shell.single-product .product-gallery img,
body.dd-shell.single-product .slide img,
body.dd-shell.single-product .product-images img {
	width: 100% !important;
	height: min(72vh, 720px) !important;
	max-height: min(72vh, 720px) !important;
	object-fit: cover !important;
	object-position: center top !important;
	margin: 0 auto !important;
	display: block !important;
}

body.dd-shell.single-product .product-thumbnails {
	margin-top: 0.65rem !important;
}

body.dd-shell.single-product .product-thumbnails .col {
	padding: 0.2rem !important;
}

body.dd-shell.single-product .product_title,
body.dd-shell.single-product h1.product-title,
body.dd-shell.single-product .product-title {
	font-family: var(--dd-font-display, "Cormorant Garamond", Georgia, serif) !important;
	font-weight: 500 !important;
	font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
	line-height: 1.15 !important;
	letter-spacing: 0.01em !important;
	color: var(--dd-ink, #141210) !important;
	margin: 0 0 0.65rem !important;
}

body.dd-shell.single-product .price {
	font-family: var(--dd-font-body, Manrope, sans-serif) !important;
	font-size: 1.05rem !important;
	letter-spacing: 0.04em !important;
	color: var(--dd-muted, #6b6560) !important;
	margin: 0 0 0.85rem !important;
}

body.dd-shell.single-product .woocommerce-product-rating,
body.dd-shell.single-product .next-prev-thumbs,
body.dd-shell.single-product .product-page-tools,
body.dd-shell.single-product .is-divider,
body.dd-shell.single-product .social-icons {
	display: none !important;
}

body.dd-shell.single-product .product-short-description,
body.dd-shell.single-product .woocommerce-product-details__short-description {
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--dd-muted, #6b6560);
	margin: 0 0 1.25rem;
	max-width: 26rem;
}

body.dd-shell.single-product .variations,
body.dd-shell.single-product .variations tr,
body.dd-shell.single-product .variations td,
body.dd-shell.single-product .variations th {
	border: 0 !important;
	background: transparent !important;
	padding: 0.3rem 0 !important;
	display: block;
	width: 100%;
}

body.dd-shell.single-product .variations label,
body.dd-shell.single-product .variations .label {
	font-size: 0.72rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: var(--dd-ink, #141210) !important;
	margin-bottom: 0.45rem !important;
	display: block !important;
}

body.dd-shell.single-product .variations select {
	border-radius: 0 !important;
	border: 1px solid var(--dd-line, rgba(20, 18, 16, 0.12)) !important;
	min-height: 46px !important;
	background: #fff !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.dd-shell.single-product form.cart {
	max-width: 26rem;
}

body.dd-shell.single-product .quantity {
	margin: 0.75rem 0 !important;
}

body.dd-shell.single-product .qty,
body.dd-shell.single-product .quantity input.qty {
	border-radius: 0 !important;
	border: 1px solid var(--dd-line, rgba(20, 18, 16, 0.12)) !important;
	min-height: 46px !important;
	width: 4rem !important;
	max-width: 4rem !important;
	background: #fff !important;
}

body.dd-shell.single-product .single_add_to_cart_button,
body.dd-shell.single-product .cart .button {
	width: 100% !important;
	max-width: 26rem !important;
	margin-top: 0.5rem !important;
	border-radius: 0 !important;
	background: var(--dd-ink, #141210) !important;
	border: 1px solid var(--dd-ink, #141210) !important;
	color: var(--dd-porcelain, #f8f4ef) !important;
	font-size: 0.72rem !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	font-weight: 600 !important;
	padding: 0.95rem 1.4rem !important;
	min-height: 50px !important;
}

body.dd-shell.single-product .single_add_to_cart_button:hover {
	background: var(--dd-champagne-deep, #9a7a52) !important;
	border-color: var(--dd-champagne-deep, #9a7a52) !important;
}

body.dd-shell.single-product .reset_variations {
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--dd-champagne-deep, #9a7a52) !important;
}

body.dd-shell .dd-pdp-promises {
	border-top: 1px solid var(--dd-line, rgba(20, 18, 16, 0.12));
	margin-top: 1.25rem;
	padding-top: 1.1rem;
	display: grid;
	gap: 0.55rem;
	max-width: 26rem;
}

body.dd-shell .dd-pdp-promises p {
	margin: 0;
	font-size: 0.85rem;
	color: var(--dd-muted, #6b6560);
	line-height: 1.45;
}

body.dd-shell .dd-pdp-promises strong {
	color: var(--dd-ink, #141210);
}

body.dd-shell .dd-size-help {
	font-size: 0.82rem;
	color: var(--dd-champagne-deep, #9a7a52);
	margin: 0.85rem 0 0;
	line-height: 1.5;
	max-width: 26rem;
}

body.dd-shell .dd-size-help a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Tabs */
body.dd-shell.single-product .woocommerce-tabs,
body.dd-shell.single-product .product-footer,
body.dd-shell.single-product .product-section {
	margin-top: 2.5rem;
	border-top: 1px solid var(--dd-line, rgba(20, 18, 16, 0.12));
	padding-top: 0;
	grid-column: 1 / -1;
}

body.dd-shell.single-product .woocommerce-tabs ul.tabs,
body.dd-shell.single-product .wc-tabs {
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	display: flex;
	gap: 1.5rem;
	border-bottom: 1px solid var(--dd-line, rgba(20, 18, 16, 0.12)) !important;
}

body.dd-shell.single-product .woocommerce-tabs ul.tabs li {
	border: 0 !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.dd-shell.single-product .woocommerce-tabs ul.tabs li a {
	font-size: 0.72rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	padding: 1rem 0 !important;
	color: var(--dd-muted, #6b6560) !important;
	border: 0 !important;
	display: block;
}

body.dd-shell.single-product .woocommerce-tabs ul.tabs li.active a,
body.dd-shell.single-product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--dd-ink, #141210) !important;
}

body.dd-shell.single-product .woocommerce-Tabs-panel {
	padding: 1.1rem 0 0 !important;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--dd-muted, #6b6560);
	max-width: 42rem;
}

body.dd-shell.single-product .related.products > h2,
body.dd-shell.single-product .upsells.products > h2 {
	font-family: var(--dd-font-display, "Cormorant Garamond", Georgia, serif) !important;
	font-weight: 500 !important;
	font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
	text-align: center;
	margin: 2.5rem 0 1.75rem !important;
}

body.dd-shell .woocommerce-breadcrumb,
body.dd-shell .product-breadcrumb {
	font-size: 0.7rem !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	color: var(--dd-muted, #6b6560) !important;
	margin: 0 0 1rem !important;
	padding: 0 !important;
	background: transparent !important;
}

body.dd-shell .woocommerce-breadcrumb a {
	color: var(--dd-muted, #6b6560) !important;
}

body.dd-shell .woocommerce-breadcrumb a:hover {
	color: var(--dd-champagne-deep, #9a7a52) !important;
}

@media (max-width: 900px) {
	body.dd-shell ul.products,
	body.dd-shell .products.row {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	body.dd-shell.single-product .product-main .row.content-row,
	body.dd-shell.single-product .product-main > .row {
		grid-template-columns: 1fr !important;
	}

	body.dd-shell.single-product .product-gallery,
	body.dd-shell.single-product .product-info,
	body.dd-shell.single-product .product-summary,
	body.dd-shell.single-product .entry-summary {
		grid-column: 1 !important;
		max-width: none !important;
	}

	body.dd-shell.single-product .woocommerce-product-gallery__image img,
	body.dd-shell.single-product .product-gallery img,
	body.dd-shell.single-product .slide img {
		height: min(65vh, 560px) !important;
		max-height: min(65vh, 560px) !important;
	}
}

@media (max-width: 560px) {
	body.dd-shell ul.products,
	body.dd-shell .products.row {
		grid-template-columns: 1fr !important;
	}
}
