/* Desktop hide */
@media (min-width: 992px) {
	.teconce-mbar,
	.teconce-mbar__overlay,
	.teconce-drawer,
	.teconce-pbar {
		display: none !important;
	}
}

.teconce-mbar__overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(0, 0, 0, 0.75);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, visibility .2s ease;
}

.teconce-mbar__overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}


/* Bottom bar (mobile) */
.teconce-mbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
	background: #1a1d3e;
	border-top: 1px solid rgba(255,255,255,.12);
}

.teconce-mbar__item {
display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px !important;
    border-radius: 12px !important;
        background: rgba(255, 255, 255, .06) !important;
    color: #fff;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font: inherit;
        border-radius: 8px !important;
}

.teconce-mbar__item:active {
	transform: translateY(1px);
}

.teconce-mbar__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
}

.teconce-mbar__icon i {
	font-size: 18px;
	line-height: 1;
}

.teconce-mbar__text {
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
}

/* Cart badge */


.teconce-mbar__badge {
	position: absolute;
	top: -8px;
	right: -12px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #ff3b30;
	color: #fff;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
}

/* Overlay */


/* Drawers */
/* Drawers - Fixed CSS */
.teconce-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99999;
    width: min(86vw, 380px);
    height: 100dvh;
    background: #1a1d3e;
    color: #fff;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 1px solid rgba(255,255,255,.12);
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.teconce-drawer.is-open {
    transform: translateX(0);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

/* Overlay */
.teconce-mbar__overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.teconce-mbar__overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when drawer is open */
body.teconce-drawer-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}
.teconce-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	border-bottom: 1px solid rgba(255,255,255,.12);
}

.teconce-drawer__title {
	font-size: 16px;
}

.teconce-drawer__close {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 0;
	cursor: pointer;
	background: rgba(255,255,255,.08);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	padding:0 !important;
}

.teconce-drawer__nav {
	padding: 12px 16px;
	overflow: auto;
}

.teconce-drawer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.teconce-drawer__menu li {
	margin: 0;
	padding: 0;
}

.teconce-drawer__menu a {
	display: block;
	padding: 12px 12px;
	border-radius: 12px;
	text-decoration: none;
	color: #fff;
	background: rgba(255,255,255,.06);
	margin-bottom: 10px;
}

.teconce-drawer__menu .sub-menu {
	list-style: none;
	margin: 8px 0 12px 12px;
	padding: 0;
}

.teconce-drawer__empty {
	margin: 0;
	opacity: .85;
	font-size: 14px;
}

/* Give space so bar doesn't cover content (except product page) */
@media (max-width: 991px) {
	body:not(.single-product) {
		padding-bottom: 78px;
	}
}

/* Product sticky bar (single product only) */
.teconce-pbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
	background: #1a1d3e;
	border-top: 1px solid rgba(255,255,255,.12);
}

.teconce-pbar__btn {
    border: 0;
    border-radius: 14px !important;
    padding: 12px 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.teconce-pbar__btn--cart,
.teconce-pbar form.cart .single_add_to_cart_button {
   background-image: linear-gradient(-60deg, #16a085 0%, #f4d03f 100%);
    color: #fff !important;
}

.teconce-pbar__btn--buy{
background-image: linear-gradient(-60deg, #ff5858 0%, #f09819 100%);
	color:  #fff !important;
}

@media (max-width: 767px) {
    
    .teconce-pbar .st-product-cta-wrap{
        margin-top:0 !important;
    }

	/* Hide quantity field inside the sticky bar only */
	.teconce-pbar form.cart .quantity,
	.teconce-pbar form.cart .qty,
	.teconce-pbar .st-product-whatsapp-btn{
		display: none !important;
	}

	/* Hide stock messages inside the sticky bar only */
	.teconce-pbar .stock,
	.teconce-pbar p.stock {
		display: none !important;
	}

	/* Hide variation price / availability text blocks (optional, common in variable products) */
	.teconce-pbar .woocommerce-variation,
	.teconce-pbar .woocommerce-variation-description,
	.teconce-pbar .woocommerce-variation-availability,
	.teconce-pbar .woocommerce-variation-price {
		display: none !important;
	}

	/* Make buttons take full width */
	.teconce-pbar form.cart {
		display: flex;
		gap: 10px;
		width: 100%;
		margin: 0;
	}

	.teconce-pbar form.cart .single_add_to_cart_button,
	.teconce-pbar .st-product-cta-wrap .st-product-cta-btn {
		flex: 1;
		width: 100%;
	}
}


/* Add to cart popup */
.teconce-atc-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
}

.teconce-atc-modal.is-open {
	display: block;
}

.teconce-atc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.55);
}

.teconce-atc-modal__box {
	position: absolute;
	left: 50%;
	bottom: 90px;
	transform: translateX(-50%);
	width: calc(100% - 24px);
	max-width: 420px;
	background: #fff;
	border-radius: 12px;
	padding: 18px 18px 16px;
	box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.teconce-atc-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: 0;
	font-size: 22px;
	cursor: pointer;
}

.teconce-atc-modal__content .woocommerce-message {
	margin: 0;
}
.teconce-atc-actions {
	margin-top: 12px;
	display: flex;
	gap: 10px;
}

.teconce-atc-view-cart {
	width: 100%;
	text-align: center;
}


