/* ==========================================================================
   BTS Core - CEO Tools Table & Upsell Detail Modal Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CEO TOOLS TABLE WRAPPER
   -------------------------------------------------------------------------- */
.bts-ceo-tools-wrapper {
	width: 100%;
	max-width: 1140px;
	margin: 16px auto;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1f2937;
}

.bts-ceo-tools-title {
	font-size: 18.5px;
	font-weight: 700;
	color: #0f1c2e;
	margin: 0 0 18px 0;
	line-height: 1.4;
	letter-spacing: -0.2px;
}

.bts-ceo-tools-table-container {
	width: 100%;
	background: #ffffff;
	border: 1px solid #f0eae1 !important;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.bts-ceo-tools-table {
	width: 100%;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	text-align: left;
	font-size: 14.5px;
	border: none !important;
}

.bts-ceo-tools-table thead {
	background: #fbf9f6 !important;
	border-bottom: 1px solid #f2ece3 !important;
}

.bts-ceo-tools-table th {
	padding: 14px 20px;
	font-size: 13.5px;
	font-weight: 700;
	color: #4b5563;
	white-space: nowrap;
	border: none !important;
	border-right: 1px solid #f6f1ea !important;
	border-bottom: 1px solid #f2ece3 !important;
}

.bts-ceo-tools-table th:last-child {
	border-right: none !important;
}

.bts-ceo-tools-table tbody tr {
	border-bottom: 1px solid #f6f1ea !important;
	transition: background-color 0.2s ease;
}

.bts-ceo-tools-table tbody tr:last-child {
	border-bottom: none !important;
}

.bts-ceo-tools-table tbody tr:hover {
	background-color: #fdfbf9;
}

.bts-ceo-tools-table td {
	padding: 16px 20px;
	vertical-align: middle;
	border: none !important;
	border-right: 1px solid #f6f1ea !important;
	border-bottom: 1px solid #f6f1ea !important;
}

.bts-ceo-tools-table td:last-child {
	border-right: none !important;
}

.bts-ceo-tools-table tbody tr:last-child td {
	border-bottom: none !important;
}

/* Col: Tên sản phẩm */
.bts-ceo-tool-name-link {
	color: #111827;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.4;
	transition: color 0.2s ease;
	display: inline-block;
}

.bts-ceo-tool-name-link:hover {
	color: #c47c2c !important;
}

/* Col: Giá */
.col-price strong {
	font-size: 15.5px;
	font-weight: 700;
	color: #111827;
}

/* Col: Tình trạng giao hàng */
.bts-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	white-space: nowrap;
}

.bts-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

.bts-status--available .bts-status-dot {
	background-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.bts-status--wait_1_2w .bts-status-dot,
.bts-status--wait_2m .bts-status-dot {
	background-color: #f59e0b;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Col: Số lượng */
.bts-ceo-tools-wrapper .bts-table-qty-control {
	display: inline-flex !important;
	align-items: center !important;
	border: 1px solid #eee6db !important;
	border-radius: 6px !important;
	height: 34px !important;
	background: #ffffff !important;
	width: 90px !important;
	min-width: 90px !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	padding: 0 !important;
	margin: 0 !important;
}

.bts-ceo-tools-wrapper .bts-table-qty-btn {
	width: 28px !important;
	height: 100% !important;
	border: none !important;
	background: #faf8f5 !important;
	background-color: #faf8f5 !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #6b7280 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	transition: background-color 0.15s, color 0.15s !important;
}

.bts-ceo-tools-wrapper .bts-table-qty-btn:hover {
	background: #f4ede3 !important;
	color: #b77123 !important;
}

.bts-ceo-tools-wrapper .bts-table-qty-input {
	width: 34px !important;
	flex: 1 1 auto !important;
	height: 100% !important;
	border: none !important;
	border-left: 1px solid #eee6db !important;
	border-right: 1px solid #eee6db !important;
	border-top: none !important;
	border-bottom: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	text-align: center !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	color: #111827 !important;
	padding: 0 !important;
	margin: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	line-height: 34px !important;
	-moz-appearance: textfield !important;
}

.bts-ceo-tools-wrapper .bts-table-qty-input::-webkit-outer-spin-button,
.bts-ceo-tools-wrapper .bts-table-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

/* Col: Nút Đặt mua ngay */
.bts-ceo-tools-wrapper .bts-btn-table-buy {
	background: #c47c2c !important;
	background-color: #c47c2c !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 6px !important;
	height: 34px !important;
	line-height: 34px !important;
	padding: 0 16px !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	white-space: nowrap !important;
	outline: none !important;
	box-shadow: 0 2px 6px rgba(196, 124, 44, 0.25) !important;
	transition: all 0.2s ease !important;
	box-sizing: border-box !important;
}

.bts-ceo-tools-wrapper .bts-btn-table-buy:hover {
	background: #b06b20 !important;
	background-color: #b06b20 !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 10px rgba(196, 124, 44, 0.35) !important;
}

/* --------------------------------------------------------------------------
   STICKY FLOATING CART BAR (Ghim Footer, trượt lên khi có sản phẩm trong giỏ)
   -------------------------------------------------------------------------- */
.bts-sticky-cart-bar {
	position: fixed !important;
	bottom: 0;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	background: #fdfaf6 !important;
	background: rgba(253, 250, 246, 0.98) !important;
	backdrop-filter: blur(12px) !important;
	-webkit-backdrop-filter: blur(12px) !important;
	border-top: none !important;
	box-shadow: 0 -4px 20px rgba(15, 28, 46, 0.06) !important;
	z-index: 995 !important;
	transform: translateY(115%) !important;
	opacity: 0 !important;
	visibility: hidden !important;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease !important;
	box-sizing: border-box !important;
	margin: 0 !important;
}

.bts-sticky-cart-bar.is-visible {
	transform: translateY(0) !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.bts-sticky-cart-bar__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 13px 24px;
	padding-bottom: max(13px, env(safe-area-inset-bottom));
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14.5px;
	color: #1f2937;
}

.bts-sticky-cart-bar__left {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #4b5563;
}

.bts-sticky-cart-bar__left strong {
	color: #111827;
}

.bts-truck-icon {
	width: 22px;
	height: 22px;
	color: #c47c2c;
	flex-shrink: 0;
}

.bts-sticky-cart-bar__right {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: #374151;
}

.bts-cart-bar-icon {
	width: 20px;
	height: 20px;
	color: #c47c2c;
	flex-shrink: 0;
}

.bts-dot-sep {
	color: #d1d5db;
	font-size: 15px;
}

.bts-sticky-cart-bar .bts-btn-sticky-checkout,
.bts-ceo-tools-wrapper .bts-btn-goto-checkout {
	color: #c47c2c !important;
	font-weight: 700 !important;
	text-decoration: underline !important;
	cursor: pointer !important;
	transition: color 0.15s ease !important;
	white-space: nowrap !important;
	font-size: 14.5px !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.bts-sticky-cart-bar .bts-btn-sticky-checkout:hover,
.bts-ceo-tools-wrapper .bts-btn-goto-checkout:hover {
	color: #a05a12 !important;
	text-decoration: underline !important;
}

/* --------------------------------------------------------------------------
   2. UPSELL DETAIL POPUP MODAL (Ảnh 2)
   -------------------------------------------------------------------------- */
.bts-tool-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(4px);
	z-index: 999998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bts-tool-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.bts-tool-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.96);
	width: 980px;
	max-width: 95vw;
	max-height: 92vh;
	max-height: 92dvh;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
	z-index: 999999;
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1f2937;
	overflow: hidden;
}

.bts-tool-modal.is-open {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1);
}

/* Reset Elementor button rules inside modal */
#bts-tool-modal button,
#bts-tool-modal input {
	font-family: inherit !important;
	outline: none !important;
	box-shadow: none !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

#bts-tool-modal .bts-tool-modal__close {
	position: absolute;
	top: 16px;
	right: 18px;
	z-index: 20;
	background: rgba(255, 255, 255, 0.85) !important;
	background-color: rgba(255, 255, 255, 0.85) !important;
	border: 1px solid #ebdccb !important;
	border-radius: 50% !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	font-size: 24px !important;
	line-height: 1 !important;
	color: #6b7280 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
	outline: none !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
	transition: all 0.2s ease !important;
}

#bts-tool-modal .bts-tool-modal__close:hover {
	color: #111827 !important;
	background: #ffffff !important;
	border-color: #c47c2c !important;
	transform: rotate(90deg) !important;
}

.bts-tool-modal__inner {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 32px 36px 36px 36px;
	box-sizing: border-box;
}

/* Top Modal Header */
.bts-tool-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 1.5px solid #f1ece4;
}

.bts-tool-header__left {
	max-width: 580px;
}

.bts-tool-header__pre {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #c47c2c;
	text-transform: uppercase;
	display: block;
	margin-bottom: 6px;
}

.bts-tool-header__title {
	font-size: 25px;
	font-weight: 800;
	color: #0f1c2e;
	margin: 0 0 8px 0;
	line-height: 1.25;
	letter-spacing: -0.3px;
}

.bts-tool-header__desc {
	font-size: 13.5px;
	color: #4b5563;
	margin: 0;
	line-height: 1.5;
}

.bts-tool-header__right {
	flex-shrink: 0;
}

.bts-tool-quote-box {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #faf7f2;
	border: 1px solid #ebdccb;
	border-radius: 12px;
	padding: 12px 16px;
	max-width: 320px;
}

.bts-tool-watermark-55 {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
}

.bts-tool-compass-svg {
	width: 100%;
	height: 100%;
}

.bts-tool-quote-content {
	flex: 1;
}

.bts-tool-quote-text {
	font-size: 12px;
	font-style: italic;
	color: #b77123;
	margin: 0 0 2px 0;
	line-height: 1.4;
	font-weight: 500;
}

.bts-tool-quote-author {
	font-size: 11px;
	color: #9ca3af;
	font-weight: 600;
}

/* Main Featured Item (MUD) */
.bts-tool-featured {
	background: #ffffff;
	border: 1.5px solid #ebdccb;
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 28px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.bts-tool-featured__grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 28px;
	align-items: center;
}

.bts-tool-featured__thumb-col {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fdfaf6;
	border-radius: 12px;
	padding: 16px;
}

.bts-tool-3d-box {
	width: 100%;
	max-width: 220px;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.1));
}

.bts-tool-3d-img {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
	border-radius: 8px;
}

.bts-tool-feat-title {
	font-size: 21px;
	font-weight: 800;
	color: #0f1c2e;
	margin: 0 0 4px 0;
	line-height: 1.25;
}

.bts-tool-feat-tagline {
	font-size: 13.5px;
	color: #6b7280;
	margin: 0 0 14px 0;
}

.bts-tool-feat-checks {
	list-style: none;
	padding: 0;
	margin: 0 0 16px 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bts-tool-feat-checks li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	color: #374151;
	line-height: 1.4;
}

.bts-check-icon {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #c47c2c;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.bts-check-icon svg {
	width: 11px;
	height: 11px;
}

/* Why Box (Lightbulb) */
.bts-tool-why-box {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #fdf8ee;
	border: 1px solid #ebd9b8;
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 20px;
}

.bts-tool-why-icon {
	width: 24px;
	height: 24px;
	color: #c47c2c;
	flex-shrink: 0;
	margin-top: 1px;
}

.bts-tool-why-icon svg {
	width: 100%;
	height: 100%;
}

.bts-tool-why-title {
	font-size: 13.5px;
	font-weight: 700;
	color: #8c5017;
	margin: 0 0 3px 0;
}

.bts-tool-why-text {
	font-size: 12.5px;
	color: #4b5563;
	margin: 0;
	line-height: 1.45;
}

/* Featured Price & Actions */
.bts-tool-feat-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.bts-tool-feat-price {
	font-size: 22px;
	font-weight: 800;
	color: #c47c2c;
	line-height: 1;
}

#bts-tool-modal .bts-tool-feat-qty {
	display: inline-flex !important;
	align-items: center !important;
	border: 1px solid #dcd3c5 !important;
	border-radius: 6px !important;
	height: 38px !important;
	background: #ffffff !important;
	width: 92px !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

#bts-tool-modal .bts-tool-qty-btn {
	width: 28px !important;
	height: 100% !important;
	border: none !important;
	background: transparent !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #4b5563 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	border-radius: 0 !important;
}

#bts-tool-modal .bts-tool-qty-btn:hover {
	background: #f5ede1 !important;
	color: #b77123 !important;
}

#bts-tool-modal .bts-tool-qty-input {
	width: 36px !important;
	height: 100% !important;
	border: none !important;
	border-left: 1px solid #ebdccb !important;
	border-right: 1px solid #ebdccb !important;
	border-radius: 0 !important;
	background: transparent !important;
	text-align: center !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	color: #111827 !important;
	padding: 0 !important;
	-moz-appearance: textfield !important;
}

#bts-tool-modal .bts-btn-tool-buy {
	height: 38px !important;
	line-height: 38px !important;
	background: linear-gradient(135deg, #e39235 0%, #b86e20 100%) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	padding: 0 20px !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	box-shadow: 0 4px 12px rgba(196, 124, 44, 0.3) !important;
	transition: all 0.2s ease !important;
}

#bts-tool-modal .bts-btn-tool-buy:hover {
	background: linear-gradient(135deg, #d38228 0%, #a45f17 100%) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 16px rgba(196, 124, 44, 0.4) !important;
}

/* --------------------------------------------------------------------------
   Sub-Cards: Có thể bạn cũng sẽ cần
   -------------------------------------------------------------------------- */
.bts-tool-sub-section {
	margin-bottom: 28px;
}

.bts-tool-sub-header {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 14px;
}

.bts-tool-sub-title {
	font-size: 17px;
	font-weight: 700;
	color: #0f1c2e;
	margin: 0;
}

.bts-tool-sub-desc {
	font-size: 12.5px;
	color: #6b7280;
}

.bts-tool-sub-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.bts-tool-sub-card {
	display: flex;
	gap: 16px;
	background: #ffffff;
	border: 1px solid #ebdccb;
	border-radius: 12px;
	padding: 16px;
	align-items: center;
	transition: all 0.2s ease;
}

.bts-tool-sub-card:hover {
	border-color: #dfcaa8;
	box-shadow: 0 4px 14px rgba(196, 124, 44, 0.08);
}

.bts-tool-sub-card__thumb {
	width: 80px;
	height: 96px;
	border-radius: 8px;
	background: #fdfaf6;
	border: 1px solid #ebdccb;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.bts-tool-sub-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bts-tool-sub-card__info {
	flex: 1 1 auto;
	min-width: 0;
}

.bts-tool-sub-card__title {
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 3px 0;
}

.bts-tool-sub-card__desc {
	font-size: 11.5px;
	color: #6b7280;
	margin: 0 0 6px 0;
	line-height: 1.35;
}

.bts-tool-sub-card__price {
	font-size: 16px;
	font-weight: 700;
	color: #b77123;
	display: block;
	margin-bottom: 8px;
}

.bts-tool-sub-card__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

#bts-tool-modal .bts-tool-sub-qty {
	display: inline-flex !important;
	align-items: center !important;
	border: 1px solid #dcd3c5 !important;
	border-radius: 6px !important;
	height: 30px !important;
	background: #ffffff !important;
	width: 80px !important;
	overflow: hidden !important;
}

#bts-tool-modal .bts-tool-sub-qty .bts-tool-qty-btn {
	width: 24px !important;
	font-size: 13px !important;
}

#bts-tool-modal .bts-tool-sub-qty .bts-tool-qty-input {
	width: 32px !important;
	font-size: 12px !important;
	line-height: 30px !important;
}

#bts-tool-modal .bts-btn-tool-sub-buy {
	height: 30px !important;
	line-height: 30px !important;
	background: #ebd6be !important;
	color: #8c5017 !important;
	border: 1px solid #dec3a4 !important;
	border-radius: 6px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	padding: 0 12px !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	transition: all 0.2s ease !important;
	white-space: nowrap !important;
}

#bts-tool-modal .bts-btn-tool-sub-buy:hover {
	background: #c47c2c !important;
	border-color: #c47c2c !important;
	color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Modal Footer: Badges & Back Button
   -------------------------------------------------------------------------- */
.bts-tool-footer {
	border-top: 1px solid #f1ece4;
	padding-top: 20px;
}

.bts-tool-badges {
	display: flex;
	justify-content: space-around;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
	padding: 12px 16px;
	background: #faf7f2;
	border-radius: 10px;
	border: 1px solid #ebdccb;
}

.bts-tool-badge-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: #4b5563;
}

.bts-tool-badge-item svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.bts-tool-badge-item strong {
	color: #111827;
	display: block;
	font-size: 12.5px;
}

.bts-tool-back-action {
	text-align: center;
}

#bts-tool-modal .bts-btn-tool-back {
	background: #ffffff !important;
	color: #4b5563 !important;
	border: 1.5px solid #d1d5db !important;
	border-radius: 8px !important;
	padding: 9px 24px !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	transition: all 0.2s ease !important;
}

#bts-tool-modal .bts-btn-tool-back:hover {
	background: #faf7f2 !important;
	border-color: #c47c2c !important;
	color: #c47c2c !important;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
	.bts-tool-featured__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.bts-tool-sub-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.bts-tool-header {
		flex-direction: column;
		gap: 16px;
	}

	.bts-tool-quote-box {
		max-width: 100%;
	}

	.bts-tool-badges {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}

@media (max-width: 680px) {
	.bts-ceo-tools-table thead {
		display: none;
	}

	.bts-ceo-tools-table,
	.bts-ceo-tools-table tbody,
	.bts-ceo-tools-table tr,
	.bts-ceo-tools-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.bts-ceo-tools-table tr {
		padding: 14px 16px;
		border-bottom: 1px solid #ebdccb;
	}

	.bts-ceo-tools-table td {
		padding: 6px 0;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.bts-ceo-tools-table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: #6b7280;
		font-size: 13px;
	}

	.bts-ceo-tools-table td.col-name {
		font-size: 15px;
	}

	.bts-ceo-tools-table td.col-name::before {
		display: none;
	}

	.bts-ceo-tools-footer-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}

/* Hide Sticky Cart Bar completely on Mobile */
@media (max-width: 768px) {
	.bts-sticky-cart-bar,
	.bts-sticky-cart-bar.is-visible {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
		transform: translateY(200%) !important;
	}
}


/* ==========================================================================
   URGENT MOBILE FIXES
   ========================================================================== */
@media (max-width: 768px) {


	/* 1. Remove table row striped background globally to override Flatsome */
.bts-ceo-tools-table tbody > tr > td,
.bts-ceo-tools-table tbody > tr:nth-child(odd) > td,
.bts-ceo-tools-table tbody > tr:nth-child(odd) > th,
.bts-ceo-tools-table tbody > tr:nth-child(even) > td,
.bts-ceo-tools-table tbody > tr:nth-child(even) > th {
	background-color: transparent !important;
}
/* Re-enable hover effect explicitly */
@media (min-width: 769px) {
	.bts-ceo-tools-table tbody > tr:hover > td {
		background-color: #fdfbf9 !important;
	}
}

	/* 2. Fix Popup Layout Overflow on Mobile */
	#bts-tool-modal {
		width: 95vw !important;
		padding: 0 !important;
	}
	
	.bts-tool-modal__inner {
		padding: 20px !important;
	}

	.bts-tool-body {
		flex-direction: column !important;
		gap: 16px !important;
		padding: 16px !important;
	}

	.bts-tool-media {
		width: 100% !important;
		max-width: 100% !important;
		padding: 16px !important;
		box-sizing: border-box !important;
	}

	.bts-tool-info {
		width: 100% !important;
	}

	.bts-tool-feat-actions {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 12px !important;
	}

	.bts-tool-feat-price {
		text-align: center !important;
	}

	.bts-tool-feat-qty {
		justify-content: center !important;
	}

	.bts-btn-tool-buy {
		width: 100% !important;
		justify-content: center !important;
	}

	/* 3. Fix Cross-sells Grid on Mobile */
	.bts-tool-sub-grid {
		grid-template-columns: 1fr !important;
		gap: 12px !important;
	}

	.bts-tool-sub-header {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 6px !important;
	}
	
	.bts-tool-sub-item {
		flex-direction: column !important;
		align-items: center !important;
		text-align: center !important;
	}
	.bts-tool-sub-action {
		flex-wrap: wrap !important;
		justify-content: center !important;
	}
}
