/**
 * Mobile PDP (≤900px) — brand product page experience
 * Desktop layout is intentionally untouched.
 */

/* Gallery nav arrows — hidden on desktop by default, shown on mobile */
.adult-store-product-gallery__nav {
	display: none;
}

/* Meta cards — compact on desktop too */
.adult-store-pdp__meta-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 18px;
}

.adult-store-pdp__meta-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	min-width: 112px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	background: color-mix(in srgb, var(--adult-store-bg-card, #121212) 88%, transparent);
}

.adult-store-pdp__meta-stars {
	color: var(--adult-store-accent, #c9a86a);
	font-size: 0.62rem;
	letter-spacing: 0.04em;
	line-height: 1;
}

.adult-store-pdp__meta-score {
	font-size: 1.15rem;
	font-weight: 500;
	line-height: 1.1;
	color: rgba(245, 245, 245, 0.95);
}

.adult-store-pdp__meta-reviews,
.adult-store-pdp__meta-sold-label {
	font-size: 0.68rem;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.45);
}

.adult-store-pdp__meta-sold-value {
	font-size: 1.15rem;
	font-weight: 500;
	line-height: 1.1;
	color: rgba(245, 245, 245, 0.95);
}

/* Accordion triggers only for mobile */
.adult-store-pdp-tabs__accordion {
	display: none;
}

@media (max-width: 900px) {
	/* ── Header: Menu | Logo | Actions ── */
	.adult-store-header__inner {
		grid-template-columns: 44px minmax(0, 1fr) auto;
		grid-template-areas:
			"toggle brand actions"
			"nav nav nav";
		align-items: center;
		gap: 8px 12px;
		padding: 12px 14px;
		min-height: 56px;
	}

	.adult-store-header__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		gap: 5px;
		grid-area: toggle;
		justify-self: start;
		align-self: center;
		width: 40px;
		height: 40px;
		margin: 0;
		padding: 0;
		border: 0 !important;
		border-radius: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		outline: none;
		cursor: pointer;
		appearance: none;
		-webkit-appearance: none;
	}

	.adult-store-header__brand {
		grid-area: brand;
		justify-self: center;
		text-align: center;
	}

	.adult-store-header__brand .custom-logo {
		max-height: 24px;
	}

	.adult-store-header__actions {
		grid-area: actions;
		justify-self: end;
		gap: 4px;
	}

	.adult-store-header__nav {
		grid-area: nav;
		display: none;
		justify-self: stretch;
		padding-top: 12px;
		border-top: 1px solid var(--adult-store-border, rgba(255, 255, 255, 0.1));
	}

	body.adult-store-nav-open .adult-store-header__nav {
		display: block;
	}

	.adult-store-header__icon-link {
		width: 40px;
		height: 40px;
	}

	.adult-store-header__icon-link svg {
		width: 20px;
		height: 20px;
	}

	/* ── PDP shell ── */
	.adult-store-pdp {
		padding: 0 0 56px !important;
		overflow-x: hidden;
	}

	.adult-store-pdp__breadcrumb {
		display: none;
	}

	.adult-store-pdp__hero,
	.adult-store-product-hero {
		display: block !important;
		max-width: none;
		margin: 0;
		padding: 0 !important;
		gap: 0;
	}

	.adult-store-pdp__gallery-col,
	.adult-store-pdp__summary-col {
		width: 100% !important;
		max-width: none !important;
		float: none !important;
	}

	.adult-store-pdp__summary-col .summary.entry-summary,
	.adult-store-pdp__summary-col div.summary {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0;
		padding: 22px 16px 8px;
		background: var(--adult-store-bg, #050505);
		box-sizing: border-box;
		overflow: visible;
	}

	/* ── Gallery ── */
	.adult-store-pdp__gallery,
	.adult-store-product-gallery {
		display: flex !important;
		flex-direction: column;
		gap: 12px;
		min-height: 0 !important;
		width: 100%;
		margin: 0;
		padding: 0;
	}

	.adult-store-product-gallery__main {
		order: 1;
		width: 100%;
		height: auto !important;
		min-height: 0 !important;
		max-height: none;
		aspect-ratio: 1 / 1;
		flex: 0 0 auto;
		background: #f2eee7 !important;
		border-radius: 0;
		overflow: hidden;
		isolation: isolate;
		contain: layout paint;
		transform: none !important;
	}

	.adult-store-product-gallery__thumbs {
		order: 2;
		display: flex;
		flex-direction: row;
		align-items: center;
		flex: 0 0 auto;
		width: auto;
		max-width: 100%;
		margin: 0 16px;
		padding: 0 0 2px;
		gap: 10px;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		transform: none !important;
	}

	.adult-store-product-gallery__lightbox,
	.adult-store-product-gallery__stage {
		position: absolute !important;
		inset: 0 !important;
		display: block !important;
		padding: 0 !important;
		background: #f2eee7 !important;
		overflow: hidden;
	}

	.adult-store-product-gallery__main.is-fit-cover .adult-store-product-gallery__image,
	.adult-store-product-gallery__main.is-fit-contain .adult-store-product-gallery__image,
	.adult-store-product-gallery__image {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		max-height: none !important;
		padding: 14px;
		box-sizing: border-box;
		object-fit: contain !important;
		object-position: center center !important;
		aspect-ratio: auto !important;
		background: #f2eee7 !important;
		filter: none !important;
		box-shadow: none !important;
	}

	.adult-store-product-gallery__image.is-active {
		opacity: 1;
		visibility: visible;
		z-index: 2;
	}

	.adult-store-product-gallery__image.is-buffer {
		opacity: 0;
		visibility: hidden;
		z-index: 1;
	}

	.adult-store-product-gallery__nav {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 50%;
		z-index: 4;
		width: 40px;
		height: 40px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: rgba(10, 10, 10, 0.42);
		color: rgba(255, 255, 255, 0.92);
		font-size: 1.35rem;
		line-height: 1;
		transform: translateY(-50%);
		cursor: pointer;
		backdrop-filter: blur(4px);
		transition: background 0.2s ease, color 0.2s ease;
		-webkit-tap-highlight-color: transparent;
	}

	.adult-store-product-gallery__nav:hover,
	.adult-store-product-gallery__nav:active,
	.adult-store-product-gallery__nav:focus-visible {
		background: rgba(10, 10, 10, 0.62);
		color: #fff;
		outline: none;
	}

	.adult-store-product-gallery__nav--prev {
		left: 10px;
	}

	.adult-store-product-gallery__nav--next {
		right: 10px;
	}

	.adult-store-product-gallery__zoom {
		right: 12px;
		bottom: 12px;
		padding: 6px 10px;
		font-size: 0.56rem;
		background: rgba(8, 8, 8, 0.55);
	}

	.adult-store-product-gallery__thumbs::-webkit-scrollbar {
		display: none;
	}

	.adult-store-product-gallery__thumb,
	.adult-store-pdp__thumb-more {
		flex: 0 0 68px;
		width: 68px;
		height: 68px;
		border-radius: 6px;
		border: 1px solid rgba(255, 255, 255, 0.1);
		background: #f2eee7;
		overflow: hidden;
	}

	.adult-store-product-gallery__thumb.is-active {
		border-color: var(--adult-store-accent, #c9a86a);
		box-shadow: 0 0 0 1px var(--adult-store-accent, #c9a86a);
	}

	.adult-store-product-gallery__thumb-img {
		object-fit: contain;
		background: #f2eee7;
	}

	.adult-store-product-gallery__thumb.is-thumb-hidden {
		display: block;
	}

	.adult-store-product-gallery__360 {
		flex: 0 0 68px;
		width: 68px;
		height: 68px;
	}

	.adult-store-pdp__thumb-more {
		display: none !important;
	}

	/* ── Summary ── */
	.adult-store-pdp__summary .product_title {
		margin: 0 0 12px;
		font-family: Georgia, "Times New Roman", Times, serif;
		font-size: clamp(1.55rem, 7vw, 2rem);
		font-weight: 400;
		letter-spacing: 0.02em;
		text-transform: none;
		line-height: 1.2;
		color: rgba(245, 245, 245, 0.96);
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	.adult-store-pdp__summary .price {
		margin: 0 0 14px;
		font-size: clamp(1.45rem, 6.2vw, 1.85rem);
		font-weight: 500;
		line-height: 1.15;
		color: rgba(245, 245, 245, 0.94);
	}

	.adult-store-pdp__summary .price del {
		margin-right: 8px;
		opacity: 0.42;
		font-size: 0.72em;
		font-weight: 400;
		color: rgba(255, 255, 255, 0.5);
	}

	.adult-store-pdp__summary .price ins {
		text-decoration: none;
		color: var(--adult-store-accent, #c9a86a);
	}

	.adult-store-pdp__meta-cards {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		margin: 0 0 16px;
	}

	.adult-store-pdp__meta-card {
		min-width: 0;
		padding: 14px 12px;
	}

	.adult-store-pdp__meta-cards:has(.adult-store-pdp__meta-card:only-child) {
		grid-template-columns: 1fr;
	}

	.adult-store-pdp__payment-note {
		margin: 0 0 16px;
		font-size: 0.74rem;
	}

	.adult-store-pdp__summary .woocommerce-product-details__short-description {
		display: none;
	}

	/* Variations / swatches */
	.adult-store-pdp__variations {
		margin-bottom: 14px;
	}

	.adult-store-color-swatches {
		gap: 14px;
		margin-top: 8px;
	}

	.adult-store-color-swatches__btn {
		width: 40px;
		height: 40px;
	}

	/* Shipping / buy panel — keep borders fully visible, no parent clipping */
	.adult-store-pdp__summary-col,
	.adult-store-pdp__summary,
	.adult-store-pdp__summary .cart,
	.adult-store-pdp__summary form.cart,
	.adult-store-pdp__summary .variations_form,
	.adult-store-pdp__summary .single_variation_wrap,
	.adult-store-pdp__summary .woocommerce-variation-add-to-cart,
	.adult-store-pdp__buy-panel {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		float: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		box-sizing: border-box !important;
		overflow: visible !important;
	}

	.adult-store-pdp__shipping-options,
	.adult-store-pdp__shipping-eta,
	.adult-store-pdp-shipping {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		margin: 0 0 20px;
		margin-left: 0;
		margin-right: 0;
		box-sizing: border-box;
		overflow: visible;
	}

	.adult-store-pdp__summary table.variations {
		width: 100%;
		max-width: 100%;
		table-layout: fixed;
	}

	.adult-store-pdp__summary table.variations th,
	.adult-store-pdp__summary table.variations td {
		display: block;
		width: 100%;
		padding-left: 0;
		padding-right: 0;
	}

	/* Qty + ATC */
	.adult-store-pdp__qty-row {
		display: inline-flex;
		width: auto;
		max-width: 100%;
		margin: 0 0 12px;
		box-sizing: border-box;
	}

	.adult-store-pdp__qty-btn {
		flex: 0 0 44px;
		width: 44px;
		min-height: 46px;
	}

	.adult-store-pdp__qty-input {
		flex: 0 0 56px !important;
		width: 56px !important;
		min-width: 56px !important;
		min-height: 46px !important;
	}

	.adult-store-pdp__fulfillment {
		width: 100%;
		max-width: 100%;
		margin: 0 0 14px;
		box-sizing: border-box;
	}

	.adult-store-pdp__stock,
	.adult-store-pdp__discreet {
		letter-spacing: 0.06em;
	}

	.adult-store-pdp__add-btn,
	.adult-store-pdp__cart-form .single_add_to_cart_button {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		min-height: 54px !important;
		margin: 0 0 12px;
		font-size: 0.76rem !important;
		letter-spacing: 0.16em;
		box-sizing: border-box !important;
	}

	.adult-store-pdp__add-btn:disabled,
	.adult-store-pdp__cart-form .single_add_to_cart_button:disabled,
	.adult-store-pdp__cart-form .single_add_to_cart_button.disabled {
		opacity: 0.45;
		filter: grayscale(0.25);
	}

	.adult-store-pdp__buy-now-wrap {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
	}

	.adult-store-pdp__buy-now {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		min-height: 54px !important;
		margin: 0 !important;
		padding: 0 16px !important;
		border: 1px solid #c9a86a !important;
		background: #0a0a0a !important;
		color: #c9a86a !important;
		box-sizing: border-box !important;
		font-size: 0.76rem !important;
		letter-spacing: 0.16em !important;
	}

	.adult-store-pdp__trust {
		grid-template-columns: 1fr;
		gap: 14px;
		margin-top: 18px;
		padding-top: 18px;
	}

	.adult-store-pdp__trust-item {
		flex-direction: row;
		justify-content: flex-start;
		align-items: center;
		gap: 12px;
		padding: 0;
		text-align: left;
		border-left: 0 !important;
	}

	.adult-store-pdp__trust-item + .adult-store-pdp__trust-item {
		border-left: 0 !important;
	}

	.adult-store-pdp__trust-label {
		max-width: none;
		font-size: 0.68rem;
		line-height: 1.4;
		letter-spacing: 0.08em;
		text-align: left;
	}

	/* ── Tabs → Accordion ── */
	.adult-store-pdp-tabs,
	.adult-store-pdp__tabs {
		margin: 28px 16px 0;
		padding-top: 0;
		border-top: 0;
	}

	.adult-store-pdp-tabs.is-accordion-mode .adult-store-pdp-tabs__nav,
	.adult-store-pdp-tabs.is-accordion-mode .adult-store-pdp__tabs-nav {
		display: none;
	}

	.adult-store-pdp-tabs.is-accordion-mode .adult-store-pdp-tabs__panels {
		display: flex;
		flex-direction: column;
		gap: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}

	.adult-store-pdp-tabs.is-accordion-mode .adult-store-pdp-tabs__panel,
	.adult-store-pdp-tabs.is-accordion-mode .adult-store-pdp__tabs-panel {
		display: block !important;
		padding: 0;
		border: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		background: transparent;
	}

	.adult-store-pdp-tabs.is-accordion-mode .adult-store-pdp-tabs__panel[hidden] {
		display: block !important;
	}

	.adult-store-pdp-tabs.is-accordion-mode .adult-store-pdp-tabs__accordion {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		margin: 0;
		padding: 16px 2px;
		border: 0;
		background: transparent;
		color: rgba(245, 245, 245, 0.92);
		font-size: 0.72rem;
		font-weight: 600;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		text-align: left;
		cursor: pointer;
	}

	.adult-store-pdp-tabs__accordion-icon {
		position: relative;
		width: 12px;
		height: 12px;
		flex-shrink: 0;
	}

	.adult-store-pdp-tabs__accordion-icon::before,
	.adult-store-pdp-tabs__accordion-icon::after {
		content: '';
		position: absolute;
		top: 50%;
		left: 0;
		width: 12px;
		height: 1px;
		background: rgba(255, 255, 255, 0.65);
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	.adult-store-pdp-tabs__accordion-icon::after {
		transform: rotate(90deg);
	}

	.adult-store-pdp-tabs__accordion.is-open .adult-store-pdp-tabs__accordion-icon::after {
		opacity: 0;
		transform: rotate(0deg);
	}

	.adult-store-pdp-tabs.is-accordion-mode .adult-store-pdp-tabs__panel-body {
		display: none;
		padding: 0 2px 18px;
	}

	.adult-store-pdp-tabs.is-accordion-mode .adult-store-pdp-tabs__panel.is-accordion-open .adult-store-pdp-tabs__panel-body {
		display: block;
	}

	.adult-store-pdp-tabs.is-accordion-mode .adult-store-pdp__overview {
		grid-template-columns: 1fr;
	}

	/* Related already handled elsewhere — ensure padding */
	.single-product .related.products,
	.single-product .upsells.products,
	.adult-store-pdp .related.products,
	.adult-store-pdp .upsells.products {
		padding-left: 16px;
		padding-right: 16px;
	}
}

@media (max-width: 900px) and (min-width: 361px) {
	.adult-store-product-gallery__main {
		aspect-ratio: 1 / 1;
		min-height: 0 !important;
		height: auto !important;
	}
}
