/* =====================================================
   Menu Order Plugin - Frontend Styles
   Design: Primary #FF6B00 | Title #2c2c2c | Text #8a8a8a
   ===================================================== */

/* CSS Custom Properties (editable from admin) */
:root {
	--mo-primary: #FF6B00;
	--mo-primary-dark: #e05a00;
	--mo-primary-light: rgba(255, 107, 0, 0.1);
	--mo-title: #2c2c2c;
	--mo-text: #8a8a8a;
	--mo-border: #ebebeb;
	--mo-bg: #fff;
	--mo-bg-soft: #f8f8f8;
	--mo-shadow: 0 2px 12px rgba(0,0,0,0.08);
	--mo-shadow-hover: 0 6px 24px rgba(0,0,0,0.14);
	--mo-radius: 12px;
	--mo-radius-sm: 8px;
	--mo-transition: all 0.2s ease;
}







/* ===== WRAPPER: sidebar + content layout ===== */
.mo-menu-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 0;
	max-width: 100%;
	margin: 0 auto;
}

/* ===== CATEGORY SIDEBAR NAV ===== */
.mo-category-nav {
    position: relative; /* cần cho absolute-bottom state của sticky inner */
    width: 30%;
    min-width: 180px;
    max-width: 300px;
    flex-shrink: 0;
    background: var(--mo-bg);
    z-index: 10;
}

/* mo-category-nav-inner: sticky element tự quản lý qua JS */
.mo-category-nav-inner {
	max-height: 100vh;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--mo-border) transparent;
}

.mo-category-nav-inner::-webkit-scrollbar { width: 4px; }
.mo-category-nav-inner::-webkit-scrollbar-track { background: transparent; }
.mo-category-nav-inner::-webkit-scrollbar-thumb { background: var(--mo-border); border-radius: 2px; }

/* ===== SEARCH BOX (top of content area) ===== */
.mo-search-box {
	    margin-bottom: 25px;
}

.mo-search-input-wrap {
	position: relative;
}

.mo-search-input-wrap::before {
	content: '';
	position: absolute;
	right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none;
}

.mo-search-box .mo-search-input {
    width: 100%;
    padding: 5px 10px 5px 15px;
    border: 1.5px solid var(--mo-border);
    font-size: 14px;
    color: var(--mo-title);

    transition: var(--mo-transition);
    box-sizing: border-box;
    outline: none;
    border-radius: 5px;
    box-shadow: none;
    margin: 0;
    height: 50px;
}

.mo-search-box .mo-search-input:focus {
	border-color: var(--mo-primary);
	background: var(--mo-bg);
}

.mo-search-box .mo-search-input::placeholder {
	color: var(--mo-text);
}
.checkout-sidebar.sm-touch-scroll {
        overflow-x: inherit;
    }
.shipped_via{
	font-size: 100%;
	margin-right: 5px;
}
.woocommerce-order-details .shop_table tfoot th {
    font-size: .9em;
	color: var(--mo-title);
}
/* ===== NAV TABS (vertical) ===== */
.mo-category-nav-inner {
	display: flex;
	flex-direction: column;
	padding: 0px 0 30px;
	list-style: none;
	margin: 0;
}

.mo-cat-tab {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px;
	text-decoration: none;
	color: var(--mo-title);
	transition: color 0.15s ease, border-color 0.15s ease;
	cursor: pointer;
	min-height: 62px;
	border-radius: 5px;
	margin-bottom: 10px;
    border: 1.5px solid var(--mo-border);
}

.mo-cat-tab:hover {
	background: var(--mo-primary-light);
	color: var(--mo-primary);
	text-decoration: none;
	border: 1.5px solid var(--mo-primary-light);
}

.mo-cat-tab.active {
	background: var(--mo-primary);
	color: #fff;
	text-decoration: none;
	border: 1.5px solid var(--mo-primary);
}

.mo-cat-tab-img {
	width: 50px;
	height: 50px;
	border-radius: var(--mo-radius-sm);
	overflow: hidden;
	flex-shrink: 0;
	background: var(--mo-primary-light);
	display: flex;
	align-items: center;
	justify-content: center;
}

.mo-cat-tab.active .mo-cat-tab-img {
	background: rgba(255, 255, 255, 0.2);
}

.mo-cat-tab-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	padding: 3px;
}

.mo-cat-tab-img--empty {
	font-size: 18px;
	font-weight: 600;
	color: var(--mo-primary);
	background: var(--mo-primary-light);
}

.mo-cat-tab.active .mo-cat-tab-img--empty {
	color: #fff;
	background: rgba(255, 255, 255, 0.25);
}

.mo-cat-tab-name {
	font-size: 14px;
	font-weight: 600;
	color: inherit;
	line-height: 1.3;
	flex: 1;
}

.mo-cat-tab-count {
	flex-shrink: 0;
	width: 20px;
    height: 20px;
    font-size: 10px;
    font-weight: 600;
    line-height: 20px;
	border-radius: 20px;
	background: rgba(0, 0, 0, 0.05);
	color: var(--mo-text);
	min-width: 20px;
	text-align: center;
}

.mo-cat-tab:hover .mo-cat-tab-count {
	background: rgba(255, 107, 0, 0.15);
	color: var(--mo-primary);
}

.mo-cat-tab.active .mo-cat-tab-count {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}

/* ===== RIGHT CONTENT AREA ===== */
.mo-categories {
    flex: 1;
    min-width: 0;
    padding: 0 0 30px 30px;
}

/* Search: no results message */
.mo-search-no-results {
	display: none;
	text-align: center;
	padding: 48px 20px;
	color: var(--mo-text);
	font-size: 14px;
}

/* ===== CATEGORY SECTION ===== */
.mo-category-section {
	margin-bottom: 48px;
}

.mo-category-section:last-child {
	margin-bottom: 0;
}

.mo-category-title {
	font-size: 22px;
	font-weight: 600;
	color: var(--mo-title);
	margin: 0 0 20px 0;
	padding: 0;
}

.mo-category-desc {
	font-size: 14px;
	color: var(--mo-text);
	margin: 0 0 20px 0;
}

/* ===== PRODUCTS GRID ===== */
.mo-products-grid {
	display: grid;
	gap: 16px;
}

.mo-products-grid.mo-columns-1 { grid-template-columns: 1fr; }
.mo-products-grid.mo-columns-2 { grid-template-columns: repeat(2, 1fr); }
.mo-products-grid.mo-columns-3 { grid-template-columns: repeat(3, 1fr); }





/* ===== PRODUCT CARD ===== */
.mo-product-card {
	display: flex;
	background: var(--mo-bg);
	border: 1px solid var(--mo-border);
	border-radius: var(--mo-radius);
	overflow: hidden;
	transition: var(--mo-transition);
	cursor: pointer;
}

.mo-product-card:hover {
	box-shadow: var(--mo-shadow-hover);
	border-color: transparent;
	transform: translateY(-2px);
}

.mo-product-card.mo-out-of-stock {
	opacity: 0.6;
	pointer-events: none;
}

.mo-product-image {
	position: relative;
	width: 30%;
	flex-shrink: 0;
	overflow: hidden;
	background: var(--mo-bg-soft);
	display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Padding-top aspect-ratio trick support */
.mo-product-image .img-inner.image-cover {
	position: relative;
	overflow: hidden;
	width: 100%;
	min-height: 80px;
}

.mo-product-image .img-inner.image-cover img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.mo-product-card:hover .mo-product-image .img-inner.image-cover img {
	transform: scale(1.05);
}

/* ===== PRODUCT BADGE ===== */
.mo-product-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	background: var(--mo-primary);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
    padding: 4px 8px;
	border-radius: 4px;
	letter-spacing: 0.4px;
	pointer-events: none;
	white-space: nowrap;
	text-transform: uppercase;
}

.mo-product-info {
	flex: 1;
	padding: 20px 25px;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.mo-product-name {
	font-size: 16px;
	font-weight: 600;
	color: var(--mo-title);
	margin: 0 0 6px 0;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mo-product-desc {
    font-size: 14px;
    color: var(--mo-text);
    margin: 0 0 auto 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mo-product-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
	gap: 8px;
}

.mo-product-price {
	font-size: 15px;
	font-weight: 600;
	color: var(--mo-primary);
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}

.mo-product-price .woocommerce-Price-amount {
	color: var(--mo-primary);
	font-size: 16px;
}

/* Sale price (ins) shows first, original (del) after */
.mo-product-price ins,
.mo-popup-base-price ins {
	order: -1;
	text-decoration: none;
	font-weight: 600;
}
.mo-cart-float span.amount, .mo-popup-base-price span.amount, .checkout-sidebar span.amount{
    color: var(--mo-title);
}
.mo-product-price del,
.mo-popup-base-price del {
	order: 0;
	opacity: 0.55;
	font-weight: 400;
}

.mo-popup-base-price {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.mo-btn-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 26px;
    height: 26px;
    background: var(--mo-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mo-transition);
    white-space: nowrap;
    min-width: inherit;
    margin: 0;
    letter-spacing: 0;
    line-height: 0;
    min-height: inherit;
}
.mo-btn-add svg{
    width: 14px;
    height: 14px;
	top: 0;
}
.mo-btn-add:hover {
	background: var(--mo-primary-dark);
}

.mo-btn-add:active {
	transform: scale(0.97);
}

.mo-btn-add.mo-loading {
	opacity: 0.7;
	pointer-events: none;
}

.mo-sold-out {
	font-size: 12px;
	color: var(--mo-text);
	background: var(--mo-bg-soft);
	padding: 6px 12px;
	border-radius: 50px;
}

/* ===== OPTION POPUP ===== */
.mo-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	align-items: flex-end;
	justify-content: center;
}

.mo-popup-overlay.active {
	display: flex;
}



.mo-popup {
	background: var(--mo-bg);
	width: 100%;
	max-width: 650px;
	max-height: 90vh;
	border-radius: var(--mo-radius) var(--mo-radius) 0 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	will-change: transform;
	animation: moSlideUp 0.2s ease;
	    margin-bottom: 62px;
}


@keyframes moSlideUp {
	from { transform: translateY(100%); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

@keyframes moZoomIn {
	from { transform: scale(0.9); opacity: 0; }
	to   { transform: scale(1); opacity: 1; }
}

.mo-popup-close {
	position: absolute;
    font-size: 35px;
    line-height: 35px;
    height: 35px;
    width: 35px;
    min-height: 0;
    max-width: 40px;
    padding: 0;
    margin: 0;
    top: 13px;
    right: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    cursor: pointer;
    display: inline-block;
    color: var(--mo-title);
    z-index: 1;
    transition: var(--mo-transition);
}
.mo-popup-close svg{
	display: block;
    margin: 0 auto;
}
.mo-popup-close:hover ,.mo-cat-drawer-close:hover{
	background: rgba(0,0,0,0.12);
}

.mo-popup-content {
	flex: 1;
}

/* Popup product info */
.mo-popup-product {
	display: flex;
	align-items: center;
    justify-content: space-between;
	gap: 0;
	background: var(--mo-bg-soft);
}

.mo-popup-image {
	width: 140px;
	min-width: 140px;
	height: 140px;
}

.mo-popup-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mo-popup-product-info {
	flex: 1;
	padding: 20px 16px;
}

.mo-popup-product-name {
	font-size: 18px;
	font-weight: 600;
	color: var(--mo-title);
	margin: 0 0 6px 0;
	padding-right: 40px;
}

.mo-popup-product-desc {
	font-size: 13px;
	color: var(--mo-text);
	margin: 0 0 10px 0;
	line-height: 1.5;
}

.mo-popup-base-price {
	font-size: 16px;
	font-weight: 600;
	color: var(--mo-title);
}

/* Popup options */
.mo-popup-detail {
	padding: 16px;
	    overflow-y: scroll;
    height: 600px;
}

.mo-option-group-popup {
	margin-bottom: 20px;
}

.mo-option-group-popup:last-child {
	margin-bottom: 0;
}

.mo-option-group-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--mo-title);
	margin: 0 0 10px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.mo-required-badge {
	display:none;
	font-size: 10px;
	font-weight: 600;
	color: #fff;
	background: var(--mo-primary);
	padding: 2px 7px;
	border-radius: 50px;
}

.mo-option-items-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Radio: 3 cột */
.mo-option-group--radio .mo-option-items-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

/* Checkbox: 1 cột (giữ nguyên) */
.mo-option-group--checkbox .mo-option-items-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}


.mo-option-label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--mo-border);
	border-radius: var(--mo-radius-sm);
	cursor: pointer;
	transition: var(--mo-transition);
	font-weight: inherit;
}

.mo-option-label:hover {
	border-color: var(--mo-primary);
	background: var(--mo-primary-light);
}
.mo-option-label input[type="radio"]{
	display:none;
}
.mo-option-label input[type="radio"]:checked ~ .mo-option-label-text,
.mo-option-label input[type="checkbox"]:checked ~ .mo-option-label-text {
	color: var(--mo-primary);
}

.mo-option-label:has(input:checked) {
	border-color: var(--mo-primary);
	background: var(--mo-primary-light);
}

.mo-option-label input {
	accent-color: var(--mo-primary);
	width: 18px;
	height: 18px;
	min-width: 18px;
	margin: 0!important;
}

.mo-option-label-text {
	flex: 1;
	font-size: 14px;
	color: var(--mo-title);
}

.mo-option-price-badge {
	font-size: 13px;
	font-weight: 600;
	color: var(--mo-primary);
}

/* Popup note */
.mo-popup-note {
	padding: 16px 0 0 0;
}

.mo-popup-note label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--mo-title);
	margin-bottom: 8px;
}
.mo-popup-note textarea{
	box-shadow: none;
}
.mo-popup-note textarea {
	width: 100%;
	border: 2px solid var(--mo-border);
	border-radius: var(--mo-radius-sm);
	padding: 10px 12px;
	font-size: 13px;
	color: var(--mo-title);
	resize: vertical;
	min-height: 60px;
	transition: var(--mo-transition);
	box-sizing: border-box;
	box-shadow: none;
}

.mo-popup-note textarea:focus {
	outline: none;
	border-color: var(--mo-primary);
}

/* Popup footer */
.mo-popup-footer {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	border-top: 1px solid var(--mo-border);
	background: var(--mo-bg);
	position: sticky;
	bottom: 0;
}

.mo-popup-qty {
	display: flex;
	align-items: center;
	gap: 0;
	border: 2px solid var(--mo-border);
	border-radius: 50px;
	overflow: hidden;
}

.mo-qty-btn {
	width: 36px;
	height: 45px;
	border: none;
	background: none;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: var(--mo-title);
	transition: var(--mo-transition);
	display: flex;
	align-items: center;
	justify-content: center;
	    margin: 0;
}

.mo-qty-btn:hover {
	background: var(--mo-bg-soft);
}

.mo-qty-val {
	width: 32px;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: var(--mo-title);
}

.mo-popup-total {
	flex: 1;
	font-size: 16px;
	font-weight: 600;
	color: var(--mo-primary);
	text-align: right;
}

.mo-popup-add-btn {
    padding: 0px 20px;
    background: var(--mo-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mo-transition);
    white-space: nowrap;
    line-height: 45px;
    min-height: 45px;
    margin: 0;
}

.mo-popup-add-btn:hover {
	background: var(--mo-primary-dark);
}

.mo-popup-add-btn:disabled {
	opacity: 0.6;
	pointer-events: none;
}

/* ===== TOAST NOTIFICATION ===== */
.mo-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background: var(--mo-title);
	color: #fff;
	padding: 12px 24px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	z-index: 999999;
	transition: transform 0.3s ease;
	white-space: nowrap;
	box-shadow: var(--mo-shadow-hover);
}

.mo-toast.show {
	transform: translateX(-50%) translateY(0);
}

.mo-toast.success {
	background: #22c55e;
}

.mo-toast.error {
	background: #ef4444;
}

/* ===== FLOATING CART + CHATBOX PANEL ===== */
.mo-cart-float {
	display: none;
	position: fixed;
	bottom: 23px;
	right: 23px;
	z-index: 9999;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.mo-cart-float.visible {
	display: flex;
}

.mo-cart-float-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 20px;
	height: 50px;
	background: var(--mo-primary);
	color: #fff;
	border: none;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 20px var(--mo-primary-light);
	transition: var(--mo-transition);
	white-space: nowrap;
	line-height: 1;
	min-height: 0;
	margin: 0;
}

.mo-cart-float-btn:hover {
	background: var(--mo-primary-dark);
	transform: scale(1.05);
}

.mo-cart-count-badge {
	background: #fff;
    color: var(--mo-primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-top: -2px;
}

/* Chatbox panel */
.mo-cart-panel {
	width: 360px;
	max-height: 75vh;
	background: var(--mo-bg);
	border-radius: var(--mo-radius);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: moSlideUp 0.22s ease;
}

.mo-cart-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid var(--mo-border);
	flex-shrink: 0;
}

.mo-cart-panel-title {
	font-size: 16px;
    font-weight: 600;
    color: var(--mo-title);
    margin: 0;
    text-transform: uppercase;
}

.mo-cart-panel-close {
	width: 30px;
	height: 30px;
	min-height: 0;
	max-width: none;
	border: none;
	background: var(--mo-bg-soft);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--mo-text);
	transition: var(--mo-transition);
	padding: 0;
	margin: 0;
	line-height: 0;
	font-size: 0;
}

.mo-cart-panel-close:hover {
	background: var(--mo-border);
	color: var(--mo-title);
}

.mo-cart-panel-body {
	flex: 1;
	overflow-y: auto;
	padding: 8px 12px;
	min-height: 60px;
}

.mo-cart-loading,
.mo-cart-empty {
	text-align: center;
	color: var(--mo-text);
	font-size: 14px;
	padding: 24px 0;
	margin: 0;
}

.mo-cart-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--mo-border);
	overflow: hidden;
	max-height: 200px;
	transition: opacity 0.25s ease, max-height 0.28s ease, padding 0.28s ease, margin 0.28s ease;
}

.mo-cart-item.mo-cart-item-removing {
	opacity: 0;
	max-height: 0 !important;
	padding-top: 0;
	padding-bottom: 0;
}

.mo-cart-item:last-child {
	border-bottom: none;
}

.mo-cart-item-left {
	display: flex;
	gap: 10px;
	flex: 1;
	min-width: 0;
}

.mo-cart-item-img {
	width: 54px;
	height: 54px;
	border-radius: var(--mo-radius-sm);
	object-fit: cover;
	flex-shrink: 0;
}

.mo-cart-item-info {
	flex: 1;
	min-width: 0;
}

.mo-cart-item-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--mo-title);
	line-height: 1.3;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mo-cart-item-options {
	font-size: 11px;
	color: var(--mo-text);
	margin-bottom: 4px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mo-cart-item-price {
	font-size: 13px;
	font-weight: 700;
	color: var(--mo-title);
}

.mo-cart-item-right {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.mo-cart-qty {
	display: flex;
	align-items: center;
	border: 1px solid var(--mo-border);
	border-radius: 50px;
	overflow: hidden;
}

.mo-cart-qty-btn {
	width: 28px;
	height: 28px;
	min-height: 0;
	border: none;
	background: none;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	color: var(--mo-title);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--mo-transition);
	padding: 0;
	margin: 0;
}

.mo-cart-qty-btn:hover {
	background: var(--mo-bg-soft);
}

.mo-cart-qty-val {
	width: 24px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--mo-title);
}

.mo-cart-item-remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	min-height: 0;
	margin: 6px 0 0 0;
	padding: 0;
	border: none;
	background: none;
	color: #ccc;
	cursor: pointer;
	border-radius: 50%;
	transition: var(--mo-transition);
}

.mo-cart-item-remove:hover {
	color: #ef4444;
	background: #fef2f2;
}

.mo-cart-panel-footer {
	padding: 12px 16px;
	border-top: 1px solid var(--mo-border);
	flex-shrink: 0;
}

.mo-cart-panel-total {
	font-size: 14px;
	color: var(--mo-title);
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mo-cart-panel-total strong {
	font-size: 16px;
	color: var(--mo-primary);
}

.mo-cart-panel-checkout-btn {
	display: block;
	width: 100%;
	padding: 12px;
	background: var(--mo-primary);
	color: #fff;
	text-align: center;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
	transition: var(--mo-transition);
	box-sizing: border-box;
}

.mo-cart-panel-checkout-btn:hover {
	background: var(--mo-primary-dark);
	color: #fff;
	text-decoration: none;
}

/* ===== CHECKOUT FIELDS ===== */
.woocommerce-customer-details{
	display:none;
}

/* Ẩn "Ship to different address" section — không cần thiết vì dùng billing address */
.woocommerce-shipping-fields,
#ship-to-different-address,
.ship-to-different-address,
.shipping_address {
	display: none !important;
}
.mo-checkout-fields {
	margin-bottom: 24px;
}

.mo-checkout-section-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--mo-title);
	margin: 24px 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--mo-border);
}

.mo-store-select-wrap,
.mo-location-wrap {
	margin-bottom: 16px;
}

#order_review .message-wrapper {
    margin: 10px 0;
    padding-bottom: 0;
}
.mo-coupon-row .message-container a {
    margin: 0;
}
.mo-coupon-row .expand {
    padding-left: 5px !important;
    padding-right: 5px !important;
}
.mo-coupon-row .flex-col.flex-grow{
	margin-right: 15px;
}
.mo-coupon-row input{
	margin:0;
}
.mo-coupon-row form {
    border: 0px solid #446084;
    padding: 0;
}
.mo-coupon-row form p {
    display: none;
}
.mo-checkout-fields{
padding-top:15px;	
}

.mo-store-select:focus {
	outline: none;
	border-color: var(--mo-primary);
}


.page-checkout .woocommerce-checkout .has-border{
	border-radius: 10px;
	padding: 25px 30px;
}



.product-name dl dd,.product-name dl dt {
    margin: 0 5px 3px 0;
}
.page-checkout .wc-item-meta strong{
	clear: both;
    float: left;
	margin: 0 5px 0 0;
}
.page-checkout td.product-name,.page-checkout td.product-name strong {
    font-weight: 600;
}
.page-checkout td.product-name .variation,.page-checkout td.product-name .wc-item-meta {
	font-weight: initial;
}

.page-checkout form.checkout h3 {
    font-size: 1.3em;
    padding-top: 0;
}

.page-checkout td, .page-checkout th {
    padding: 15px;
}
.page-checkout .woocommerce-shipping-totals.shipping td {
	padding: 0px;
}
.page-checkout table table td,.page-checkout table table th {
    padding: 0px;
}

.page-checkout [type=submit]{
	height: 50px;
	border-radius: 5px;
	border:0;
	width: 100%;
}
.page-checkout textarea{
	padding:15px!important;
}
.page-checkout #payment{
	padding-top:10px;
}
.page-checkout #order_review .mo-coupon-row td,.page-checkout #order_review .mo-coupon-row th{
	border-top: 1px solid #ececec!important;
    border-bottom: 1px solid #ececec;
}


.page-checkout #order_review td,.page-checkout #order_review th {
    border-bottom: 0px solid #ececec;
}
.page-checkout .payment_methods li+li {
    border-top: 0px solid #ececec;
}
.shop_table .order-total td, .shop_table .order-total th, .shop_table thead th {
    color: var(--mo-title);
}
.page-checkout #order_review .shop_table .order-total td,.page-checkout #order_review .shop_table .order-total th,.page-checkout #order_review .shop_table thead th {
    border-width: 1px;
}
.page-checkout input[type=email]:focus,.page-checkout input[type=number]:focus,.page-checkout input[type=password]:focus,.page-checkout input[type=search]:focus,.page-checkout input[type=tel]:focus,.page-checkout input[type=text]:focus,.page-checkout select:focus,.page-checkout textarea:focus{
	border-color: var(--mo-primary);
}
.page-checkout .select-resize-ghost,.page-checkout .select2-container .select2-choice,.page-checkout .select2-container .select2-selection,.page-checkout input[type=date],.page-checkout input[type=email],.page-checkout input[type=number],.page-checkout input[type=password],.page-checkout input[type=search],.page-checkout input[type=tel],.page-checkout input[type=text],.page-checkout input[type=url],.page-checkout select,.page-checkout textarea {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: none;
    box-sizing: border-box;
    color: var(--mo-title);
    font-size: 14px;
    height: 50px;
    max-width: 100%;
    padding: 0 15px;
    transition: color .3s, border .3s, background .3s, opacity .3s;
    vertical-align: middle;
    width: 100%;
}
/* Hidden WooCommerce billing fields (country, city, state, postcode) */
.mo-field-hidden {
	display: none !important;
}

/* Distance + delivery time info box */
.mo-shipping-info {
    display: flex;
    gap: 24px;
    padding: 15px;
    background: var(--mo-primary-light);
    border-radius: var(--mo-radius-sm);
    margin: 20px 0 30px;
}

.mo-shipping-row {
	font-size: 14px;
	color: var(--mo-text);
}

.mo-shipping-info strong {
	color: var(--mo-primary);
	font-weight: 700;
}

/* Checkout map embedded inline (below address field) */
.mo-checkout-map {
	width: 100%;
	height: 300px;
	border-radius: var(--mo-radius-sm);
	overflow: hidden;
	margin-top: 10px;
	border: 1px solid var(--mo-border);
}

/* Map + shipping wrap inserted after address field */
.mo-map-shipping-wrap {
	width: 100%;
	margin: 0 0 16px;
}
.mo-product-image .img-inner.image-cover{
	padding-top:100%;
}

.page-checkout .return-to-shop{
	display:none;
}
table dl {
    text-transform: inherit;
}
/* ===== ORDER DETAILS ===== */
.mo-order-details-section {
    margin: 35px 0;
    padding: 20px 30px;
    background: var(--mo-primary-light);
    border-radius: var(--mo-radius);
    overflow-x: auto;
}
.mo-order-details-section th{
	    width: 150px;
}
.page-checkout .mo-order-details-section td, .page-checkout .mo-order-details-section th{
	padding-top: 10px;
	padding-bottom:10px;
    color: var(--mo-title);
}

.mo-order-details-section h2 {
	margin: 0 0 16px;
	color: var(--mo-primary);
}
.mo-order-details-section td,.mo-order-details-section th {
    border-bottom: 0px solid #ececec;
}
.page-checkout td.product-name{
	color: var(--mo-title);
}
.page-checkout td ,.page-checkout th{
 	color: var(--mo-text);
}
.page-checkout .shop_table tfoot td ,.page-checkout .shop_table tfoot th{
 	color: var(--mo-title);
}
.mo-directions-wrap {
	text-align: center;
	margin: 20px 0;
}

.mo-directions-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: var(--mo-primary);
	color: #fff;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: var(--mo-transition);
}

.mo-directions-btn:hover {
	background: var(--mo-primary-dark);
	color: #fff;
	text-decoration: none;
}

/* ===== NO PRODUCTS ===== */
.mo-no-products {
	text-align: center;
	color: var(--mo-text);
	padding: 40px;
	font-size: 15px;
}

/* ===== MOBILE CATEGORY DRAWER ===== */

/* Toggle button — hidden on desktop, shown on mobile */
.mo-cat-menu-btn {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 16px;
    width: 45px;
    height: 45px;
    z-index: 9990;
    align-items: center;
    gap: 7px;
    background: var(--mo-primary);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--mo-primary-light);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    line-height: 1;
}
.mo-cat-menu-btn span{
	display:none;
}
.mo-cat-menu-btn:hover {
	background: var(--mo-primary-dark);
	box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
	transform: translateY(-1px);
}

.mo-cat-menu-btn svg {
	flex-shrink: 0;
	display: block;
    margin: 0 auto;
}

/* Backdrop overlay */
.mo-cat-drawer-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 9991;
	animation: moFadeIn 0.22s ease;
}

.mo-cat-drawer-overlay.is-open {
	display: block;
}

/* Drawer header */
.mo-cat-drawer-header {
	display: none;
	align-items: center;
	justify-content: space-between;
	padding: 16px 16px 12px;
	border-bottom: 1px solid var(--mo-border);
	flex-shrink: 0;
}

.mo-cat-drawer-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--mo-title);
}

.mo-cat-drawer-close {
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    font-size: 35px;
    line-height: 35px;
    height: 35px;
    width: 35px;
    min-height: 0;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: var(--mo-title);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}



/* ===== MOBILE CATEGORY TOP BAR ===== */

/* Hidden on desktop — only shown on mobile */
.mo-category-topbar {
	display: none;
}





/* ===== COUPON INPUT (thay nested form-coupon.php) ===== */
.mo-coupon-input-wrap {
	display: flex;
	gap: 10px;
	margin: 8px 0;
	align-items: center;
}
.mo-coupon-input-wrap button{
	margin: 0;
    border-radius: 5px;
	height: 45px;
}
.mo-coupon-input-wrap #coupon_code {
	flex: 1;
	min-width: 0;
	height: 45px;
	padding: 0 12px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 14px;
	color: var(--mo-title);
	background: #fff;
	transition: border-color 0.2s ease;
}

.mo-coupon-input-wrap #coupon_code:focus {
	outline: none;
	border-color: var(--mo-primary);
}

.mo-coupon-apply-btn {
	height: 40px;
	padding: 0 16px;
	background: var(--mo-primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: var(--mo-transition);
	flex-shrink: 0;
}

.mo-coupon-apply-btn:hover {
	background: var(--mo-primary-dark);
}

/* ===== COUPON SUGGESTIONS – Ticket Card Style ===== */


#order_review .cart-discount {
    background: var(--mo-primary-light);
}
#order_review .cart-discount tr, #order_review .cart-discount th{
	    border: 0;
}

/* Nút toggle */
.mo-coupon-toggle-wrap {
	padding: 20px 0 0;
}

.mo-show-coupons-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	background: var(--mo-bg-soft);
	border: 1.5px solid var(--mo-border);
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	color: var(--mo-title);
	cursor: pointer;
	transition: var(--mo-transition);
	line-height: 1;
	margin-right: 0;
}

.mo-show-coupons-btn:hover {
	border-color: var(--mo-primary);
	color: var(--mo-primary);
	background: var(--mo-primary-light);
}

.mo-coupon-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	background: var(--mo-primary);
	color: #fff;
	border-radius: 50%;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}

.mo-toggle-arrow {
	font-size: 10px;
	transition: transform 0.2s ease;
	display: inline-block;
}

.mo-show-coupons-btn.is-open .mo-toggle-arrow {
	transform: rotate(180deg);
}

/* Danh sách coupon */
.mo-coupon-list {
    margin: 10px 0 25px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* Thẻ coupon */
.mo-coupon-card {
	display: flex;
	align-items: stretch;
	border-radius: 10px;
	border: 1px solid var(--mo-border);
	background: #fff;
	box-shadow: 0 1px 6px rgba(0,0,0,0.06);
	transition: box-shadow 0.2s ease;
}

.mo-coupon-card:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}

.mo-coupon-card.is-applied {
	border-color: var(--mo-primary);
	box-shadow: 0 0 0 2px var(--mo-primary-light);
}
.mo-coupon-card.is-applied .mo-coupon-badge{
	border-right: 2px dashed var(--mo-primary);
}
.woocommerce-checkout-review-order .shipping__list_label {
    opacity: 1;
}
/* Trạng thái không khả dụng */
.mo-coupon-card.is-unavailable {
	opacity: 0.55;
	filter: grayscale(35%);
}
.mo-coupon-card.is-unavailable:hover {
	box-shadow: 0 1px 6px rgba(0,0,0,0.06);
	cursor: default;
}
.mo-coupon-card.is-unavailable .mo-apply-btn ,.mo-coupon-card.is-unavailable .mo-condition-link{
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}
.mo-coupon-unavailable-reason {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	color: #e07b00;
	font-weight: 500;
	margin-top: 2px;
}
.mo-coupon-unavailable-reason svg {
	flex-shrink: 0;
	margin-top: -2px;
}

#customer_details .woocommerce-billing-fields {
    border-top: 0px solid #ddd;
    padding-top: 0;
}
/* Badge trái – nền tối */ 
.mo-badge-label{
	display:none;
}
.mo-coupon-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 104px;
    width: 104px;
    height: 104px;
	padding: 12px 10px;
	position: relative;
	gap: 2px;
	text-align: center;
	flex-shrink: 0;
	border-right: 2px dashed var(--mo-border);
}
.mo-coupon-card.is-applied .mo-coupon-badge:after,.mo-coupon-card.is-applied .mo-coupon-badge:before {
	border-color: transparent var(--mo-primary) var(--mo-primary) transparent;
}
.mo-coupon-badge:after, .mo-coupon-badge:before {
    content: "";
    width: 15px;
    height: 15px;
    background-color: #fff;
    border-width: 1px;
    border-style: solid;
    border-color: transparent var(--mo-border) var(--mo-border) transparent;
    border-image: initial;
    position: absolute;
    border-radius: 50%;
    left: calc(100% - 15px / 2);
}
.mo-coupon-badge:before {
    top: -8px;
    transform: rotate(45deg);
}
.mo-coupon-badge::after {
    bottom: -8px;
    transform: rotate(-135deg);
}
.bg-coupon{
	border-radius: 8px;
    width: 100%;
    height: 100%;
    background: var(--mo-primary);
    display: flex;
    flex-direction: column;
    -webkit-box-align: center;
    align-items: center;
    align-self: center;
    -webkit-box-pack: center;
    justify-content: center;
    position: relative;
}
.mo-badge-top {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 5px;
}

.mo-badge-amount {
	font-size: 22px;
	font-weight: 800;
	color: #FFD700;
	line-height: 1.1;
	letter-spacing: -0.5px;
}

.mo-badge-label {
	font-size: 9px;
	color: rgba(255,255,255,0.45);
	letter-spacing: 0.3px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 70px;
}

/* Notch – đục lỗ kiểu vé */
.mo-coupon-notch {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	width: 14px;
	background: var(--mo-bg-soft);
	flex-shrink: 0;
	position: relative;
}

.mo-notch-top,
.mo-notch-bottom {
	display: block;
	width: 14px;
	height: 14px;
	background: #fff;
	border-radius: 0 0 50% 50%;
	border: 1px solid var(--mo-border);
}

.mo-notch-top {
	border-radius: 0 0 50% 50%;
	border-top: none;
	margin-top: -1px;
}

.mo-notch-bottom {
	border-radius: 50% 50% 0 0;
	border-bottom: none;
	margin-bottom: -1px;
}

.mo-notch-line {
	flex: 1;
	width: 0;
	border-left: 2px dashed var(--mo-border);
}

/* Nội dung phải */
.mo-coupon-body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 1;
	padding: 10px 12px 10px 10px;
	gap: 8px;
	min-width: 0;
}

.mo-coupon-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
	    text-align: left;
}

/* Hàng tiêu đề coupon: code + link điều kiện */
.mo-coupon-code-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.mo-coupon-code-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--mo-title);
	letter-spacing: 0.3px;
}

/* Link "Điều kiện" */
.mo-condition-link {
    gap: 3px;
    font-size: 11px;
    font-weight: 500;
    color: var(--mo-primary);
    text-decoration: none;
    border-radius: 10px;
    line-height: 1.6;
    margin-right: 0;
    padding: 0;
    min-height: inherit;
    transition: var(--mo-transition);
    white-space: nowrap;
    text-align: right;
}


.mo-condition-link svg {
	flex-shrink: 0;
}

/* Popup điều kiện coupon */
.mo-condition-popup {
	max-width: 520px;
	width: 92vw;
	max-height: 80vh;
	overflow-y: auto;
}

.mo-condition-popup .mo-popup-body {
	padding: 28px 24px 24px;
	overflow-y: auto;
}

.mo-condition-popup h2 {
    font-size: 20px;
    font-weight: 600;
	color: var(--mo-title);
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--mo-primary-light);
}

.detail-coupon {
	font-size: 14px;
	color: var(--mo-title);
	line-height: 1.7;
}

.detail-coupon p {
	margin: 0 0 8px;
}

.detail-coupon p:last-child {
	margin-bottom: 0;
}

.detail-coupon ul,
.detail-coupon ol {
	margin: 6px 0 6px 18px;
	padding: 0;
}

.detail-coupon li {
	margin-bottom: 4px;
}

.detail-coupon strong {
	color: var(--mo-primary);
}

.mo-coupon-desc {
	font-size: 12px;
	color: var(--mo-text);
    line-height: 1.4;
    margin-bottom: 10px;
}

.mo-coupon-min {
	font-size: 11px;
	color: var(--mo-text);
}

/* Nội dung ACF WYSIWYG */
.mo-coupon-acf-content {
	font-size: 12px;
	color: var(--mo-title);
	line-height: 1.55;
	margin: 4px 0 2px;
	padding: 6px 8px;
	background: var(--mo-bg-soft);
	border-left: 3px solid var(--mo-primary);
	border-radius: 0 4px 4px 0;
}

.mo-coupon-acf-content p {
	margin: 0 0 4px;
}

.mo-coupon-acf-content p:last-child {
	margin-bottom: 0;
}

.mo-coupon-acf-content ul,
.mo-coupon-acf-content ol {
	margin: 4px 0 4px 16px;
	padding: 0;
}

.mo-coupon-acf-content li {
	margin-bottom: 2px;
}

.mo-coupon-acf-content strong {
	color: var(--mo-primary);
}

.mo-coupon-expire {
	font-size: 11px;
	color: var(--mo-primary);
	margin-top: 2px;
}

.mo-coupon-expire.has-expiry {
	color: var(--mo-primary);
}

/* Nút Áp dụng / Gỡ bỏ */
.mo-coupon-action {
	flex-shrink: 0;
	height: 100%;
	display: flex;
    flex-direction: column;
    justify-content:space-between;
}

.mo-apply-btn {
	padding: 2px 14px;
	background: var(--mo-primary);
	color: #fff;
	border: none;
	border-radius: 5px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: var(--mo-transition);
	white-space: nowrap;
	margin: 0;
}

.mo-apply-btn:hover {
	background: var(--mo-primary-dark);
}

.mo-apply-btn.is-remove {
	background: #fff;
	color: var(--mo-text);
	border: 1px solid var(--mo-border);
}

.mo-apply-btn.is-remove:hover {
	background: #f5f5f5;
	color: #c0392b;
	border-color: #c0392b;
}

/* Hide coupon row TD padding nội bộ */
tr.mo-coupon-row > td {
	padding-top: 0 !important;
	border-top: none !important;
}
@media (min-width: 640px) {
.mo-popup {
		border-radius: var(--mo-radius);
		animation: moZoomIn 0.15s ease;
	}
}
/* Desktop: ensure drawer elements are hidden */
@media (min-width: 901px) {
	.mo-cat-menu-btn,
	.mo-cat-drawer-overlay,
	.mo-cat-drawer-header {
		display: none !important;
	}
}
@media (max-width: 900px) {
    .woocommerce-checkout-payment input[type=radio]:checked {
        accent-color: var(--mo-primary);
}
	.mo-category-topbar {
		display: flex;
		flex-direction: row;
		overflow-x: auto;
		overflow-y: hidden;
		gap: 10px;
		padding: 0 0 25px 0;
		background: var(--mo-bg);
		scrollbar-width: none;
		-ms-overflow-style: none;
		list-style: none;
		margin: 0;
	}

	.mo-category-topbar::-webkit-scrollbar {
		display: none;
	}

	/* Compact column tabs in top bar */
	.mo-category-topbar .mo-cat-tab {
		align-items: center;
        min-height: auto;
        min-width: 220px;
        max-width: 220px;
        flex-shrink: 0;
        gap: 10px;
        padding: 10px;
        margin-bottom: 0;
        border-radius: var(--mo-radius-sm);
	}

	.mo-category-topbar .mo-cat-tab-img {
        width: 50px;
        height: 50px;
	}

	.mo-category-topbar .mo-cat-tab-name {
        font-size: 13px;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 1.2;
	}

	.mo-category-topbar .mo-cat-tab-count {
		font-size: 10px;
	}

		.mo-cart-float {
		bottom: 16px;
		right: 16px;
	}
	/* Toggle button visible on mobile */
	.mo-cat-menu-btn {
		display: flex;
	}

	/* Drawer header visible on mobile */
	.mo-cat-drawer-header {
		display: flex;
	}

	/* Nav becomes fixed left drawer */
	.mo-category-nav {
		position: fixed;
		top: 0;
		left: 0;
		width: 380px;
		max-width: 100%;
		height: 100%;
		max-height: 100%;
		z-index: 9992;
		background: var(--mo-bg);
		border-right: 1px solid var(--mo-border);
		border-bottom: none;
		display: flex;
		flex-direction: column;
		transform: translateX(-100%);
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		overflow: hidden;
	}

	.mo-category-nav.is-open {
		transform: translateX(0);
	}

	/* Inner nav scrollable list */
	.mo-category-nav-inner {
	    position: relative;
		top: initial;
		width: 100%;
		flex-direction: column;
		flex: 1;
		padding: 16px 16px 30px;
		scrollbar-width: thin;
		scrollbar-color: var(--mo-border) transparent;
		-ms-overflow-style: auto;
	}

	.mo-category-nav-inner::-webkit-scrollbar {
		width: 4px;
		display: block;
	}

	.mo-category-nav-inner::-webkit-scrollbar-thumb {
		background: var(--mo-border);
		border-radius: 2px;
	}

	/* Tabs: restore vertical layout (image left, name + count right) */
	.mo-cat-tab {
		flex-direction: row;
		min-height: 58px;
		min-width: unset;
		gap: 10px;
		padding: 10px;
		white-space: normal;
		border: 1.5px solid var(--mo-border);
		border-bottom: 1.5px solid var(--mo-border);
		margin-bottom: 8px;
		border-radius: var(--mo-radius-sm);
	}



	.mo-cat-tab-name {
		font-size: 13px;
		text-align: left;
		flex: 1;
	}

	/* Show count in drawer */
	.mo-cat-tab-count {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	/* Content area takes full width */
	.mo-menu-wrapper {
		flex-direction: column;
	}

	.mo-categories {
		padding: 0;
		width: 100%;
	}

	/* Prevent body scroll when drawer open */
	body.mo-cat-drawer-open {
		overflow: hidden;
	}
}

@media (max-width: 767px) {
	.mo-products-grid.mo-columns-2,
	.mo-products-grid.mo-columns-3 {
		grid-template-columns: 1fr;
	}
}


@media (min-width: 640px) {
	.mo-popup-overlay {
		align-items: center;
	}
}


/* Responsive */
@media (max-width: 480px) {
	.mo-toast {
		 display: none;
	}	
	.checkout-sidebar .sm-touch-scroll {
        overflow-x: inherit;
    }
	.mo-coupon-desc {
    font-size: 13px;
    font-weight: 600;
    color: var(--mo-title);
}

	.mo-category-nav {
		width: 100%;
		right: 0;
	}
	.mo-product-info {
    padding: 20px;
	}
	.mo-cart-float-btn {
    height: 45px;
	}
	.mo-cart-float-btn .mo-name-cart{
	display:none;	
	}	


	.mo-popup-image {
		width: 100px;
		min-width: 100px;
		height: 100px;
	}

	.mo-popup-footer {
		flex-wrap: wrap;
	}

	.mo-popup-total {
		width: 100%;
		text-align: left;
		order: -1;
	}

	.mo-popup-add-btn {
		flex: 1;
	}

	.mo-shipping-info {
		flex-direction: column;
		gap: 8px;
	}



	.mo-cart-panel {
		width: calc(100vw - 32px);
	}
	.mo-coupon-badge {
		min-width: 64px;
		padding: 10px 8px;
	}
	.mo-badge-amount {
		font-size: 18px;
	}
	.mo-apply-btn {
        padding: 3px 10px;
        font-size: 11px;
    }

	.page-checkout .woocommerce-checkout .has-border {
    padding: 20px 20px;
}
	.mo-popup-detail {
    height: 520px;
}
	.mo-option-group--radio .mo-option-items-list {
		grid-template-columns: 1fr;
	}
}


@media (max-width: 430px) {
    .mo-popup-detail {
        height: 420px;
    }

}
@media (max-width: 415px) {
    .mo-popup-detail {
        height: 400px;
    }

}
@media (max-width: 395px) {
    .mo-qty-btn {
     padding: 0 1em;
    }
		.mo-coupon-code-title {
    display: none;
}
	.mo-coupon-badge {
     width: 85px;
        height: 85px;
        min-width: 85px;
    }
	.mo-product-name {
    font-size: 15px;
}
.mo-product-desc {
    font-size: 13px;
}
.mo-product-price .woocommerce-Price-amount {
    font-size: 15px;
}
.mo-popup-detail {
    height: 360px;
}
}

@media (max-width: 380px) {
    .mo-popup {
    max-height: 95vh;
  }
	.mo-popup-detail {
    height: 300px;
}

.mo-popup-product-name {
    font-size: 16px;
}
}
@media (max-width: 365px) {
    	.mo-coupon-badge {
        height: 100px;
    }
     .mo-popup {
     max-height: 100vh;
    border-radius: 0;
  }
	.mo-popup-detail {
    height: 290px;
}

.mo-popup-product-name {
    font-size: 16px;
}
}
@media (max-width: 320px) {

	.mo-coupon-badge{
	display:none;	
	}	
	.mo-qty-btn {
    width: 30px;
    height: 35px;
    padding: 0 1em;
    min-height: auto;
	}
	    .mo-popup-add-btn {
        line-height: 40px;
        min-height: 40px;
	    }
    .mo-popup-detail {
        height: 170px;
    }
    .mo-popup-footer {
    gap: 10px;
    padding: 10px 16px;
    }
}