/* ==========================================================================
   Cubive Sports — Feature Stylesheet
   Trust bar, floating WhatsApp/back-to-top buttons, sticky mobile
   add-to-cart bar, and breadcrumbs.
   ========================================================================== */

/* ---------- Breadcrumbs (non-WooCommerce pages) ---------- */
.cubive-breadcrumb {
	display: block;
	font-size: 0.85rem;
	color: var(--cubive-text-muted);
	margin: 0 0 20px;
}
.cubive-breadcrumb a { color: var(--cubive-text-muted); }
.cubive-breadcrumb a:hover { color: var(--cubive-accent); }
.cubive-breadcrumb-sep {
	display: inline-block;
	margin: 0 8px;
	color: var(--cubive-border);
}

/* ---------- Floating action buttons (WhatsApp / back-to-top) ---------- */
.cubive-floating-buttons {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 150;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}
.cubive-fab {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(0,0,0,0.2);
	border: none;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.2s ease, visibility 0.2s ease;
}
.cubive-fab:hover { transform: translateY(-2px); }

.cubive-fab--whatsapp {
	background: #25d366;
	color: #fff;
}

.cubive-fab--back-to-top {
	background: var(--cubive-primary);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
.cubive-fab--back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
.cubive-fab--back-to-top:hover { background: var(--cubive-accent); }

/* ---------- Sticky mobile add-to-cart bar ---------- */
.cubive-sticky-cart {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 140;
	background: #fff;
	border-top: 1px solid var(--cubive-border);
	box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
	transform: translateY(100%);
	transition: transform 0.28s ease;
	display: none; /* only enabled on mobile widths, see breakpoint below */
}
.cubive-sticky-cart.is-visible { transform: translateY(0); }
.cubive-sticky-cart-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 16px;
}
.cubive-sticky-cart-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}
.cubive-sticky-cart-title {
	font-size: 0.85rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cubive-sticky-cart-price {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--cubive-primary);
}
.cubive-sticky-cart-btn,
.cubive-sticky-cart .cubive-quote-btn {
	flex-shrink: 0;
	padding: 11px 22px !important;
	font-size: 0.85rem !important;
}
.cubive-sticky-cart-oos {
	flex-shrink: 0;
	font-size: 0.85rem;
	color: var(--cubive-text-muted);
	font-weight: 600;
}

@media (max-width: 780px) {
	.cubive-sticky-cart { display: block; }
}

/* Keep floating buttons clear of the sticky cart bar on mobile product pages */
@media (max-width: 780px) {
	body.single-product .cubive-floating-buttons { bottom: 90px; }
}

@media (max-width: 480px) {
	.cubive-floating-buttons { right: 14px; bottom: 14px; gap: 10px; }
	.cubive-fab { width: 46px; height: 46px; }
}
