/* ==========================================
   1. Global Setup & Font Configuration
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Padauk', Pyidaungsu, "Myanmar3", sans-serif;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden; /* ဘေးတိုက် Scroll မဖြစ်စေရန် */
    padding-bottom: 60px; /* Mobile Bottom Nav ရဲ့ Height အလိုက် လွတ်စေရန် */
}

/* Helper Class */
.fs-7 {
    font-size: 0.825rem;
}

/* Global Container Setup */
.main-container, 
.site-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* ==========================================
   2. Top Announcement Bar & Header Section
   ========================================== */
/* Top Mini Announcement Bar */
.top-announcement-bar {
    background-color: #0d6efd;
    font-size: 0.825rem;
}

/* Sticky Main Header */
.main-header {
    background-color: #ffffff;
    z-index: 1030;
}

.header-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand-title {
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 0.725rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search Box Styling */
.search-group {
    background-color: #f8f9fa;
    position: relative !important;
    overflow: visible !important;
}

.search-group .form-control:focus {
    box-shadow: none;
    background-color: #ffffff;
}

/* Header Legacy Search Box Compatibility */
.search-header,
.app-header {
    width: 100%;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
}

/* ==========================================
   3. Banner Section
   ========================================== */
.banner-section img,
.banner-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Animated Banner Style */
.animated-banner-box {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 50%, #d63384 100%);
    background-size: 200% 200%;
    animation: gradientBG 8s ease infinite;
}

.banner-bg-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    filter: blur(40px);
    animation: floatGlow 4s ease-in-out infinite alternate;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatGlow {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(20px) scale(1.1); }
}

/* ==========================================
   4. Category Section & Horizontal Scroll
   ========================================== */
.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.category-scroll::-webkit-scrollbar {
    height: 4px;
}

.cat-chip {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 6px 16px;
    white-space: nowrap;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cat-chip.active, .cat-chip:hover {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* ==========================================
   5. Product Card Styling & Aspect Ratio
   ========================================== */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: #f1f3f5;
}

/* ==========================================
   6. Toast Notification Styling
   ========================================== */
.toast-popup {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 25px;
    padding: 10px 20px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

.toast-popup.show {
    visibility: visible;
    opacity: 1;
    bottom: 90px;
}

/* ==========================================
   7. Bottom Navigation & Responsive Breakpoints
   ========================================== */
.bottom-nav {
    display: none;
}

/* Desktop View (>= 768px) */
@media (min-width: 768px) {
    .bottom-nav {
        display: none !important;
    }
}

/* Mobile View (< 767.98px) */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 75px;
    }

    .brand-title {
        font-size: 0.95rem;
    }
    .brand-subtitle {
        font-size: 0.65rem;
    }
    .header-logo {
        width: 35px;
        height: 35px;
    }

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #fff;
        border-top: 1px solid #eee;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }

    .nav-item-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #666;
        font-size: 11px;
        width: 25%;
        text-align: center;
    }

    .nav-item-link i {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .nav-item-link.active {
        color: #0d6efd;
        font-weight: bold;
    }
}

/* ==========================================
   8. Kyatmall Style Mega Dropdown Menu (Desktop)
   ========================================== */
.header-search-form {
    position: relative;
}

/* Mega Menu Main Dropdown Container */
.mega-menu-dropdown {
    width: 650px !important;
    max-width: 90vw;
    height: 380px;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important; /* Popper Position ကို Reset လုပ်ခြင်း */
    border-radius: 12px !important;
    overflow: hidden !important; /* Layout အလှအပအတွက် hidden ပြန်ထားပါ */
    z-index: 1050 !important;
}

/* Mega Menu Sidebar & Layout */
.mega-sidebar {
    width: 220px;
    background-color: #f8f9fa;
    height: 100%;
    overflow-y: auto;
}

.mega-content {
    height: 100%;
    overflow-y: auto;
}

/* Hover/Active Tab Style */
.mega-tab-item {
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.mega-tab-item.active, 
.mega-tab-item:hover {
    background-color: #e9ecef !important;
    color: #0d6efd !important;
    font-weight: bold;
}

/* Panel Display Switcher Logic (မဖြစ်မနေ လိုအပ်ပါသည်) */
.mega-panel {
    display: none;
}

.mega-panel.active {
    display: block;
    animation: fadeIn 0.25s ease-in-out;
}

.sub-cat-card {
    transition: all 0.2s ease;
}

.sub-cat-card:hover {
    background-color: #e9ecef !important;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   9. Footer Custom Styling
   ========================================== */
.main-footer {
    padding-bottom: 75px !important;
}

@media (min-width: 768px) {
    .main-footer {
        padding-bottom: 25px !important;
    }
}

.footer-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.fs-8 {
    font-size: 11px;
}

.footer-links a {
    transition: color 0.2s ease-in-out;
}

.footer-links a:hover {
    color: #0d6efd !important;
}

.social-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transform: translateY(-3px);
}

/* Mobile Bottom Navigation Bar Styles */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eef2f5;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1030;
}

.bottom-nav .nav-item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-decoration: none;
    font-size: 11px;
    flex: 1;
}

.bottom-nav .nav-item-link i {
    font-size: 18px;
    margin-bottom: 2px;
}

.bottom-nav .nav-item-link.active,
.bottom-nav .nav-item-link:hover {
    color: #0d6efd;
}

/* Page content မကွယ်စေရန် အောက်ခြေတွင် Margin ပေးခြင်း */
body {
    padding-bottom: 60px;
}
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}