/**
 * Single product page — Souled Store inspired layout.
 */

/* ── Breadcrumbs ───────────────────────────────────────────────── */

.importedwear-single-product {
	padding-top: 0 !important;
}

.importedwear-single-product .woocommerce-breadcrumb,
.importedwear-single-product .wc-block-breadcrumbs,
.importedwear-single-product .wp-block-woocommerce-breadcrumbs {
	font-size: 0.75rem;
	line-height: 1.3;
	color: var(--wp--preset--color--muted);
	margin: 0;
	padding: 0.625rem 0;
	border: none !important;
	border-bottom: none !important;
}

.importedwear-single-product .woocommerce-breadcrumb a,
.importedwear-single-product .wc-block-breadcrumbs a,
.importedwear-single-product .wp-block-woocommerce-breadcrumbs a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.importedwear-single-product .woocommerce-breadcrumb a:hover,
.importedwear-single-product .wc-block-breadcrumbs a:hover,
.importedwear-single-product .wp-block-woocommerce-breadcrumbs a:hover {
	color: var(--wp--preset--color--contrast);
}

/* ── Two-column layout ─────────────────────────────────────────── */

.importedwear-pdp-columns {
	align-items: flex-start !important;
	gap: var(--wp--preset--spacing--40) !important;
}

.importedwear-pdp-columns.wp-container-core-columns-is-layout,
.importedwear-single-product .wp-container-core-columns-is-layout {
	column-gap: var(--wp--preset--spacing--40);
	row-gap: var(--wp--preset--spacing--40);
}

.importedwear-pdp-buybox {
	position: sticky;
	top: 6rem;
}

.importedwear-pdp-buybox .wp-block-post-terms {
	margin-bottom: 0.25rem;
}

.importedwear-pdp-buybox .wp-block-post-terms a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	font-size: 0.875rem;
}

.importedwear-pdp-buybox .wp-block-post-title {
	margin: 0;
	font-family: "Figtree", sans-serif !important;
}

.importedwear-pdp-price-row .price,
.importedwear-pdp-price-row .wc-block-components-product-price {
	margin: 0;
}

.importedwear-pdp-price-row .price del {
	color: var(--wp--preset--color--muted);
	font-size: 1rem;
	margin-right: 0.5rem;
}

.importedwear-pdp-price-row .price ins,
.importedwear-pdp-price-row .woocommerce-Price-amount {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}

/* ── Size prompt (Souled Store style) ─────────────────────────── */

.importedwear-pdp-size-prompt {
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--contrast);
}

.importedwear-pdp-size-prompt a {
	font-weight: 600;
	text-transform: capitalize;
	color: var(--wp--preset--color--contrast);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Shop by Variant/Look */
.importedwear-pdp-variant-row.is-empty {
	display: none;
}

.importedwear-variant-label {
	margin: 0 0 0.5rem;
}

.importedwear-variant-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 1rem;
}

.importedwear-variant-swatches .variable-item {
	width: 56px;
	height: 56px;
	border-radius: 4px !important;
	border: 2px solid var(--wp--preset--color--border) !important;
	background: var(--wp--preset--color--base) !important;
	padding: 4px !important;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.importedwear-variant-swatches .variable-item.selected,
.importedwear-variant-swatches .variable-item[aria-checked="true"] {
	border-color: var(--wp--preset--color--contrast) !important;
}

.importedwear-variant-swatches .variable-item-contents {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.importedwear-variant-swatches .variable-item-span-color {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 2px;
}

/* ── Size chart row (legacy) ───────────────────────────────────── */

.importedwear-pdp-size-chart {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-bottom: 0.75rem;
	margin-bottom: 0.5rem;
}

/* ── Image gallery grid ───────────────────────────────────────── */

.woocommerce .wp-block-woocommerce-product-image-gallery {
	max-width: none !important;
	width: 100%;
}

.importedwear-pdp-gallery .woocommerce-product-gallery {
	background: transparent;
	border: none;
	width: 100%;
}

.importedwear-pdp-gallery .woocommerce-product-gallery__wrapper {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	transform: none !important;
	width: 100% !important;
}

.importedwear-pdp-gallery .woocommerce-product-gallery__image {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

.importedwear-pdp-gallery .woocommerce-product-gallery__image a,
.importedwear-pdp-gallery .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	background: var(--wp--preset--color--surface);
}

.importedwear-pdp-gallery .woocommerce-product-gallery__image:first-child:nth-last-child(1) {
	grid-column: 1 / -1;
}

.importedwear-pdp-gallery .woocommerce-product-gallery__trigger {
	display: none !important;
}

.importedwear-pdp-gallery .flex-viewport {
	height: auto !important;
}

/* Hide flexslider thumbnail / control nav */
.importedwear-pdp-gallery .flex-control-nav,
.importedwear-pdp-gallery .flex-control-thumbs,
.importedwear-pdp-gallery .flex-direction-nav,
.woocommerce-product-gallery .flex-control-nav,
.woocommerce-product-gallery .flex-control-thumbs {
	display: none !important;
}

/* Disable hover-zoom lens — click opens lightbox instead */
.importedwear-pdp-gallery .woocommerce-product-gallery__image {
	cursor: zoom-in;
	overflow: hidden;
}

.importedwear-pdp-gallery .woocommerce-product-gallery__image img {
	cursor: zoom-in;
}

.importedwear-pdp-gallery .zoomImg,
.importedwear-pdp-gallery .woocommerce-product-gallery__image--placeholder .zoomImg {
	display: none !important;
}

/* Full-image lightbox popup */
.importedwear-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.9);
	padding: 1.5rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.importedwear-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.importedwear-lightbox__img {
	max-width: min(96vw, 1200px);
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.importedwear-lightbox__close,
.importedwear-lightbox__prev,
.importedwear-lightbox__next {
	position: absolute;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	font-size: 1.5rem;
	line-height: 1;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.importedwear-lightbox__close:hover,
.importedwear-lightbox__prev:hover,
.importedwear-lightbox__next:hover {
	background: rgba(255, 255, 255, 0.25);
}

.importedwear-lightbox__close {
	top: 1rem;
	right: 1rem;
	font-size: 1.75rem;
}

.importedwear-lightbox__prev {
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

.importedwear-lightbox__next {
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

.importedwear-lightbox__counter {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
}

/* ── Variations & quantity ────────────────────────────────────── */

.importedwear-pdp-cart-form table.variations {
	width: 100%;
	margin-bottom: 1rem;
}

.importedwear-pdp-cart-form table.variations tr {
	display: block;
	margin-bottom: 1rem;
}

.importedwear-pdp-cart-form table.variations td,
.importedwear-pdp-cart-form table.variations th {
	display: block;
	padding: 0;
	border: none;
}

.importedwear-pdp-cart-form table.variations label {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--wp--preset--color--contrast);
	margin-bottom: 0.5rem;
}

.importedwear-pdp-cart-form .variable-items-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.importedwear-pdp-cart-form table.variations label {
	display: none;
}

.importedwear-pdp-cart-form .variable-items-wrapper .variable-item {
	min-width: 52px;
	min-height: 52px;
	padding: 8px 10px;
	font-size: 0.8125rem;
	font-weight: 600;
	border-radius: 4px !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	line-height: 1.1;
}

.importedwear-swatch-stock {
	font-size: 0.625rem;
	font-weight: 400;
	color: var(--wp--preset--color--muted);
	display: block;
}

.importedwear-qty-select {
	width: 88px;
	height: 44px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 4px;
	padding: 0 0.75rem;
	font-size: 0.9375rem;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	margin-bottom: 1rem;
}

.importedwear-pdp-cart-form .quantity {
	margin-bottom: 1rem;
}

.importedwear-pdp-cart-form .quantity label {
	font-size: 0.8125rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	display: block;
}

.importedwear-pdp-cart-form .quantity input.qty {
	width: 72px;
	height: 44px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 4px;
	text-align: center;
	font-size: 0.9375rem;
}

.importedwear-pdp-cart-form form.cart {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.importedwear-pdp-cta-row {
	display: flex;
	gap: 12px;
	margin-top: 0.5rem;
}

.importedwear-pdp-cta-row .single_add_to_cart_button {
	flex: 1;
	margin-top: 0 !important;
}

.importedwear-pdp-cta-row .yith-wcwl-add-to-wishlist {
	flex: 1;
	margin: 0 !important;
	min-width: 0;
}

.importedwear-pdp-cart-form .single_add_to_cart_button {
	width: 100% !important;
	padding: 1rem 1.5rem !important;
	margin-top: 0.5rem;
	border-radius: 4px !important;
	font-size: 0.8125rem !important;
}

/* Wishlist (YITH) */
.importedwear-pdp-buybox .yith-wcwl-add-to-wishlist {
	margin: 0.75rem 0 0;
	width: 100%;
}

.importedwear-pdp-buybox .yith-wcwl-add-to-wishlist a,
.importedwear-pdp-buybox .yith-wcwl-add-to-wishlist button {
	display: block !important;
	width: 100%;
	text-align: center;
	padding: 1rem 1.5rem !important;
	border: 1px solid var(--wp--preset--color--contrast) !important;
	background: transparent !important;
	color: var(--wp--preset--color--contrast) !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	border-radius: 4px !important;
	text-decoration: none !important;
}

.importedwear-pdp-buybox .yith-wcwl-add-to-wishlist a:hover {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
}

.importedwear-pdp-cart-form .stock {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted);
	margin-bottom: 0.75rem;
}

.importedwear-pdp-cart-form form.variations_form .stock {
	display: none;
}

/* Hide excerpt in buy box (shown in tabs below) */
.importedwear-pdp-buybox .woocommerce-product-details__short-description {
	display: none;
}

/* ── Share buttons ─────────────────────────────────────────────── */

.importedwear-pdp-share-links p {
	margin: 0;
}

.importedwear-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 50px;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: border-color 0.2s, background 0.2s;
}

.importedwear-share-btn:hover {
	border-color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--surface);
}

/* ── Delivery / pincode ───────────────────────────────────────── */

.importedwear-pincode-check {
	display: flex;
	gap: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 4px;
	overflow: hidden;
	max-width: 280px;
}

.importedwear-pincode-input {
	flex: 1;
	border: none;
	padding: 0.75rem 1rem;
	font-size: 0.9375rem;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	min-width: 0;
}

.importedwear-pincode-input:focus {
	outline: none;
}

.importedwear-pincode-btn {
	border: none;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	padding: 0.75rem 1.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	cursor: pointer;
}

.importedwear-pincode-btn:hover {
	background: #333333;
}

.importedwear-pincode-result {
	font-size: 0.8125rem;
	margin: 0.5rem 0 0;
	color: var(--wp--preset--color--contrast);
}

.importedwear-pincode-result.is-error {
	color: #b42318;
}

/* ── Product details accordion (Souled Store style) ─────────────── */

.importedwear-pdp-details.woocommerce-tabs,
.importedwear-single-product .wp-block-woocommerce-product-details {
	margin-top: var(--wp--preset--spacing--70);
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: var(--wp--preset--spacing--50);
}

.importedwear-accordion-item {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.importedwear-accordion-title {
	padding: 1.25rem 0;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.importedwear-accordion-title::-webkit-details-marker {
	display: none;
}

.importedwear-accordion-title::after {
	content: '+';
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1;
}

.importedwear-accordion-item[open] .importedwear-accordion-title::after {
	content: '−';
}

.importedwear-accordion-body {
	padding-bottom: 1.25rem;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--muted);
	line-height: 1.6;
}

.importedwear-accordion-body h2 {
	font-size: 1rem;
	margin-top: 0;
}

/* ── Mobile ───────────────────────────────────────────────────── */

@media (max-width: 900px) {
	.importedwear-pdp-columns {
		flex-direction: column;
	}

	.importedwear-pdp-gallery-col,
	.importedwear-pdp-buybox-col {
		flex-basis: 100% !important;
	}

	.importedwear-pdp-buybox {
		position: static;
	}

	.importedwear-pdp-gallery .woocommerce-product-gallery__wrapper {
		grid-template-columns: 1fr;
	}

	.importedwear-pdp-gallery .woocommerce-product-gallery__image a,
	.importedwear-pdp-gallery .woocommerce-product-gallery__image img {
		aspect-ratio: 1 / 1;
	}
}
