/* PDP — matches HRR shell tokens / shop / home patterns. Scoped to .hrr-shell */

.hrr-shell .hrr-pdp {
	background: var(--hrr-bg, #f9f6f1);
	color: var(--hrr-fg, #351c26);
}

.hrr-shell .hrr-pdp-inner {
	max-width: var(--hrr-max, 1240px);
	margin: 0 auto;
	padding: 28px 24px 96px;
}

.hrr-shell .hrr-pdp-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font: 500 10px/1.4 var(--hrr-font-mono, "DM Mono", monospace);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hrr-muted, #6b5560);
	margin-bottom: 28px;
}

.hrr-shell .hrr-pdp-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.hrr-shell .hrr-pdp-breadcrumb a:hover {
	color: var(--hrr-fg, #351c26);
}

.hrr-shell .hrr-pdp-breadcrumb-current {
	color: var(--hrr-fg, #351c26);
	max-width: 28ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hrr-shell .hrr-pdp .woocommerce-notices-wrapper,
.hrr-shell .hrr-pdp .woocommerce-message,
.hrr-shell .hrr-pdp .woocommerce-info,
.hrr-shell .hrr-pdp .woocommerce-error {
	margin-bottom: 20px;
	font-family: var(--hrr-font-sans, "DM Sans", sans-serif) !important;
}

.hrr-shell .hrr-pdp-layout {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: start;
}

/* Gallery */
.hrr-shell .hrr-pdp-gallery-main {
	background: #e9ddd0;
	overflow: hidden;
	aspect-ratio: 3 / 4;
}

.hrr-shell .hrr-pdp-main-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hrr-shell .hrr-pdp-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: 10px;
	margin-top: 12px;
}

.hrr-shell .hrr-pdp-thumb {
	border: 1px solid transparent;
	padding: 0;
	background: #e9ddd0;
	cursor: pointer;
	aspect-ratio: 3 / 4;
	overflow: hidden;
}

.hrr-shell .hrr-pdp-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hrr-shell .hrr-pdp-thumb.is-active,
.hrr-shell .hrr-pdp-thumb:hover {
	border-color: #4b182e;
}

/* Summary */
.hrr-shell .hrr-pdp-kicker {
	font: 500 10px/1.3 var(--hrr-font-mono, "DM Mono", monospace) !important;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #792541 !important;
	margin: 0 0 10px;
}

.hrr-shell .hrr-pdp-title {
	font: 500 clamp(32px, 4vw, 48px)/1.08 var(--hrr-font-serif, "Playfair Display", serif) !important;
	letter-spacing: -0.035em;
	margin: 0;
	color: var(--hrr-fg, #351c26) !important;
}

.hrr-shell .hrr-pdp-price {
	margin: 18px 0 0;
	font: 500 20px/1.3 var(--hrr-font-sans, "DM Sans", sans-serif) !important;
	color: var(--hrr-fg, #351c26);
}

.hrr-shell .hrr-pdp-price del {
	opacity: 0.5;
	margin-right: 8px;
}

.hrr-shell .hrr-pdp-excerpt {
	margin-top: 20px;
	color: var(--hrr-muted, #6b5560);
	font-size: 15px;
	line-height: 1.65;
	max-width: 42ch;
}

.hrr-shell .hrr-pdp-excerpt p {
	margin: 0 0 0.75em;
}

.hrr-shell .hrr-pdp-cart {
	margin-top: 28px;
}

.hrr-shell .hrr-pdp-stock.out-of-stock,
.hrr-shell .hrr-pdp-cart .stock.out-of-stock {
	margin: 0 0 16px;
	padding: 12px 16px;
	border: 1px solid hsl(30 12% 86%);
	background: hsl(30 20% 96%);
	color: hsl(20 10% 22%);
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Style native WC cart form to HRR buttons */
.hrr-shell .hrr-pdp-cart form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}

.hrr-shell .hrr-pdp-cart .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid #e8dccf;
	background: #fff;
	min-height: 46px;
}

.hrr-shell .hrr-pdp-cart .quantity .qty {
	width: 56px;
	border: 0;
	text-align: center;
	font: 500 14px/1 var(--hrr-font-sans, "DM Sans", sans-serif);
	color: var(--hrr-fg, #351c26);
	background: transparent;
	-moz-appearance: textfield;
}

.hrr-shell .hrr-pdp-cart .quantity .qty::-webkit-outer-spin-button,
.hrr-shell .hrr-pdp-cart .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.hrr-shell .hrr-pdp-cart .single_add_to_cart_button,
.hrr-shell .hrr-pdp-cart .anarkali-btn-buynow,
.hrr-shell .hrr-pdp-cart button.button {
	min-height: 46px !important;
	padding: 0 22px !important;
	border-radius: 0 !important;
	border: 1px solid #f0b099 !important;
	background: #f0b099 !important;
	color: #4b182e !important;
	font: 500 10px/1 var(--hrr-font-mono, "DM Mono", monospace) !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	box-shadow: none !important;
	flex: 1 1 auto;
	transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.hrr-shell .hrr-pdp-cart .single_add_to_cart_button:hover,
.hrr-shell .hrr-pdp-cart button.button:hover {
	background: #f7c9b7 !important;
	transform: translateY(-3px);
}

.hrr-shell .hrr-pdp-cart .anarkali-btn-buynow,
.hrr-shell .hrr-pdp-cart .anarkali-product-after-cart .button {
	background: transparent !important;
	border-color: hsl(var(--primary) / 0.45) !important;
	color: hsl(var(--primary)) !important;
}

.hrr-shell .hrr-pdp-cart .anarkali-btn-buynow:hover,
.hrr-shell .hrr-pdp-cart .anarkali-product-after-cart .button:hover {
	background: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	transform: translateY(-3px);
}

.hrr-shell .hrr-pdp-actions-extra {
	margin-top: 14px;
	margin-bottom: 36px;
	display: grid;
	gap: 10px;
}

.hrr-shell .hrr-pdp-wishlist-btn,
.hrr-shell .hrr-pdp-custom-btn {
	/* Ghost on cream — dark text (not light ghost used on dark heroes) */
	width: 100%;
	max-width: 100%;
	color: hsl(var(--primary)) !important;
	border-color: hsl(var(--primary) / 0.45) !important;
	background: transparent !important;
	transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.hrr-shell .hrr-pdp-wishlist-btn:hover,
.hrr-shell .hrr-pdp-custom-btn:hover {
	background: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	transform: translateY(-3px);
}

.hrr-shell .hrr-pdp-wishlist-btn.is-saved {
	background: hsl(var(--accent)) !important;
	border-color: hsl(var(--accent)) !important;
	color: hsl(var(--primary)) !important;
}

.hrr-shell .hrr-pdp-wishlist-btn.is-saved:hover {
	background: hsl(var(--accent)) !important;
	color: hsl(var(--primary)) !important;
}

.hrr-shell .hrr-pdp-wishlist-btn.is-saved svg {
	fill: currentColor;
}

.hrr-shell .hrr-pdp-meta {
	list-style: none;
	margin: 0;
	padding: 20px 0 0;
	border-top: 1px solid #e8dccf;
	font: 500 10px/1.6 var(--hrr-font-mono, "DM Mono", monospace);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hrr-muted, #6b5560);
}

.hrr-shell .hrr-pdp-meta li {
	margin: 0 0 8px;
}

.hrr-shell .hrr-pdp-meta span {
	color: var(--hrr-fg, #351c26);
	margin-right: 8px;
}

.hrr-shell .hrr-pdp-meta a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Hide dense theme extras that may still inject */
.hrr-shell .hrr-pdp .anarkali-product-after-cart-btn.btns-wrapper,
.hrr-shell .hrr-pdp .anarkali-wishlist-btn,
.hrr-shell .hrr-pdp .anarkali-compare-btn,
.hrr-shell .hrr-pdp .anarkali-whatsapp,
.hrr-shell .hrr-pdp a.anarkali-whatsapp,
.hrr-shell .hrr-pdp .product_meta,
.hrr-shell .hrr-pdp .anarkali-swatches-wrapper:empty {
	display: none !important;
}

.hrr-shell .hrr-pdp-cart .product_meta {
	display: none !important;
}

/* Details accordion */
.hrr-shell .hrr-pdp-details {
	margin-top: 72px;
	border-top: 1px solid #e8dccf;
}

.hrr-shell .hrr-pdp-accordion {
	border-bottom: 1px solid #e8dccf;
}

.hrr-shell .hrr-pdp-accordion summary {
	cursor: pointer;
	list-style: none;
	padding: 22px 0;
	font: 500 11px/1.3 var(--hrr-font-mono, "DM Mono", monospace) !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hrr-fg, #351c26);
}

.hrr-shell .hrr-pdp-accordion summary::-webkit-details-marker {
	display: none;
}

.hrr-shell .hrr-pdp-accordion summary::after {
	content: "+";
	float: right;
	font-size: 16px;
}

.hrr-shell .hrr-pdp-accordion[open] summary::after {
	content: "–";
}

.hrr-shell .hrr-pdp-accordion-body {
	padding: 0 0 28px;
	color: var(--hrr-muted, #6b5560);
	font-size: 15px;
	line-height: 1.65;
	max-width: 70ch;
}

/* Editor labels like “Features:” — keep dark/bold on muted body copy */
.hrr-shell .hrr-pdp-accordion-body p > span,
.hrr-shell .hrr-pdp-excerpt p > span {
	font-weight: 900;
	font-size: 15px;
	color: var(--hrr-fg, #351c26);
}

.hrr-shell .hrr-pdp-attrs {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.hrr-shell .hrr-pdp-attrs th,
.hrr-shell .hrr-pdp-attrs td {
	text-align: left;
	padding: 10px 12px 10px 0;
	border-bottom: 1px solid #e8dccf;
}

.hrr-shell .hrr-pdp-attrs th {
	font: 500 10px/1.3 var(--hrr-font-mono, "DM Mono", monospace);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hrr-fg, #351c26);
	width: 35%;
}

/* Related */
.hrr-shell .hrr-pdp-related {
	margin-top: 88px;
}

.hrr-shell .hrr-pdp-related-head {
	margin-bottom: 28px;
}

.hrr-shell .hrr-pdp-related-title {
	font: 500 clamp(32px, 4vw, 48px)/1.08 var(--hrr-font-serif, "Playfair Display", serif) !important;
	letter-spacing: -0.035em;
	margin: 8px 0 0;
	color: var(--hrr-fg, #351c26) !important;
}

.hrr-shell .hrr-pdp-related-more {
	margin-top: 28px;
}

/* Responsive */
@media (max-width: 899px) {
	.hrr-shell .hrr-pdp-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.hrr-shell .hrr-pdp-inner {
		padding: 20px 20px 72px;
	}

	.hrr-shell .hrr-pdp-cart form.cart {
		flex-direction: column;
		align-items: stretch;
	}

	.hrr-shell .hrr-pdp-cart .quantity,
	.hrr-shell .hrr-pdp-cart .single_add_to_cart_button,
	.hrr-shell .hrr-pdp-cart .anarkali-btn-buynow {
		width: 100%;
	}

	.hrr-shell .hrr-pdp-related .hrr-products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.hrr-shell .hrr-pdp-related .hrr-products {
		grid-template-columns: 1fr;
	}

	.hrr-shell .hrr-pdp-thumbs {
		grid-template-columns: repeat(4, 1fr);
	}
}
