/* Beau Skin Artistry — custom Single Product page. Matches the Shop page's
   dark minimal-SaaS aesthetic; reuses the :root palette defined in shop.css. */

.bsa-product {
	max-width: 1400px;
	margin: 0 auto;
	padding: 24px 24px 80px;
	background: var(--bsa-bg);
	color: var(--bsa-text);
	font-family: "Roboto Serif", sans-serif;
	font-size: 13px;
}
.bsa-product * { box-sizing: border-box; }

/* ---------- Breadcrumb (theme's own default, restyled — not custom markup) ---------- */
.woocommerce-breadcrumb {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px 24px 0;
	background: var(--bsa-bg);
	color: rgba(185, 178, 162, 0.6);
	font-size: 12px;
	font-family: "Roboto Serif", sans-serif;
}
.woocommerce-breadcrumb a { color: rgba(185, 178, 162, 0.6); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--bsa-gold); }

/* ---------- Layout ---------- */
.bsa-product__layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	margin-bottom: 56px;
}

/* ---------- Gallery ---------- */
.bsa-product__gallery { min-width: 0; }
.bsa-product__main-image {
	position: relative;
	background: var(--bsa-bg-2);
	border: 1px solid var(--bsa-border);
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}
.bsa-product__main-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bsa-product__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: var(--bsa-gold);
	color: var(--bsa-bg);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 5px 10px;
	border-radius: 4px;
	z-index: 1;
}
.bsa-product__thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	flex-wrap: wrap;
}
.bsa-product__thumb {
	width: 64px !important;
	height: 64px !important;
	padding: 0 !important;
	border-radius: 8px !important;
	border: 1px solid var(--bsa-border) !important;
	background: var(--bsa-bg-2) !important;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.15s ease;
}
.bsa-product__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bsa-product__thumb:hover { border-color: rgba(201, 166, 98, 0.5) !important; }
.bsa-product__thumb.is-active { border-color: var(--bsa-gold) !important; }

/* ---------- Summary ---------- */
.bsa-product__summary { min-width: 0; }
.bsa-product__title {
	font-family: "Roboto Serif", serif;
	font-size: 34px;
	font-weight: 500;
	color: var(--bsa-ivory);
	margin: 0 0 12px;
	line-height: 1.2;
}

.bsa-product__rating-wrap { margin-bottom: 14px; }
.woocommerce-product-rating { display: flex; align-items: center; gap: 8px; }
.bsa-product .star-rating { color: rgba(201, 166, 98, 0.3); font-size: 14px; }
.bsa-product .star-rating span { color: var(--bsa-gold); }
.bsa-product .woocommerce-review-link {
	color: rgba(185, 178, 162, 0.6) !important;
	font-size: 12px;
	text-decoration: none !important;
}
.bsa-product .woocommerce-review-link:hover { color: var(--bsa-gold) !important; }

.bsa-product__price {
	font-size: 24px;
	font-weight: 600;
	color: var(--bsa-gold);
	margin-bottom: 18px;
}
.bsa-product__price del { color: rgba(185, 178, 162, 0.45); font-weight: 400; font-size: 16px; margin-right: 10px; }
.bsa-product__price ins { text-decoration: none; }

.woocommerce-product-details__short-description {
	font-size: 13px;
	line-height: 1.7;
	color: var(--bsa-text);
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--bsa-border);
}
.woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

/* ---------- Add to cart form (reused WC markup, restyled) ---------- */
.bsa-product__cart-form { margin-bottom: 24px; }
.bsa-product__cart-form .cart { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.bsa-product__cart-form table.variations {
	width: 100%;
	margin-bottom: 16px;
	border-collapse: collapse;
}
.bsa-product__cart-form table.variations tr { display: block; margin-bottom: 12px; }
.bsa-product__cart-form table.variations th {
	display: block;
	text-align: left;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bsa-ivory);
	padding: 0 0 8px;
}
.bsa-product__cart-form table.variations td { display: block; padding: 0; }
.bsa-product__cart-form select {
	width: 100%;
	max-width: 320px;
	background: var(--bsa-bg-2) !important;
	border: 1px solid var(--bsa-border) !important;
	color: var(--bsa-ivory) !important;
	border-radius: 8px !important;
	padding: 10px 12px !important;
	font-size: 13px !important;
	font-family: inherit !important;
}
.bsa-product__cart-form .reset_variations {
	display: inline-block;
	margin-top: 8px;
	font-size: 12px;
	color: rgba(185, 178, 162, 0.6) !important;
	text-decoration: underline !important;
}
.bsa-product__cart-form .reset_variations:hover { color: var(--bsa-gold) !important; }

.bsa-product__cart-form .woocommerce-variation-price { color: var(--bsa-gold); font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.bsa-product__cart-form .woocommerce-variation-availability { font-size: 12px; margin-bottom: 12px; }
.bsa-product__cart-form .woocommerce-variation-add-to-cart { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.bsa-product__cart-form .quantity {
	display: flex;
	align-items: center;
	border: 1px solid var(--bsa-border);
	border-radius: 20px;
	overflow: hidden;
	background: var(--bsa-bg-2);
}
.bsa-product__cart-form .quantity .qty {
	width: 40px !important;
	background: transparent !important;
	border: none !important;
	color: var(--bsa-ivory) !important;
	text-align: center;
	font-size: 13px !important;
	font-family: inherit !important;
	padding: 9px 0 !important;
	appearance: textfield;
}
.bsa-product__cart-form .quantity .qty::-webkit-inner-spin-button,
.bsa-product__cart-form .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bsa-qty-step {
	background: transparent !important;
	border: none !important;
	color: var(--bsa-text) !important;
	width: 32px !important;
	height: 100% !important;
	padding: 9px 0 !important;
	cursor: pointer;
	font-size: 14px !important;
	font-family: inherit !important;
	transition: color 0.15s ease;
}
.bsa-qty-step:hover { color: var(--bsa-gold) !important; }

.bsa-product__cart-form .single_add_to_cart_button {
	background: var(--bsa-gold) !important;
	color: var(--bsa-bg) !important;
	border: none !important;
	border-radius: 20px !important;
	padding: 11px 30px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	font-family: inherit !important;
	cursor: pointer;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}
.bsa-product__cart-form .single_add_to_cart_button:hover {
	background: var(--bsa-ivory) !important;
	box-shadow: 0 4px 16px rgba(201, 166, 98, 0.3);
}
.bsa-product__cart-form .single_add_to_cart_button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ---------- Meta (SKU / categories / tags) ---------- */
.bsa-product .product_meta {
	font-size: 12px;
	color: rgba(185, 178, 162, 0.6);
	padding-top: 20px;
	border-top: 1px solid var(--bsa-border);
}
.bsa-product .product_meta > span { display: block; margin-bottom: 6px; }
.bsa-product .product_meta a { color: rgba(185, 178, 162, 0.75); text-decoration: none; }
.bsa-product .product_meta a:hover { color: var(--bsa-gold); }

/* ---------- Tabs ---------- */
.bsa-product__tabs { margin-bottom: 56px; }
.bsa-product .woocommerce-tabs { border-top: 1px solid var(--bsa-border); padding-top: 24px; }
.bsa-product ul.tabs.wc-tabs {
	list-style: none;
	display: flex;
	gap: 6px;
	margin: 0 0 28px;
	padding: 0;
	border-bottom: 1px solid var(--bsa-border);
}
.bsa-product ul.tabs.wc-tabs li { margin: 0; }
.bsa-product ul.tabs.wc-tabs li a {
	display: inline-block;
	padding: 10px 4px;
	margin-right: 20px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: rgba(185, 178, 162, 0.6);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.bsa-product ul.tabs.wc-tabs li a:hover { color: var(--bsa-ivory); }
.bsa-product ul.tabs.wc-tabs li.active a { color: var(--bsa-gold); border-color: var(--bsa-gold); }

.bsa-product .woocommerce-Tabs-panel {
	font-size: 13px;
	line-height: 1.7;
	color: var(--bsa-text);
}
.bsa-product .woocommerce-Tabs-panel h2 {
	font-family: "Roboto Serif", serif;
	font-size: 22px;
	font-weight: 500;
	color: var(--bsa-ivory);
	margin: 0 0 16px;
}
.bsa-product .woocommerce-product-attributes {
	width: 100%;
	border-collapse: collapse;
}
.bsa-product .woocommerce-product-attributes-item__label,
.bsa-product .woocommerce-product-attributes-item__value {
	padding: 12px 0;
	border-bottom: 1px solid var(--bsa-border);
	text-align: left;
	font-size: 13px;
}
.bsa-product .woocommerce-product-attributes-item__label { color: var(--bsa-ivory); font-weight: 500; width: 200px; }
.bsa-product .woocommerce-product-attributes-item__value p { margin: 0; }

/* Reviews tab — comment form + list, restyled to match the dark palette */
.bsa-product #reviews { color: var(--bsa-text); }
.bsa-product #reviews .commentlist { list-style: none; margin: 0 0 24px; padding: 0; }
.bsa-product #reviews .comment { padding: 16px 0; border-bottom: 1px solid var(--bsa-border); }
.bsa-product #reviews .comment_container { display: flex; gap: 14px; }
.bsa-product #reviews .avatar { border-radius: 50%; width: 42px; height: 42px; }
.bsa-product #reviews .comment-text { flex: 1; }
.bsa-product #reviews .comment-text p.meta { font-size: 12px; color: rgba(185, 178, 162, 0.6); margin: 0 0 6px; }
.bsa-product #reviews .comment-text .woocommerce-review__author { color: var(--bsa-ivory); font-weight: 600; }
.bsa-product #reviews .description p { margin: 0; }
.bsa-product #reviews .star-rating { float: none; display: inline-block; margin-bottom: 6px; }
.bsa-product #reviews .woocommerce-noreviews { font-size: 13px; }

.bsa-product #review_form_wrapper { margin-top: 24px; }
.bsa-product #review_form_wrapper #respond { max-width: 560px; }
.bsa-product #review_form_wrapper .comment-reply-title {
	font-family: "Roboto Serif", serif;
	font-size: 20px;
	color: var(--bsa-ivory);
	font-weight: 500;
}
.bsa-product #review_form_wrapper .comment-form-rating select,
.bsa-product #review_form_wrapper textarea,
.bsa-product #review_form_wrapper input[type="text"],
.bsa-product #review_form_wrapper input[type="email"] {
	background: var(--bsa-bg-2) !important;
	border: 1px solid var(--bsa-border) !important;
	color: var(--bsa-ivory) !important;
	border-radius: 8px !important;
	padding: 10px 12px !important;
	font-size: 13px !important;
	font-family: inherit !important;
	width: 100%;
	max-width: 400px;
}
.bsa-product #review_form_wrapper textarea { max-width: 100%; }
.bsa-product #review_form_wrapper label { font-size: 12px; color: var(--bsa-text); }
.bsa-product #review_form_wrapper .form-submit input {
	background: var(--bsa-gold) !important;
	color: var(--bsa-bg) !important;
	border: none !important;
	border-radius: 20px !important;
	padding: 10px 26px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	font-family: inherit !important;
	cursor: pointer;
}

/* ---------- Related products ---------- */
.bsa-product__related { margin-top: 40px; }
.bsa-product__related .bsa-shop__heading {
	font-family: "Roboto Serif", serif;
	font-size: 26px;
	font-weight: 500;
	color: var(--bsa-ivory);
	margin: 0 0 24px;
}
.bsa-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
@media (max-width: 1200px) { .bsa-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .bsa-product-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.bsa-product__layout { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
	.bsa-product { padding: 16px 16px 56px; font-size: 12px; }
	.bsa-product__title { font-size: 26px; }
	.bsa-product__price { font-size: 20px; }
	.bsa-product ul.tabs.wc-tabs { flex-wrap: wrap; gap: 4px 16px; }
	.bsa-product ul.tabs.wc-tabs li a { margin-right: 0; padding: 8px 0; }
}

/* ==========================================================================
   Round 4 (2026-08-04): win the cascade against WooCommerce core + Neve.
   WHY THE !important: woocommerce.css styles the tabs at (0,4,3)
   (.woocommerce div.product .woocommerce-tabs ul.tabs li) which beats every
   .bsa-product rule above, so the stock lavender #e9e6ed pills rendered on
   the dark page. Neve's woocommerce.min.css styles the breadcrumb at
   (0,2,1) AND loads after this file, so the breadcrumb links showed the
   theme accent and the non-link crumb text was near-invisible dark-on-dark.
   These overrides pin only the contested properties. Do not "clean up" the
   !important flags without re-checking both stylesheets' specificity.
   ========================================================================== */

/* Breadcrumb: muted beige links, readable cream current-page text */
.woocommerce-breadcrumb {
	color: rgba(244, 238, 225, 0.55) !important;
}
.woocommerce-breadcrumb a {
	color: rgba(185, 178, 162, 0.75) !important;
	text-decoration: none !important;
}
.woocommerce-breadcrumb a:hover { color: var(--bsa-gold) !important; }

/* Tabs: strip WooCommerce's pill chrome (bg, border, corner shadows) */
.bsa-product .woocommerce-tabs ul.tabs { 
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	border-bottom: 1px solid var(--bsa-border) !important;
}
.bsa-product .woocommerce-tabs ul.tabs::before,
.bsa-product .woocommerce-tabs ul.tabs::after { display: none !important; }
.bsa-product .woocommerce-tabs ul.tabs li {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
}
.bsa-product .woocommerce-tabs ul.tabs li::before,
.bsa-product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.bsa-product .woocommerce-tabs ul.tabs li.active {
	background: transparent !important;
	border-bottom-color: transparent !important;
}
.bsa-product .woocommerce-tabs ul.tabs li a {
	display: inline-block !important;
	padding: 10px 4px !important;
	margin-right: 20px !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: rgba(185, 178, 162, 0.6) !important;
	text-decoration: none !important;
	border-bottom: 2px solid transparent !important;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.bsa-product .woocommerce-tabs ul.tabs li a:hover { color: var(--bsa-ivory) !important; }
.bsa-product .woocommerce-tabs ul.tabs li.active a {
	color: var(--bsa-gold) !important;
	border-bottom-color: var(--bsa-gold) !important;
}
