/* ==========================================================================
   BAS Quick View — Styles
   Merged into bas-vendor-map v1.6.0 from the standalone bas-quick-view plugin.
   Covers: WC card enhancements, Quick View modal, mini-cart panel,
           vendor-branded Add to Cart button, vendor avatar section.

   Brand palette:
     Sage Green    #70ac43   Primary CTA gradient anchor
     Lime Green    #c2e86b   Gradient highlight
     Dark Forest   #1d741b   Success / price accent
     Teal          #30b2b4   Secondary / info
     Yellow        #ffda3d   Warning badges
     Burnt Orange  #ff4c25   High-energy CTAs, urgency
     Coral         #ff7660   Soft warnings
     Warm Cream    #fffbef   Backgrounds
     Charcoal      #313131   All body text

   Vendor branding CSS custom properties (set per-product via PHP AJAX):
     --bas-qv-vendor-primary    Vendor's brand hex (e.g. #e44c35)
     --bas-qv-vendor-grad-light Vendor's gradient highlight (lighter tint)

   Three-level fallback ensures the button always resolves to a color:
     var(--bas-qv-vendor-primary, var(--bas-v-primary, #70ac43))
   ========================================================================== */

/* ── Shared button styles (mirror bas-farmers-market/styles/bundle.css) ─── */
.bas-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: linear-gradient(180deg, #c2e86b 0%, #70ac43 100%);
	color: #fff !important;
	border: 1px solid #70ac43;
	border-radius: 100px;
	padding: 11px 28px;
	font-size: 15px;
	font-weight: 700;
	font-family: Lato, sans-serif;
	text-decoration: none !important;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.15s;
	white-space: nowrap;
	line-height: 1;
}
.bas-btn-primary:hover  { opacity: 0.88; transform: translateY(-1px); }
.bas-btn-primary:active { transform: translateY(0); }
.bas-btn-primary:disabled,
.bas-btn-primary[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
}

.bas-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #fff;
	color: #70ac43 !important;
	border: 2px solid #70ac43;
	border-radius: 100px;
	padding: 10px 28px;
	font-size: 15px;
	font-weight: 700;
	font-family: Lato, sans-serif;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.bas-btn-outline:hover { background: #f4fcea; }

/* ── BAS product card — used by our WC content-product.php template ─────── */
/*
 * Matches the Farmers Market module card style exactly.
 * Applied to ALL WooCommerce product loops via our template override:
 * shop page, category archives, search results, tag archives, etc.
 */

/* Card wrapper — wc_product_class() adds 'bas-card' to the <li> */
li.product.bas-card {
	padding: 0 !important;           /* reset WC/theme padding on the <li> */
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	overflow: hidden;
	display: flex !important;
	flex-direction: column;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
	transition: box-shadow 0.2s ease, transform 0.15s ease;
}
li.product.bas-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

/* Image wrap — provides the relative position for the hover overlay */
.bas-card__image-wrap {
	position: relative;
	overflow: hidden;
}

.bas-card__image-link {
	display: block;
	line-height: 0; /* remove gap below inline img */
}

.bas-card__image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
li.product.bas-card:hover .bas-card__image {
	transform: scale(1.04);
}

/* Eye-icon Quick View hover overlay */
.bas-qv-img-trigger {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: rgba(49, 49, 49, 0.55);
	color: #fff;
	font-family: Lato, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	opacity: 0;
	cursor: pointer;
	transition: opacity 0.22s ease;
	pointer-events: none;
	z-index: 2;
}
li.product.bas-card:hover .bas-qv-img-trigger,
li.product.bas-card:focus-within .bas-qv-img-trigger,
.bas-market-products__card:hover .bas-qv-img-trigger,
.bas-market-products__card:focus-within .bas-qv-img-trigger {
	opacity: 1;
	pointer-events: auto;
}

/* Card body */
.bas-card__body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
	align-items: center;
	text-align: center;
}

/* Product name — Playfair Display */
.bas-card__name {
	font-family: "Playfair Display", serif;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none !important;
	color: #313131 !important;
	line-height: 1.3;
	display: block;
}
.bas-card__name:hover { color: #70ac43 !important; }

/* Vendor attribution */
.bas-card__vendor {
	font-size: 0.8125rem;
	color: #888;
}
.bas-card__vendor a {
	color: #888 !important;
	text-decoration: none !important;
}
.bas-card__vendor a:hover { color: #70ac43 !important; }

/* Price */
.bas-card__price {
	font-weight: 700;
	color: #313131;
	font-size: 1rem;
}
.bas-card__price del { color: #aaa; font-size: 0.875rem; margin-right: 4px; }
.bas-card__price ins { color: #1d741b; text-decoration: none; }

/* Sale badge positioned on image */
li.product.bas-card .bas-qv-badge--sale {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
}

/* Quick View CTA button */
.bas-card__btn {
	margin-top: auto;
	align-self: center;
}

/* Also apply hover overlay to Farmers Market module cards */
.bas-market-products__image-link {
	position: relative;
	display: block;
	overflow: hidden;
}

/* ── Legacy hook-based Quick View button (fallback for non-template paths) ─ */
/* Used by BodyCommerce modules and any WC loop that doesn't use our template */
.bas-qv-card-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.bas-qv-loop li.product .bas-qv-card-btn.button {
	background: none;
	border: none;
	padding: 0;
	border-radius: 0;
}

/* ── Badges (sale, low stock, out of stock) ─────────────────────────────── */
.bas-qv-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 100px;
	font-size: 12px;
	font-weight: 700;
	font-family: Lato, sans-serif;
	line-height: 1.4;
	white-space: nowrap;
}

.bas-qv-badge--sale {
	background: #ff4c25;
	color: #fff;
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
}

.bas-qv-badge--lowstock {
	background: #fff8e1;
	color: #ff4c25;
	border: 1px solid #ff4c25;
	margin-bottom: 0.5rem;
}

.bas-qv-badge--outofstock {
	background: #f5f5f5;
	color: #888;
	border: 1px solid #ddd;
	margin-bottom: 0.5rem;
}

/* Custom Order badge — teal info role (#30b2b4) */
.bas-qv-badge--custom-order {
	background: #30b2b4;
	color: #fff;
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
}

/* When both sale + custom-order badges appear, offset custom-order down */
.bas-qv-badge--sale ~ .bas-qv-badge--custom-order,
.bas-qv-badge--sale + .bas-qv-badge--custom-order {
	top: 38px;
}

/* ── Custom Order modal section (Phase A) ──────────────────────────────── */
.bas-co-modal-section {
	border-top: 1px solid #eee;
	padding-top: 1.25rem;
	margin-top: 1rem;
}

.bas-co-modal-section__heading {
	font-family: 'Playfair Display', serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: #313131;
	margin: 0 0 0.75rem;
}

.bas-co-lead-time {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	color: #555;
	margin: 0 0 0.5rem;
}

.bas-co-lead-time svg {
	flex-shrink: 0;
	color: #30b2b4;
}

.bas-co-intro-text {
	font-size: 0.875rem;
	color: #555;
	margin: 0 0 1rem;
	line-height: 1.5;
}

.bas-co-request-btn {
	width: 100%;
	justify-content: center;
	gap: 8px;
	margin-top: 0.5rem;
}

.bas-co-unavailable {
	font-size: 0.875rem;
	color: #888;
	font-style: italic;
	text-align: center;
	padding: 1rem 0;
}

/* ── Modal overlay ─────────────────────────────────────────────────────── */
/*
 * IMPORTANT: display:flex here overrides the HTML `hidden` attribute's
 * display:none from the browser UA stylesheet. Without pointer-events:none,
 * the invisible overlay sits full-screen at z-index:99999 and intercepts
 * every click on the page — even menus and nav links. pointer-events:none
 * on the base state is the critical fix.
 */
.bas-qv-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 20, 20, 0.65);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	opacity: 0;
	pointer-events: none; /* ← prevents click blocking when invisible */
	transition: opacity 0.25s ease;
	backdrop-filter: blur(2px);
}

.bas-qv-overlay.bas-qv-overlay--visible {
	opacity: 1;
	pointer-events: auto; /* ← restore interactivity when modal is open */
}

/* The modal box */
.bas-qv-modal {
	position: relative;
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 900px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0,0,0,0.25);
	transform: translateY(24px);
	transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bas-qv-overlay--visible .bas-qv-modal {
	transform: translateY(0);
}

/* Scrollbar styling (webkit) */
.bas-qv-modal::-webkit-scrollbar { width: 6px; }
.bas-qv-modal::-webkit-scrollbar-track { background: transparent; }
.bas-qv-modal::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }

/* Close button */
.bas-qv-modal__close {
	position: sticky;
	top: 0;
	float: right;
	margin: 14px 14px -14px 0; /* pull into corner without affecting layout */
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: #f5f5f5;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	color: #313131;
	transition: background 0.18s, transform 0.18s;
}
.bas-qv-modal__close:hover {
	background: #313131;
	color: #fff;
	transform: rotate(90deg);
}

.bas-qv-modal__content {
	clear: both;
}

/* Loading spinner inside modal */
.bas-qv-modal__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 280px;
}

.bas-qv-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #e8e8e8;
	border-top-color: #70ac43;
	border-radius: 50%;
	animation: bas-qv-spin 0.7s linear infinite;
}
@keyframes bas-qv-spin { to { transform: rotate(360deg); } }

/* ── Modal inner layout (two-column) ────────────────────────────────────── */
.bas-qv-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
}

/* ── Gallery (left column) ─────────────────────────────────────────────── */
.bas-qv-gallery {
	position: relative;
	background: #fffbef; /* warm cream — BAS page background */
	border-radius: 16px 0 0 16px;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.bas-qv-gallery .bas-qv-badge--sale {
	position: absolute;
	top: 1rem;
	left: 1rem;
}

.bas-qv-gallery__main {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bas-qv-gallery__main-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.2s ease;
	display: block;
}

.bas-qv-gallery__main-img.bas-qv-gallery__main-img--fading {
	opacity: 0;
}

/* Thumbnail row */
.bas-qv-gallery__thumbs {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.bas-qv-gallery__thumb {
	width: 60px;
	height: 60px;
	border: 2px solid #e8e8e8;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: #fff;
	padding: 0;
	transition: border-color 0.18s;
	flex-shrink: 0;
}
.bas-qv-gallery__thumb:hover { border-color: #70ac43; }
.bas-qv-gallery__thumb--active { border-color: #70ac43; }
.bas-qv-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Product info (right column) ─────────────────────────────────────────── */
.bas-qv-info {
	padding: 2rem 2rem 2rem 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	border-left: 1px solid #f0f0f0;
}

.bas-qv-info__title {
	font-family: "Playfair Display", serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: #313131;
	line-height: 1.25;
	margin: 0;
}

/* Rating stars */
.bas-qv-info__rating {
	display: flex;
	align-items: center;
	gap: 6px;
}
.bas-qv-info__rating .star-rating { font-size: 14px; }
.bas-qv-info__review-count {
	font-size: 13px;
	color: #888;
}

/* Price */
.bas-qv-info__price {
	font-size: 1.375rem;
	font-weight: 700;
	color: #313131;
	line-height: 1;
}
.bas-qv-info__price del { color: #aaa; font-size: 1rem; margin-right: 4px; }
.bas-qv-info__price ins { color: #1d741b; text-decoration: none; }

/* ── Vendor section (with avatar + brand color) ───────────────────────── */
/*
 * The PHP AJAX handler sets CSS custom properties on .bas-qv-inner:
 *   --bas-qv-vendor-primary    e.g. #e44c35  (vendor brand color)
 *   --bas-qv-vendor-grad-light e.g. #f0877a  (lighter tint for gradient)
 *
 * On vendor store pages, store.php already sets --bas-v-primary at :root.
 * The three-level fallback means the vendor section colors work on ALL
 * pages — shop, map, vendor store — without any additional JS.
 */
.bas-qv-info__vendor {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #666;
	margin: 0;
}

/* Round avatar with vendor-colored border */
.bas-qv-vendor-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--bas-qv-vendor-primary, var(--bas-v-primary, #70ac43));
	flex-shrink: 0;
	background: #f5f5f5; /* placeholder bg while loading */
}

/* Meta column: "Sold by" label + vendor name link */
.bas-qv-vendor-meta {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.bas-qv-vendor-label {
	font-size: 11px;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1;
}

.bas-qv-vendor-name {
	font-weight: 700;
	font-size: 13px;
	text-decoration: none !important;
	/* Color set via inline style by PHP; fallback to vendor primary or sage green */
	color: var(--bas-qv-vendor-primary, var(--bas-v-primary, #70ac43)) !important;
	transition: opacity 0.18s;
	line-height: 1.2;
}
.bas-qv-vendor-name:hover {
	opacity: 0.75;
	text-decoration: underline !important;
}

/* Backward-compat: legacy vendor link class (used by old cached responses) */
.bas-qv-info__vendor-link {
	color: #30b2b4 !important;
	text-decoration: none !important;
	font-weight: 600;
}
.bas-qv-info__vendor-link:hover { text-decoration: underline !important; }

/* Short description */
.bas-qv-info__short-desc {
	font-size: 14px;
	color: #555;
	line-height: 1.6;
	border-top: 1px solid #f0f0f0;
	padding-top: 0.75rem;
}
.bas-qv-info__short-desc p:last-child { margin-bottom: 0; }

/* ── Variation selects ──────────────────────────────────────────────────── */
.bas-qv-variation {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.bas-qv-variation__label {
	font-family: Lato, sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #313131;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.bas-qv-variation__select {
	padding: 9px 14px;
	border: 1px solid #d0d0d0;
	border-radius: 100px;
	font-size: 14px;
	font-family: Lato, sans-serif;
	color: #313131;
	background: #fff;
	outline: none;
	cursor: pointer;
	transition: border-color 0.18s;
	appearance: auto;
}
.bas-qv-variation__select:focus { border-color: #70ac43; box-shadow: 0 0 0 2px rgba(112,172,67,0.18); }

/* Variation price display (updates on selection) */
.bas-qv-form__variation-price {
	font-size: 1.25rem;
	font-weight: 700;
	color: #313131;
	min-height: 1.5rem;
}
.bas-qv-form__variation-price:not(:empty) { margin-bottom: 0.25rem; }

/* Hint below variable form */
.bas-qv-form__select-hint {
	font-size: 12px;
	color: #888;
	margin: 0;
	transition: opacity 0.2s;
}
.bas-qv-form__select-hint.bas-qv--hidden { opacity: 0; }

/* ── Quantity stepper ───────────────────────────────────────────────────── */
.bas-qv-form__row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.bas-qv-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #d0d0d0;
	border-radius: 100px;
	overflow: hidden;
	height: 44px;
	flex-shrink: 0;
}

.bas-qv-qty__btn {
	width: 38px;
	height: 100%;
	background: none;
	border: none;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: #313131;
	transition: background 0.15s;
	flex-shrink: 0;
}
.bas-qv-qty__btn:hover { background: #f4fcea; color: #70ac43; }

.bas-qv-qty__input {
	width: 46px;
	text-align: center;
	border: none;
	border-left: 1px solid #d0d0d0;
	border-right: 1px solid #d0d0d0;
	font-size: 15px;
	font-family: Lato, sans-serif;
	font-weight: 700;
	color: #313131;
	outline: none;
	height: 100%;
	-moz-appearance: textfield;
}
.bas-qv-qty__input::-webkit-inner-spin-button,
.bas-qv-qty__input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Add to Cart button — vendor-branded ─────────────────────────────────── */
/*
 * Default: BAS sage green gradient.
 * When a vendor has a custom brand color, the PHP handler sets:
 *   --bas-qv-vendor-primary    on .bas-qv-inner (the modal wrapper)
 *   --bas-qv-vendor-grad-light on .bas-qv-inner
 * Both CSS custom properties cascade down to this rule, overriding the
 * static gradient with the vendor's brand gradient automatically.
 *
 * On vendor store pages, store.php sets --bas-v-primary / --bas-v-grad-light
 * at :root, so the cart panel Checkout button inherits vendor color too.
 */
.bas-qv-form__submit {
	flex: 1;
	min-height: 44px;
	padding: 0 20px;
	background: linear-gradient(
		180deg,
		var(--bas-qv-vendor-grad-light, var(--bas-v-grad-light, #c2e86b)) 0%,
		var(--bas-qv-vendor-primary,    var(--bas-v-primary,    #70ac43)) 100%
	);
	border-color: var(--bas-qv-vendor-primary, var(--bas-v-primary, #70ac43));
}

/* Success state on submit button */
.bas-qv-form__submit.bas-qv--success {
	background: linear-gradient(180deg, #4caf50 0%, #1d741b 100%);
	border-color: #1d741b;
	pointer-events: none;
}

/* View Full Details link */
.bas-qv-info__full-details {
	font-size: 13px;
	color: #888;
	text-decoration: none !important;
	margin-top: auto;
	transition: color 0.18s;
}
.bas-qv-info__full-details:hover { color: #70ac43 !important; }

/* ── Visit Vendor Store CTA (replaces Add to Cart in Quick View) ─────────── */
.bas-qv-store-cta {
	margin-top: auto;
	padding-top: 0.5rem;
}
.bas-qv-store-cta__btn {
	width: 100%;
	justify-content: center !important;
	gap: 8px;
	transition: filter 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease !important;
}
.bas-qv-store-cta__btn:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}
.bas-qv-store-cta__btn:active {
	transform: translateY(3px);
}

/* Out of stock message */
.bas-qv-info__stock-msg {
	font-size: 14px;
	color: #888;
	font-style: italic;
	margin: 0;
}

/* ── Mini-cart panel ────────────────────────────────────────────────────── */
.bas-cart-panel {
	position: fixed;
	top: 0;
	right: 0;
	width: 380px;
	max-width: 100vw;
	height: 100vh;
	background: #fff;
	box-shadow: -4px 0 30px rgba(0,0,0,0.15);
	z-index: 100000;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/*
 * When the WP admin bar is visible (body.admin-bar), offset the panel so the
 * header sits below the bar instead of behind it. The admin bar is 32px on
 * desktop and 46px on mobile (WP default breakpoint: 782px).
 */
.admin-bar .bas-cart-panel {
	top: 32px;
	height: calc(100vh - 32px);
}
@media screen and (max-width: 782px) {
	.admin-bar .bas-cart-panel {
		top: 46px;
		height: calc(100vh - 46px);
	}
}

.bas-cart-panel.bas-cart-panel--open {
	transform: translateX(0);
}

/* Backdrop behind mini-cart panel — same pointer-events fix as modal overlay */
.bas-cart-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(20,20,20,0.4);
	z-index: 99999;
	opacity: 0;
	pointer-events: none; /* ← prevents click blocking when invisible */
	transition: opacity 0.3s ease;
}
.bas-cart-backdrop.bas-cart-backdrop--visible {
	opacity: 1;
	pointer-events: auto;
}

/* Panel header */
.bas-cart-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #f0f0f0;
	flex-shrink: 0;
	background: #fffbef; /* warm cream */
}

.bas-cart-panel__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: "Playfair Display", serif;
	font-size: 1.125rem;
	font-weight: 700;
	color: #313131;
	margin: 0;
}
.bas-cart-panel__title svg { color: #70ac43; }

.bas-cart-panel__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: #f5f5f5;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	color: #313131;
	transition: background 0.18s, transform 0.18s;
}
.bas-cart-panel__close:hover { background: #313131; color: #fff; transform: rotate(90deg); }

/* Panel body (scrollable) */
.bas-cart-panel__body {
	flex: 1;
	overflow-y: auto;
	padding: 1rem 1.5rem;
}
.bas-cart-panel__body::-webkit-scrollbar { width: 4px; }
.bas-cart-panel__body::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 2px; }

/* Empty state */
.bas-cart-panel__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 200px;
	gap: 1rem;
	text-align: center;
}
.bas-cart-panel__empty p {
	font-size: 14px;
	color: #888;
	max-width: 220px;
	line-height: 1.5;
	margin: 0;
}

/* Cart items list */
.bas-cart-panel__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.bas-cart-panel__item {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 0.75rem;
	align-items: start;
	padding-bottom: 0.875rem;
	border-bottom: 1px solid #f5f5f5;
}
.bas-cart-panel__item:last-child { border-bottom: none; }

.bas-cart-panel__item-img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #e8e8e8;
}

.bas-cart-panel__item-details {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.bas-cart-panel__item-name {
	font-family: Lato, sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #313131;
	line-height: 1.3;
}

.bas-cart-panel__item-variant {
	font-size: 12px;
	color: #888;
}

/* Item footer row: qty stepper + line price */
.bas-cart-panel__item-footer {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
}

/* Compact qty stepper inside cart item */
.bas-cart-panel__item-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #d0d0d0;
	border-radius: 100px;
	overflow: hidden;
	height: 30px;
	flex-shrink: 0;
}

.bas-cart-panel__qty-btn {
	width: 28px;
	height: 100%;
	background: none;
	border: none;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	color: #313131;
	transition: background 0.15s, color 0.15s;
	flex-shrink: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bas-cart-panel__qty-btn:hover { background: #f4fcea; color: #70ac43; }
.bas-cart-panel__qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.bas-cart-panel__qty-num {
	min-width: 28px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	font-family: Lato, sans-serif;
	color: #313131;
	border-left: 1px solid #d0d0d0;
	border-right: 1px solid #d0d0d0;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 2px;
}

/* Line-total price */
.bas-cart-panel__item-price {
	font-size: 13px;
	font-weight: 700;
	color: #313131;
	margin-left: auto;
}

/* Multi-seller notice (teal info box) */
.bas-cart-panel__multi-seller-notice {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	background: #e8f7f8;
	border: 1px solid #30b2b4;
	border-radius: 10px;
	padding: 0.75rem 1rem;
	margin-bottom: 0.875rem;
	font-size: 13px;
	color: #313131;
	line-height: 1.5;
}
.bas-cart-panel__multi-seller-notice svg {
	color: #30b2b4;
	flex-shrink: 0;
	margin-top: 1px;
}
.bas-cart-panel__multi-seller-notice p {
	margin: 0;
}
.bas-cart-panel__multi-seller-notice strong {
	display: block;
	margin-bottom: 2px;
	color: #1d741b;
}

.bas-cart-panel__item-remove {
	color: #ccc;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	border-radius: 4px;
	transition: color 0.15s;
	flex-shrink: 0;
}
.bas-cart-panel__item-remove:hover { color: #ff4c25 !important; }

/* Panel footer */
.bas-cart-panel__footer {
	padding: 1.25rem 1.5rem;
	border-top: 1px solid #f0f0f0;
	background: #fffbef;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex-shrink: 0;
}

.bas-cart-panel__subtotal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: Lato, sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #313131;
}
.bas-cart-panel__subtotal::before { content: "Subtotal"; }

/*
 * Checkout button — "Proceed to Checkout" is the only navigation from the
 * mini-cart panel. View Cart link has been removed by design.
 *
 * On vendor store pages, store.php sets --bas-v-primary / --bas-v-grad-light
 * at :root and overrides .bas-btn-primary globally, so the cart panel
 * Checkout button automatically inherits the vendor's brand gradient.
 * On all other pages, this rule uses the burnt orange urgency CTA style.
 */
.bas-cart-panel__checkout {
	width: 100%;
	justify-content: center;
	/* Burnt orange for high-urgency CTA — the "Get it done" button.
	   Overridden on vendor store pages by store.php's .bas-btn-primary rule. */
	background: linear-gradient(180deg, #ff7660 0%, #ff4c25 100%);
	border-color: #ff4c25;
}
.bas-cart-panel__checkout:hover { opacity: 0.9; }

/* ── Cart count badge ───────────────────────────────────────────────────── */
/* Updates the Divi header cart icon + WC standard cart count */
.bas-qv-cart-count {
	display: inline-block;
	background: #ff4c25;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 100px;
	text-align: center;
	line-height: 18px;
	padding: 0 4px;
}

/* ── Success toast (shows briefly after add-to-cart) ────────────────────── */
.bas-qv-toast {
	position: fixed;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%) translateY(80px);
	background: #1d741b;
	color: #fff;
	font-family: Lato, sans-serif;
	font-size: 14px;
	font-weight: 700;
	padding: 12px 24px;
	border-radius: 100px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.2);
	z-index: 200000;
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
	pointer-events: none;
	white-space: nowrap;
}
.bas-qv-toast.bas-qv-toast--visible {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

/* ── Hook-based QV button (woocommerce_after_shop_loop_item fallback) ───── */
/*
 * .bas-qv-loop-btn is output by BAS_QV_Loop::output_loop_qv_button().
 * It fires on ALL product loops (BodyCommerce, standard WC, Dokan vendor
 * stores) via the woocommerce_after_shop_loop_item hook.
 * Matches .bas-card__btn sizing so both paths look identical.
 */
.bas-qv-loop-btn {
	display: inline-flex !important;
	margin: 0.5rem auto 1rem;
	/* Inherit .bas-btn-primary styles; no extra rules needed */
}

/* ── BodyCommerce / et_shop_image card overrides ─────────────────────────── */
/*
 * When BodyCommerce wins the template race, product cards contain:
 *   <li class="product post-{ID} …">
 *     <div class="bodycommerce-sale-badge">…</div>
 *     <span class="et_shop_image"><img /><span class="et_overlay"></span></span>
 *     <h2 class="woocommerce-loop-product__title">…</h2>
 *     <span class="price">…</span>
 *     [our .bas-qv-loop-btn injected here via hook]
 *   </li>
 *
 * Target: .bas-qv-loop li.product that DON'T have .bas-card (our template).
 * This styles them to match the BAS card design without touching the HTML.
 */

/* Base card wrapper */
.bas-qv-loop li.product:not(.bas-card) {
	padding: 0 !important;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	overflow: hidden;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 2px 10px rgba(0,0,0,0.07);
	transition: box-shadow 0.2s ease, transform 0.15s ease;
	position: relative; /* for sale badge positioning */
}
.bas-qv-loop li.product:not(.bas-card):hover {
	box-shadow: 0 6px 20px rgba(0,0,0,0.12);
	transform: translateY(-2px);
}

/* BodyCommerce sale badge */
.bas-qv-loop li.product:not(.bas-card) .bodycommerce-sale-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
}
.bas-qv-loop li.product:not(.bas-card) .bodycommerce-sale-badge .onsale {
	background: #ff4c25;
	color: #fff;
	padding: 4px 10px;
	border-radius: 100px;
	font-size: 12px;
	font-weight: 700;
	font-family: Lato, sans-serif;
	line-height: 1.4;
}

/* Image wrapper — et_shop_image */
.bas-qv-loop li.product:not(.bas-card) .et_shop_image {
	display: block;
	position: relative;
	overflow: hidden;
	width: 100%;
	line-height: 0;
	cursor: pointer;
}
.bas-qv-loop li.product:not(.bas-card) .et_shop_image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.bas-qv-loop li.product:not(.bas-card):hover .et_shop_image img {
	transform: scale(1.04);
}

/* et_overlay — used by JS to inject eye icon + "Quick View" label */
.bas-qv-loop li.product:not(.bas-card) .et_overlay {
	position: absolute;
	inset: 0;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: rgba(49,49,49,0.55);
	color: #fff;
	font-family: Lato, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	opacity: 0;
	transition: opacity 0.22s ease;
	pointer-events: none; /* JS sets to auto on parent hover */
}
.bas-qv-loop li.product:not(.bas-card):hover .et_overlay {
	opacity: 1;
	pointer-events: auto;
}

/* Product title */
.bas-qv-loop li.product:not(.bas-card) .woocommerce-loop-product__title {
	font-family: "Playfair Display", serif !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	color: #313131 !important;
	text-align: center;
	padding: 0.75rem 1rem 0.25rem;
	margin: 0 !important;
	width: 100%;
}

/* Price */
.bas-qv-loop li.product:not(.bas-card) .price {
	font-weight: 700;
	color: #313131;
	font-size: 1rem;
	text-align: center;
	padding: 0 1rem 0.25rem;
	width: 100%;
	display: block;
}
.bas-qv-loop li.product:not(.bas-card) .price del { color: #aaa; font-size: 0.875rem; margin-right: 4px; }
.bas-qv-loop li.product:not(.bas-card) .price ins { color: #1d741b; text-decoration: none; }

/* Hide BodyCommerce hidden product-ID input (cosmetic only) */
.bas-qv-loop li.product input[type="hidden"] { display: none !important; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
	/* Stack gallery above info on mobile */
	.bas-qv-inner {
		grid-template-columns: 1fr;
	}

	.bas-qv-gallery {
		border-radius: 16px 16px 0 0;
	}

	.bas-qv-gallery__main {
		aspect-ratio: 4 / 3;
	}

	.bas-qv-info {
		border-left: none;
		border-top: 1px solid #f0f0f0;
		padding: 1.25rem;
	}

	.bas-qv-modal {
		max-height: 95vh;
		border-radius: 12px;
		margin: 0.5rem;
	}

	.bas-qv-overlay {
		padding: 0.5rem;
		align-items: flex-end;
	}

	/* Cart panel full width on small screens */
	.bas-cart-panel {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.bas-qv-form__row {
		flex-direction: column;
		align-items: stretch;
	}
	.bas-qv-form__submit {
		width: 100%;
	}
	.bas-qv-info__title { font-size: 1.25rem; }
}

/* ── Accessibility: reduce motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.bas-qv-overlay,
	.bas-qv-modal,
	.bas-cart-panel,
	.bas-cart-backdrop,
	.bas-qv-gallery__main-img,
	.bas-qv-toast,
	.bas-qv-modal__close,
	.bas-qv-img-trigger {
		transition: none !important;
		animation: none !important;
	}
}
