/* ========================================================
   TapHoaMMO Theme - mmoshop.sinh
   Designed to match taphoammo.vn style
   ======================================================== */

:root {
    --thm-red: #d32f2f;
    --thm-red-dark: #b71c1c;
    --thm-red-light: #ef5350;
    --thm-cyan: #00bcd4;
    --thm-teal: #009688;
    --thm-dark: #181818;
    --thm-dark-header: #212529;
    --thm-gray-bg: #f5f6f8;
    --thm-border: #e2e8f0;
}

body {
    background-color: var(--thm-gray-bg);
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 1. TOP BAR */
.thm-topbar {
    background-color: var(--thm-dark);
    color: #d1d5db;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid #2d3748;
}
.thm-topbar .commitment-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
    white-space: nowrap;
}
.thm-topbar .commitment-item i {
    color: #10b981;
    font-size: 12px;
}
.thm-topbar .hotline-box {
    color: #e2e8f0;
    font-size: 13px;
    white-space: nowrap;
}
.thm-topbar .hotline-number {
    color: #fbbf24;
    font-weight: 700;
}

/* 2. MAIN HEADER */
.thm-main-header {
    background-color: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid var(--thm-border);
}
.thm-logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.thm-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #00bcd4, #009688);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.25);
}
.thm-logo-text {
    line-height: 1.15;
}
.thm-logo-title {
    font-weight: 900;
    font-size: 22px;
    color: #00838f;
    letter-spacing: -0.5px;
    margin: 0;
    text-transform: uppercase;
}
.thm-logo-sub {
    font-size: 11px;
    color: #00acc1;
    font-weight: 600;
    margin: 0;
}
.thm-header-banner {
    max-height: 60px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.thm-cart-btn {
    border: 1px solid #d1d5db;
    border-radius: 50px;
    padding: 6px 16px;
    background: #fff;
    color: #374151;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.thm-cart-btn:hover {
    border-color: var(--thm-red);
    color: var(--thm-red);
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.15);
}
.thm-cart-icon {
    color: #00bcd4;
    font-size: 18px;
    position: relative;
}
.thm-cart-badge {
    background-color: var(--thm-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    padding: 1px 5px;
    position: absolute;
    top: -8px;
    right: -10px;
}
.thm-user-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}
.thm-user-btn:hover {
    background-color: var(--thm-red);
    color: #fff;
}

/* 3. RED NAVBAR */
.thm-navbar {
    background-color: var(--thm-red);
    padding: 0;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}
.thm-category-trigger {
    background-color: var(--thm-red-dark);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    height: 100%;
}
.thm-category-trigger:hover {
    color: #fff;
    background-color: #9a1010;
}
.thm-nav-item {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease;
}
.thm-nav-item:hover, .thm-nav-item.active {
    background-color: rgba(0, 0, 0, 0.12);
    color: #ffffff;
}
.thm-search-form {
    position: relative;
    width: 260px;
}
.thm-search-input {
    border-radius: 50px;
    border: none;
    padding: 7px 36px 7px 16px;
    font-size: 13px;
    background-color: #ffffff;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.thm-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}
.thm-search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
}

/* 4. HERO SECTION */
.thm-hero-categories {
    background: #ffffff;
    border: 1px solid var(--thm-border);
    border-radius: 8px;
    overflow: hidden;
}
.thm-hero-cat-header {
    background: #fff1f2;
    color: var(--thm-red);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    padding: 11px 14px;
    border-bottom: 2px solid var(--thm-red);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}
.thm-hero-cat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    color: #334155;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.15s ease;
}
.thm-hero-cat-item:last-child {
    border-bottom: none;
}
.thm-hero-cat-item:hover {
    background-color: #fef2f2;
    color: var(--thm-red);
    padding-left: 18px;
}
.thm-hero-cat-item i {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

.thm-hero-slider {
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    min-height: 340px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.thm-hero-carousel {
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    min-height: 340px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #0f172a;
}
.thm-hero-carousel .carousel-item {
    height: 100%;
    min-height: 340px;
}
.thm-hero-banner-img {
    height: 100%;
    min-height: 340px;
    max-height: 360px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease;
}
.thm-hero-carousel:hover .thm-hero-banner-img {
    transform: scale(1.015);
}
.thm-hero-carousel .carousel-indicators [data-bs-target] {
    width: 20px;
    height: 4px;
    border-radius: 2px;
    background-color: #ffffff;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: none;
    margin: 0 3px;
}
.thm-hero-carousel .carousel-indicators .active {
    width: 32px;
    opacity: 1;
    background-color: #f43f5e;
}
.thm-hero-carousel .carousel-control-prev,
.thm-hero-carousel .carousel-control-next {
    width: 45px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.thm-hero-carousel:hover .carousel-control-prev,
.thm-hero-carousel:hover .carousel-control-next {
    opacity: 0.9;
}
.thm-hero-slider-inner {
    background: linear-gradient(135deg, #0b1e3f 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.thm-promo-card {
    background: #ffffff;
    border: 1px solid var(--thm-border);
    border-radius: 8px;
    padding: 16px;
    height: calc(50% - 6px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.thm-promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* 5. 4 MINI BANNERS */
.thm-mini-banner {
    background: #ffffff;
    border: 1px solid var(--thm-border);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    height: 100%;
}
.thm-mini-banner:hover {
    border-color: var(--thm-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(211, 47, 47, 0.1);
    color: var(--thm-red);
}
.thm-mini-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* 6. NOTICE BAR (QUÝ KHÁCH CHÚ Ý) */
.thm-notice-box {
    background-color: #181818;
    color: #f3f4f6;
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13.5px;
    margin: 20px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.thm-notice-badge {
    background-color: var(--thm-red);
    color: #ffffff;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* 7. SECTION HEADERS & TAGS */
.thm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--thm-red);
    padding-bottom: 4px;
}
.thm-section-tag {
    background-color: var(--thm-red);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 4px 4px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.thm-section-viewall {
    color: var(--thm-red);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.thm-section-viewall:hover {
    text-decoration: underline;
    color: var(--thm-red-dark);
}

/* 8. FEATURED APP CARDS (MOMA AI / MOMA SOLUTIONS) */
.thm-app-card {
    background: #ffffff;
    border: 1px solid var(--thm-border);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    height: 100%;
}
.thm-app-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 18px rgba(0,0,0,0.07);
}
.thm-app-icon-box {
    width: 110px;
    min-width: 110px;
    height: 140px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #ffffff;
    text-align: center;
    font-size: 11px;
    line-height: 1.25;
}
.thm-app-icon-box.purple {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}
.thm-app-icon-box.blue {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}
.thm-app-icon-box.teal {
    background: linear-gradient(135deg, #0d9488 0%, #047857 100%);
}
.thm-app-icon-box.orange {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}
.thm-app-content {
    flex: 1;
}
.thm-app-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #dc2626;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.thm-app-title {
    font-size: 17px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}
.thm-app-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 10px;
}
.thm-app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.thm-app-badge {
    background-color: #f1f5f9;
    color: #dc2626;
    font-size: 11.5px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.thm-btn-red {
    background-color: var(--thm-red);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    transition: background-color 0.2s ease;
}
.thm-btn-red:hover {
    background-color: var(--thm-red-dark);
    color: #ffffff;
}

/* 9. PRODUCT CARDS (SẢN PHẨM) */
.thm-product-card {
    background: #ffffff;
    border: 1px solid var(--thm-border);
    border-radius: 8px;
    padding: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.thm-product-card:hover {
    border-color: var(--thm-red);
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(211, 47, 47, 0.1);
}
.thm-product-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f8fafc;
    margin-bottom: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.thm-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.thm-product-card:hover .thm-product-thumb img {
    transform: scale(1.05);
}
.thm-product-icon-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    font-size: 13px;
}
.thm-product-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}
.thm-product-title a {
    color: inherit;
    text-decoration: none;
}
.thm-product-title a:hover {
    color: var(--thm-red);
}
.thm-product-price {
    color: var(--thm-red);
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 4px;
}
.thm-product-stock {
    font-size: 11.5px;
    color: #64748b;
}

/* 10. NEWS SIDEBAR */
.thm-news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--thm-border);
}
.thm-news-item:last-child {
    border-bottom: none;
}
.thm-news-rank {
    width: 26px;
    height: 26px;
    background-color: #0284c7;
    color: #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}
.thm-news-title {
    font-size: 13px;
    line-height: 1.35;
    color: #334155;
    text-decoration: none;
}
.thm-news-title:hover {
    color: var(--thm-red);
}

/* 11. ABOUT & SERVICE REQUEST */
.thm-about-box {
    background: #ffffff;
    border: 1px solid var(--thm-border);
    border-radius: 8px;
    padding: 20px;
    height: 100%;
}
.thm-request-form {
    background: #ffffff;
    border: 1px solid var(--thm-border);
    border-radius: 8px;
    padding: 20px;
    height: 100%;
}

/* 12. FOOTER */
.thm-footer {
    background-color: #1e293b;
    color: #cbd5e1;
    padding-top: 40px;
    font-size: 13.5px;
    border-top: 4px solid var(--thm-red);
}
.thm-footer h6 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}
.thm-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease;
}
.thm-footer a:hover {
    color: #ffffff;
}
.thm-footer-bottom {
    background-color: #0f172a;
    padding: 16px 0;
    color: #64748b;
    font-size: 12.5px;
    margin-top: 30px;
}



/* 13. SUBPAGE & CATEGORY FILTER STYLING (TAPHOAMMO STYLE) */
.thm-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #475569;
}
.thm-cat-pill:hover {
    border-color: var(--thm-red);
    color: var(--thm-red);
    background-color: #fef2f2;
}
.thm-cat-pill.active {
    background-color: var(--thm-red) !important;
    border-color: var(--thm-red) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.25);
}

.thm-subpage-card {
    background: #ffffff;
    border: 1px solid var(--thm-border);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.thm-breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
    font-size: 13.5px;
}
.thm-breadcrumb a {
    color: #64748b;
    text-decoration: none;
}
.thm-breadcrumb a:hover {
    color: var(--thm-red);
}
.thm-breadcrumb .active {
    color: var(--thm-red);
    font-weight: 600;
}

.thm-empty-box {
    text-align: center;
    padding: 50px 20px;
}
.thm-empty-icon {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 16px;
}

/* 11. SIDE BANNERS (OUTER GUTTERS - NEVER OVERLAP CONTENT) */
.side-banner-outer {
    position: fixed;
    top: 160px;
    z-index: 99;
    width: 135px;
    display: none;
}
@media (min-width: 1320px) {
    .side-banner-outer {
        display: block !important;
    }
    .side-banner-left {
        left: 10px;
    }
    .side-banner-right {
        right: 10px;
    }
    .home-banner-safe-container {
        padding-left: 145px !important;
        padding-right: 145px !important;
    }
}
@media (min-width: 1560px) {
    .side-banner-left {
        left: calc((100vw - 1260px) / 2 - 145px);
    }
    .side-banner-right {
        right: calc((100vw - 1260px) / 2 - 145px);
    }
    .home-banner-safe-container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}
.side-banner-close {
    position: absolute;
    top: -9px;
    right: -9px;
    background: #0f172a;
    color: #ffffff;
    border: 1.5px solid #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
}
.side-banner-close:hover {
    background: #dc2626;
    transform: scale(1.15);
}
.side-banner-img {
    width: 100%;
    height: auto;
    max-height: 550px;
    display: block;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.side-banner-outer:hover .side-banner-img {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}
.side-banner-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255,255,255,0.15);
}
.side-banner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2) !important;
}

/* 12. MODERN PRODUCT DETAIL THEME */
.product-detail-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--thm-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.product-image-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.product-image-container img {
    max-height: 280px;
    object-fit: contain;
}
.product-detail-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
}
.product-price-box {
    background: #fff5f5;
    border: 1px dashed rgba(211, 47, 47, 0.4);
    border-radius: 8px;
    padding: 12px 18px;
}
.product-current-price {
    font-size: 26px;
    font-weight: 900;
    color: var(--thm-red);
}
.product-variant-item {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}
.product-variant-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.product-variant-item.selected-variant {
    border-color: var(--thm-red) !important;
    background: #fff5f5 !important;
}
.product-nav-tabs .nav-link {
    font-weight: 700;
    color: #64748b;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 0;
    background: transparent;
}
.product-nav-tabs .nav-link.active {
    color: var(--thm-red) !important;
    border-bottom-color: var(--thm-red) !important;
    background: transparent !important;
}
.product-rich-content {
    font-size: 15px;
    line-height: 1.8;
    color: #1e293b;
}
.product-rich-content h2, .product-rich-content h3 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.product-rich-content ul, .product-rich-content ol {
    padding-left: 20px;
    margin-bottom: 1rem;
}
.product-rich-content li {
    margin-bottom: 6px;
}

/* 13. MODERN CART & CHECKOUT STYLING */
.thm-checkout-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--thm-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.payment-method-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.payment-method-card:hover {
    border-color: #cbd5e1;
}
.payment-method-card.selected {
    border-color: var(--thm-red) !important;
    background: #fff5f5 !important;
}
.payment-method-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8fafc;
}

/* ===================================================
   14. MOBILE BANNER & BOTTOM NAVIGATION
   =================================================== */

/* Fix Mobile Banner Aspect Ratio & Scale (Eliminating giant height and cropped text) */
@media (max-width: 767.98px) {
    .thm-hero-carousel,
    .thm-hero-carousel .carousel-inner,
    .thm-hero-carousel .carousel-item {
        min-height: 0 !important;
        height: auto !important;
        border-radius: 8px !important;
    }
    .thm-hero-banner-img {
        min-height: 0 !important;
        max-height: none !important;
        height: auto !important;
        width: 100% !important;
        aspect-ratio: 900 / 420;
        object-fit: contain !important;
        background: #0f172a;
        border-radius: 8px !important;
        display: block;
    }
    .thm-hero-carousel .carousel-indicators {
        margin-bottom: 4px;
    }
    .thm-hero-carousel .carousel-indicators [data-bs-target] {
        width: 12px;
        height: 3px;
        margin: 0 2px;
    }
    .thm-hero-carousel .carousel-indicators .active {
        width: 20px;
    }
    .thm-hero-carousel .carousel-control-prev,
    .thm-hero-carousel .carousel-control-next {
        display: none !important;
    }
    
    /* Ensure page content has bottom breathing room above the fixed mobile bar */
    body {
        padding-bottom: 66px !important;
    }
    
    /* Ensure floating contacts and back-to-top sit above the bottom bar */
    .floating-contact-bubbles {
        bottom: 74px !important;
    }
    #back-to-top {
        bottom: 74px !important;
    }
}

/* Global Mobile Bottom Navigation Bar */
.thm-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1030;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
}
.thm-mobile-bottom-nav .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 10.5px;
    font-weight: 600;
    padding: 6px 0;
    transition: color 0.15s ease;
    height: 100%;
}
.thm-mobile-bottom-nav .mobile-nav-item i {
    font-size: 18px;
    margin-bottom: 2px;
    transition: transform 0.15s ease;
}
.thm-mobile-bottom-nav .mobile-nav-item:hover,
.thm-mobile-bottom-nav .mobile-nav-item.active {
    color: var(--thm-red, #dc2626);
}
.thm-mobile-bottom-nav .mobile-nav-item.active i {
    transform: scale(1.1);
}
.mobile-cart-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 16px);
    background: #dc2626;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    line-height: 14px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
    border: 1.5px solid #ffffff;
}

/* Product Detail Mobile Action Bar */
.thm-product-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    z-index: 1030;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}
.thm-product-mobile-bar .product-bar-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    min-width: 44px;
    padding: 2px 4px;
}
.thm-product-mobile-bar .product-bar-icon-btn i {
    font-size: 17px;
    margin-bottom: 2px;
}
.thm-product-mobile-bar .product-bar-icon-btn:hover {
    color: var(--thm-red, #dc2626);
}
.thm-product-mobile-bar .product-bar-icon-btn .mobile-cart-badge {
    top: 2px;
    right: 4px;
}

/* Offcanvas Drawer Style */
.thm-category-offcanvas {
    max-width: 310px;
    border-right: 1px solid #e2e8f0;
}
