/* Google Fonts ကနေ Myanmar Font ယူခြင်း */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Myanmar:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Font ကို Noto Sans Myanmar ပြောင်းလိုက်ပါပြီ */
    font-family: 'Noto Sans Myanmar', 'Poppins', sans-serif;
}

/* မြန်မာစာသားတွေက အင်္ဂလိပ်စာထက် နည်းနည်းပိုကြီးတတ်လို့ Font size ညှိခြင်း */
body {
    line-height: 1.6;
}

.logo {
    font-weight: 700;
    /* City Mall ပုံထဲကလို အရောင်စပ်ချင်ရင် */
    color: #007bff; 
}

/* အခြေခံ Setting များ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f4f4;
}

/* Navbar Layout */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.search-box input {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 25px; /* Search bar ကို အဝိုင်းပုံစံလုပ်ခြင်း */
    width: 300px;
    outline: none;
}

.search-box input:focus {
    border-color: #ff6600;
}
/* Hero Section Styling */
.hero-section {
    background-color: #0b1118; /* ပုံထဲကလို အမည်းရောင်ရင့်ရင့် */
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    color: white;
    position: relative;
}

.hero-content h1 {
    font-size: 2.5rem;
    max-width: 600px;
    margin: 15px 0;
    color: #ffffff; /* စာသားကို အဖြူရောင်ပြောင်းလိုက်ပါပြီ */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8); /* စာသားနောက်မှာ အရိပ်ထည့်တာပါ */
}

.hero-content {
    position: relative;
    z-index: 2; /* စာသားကို Overlay ရဲ့ အပေါ်တင်တာပါ */
    max-width: 800px;
}

.sub-title {
    font-size: 1.2rem;
    color: #ffde59; /* Sub-title ကို အဝါဖျော့လေးပြောင်းရင် ပိုပေါ်ပါတယ် */
    font-weight: bold;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.shop-now-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #00adef;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 2px;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex; /* အစက်တွေ တစ်တန်းတည်းဖြစ်အောင် */
    gap: 10px;
    z-index: 10;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background-color: #ff6600; /* Active ဖြစ်တဲ့ အစက်အရောင် */
    width: 30px; /* ပုံထဲကလို Active ဖြစ်ရင် အချောင်းလေး ဖြစ်သွားအောင် */
    border-radius: 10px;
}

/* Promo Banners Styling */
.promo-section {
    display: flex; /* ဒါက အရေးကြီးဆုံးပါ */
    flex-wrap: wrap; /* Screen သေးရင် အောက်ဆင်းသွားအောင် */
    gap: 20px;
    padding: 40px 5%;
}

.promo-card {
    flex: 1;
    min-width: 300px; /* Card တစ်ခုရဲ့ အနည်းဆုံး အကျယ် */
    height: 250px;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* စာသားတွေကို ကတ်ရဲ့ အောက်ခြေမှာ ထားဖို့ */
    color: white;
}

/* တစ်ခုချင်းစီအတွက် နောက်ခံအရောင် */
.headphone { background-color: #000; }
.deals { background-color: #7ab52b; }
.tablet { background-color: #9e8bbd; }

.promo-text h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: white;
}

.price-tag {
    background: #ff9d00;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Section Header Layout */
.product-section {
    padding: 40px 5%;
    background-color: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.view-all {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
}

/* Grid System */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

/* Product Card Styling */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    text-align: center;
    padding: 15px;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image img {
    max-width: 100%;
    height: 150px;
    object-fit: contain; /* ပုံတွေ မပြဲသွားအောင် ထိန်းပေးတယ် */
    margin-bottom: 15px;
}

.category {
    font-size: 0.7rem;
    color: #999;
    letter-spacing: 1px;
}

.product-info h4 {
    font-size: 1rem;
    margin: 5px 0;
    color: #333;
}

.price {
    color: #ff6600;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Top Bar Styling */
.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 8px 5%;
    font-size: 13px;
    color: #666;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-menu a {
    text-decoration: none;
    color: #333;
}

.lang-switch {
    cursor: pointer;
    border: 1px solid #ddd;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Logo ကို City Mall အရောင်စပ်ကြည့်ခြင်း */
.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
}

footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 60px 5% 20px 5%;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Screen သေးရင် Column တွေ အောက်ဆင်းသွားဖို့ */
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    position: relative;
}

/* ခေါင်းစဉ်အောက်က မျဉ်းတိုလေး (ပုံထဲကအတိုင်း) */
.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #ff6600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    color: #ff6600;
    padding-left: 5px;
}

.contact-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    color: #999;
    font-size: 0.8rem;
}

/* Screen အကျယ် 768px ထက် ငယ်သွားရင် (ဖုန်းတွေမှာ) */
@media (max-width: 768px) {
    .navbar, .promo-section, .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-box input {
        width: 100%;
        margin-top: 15px;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }
}
/* Slider container ကို အချိုးကျဖြစ်အောင် height ကို ညှိပါမယ် */
.slider-container {
    position: relative;
    width: 100%;
    height: 500px; /* ကွန်ပျူတာအတွက် အမြင့် */
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    padding: 0 10%;
    
    /* ပုံကို Screen ထဲမှာ ကွက်တိဖြစ်အောင် လုပ်တဲ့ အရေးကြီးဆုံးအပိုင်း */
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}

/* စာသားတွေ ပုံပေါ်မှာ ပိုပေါ်လွင်အောင် Overlay ပါးပါးအုပ်မယ် */
.slide::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* အမည်းရောင် ၄၀% အုပ်တာပါ */
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

/* ဘေးရွှေ့ခလုတ်များ */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
}

/* Screen အကျယ် 768px ထက် ငယ်သော ဖုန်း/Tablet များအတွက် */
@media (max-width: 768px) {
    .slider-container {
        height: 350px; /* ဖုန်းမှာ Slider ကို နည်းနည်း သေးလိုက်မယ် */
    }

    .hero-content {
        padding: 0 20px;
        text-align: center; /* ဖုန်းမှာ စာသားကို အလယ်ပို့မယ် */
    }

    .hero-content h1 {
        font-size: 1.5rem !important; /* စာလုံးအရွယ်အစားကို ဖုန်းနဲ့တော်အောင် လျှော့မယ် */
        line-height: 1.4;
    }

    .sub-title {
        font-size: 0.9rem !important;
    }

    .shop-now-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.prev-btn:hover, .next-btn:hover { background: #ff6600; }

.categories-section {
    position: relative;
    z-index: 5;
    display: block !important; /* အတင်းပေါ်ခိုင်းတာပါ */
    clear: both; /* အပေါ်က float ဖြစ်နေတာတွေ ရှိရင် ရှင်းထုတ်ဖို့ပါ */
}

.categories-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* ဖုန်းမှာဆိုရင် အောက်တန်းဆင်းသွားဖို့ */
    margin-top: 20px;
}

.category-item {
    cursor: pointer;
    transition: transform 0.3s;
    width: 120px;
}

.category-item:hover {
    transform: translateY(-10px); /* Mouse ထောက်ရင် အပေါ်နည်းနည်းကြွတက်မယ် */
}

.category-icon {
    width: 80px;
    height: 80px;
    background-color: #f8f9fa;
    border-radius: 50%; /* ဝိုင်းဝိုင်းလေးဖြစ်အောင် */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    border: 1px solid #eee;
    transition: 0.3s;
}

.category-item:hover .category-icon {
    border-color: #ff6600;
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.2);
}

.category-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.category-item p {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .categories-grid {
        gap: 15px;
    }
    .category-icon {
        width: 65px;
        height: 65px;
    }
    .category-icon img {
        width: 35px;
    }
}

.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999; /* အားလုံးရဲ့ အပေါ်မှာ ရှိနေအောင် */
}

.contact-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.contact-btn:hover {
    transform: scale(1.1); /* Mouse ထောက်ရင် နည်းနည်း ကြီးလာမယ် */
}

.messenger { background-color: #0084ff; }
.phone { background-color: #4caf50; }

.contact-btn img {
    width: 30px;
    height: 30px;
}

/* Mobile အတွက်သာ */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }

    .nav-links {
        position: fixed;
        right: -100%; /* အပြင်မှာ ဖျောက်ထားမယ် */
        top: 0;
        width: 250px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding-top: 80px;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0; /* ပေါ်လာအောင် လုပ်မယ် */
    }
}

#backToTop {
    display: none; /* အစမှာ ဖျောက်ထားမယ် */
    position: fixed;
    bottom: 20px;
    left: 20px; /* ညာဘက်မှာ Contact တွေ ရှိလို့ ဘယ်ဘက်မှာ ထားပါမယ် */
    z-index: 99;
    border: none;
    outline: none;
    background-color: #333;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    transition: 0.3s;
}

#backToTop:hover {
    background-color: #ff6600;
}

/* တစ်ခါတည်း Smooth Scroll ဖြစ်အောင် လုပ်ပါမယ် */
html {
    scroll-behavior: smooth;
}
