        :root {
            --primary-color: #0056b3; /* ปรับสีน้ำเงินตามต้องการ */
            --secondary-color: #dc3545; /* สีแดงเสริม */
            --nav-height: 60px;
            --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #0043a8 100%);
            --glass-bg: rgba(255, 255, 255, 0.95);
        }

        body {
           font-family: 'Sarabun', sans-serif; background-color: #ffffff; 
        }

        /* Top Bar Styling */
        .top-bar {
            background-color: #1a1a1a;
            color: #ffffff;
            font-size: 0.85rem;
            padding: 8px 0;
        }
        .top-bar a {
            color: #ffffff;
            text-decoration: none;
            transition: 0.3s;
        }
        .top-bar a:hover {
            color: var(--primary-color);
        }

        /* Navbar Styling */
        .navbar {
            padding: 5px 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .navbar-brand {
            font-weight: 800;
            font-size: 1.5rem;
            color: #333;
        }
        .navbar-brand span {
            color: var(--primary-color);
        }

        .nav-link {
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.9rem;
            padding: 0.5rem 1rem !important;
        }
        #mainNav .nav-link {
            font-size: 1rem;
        }
        

         /* Main Header (Middle Row) */
        .middle-header {
            background: #fff;
            padding: 20px 0;
        }
        .search-box {
            position: relative;
            max-width: 500px;
            width: 100%;
        }
        .search-box .form-control {
            border-radius: 50px;
            padding-left: 20px;
            padding-right: 50px;
            border: 2px solid #e2e8f0;
        }
        .search-box .btn-search {
            position: absolute;
            right: 5px;
            top: 5px;
            bottom: 5px;
            border-radius: 50px;
            background: var(--primary-blue);
            color: #fff;
            border: none;
            padding: 0 15px;
        }

        /* Navigation Bar (Bottom Row) */
        .bottom-nav {
            background: #fff;
            border-top: 1px solid #eee;
            border-bottom: 2px solid var(--primary-blue);
            padding: 0;
        }
        .bottom-nav .nav-link {
            color: var(--dark-navy) !important;
            font-weight: 600;
            padding: 15px 20px !important;
            position: relative;
            font-size: 0.95rem;
        }
        .bottom-nav .nav-link:hover, .bottom-nav .nav-link.active {
            color: var(--primary-blue) !important;
        }
        
        /* Icons Action */
        .action-icon {
            color: var(--dark-navy);
            font-size: 1.2rem;
            transition: 0.2s;
        }
        .action-icon:hover { color: var(--primary-blue); }
      
        .hero-bg {
            /*background: linear-gradient(135deg, #ffffff 0%, #f1f1f1 100%);*/
            background:linear-gradient(135deg, #0f172a 0%, #00164a 100%);
            padding: 30px 0;
            background-color: white;
        }
        .hero-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: #f7f7f7;
        }
        .hero-description {
            color: #fcfafa;
        }
        .hero-bg-img {
            max-width: 72%;
            margin-top: 20px;
        }
        @media (min-width: 992px) {
            .dropdown:hover .dropdown-menu {
                display: block;
                margin-top: 0; /* ปรับระยะให้พอดี */
            }
        }
        .dropdown-toggle::after {
            position: absolute;
            right: 7px;
            bottom: 40%;
        }
        .feature-icon { font-size: 2.5rem; color: #0d6efd; margin-bottom: 1rem; }
        .product-card { border: none; border-radius: 12px; transition: transform 0.3s; background: white; }
        .product-card:hover .product-img { /*transform: scale(1.08); */}
        .product-img { height: 220px; object-fit: cover; border-radius: 12px 12px 0 0; cursor: pointer;}
        .section-title { font-weight: 700; position: relative; padding-bottom: 10px; margin-bottom: 30px; }
        .section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 50px; height: 3px; background: #0d6efd; }

        /* ตกแต่งช่องค้นหา */
        .search-box-custom .form-control {
            border-radius: 20px 0 0 20px;
            padding-left: 20px;
        }

        .search-box-custom .btn {
            border-radius: 0 20px 20px 0;
            padding: 0 20px;
            background-color: #0d6efd; /* สีน้ำเงิน primary */
        }

        /* ตกแต่งไอคอน */
        .header-icons a {
            text-decoration: none;
            transition: 0.3s;
            opacity: 0.8;
        }

        .header-icons a:hover {
            opacity: 1;
            color: #0d6efd !important;
        }

        /* ปรับแต่งเมนูแถวล่าง */
        .navbar-nav .nav-link {
            font-size: 0.9rem;
            font-weight: 500;
            letter-spacing: 0.5px;
            padding: 10px 20px !important;
        }

        /* เส้นคั่นระหว่างแถวถ้าต้องการ */
        header.sticky-top {
            z-index: 1020;
        }
         /* ตกแต่ง accordion-button ของ BS5 เล็กน้อยให้ดูสะอาดตา */
        .accordion-button:not(.collapsed) {
            background-color: #fff;
            color: #007bff;
            box-shadow: none;
            font-weight: bold !important;
        }
        .accordion-button::after {
            background-size: 12px;
            width: 12px;
            height: 12px;
        }
        .accordion-button:focus {
            box-shadow: none;
            border-color: rgba(0,0,0,.125);
        }
        /* ลบ background ที่ wrapper ออกเพื่อให้เห็นช่องว่าง (Gutter) */
        .product-wrapper {
            position: relative;
            background: transparent; /* เปลี่ยนเป็นโปร่งใส */
        }

        /* เน้นที่ตัว Card แทน */
        .product-card {
            border: 1px solid #eee;
            border-radius: 8px; /* ปรับมนขึ้นนิดหน่อยให้ดู Hardware ทันสมัย */
            height: 100%;
            background: white;
            transition: all 0.2s ease-in-out;
        }

        /* เพิ่ม Hover นิดหน่อยให้ดูเหมือนคลิกได้ */
        .product-card:hover {
            border-color: #3b82f6;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        }
        /* ปรับแต่ง List View ให้เหลือแค่เส้นคั่นแนวนอน */
        .list-view-active.product-wrapper {
            border-right: none !important;
            width: 100% !important;
        }
        .product-title {
            font-size: 14px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        /* Footer Styling */
        .main-footer {
                background-color: #ffffff;
                color: #334155;
                padding: 70px 0 0;
                border-top: 1px solid #edf2f7;
                font-family: 'Prompt', sans-serif;
            }
            .footer-brand {
                font-size: 1.5rem;
                font-weight: 800;
                letter-spacing: -0.5px;
                color: #0f172a;
                margin-bottom: 1.5rem;
            }
            .footer-title {
                color: #0f172a;
                font-size: 0.95rem;
                font-weight: 700;
                text-transform: uppercase;
                margin-bottom: 20px;
                letter-spacing: 0.5px;
            }
            .footer-link {
                color: #64748b;
                text-decoration: none;
                transition: color 0.2s ease;
                display: block;
                margin-bottom: 12px;
                font-size: 0.9rem;
            }
            .footer-link:hover {
                color: #0d6efd;
            }
            .contact-list {
                list-style: none;
                padding: 0;
            }
            .contact-list li {
                font-size: 0.9rem;
                color: #64748b;
                margin-bottom: 12px;
                display: flex;
                align-items: center;
            }
            .contact-list i {
                width: 20px;
                color: #0d6efd;
                margin-right: 12px;
            }
            .social-links {
                display: flex;
                gap: 12px;
                margin-top: 20px;
            }
            .social-icon {
                width: 35px;
                height: 35px;
                border-radius: 50%;
                background: #f8fafc;
                display: flex;
                align-items: center;
                justify-content: center;
                color: #64748b;
                transition: all 0.3s ease;
                border: 1px solid #e2e8f0;
            }
            .social-icon:hover {
                background: #0d6efd;
                color: white;
                border-color: #0d6efd;
            }
            .footer-bottom {
                border-top: 1px solid #edf2f7;
                padding: 25px 0;
                margin-top: 60px;
                background: #fcfcfc;
            }
       
            /* ปรับปรุง Search Box ให้ดูพรีเมียม */
            .search-group-container {
                display: flex;
                align-items: center;
                background: #fff;
                border: 2px solid #e2e8f0;
                border-radius: 8px;
                overflow: hidden;
                transition: all 0.3s ease;
            }
            .search-group-container:focus-within {
                border-color: #0d6efd;
                box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
            }
            .search-category-select {
                border: none;
                background: #f8fafc;
                color: #475569;
                font-size: 0.85rem;
                padding: 0 15px;
                height: 40px;
                border-right: 1px solid #e2e8f0;
                cursor: pointer;
                outline: none !important;
                width: 140px; /* ปรับขนาดความกว้างตามเหมาะสม */
            }
            .search-input-main {
                border: none !important;
                box-shadow: none !important;
                height: 40px;
                padding-left: 15px !important;
                font-size: 0.9rem;
            }
            .btn-search-submit {
                background: transparent;
                border: none;
                color: #64748b;
                padding: 0 15px;
                transition: 0.2s;
            }
            .btn-search-submit:hover {
                color: #0d6efd;
            }

            /* ปรับ Icons ให้ดูละเมียดขึ้น */
            .action-icon {
                color: #cbd5e1; /* สีจางลงหน่อยให้ดูแพง */
                transition: 0.3s;
            }
            .action-icon:hover {
                color: #fff;
            }
            .middle-header.bg-dark {
                background-color: #0f172a !important; /* เปลี่ยนจากดำสนิทเป็นน้ำเงินเข้ม Slate */
                padding: 15px 0;
            }
                        /* ปรับแต่งจุด Pagination */
            .swiper-pagination {
                position: relative;
                margin-top: 20px;
            }
            .swiper-pagination-bullet-active {
                background: #0d6efd; /* สีน้ำเงินตามสไตล์ Bootstrap Primary */
            }
            /* ปรับแต่งระยะห่างระหว่างการ์ด */
            .swiper-slide {
                height: auto; /* ให้การ์ดสูงเท่ากัน */
            }
            .product-card {
                height: 100%;
            }
            /* ปรับแต่งสีเมื่อ Hover */
            .action-icon {
                transition: opacity 0.2s;
                opacity: 0.9;
            }
            .action-icon:hover {
                opacity: 1;
                color: #b7d4ff !important; /* สีเหลืองทองแบบ Electro ถ้าคุณชอบ */
            }
            /* คุมความสูง Badge ให้ไม่เบี้ยว */
            .badge {
                line-height: 1;
                min-width: 15px;
            }
            .rounded-10 { border-radius: 15px; }
            /* เพิ่มลูกเล่นเวลาเอาเมาส์วาง */
            .special-offer-sidebar:hover {
                transform: translateY(-5px);
                transition: transform 0.3s ease;
            }
            .discount-badge {
                width: 70px;
                height: 70px;
                border: 3px solid #fff;
                box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            }
            /* ซ่อนปุ่มเลื่อน Carousel ปกติ และโชว์เมื่อ Hover */
            #productCarousel .carousel-control-prev,
            #productCarousel .carousel-control-next {
                opacity: 0;
                transition: opacity 0.3s ease;
            }

            #productCarousel:hover .carousel-control-prev,
            #productCarousel:hover .carousel-control-next {
                opacity: 1;
            }

            /* ปรับแต่ง cursor ตอนชี้รูป */
            .product-main-img {
                cursor: zoom-in;
                transition: transform 0.3s ease;
            }

            .product-main-img:hover {
                transform: scale(1.02); /* ขยายเล็กน้อยตอนชี้เพื่อให้รู้ว่ากดได้ */
            }
            .product-title-h1 {
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .breadcrumb {
                --bs-breadcrumb-divider: '>';
            }
            .breadcrumb-item a {
                padding: 0.438rem 0.875rem;
                background-color: #f9f9f9;
                border-radius: 0.313rem;
            }

            /* คอนเทนเนอร์ตัวเลือกสินค้า */
            .variant-selector {
                display: flex;
                flex-wrap: wrap;
                gap: 10px;
            }

            /* สไตล์ Card เล็กๆ ของแต่ละตัวเลือก */
            .variant-card {
                width: 85px;
                border: 2px solid #e2e8f0;
                border-radius: 12px;
                padding: 5px;
                cursor: pointer;
                transition: all 0.2s ease;
                position: relative;
                background: #fff;
                text-decoration: none !important;
            }

            .variant-card:hover {
                border-color: #0d6efd;
                transform: translateY(-2px);
                box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            }

            /* สถานะเมื่อเป็นสินค้าตัวที่เลือกอยู่ */
            .variant-card.active {
                border-color: #0d6efd;
                background-color: #fff5f5;
            }

            /* รูปภาพในตัวเลือก */
            .variant-img {
                width: 100%;
                height: 65px;
                object-fit: contain;
                border-radius: 8px;
                margin-bottom: 5px;
            }

            /* ป้ายราคาจิ๋ว */
            .variant-price-tag {
                font-size: 10px;
                background: rgba(255,255,255,0.9);
                color: #0d6efd;
                font-weight: bold;
                padding: 1px 4px;
                border-radius: 4px;
                position: absolute;
                top: 5px;
                left: 5px;
                border: 1px solid #eee;
            }

            /* ชื่อรุ่น/ประเภท ด้านล่างรูป */
            .variant-label {
                font-size: 10px;
                color: #475569;
                text-align: center;
                display: block;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                font-weight: 600;
            }

            /* สไตล์สินค้าหมด */
            .variant-out-of-stock {
                position: absolute;
                top: 30%;
                left: 0;
                width: 100%;
                background: rgba(0,0,0,0.7);
                color: white;
                font-size: 9px;
                text-align: center;
                padding: 2px 0;
            }
            
            .variant-card.disabled img {
                filter: grayscale(100%);
                opacity: 0.5;
            }
            /* ปรับแต่งปุ่มสั่งซื้อให้สูงเท่าแถบเมนู */
            .buy-now-btn {
                height: var(--nav-height); /* สูง 60px เท่าแถบ */
                border: none;
                background: linear-gradient(45deg, #ff7272, #ff0018);
                color: white !important;
                font-weight: 700;
                font-size: 16px;
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
                text-decoration: none;
                transition: 0.2s;
            }

            .buy-now-btn:active {
                filter: brightness(0.9);
            }

            /* ปรับระยะห่างใน nav-grid ใหม่เฉพาะหน้าสินค้า */
            .product-footer-grid {
                display: flex;
                align-items: center;
                height: 100%;
            }

            .product-footer-grid .nav-link {
                flex: 1; /* ปุ่มปกติกินพื้นที่เท่าๆ กัน */
            }

            .product-footer-grid .buy-action {
                flex: 2; /* ปุ่มสั่งซื้อกว้างเป็น 2 เท่า */
                height: 100%;
            }

            .pro-bottom-nav {
                position: fixed;
                bottom: 0;
                left: 0;
                width: 100%;
                height: var(--nav-height);
                background: #ffffff;
                box-shadow: 0 -1px 12px rgba(0,0,0,0.08);
                z-index: 1050;
                padding-bottom: env(safe-area-inset-bottom); /* รองรับขีดล่างของ iPhone */
            }

            .nav-grid {
                display: grid;
                grid-template-columns: repeat(5, 1fr);
                height: 100%;
                align-items: center;
            }

            .nav-link {
                text-decoration: none;
                display: flex;
                flex-direction: column;
                align-items: center;
                color: var(--text-muted);
                transition: 0.2s all ease;
            }

            .nav-link i {
                font-size: 20px;
                margin-bottom: 2px;
            }

            .nav-link span {
                font-size: 10px;
                font-weight: 400;
            }

            /* ไฮไลท์หน้าปัจจุบัน */
            .nav-link.active {
                color: var(--primary-color);
            }

            /* ปรับปุ่มกลางให้ดูเด่นแต่ไม่นูน */
            .nav-link-main {
                color: var(--primary-color) !important;
            }

            .main-icon-wrapper {
                background: rgba(0, 123, 255, 0.1); /* สีจางๆ เบื้องหลังไอคอน */
                width: 40px;
                height: 32px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 12px;
                margin-bottom: 2px;
            }

            .label-main {
                font-weight: 700 !important;
            }

            /* ตะกร้าสินค้า */
            .icon-badge-container {
                position: relative;
            }

            .cart-count {
                position: absolute;
                top: -5px;
                right: -8px;
                background: #ff4d4f;
                color: white;
                font-size: 9px;
                min-width: 16px;
                height: 16px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                border: 2px solid #fff;
                font-weight: bold;
            }

            /* เพิ่มความนุ่มนวลเวลาสัมผัส */
            .nav-link:active {
                background-color: rgba(0, 0, 0, 0.05); /* ให้ความรู้สึกเหมือนกดปุ่มจริงๆ */
            }

            /* ปรับระยะห่างให้ดูโปรขึ้น */
            .nav-grid {
                padding: 0 5px;
            }

            /* สำหรับ Android/iOS ที่มีแถบด้านล่าง บางครั้งเงาอาจจะดูแข็งไป */
            .pro-bottom-nav {
                border-top: 1px solid rgba(0,0,0,0.05) !important;
                box-shadow: 0 -3px 10px rgba(0,0,0,0.03) !important;
            }
            /* ส่วน Header หลัก */
                .mobile-header-section {
                    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
                    z-index: 1020;
                }

                /* ตกแต่งช่อง Search ให้ดูโมเดิร์น */
                .mobile-search-wrapper {
                    position: relative;
                    display: flex;
                    align-items: center;
                }

                .mobile-search-input {
                    border-radius: 50px !important; /* ทรงแคปซูล */
                    border: 1px solid #eee !important;
                    background-color: #f8f9fa !important;
                    padding-left: 15px !important;
                    height: 38px !important;
                    font-size: 13px !important;
                    width: 100%;
                    box-shadow: none !important;
                }

                .mobile-search-btn {
                    position: absolute;
                    right: 5px;
                    background: #333; /* หรือสีประจำแบรนด์ */
                    color: white;
                    border: none;
                    width: 30px;
                    height: 30px;
                    border-radius: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 12px;
                }
                @media (max-width: 991.98px) {
                .mobile-search-input {
                    font-size: 16px !important; /* บังคับ 16px เพื่อหยุดการ Auto Zoom */
                }
            }
            /* CSS เพื่อให้เลื่อนได้และสวยงาม */
            .scroll-menu-container {
                display: flex;
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                gap: 12px;
                padding-bottom: 10px;
            }
            
            /* ซ่อน scrollbar */
            .scroll-menu-container::-webkit-scrollbar {
                display: none;
            }

            .scroll-menu-item {
                flex: 0 0 auto;
                width: 80px; /* ปรับความกว้างให้พอดีกับชื่อภาษาไทย */
                text-align: center;
            }

            .menu-icon-box {

                display: flex;
                align-items: center;
                justify-content: center;
                margin: 0 auto 5px;
                transition: 0.3s;
            }

            .menu-icon-box i {
                font-size: 20px;
                color: #444;
            }

            .menu-text {
                font-size: 12px;
                line-height: 1.2;
                color: #333;
                /* แสดงชื่อ 2 บรรทัดถ้ามันยาว */
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            /* เมื่อกดแล้วให้มีเอฟเฟกต์นิดหน่อย */
            .scroll-menu-item a:active .menu-icon-box {
                background: #e9ecef;
                transform: scale(0.95);
            }
            .typHeading{display: -webkit-box;-webkit-line-clamp: 1;-webkit-box-orient: vertical;overflow: hidden;text-overflow: ellipsis;}
            .product-container { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
            .img-main { width: 100%; height: 500px; object-fit: contain; background: #fff; padding: 20px; }
            .price-box { background: #fff5f5; border-radius: 10px; padding: 20px; margin: 20px 0; }
            .price-value { color: #dc3545; font-size: 2.5rem; font-weight: 700; }
            .badge-status { font-size: 0.9rem; padding: 8px 16px; border-radius: 50px; }
            .spec-table th { background-color: #f8f9fa; width: 30%; }

            
            .category-item { text-decoration: none; color: #555; display: block; padding: 12px 16px; border-radius: 10px; margin-bottom: 6px; transition: all 0.2s ease; border-left: 3px solid transparent; }
            .category-item:hover { background: #f8f9fa; color: #0d6efd; border-left-color: #0d6efd; padding-left: 20px; }
            .category-item.active { background: #eef4ff; color: #0d6efd; font-weight: 600; border-left-color: #0d6efd; }

            /* Product Card - Base (Grid) */
            .product-item { transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
            .product-img-container { position: relative; overflow: hidden; background: #fff; }
        
            
            /* Badges & Text */
            .brand-badge { background: #f0f2f5; color: #475569; padding: 4px 12px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; }
            .price { font-size: 1.4rem; color: #dc3545; font-weight: 800; }
            
            /* View Switcher Button Style */
            .view-btn { border: 1px solid #dee2e6; background: white; color: #6c757d; padding: 8px 16px; transition: 0.2s; font-size: 0.9rem; }
            .view-btn.active { background: #0d6efd; color: white; border-color: #0d6efd; z-index: 2; }
            .view-btn:first-child { border-radius: 8px 0 0 8px; }
            .view-btn:last-child { border-radius: 0 8px 8px 0; }

            /* LIST VIEW MODIFIER */
            .list-view-active { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
            .list-view-active .product-card { flex-direction: row !important; align-items: center; }
            .list-view-active .product-img-container { width: 320px; min-width: 320px; padding: 25px; }
            .list-view-active .product-img { height: 200px; }
            .list-view-active .card-body { padding: 30px !important; flex-grow: 1; }
            
            @media (max-width: 768px) {
                .list-view-active .product-card { flex-direction: column !important; }
                .list-view-active .product-img-container { width: 100%; min-width: unset; }
            }

            /* Container หลัก */
            .scroll-menu-container {
                background-color: #fff; /* หรือสีพื้นหลังที่ต้องการ */
            }

            /* Wrapper สำหรับเลื่อน */
            .scroll-menu-wrapper {
                display: flex;
                overflow-x: auto;
                white-space: nowrap;
                -webkit-overflow-scrolling: touch; /* ให้เลื่อนลื่นๆ ใน iOS */
                padding-left: 15px; /* เว้นระยะเริ่มตัวแรกไม่ให้ติดขอบจอเกินไป */
                padding-bottom: 5px;
            }

            /* ซ่อน Scrollbar สำหรับ Chrome, Safari และ Opera */
            .scroll-menu-wrapper::-webkit-scrollbar {
                display: none;
            }

            /* ซ่อน Scrollbar สำหรับ IE, Edge และ Firefox */
            .scroll-menu-wrapper {
                -ms-overflow-style: none;  /* IE and Edge */
                scrollbar-width: none;  /* Firefox */
            }

            /* Item แต่ละตัว */
            .scroll-menu-item {
                flex: 0 0 auto;
                width: 73px;
                margin-right: 12px;
                text-align: center;
                border: 1px solid #eee;
                padding: 7px;
                border-radius: 13px;
            }

            .menu-link {
                text-decoration: none !important;
                display: flex;
                flex-direction: column;
                align-items: center;
                transition: transform 0.2s ease;
            }

            .menu-link:active {
                transform: scale(0.95); /* เอฟเฟกต์ตอนกด */
            }

            /* กล่องไอคอน */
            .menu-icon-box {
                width: 55px;
                height: 25px;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-bottom: 8px;
                color: #333;
                font-size: 20px;
                box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            }

            /* ข้อความใต้ไอคอน */
            .menu-text {
                font-size: 12px;
                color: #444;
                font-weight: 500;
                width: 100%;
                overflow: hidden;
                text-overflow: ellipsis; /* ถ้าชื่อยาวเกินให้เป็น ... */
                white-space: nowrap;
            }
            
        /* ปรับแต่ง Card ให้ดูพรีเมียม */
        .card-register { 
            border-radius: 20px; 
            border: 1px solid rgba(255, 255, 255, 0.3); 
            box-shadow: 0 15px 35px rgba(0,0,0,0.05); 
            background: var(--glass-bg);
            transition: transform 0.3s ease;
        }

        /* แถบสิทธิพิเศษสไตล์ Modern */
        .promo-banner {
            background: var(--primary-gradient);
            color: white;
            padding: 20px;
            border-radius: 15px;
            margin-bottom: 30px;
            box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
            position: relative;
            overflow: hidden;
        }
        .promo-banner::after {
            content: '';
            position: absolute;
            top: -50%; right: -10%;
            width: 200px; height: 200px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
        }

        .section-title { 
            font-size: 1.2rem; 
            font-weight: 700; 
            color: #1a1a1a; 
            margin-bottom: 25px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f2f5;
            display: flex;
            align-items: center;
        }
        .section-title i { 
            width: 35px; height: 35px;
            background: #e7f1ff;
            color: #0d6efd;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
        }

        /* ปรับแต่ง Input ให้ดูคลีน */
        .form-control {
            border-radius: 10px;
            padding: 12px 15px;
            border: 1px solid #dee2e6;
            background-color: #fdfdfd;
            transition: all 0.2s;
        }
        .form-control:focus {
            background-color: #fff;
            border-color: #0d6efd;
            box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
        }

        /* ปุ่มสมัครสมาชิก */
        .btn-register {
            background: var(--primary-gradient);
            border: none;
            padding: 15px;
            font-weight: 700;
            border-radius: 12px;
            transition: all 0.3s ease;
        }
        .btn-register:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
            filter: brightness(1.1);
        }

        /* หัวข้อจางๆ สำหรับข้อมูลเสริม */
        .text-optional { color: #9ca3af; font-weight: 400; }
        
        /* สไตล์หน้ากากครอบ */
        .bg-optional-section {
            background-color: #f8f9fa;
            border-radius: 15px;
            border: 1px dashed #dee2e6;
        }
        /* CSS สำหรับตัวอักษรแทนรูปภาพ */
        .avatar-initial {
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            color: white;
            font-weight: bold;
            font-size: 1.2rem;
            text-transform: uppercase;
        }
         .review-card { border-radius: 15px; transition: 0.3s; border: 1px solid #eee; }
        .review-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
        .user-avatar { width: 45px; height: 45px; object-fit: cover; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
        .rating-stars { color: #ffc107; font-size: 0.9rem; }
        .review-img-thumbnail { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; cursor: pointer; }
        .scrolling-reviews { display: flex; overflow-x: auto; gap: 1rem; padding-bottom: 1rem; scrollbar-width: thin; }
        /* CSS สำหรับเลือกดาว */
        .rating-input input { display: none; }
        .rating-input label { font-size: 2rem; color: #ddd; cursor: pointer; transition: 0.2s; padding: 0 5px; }
        .rating-input input:checked ~ label,
        .rating-input label:hover,
        .rating-input label:hover ~ label { color: #ffc107; }
        .edit-img-wrapper {
            width: 70px;
            height: 70px;
        }
        .edit-img-wrapper .custom-checkbox {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: flex-start;
            padding: 2px;
            background: rgba(255, 0, 0, 0.2); /* พื้นหลังจางๆ ให้รู้ว่าลบได้ */
            opacity: 0.8;
        }
        .edit-img-wrapper input[type="checkbox"] {
            cursor: pointer;
            width: 18px;
            height: 18px;
            border: 2px solid white;
        }
        /* เมื่อติ๊กแล้วให้รูปดูจางลง */
        .edit-img-wrapper input[type="checkbox"]:checked + img {
            filter: grayscale(1) opacity(0.5);
        }
        /* ปรับแต่งหัวรีวิว */
        .review-card .avatar-initial {
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            border-radius: 50%;
            font-size: 1.2rem;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        /* จัดการข้อความที่ยาวเกินไป */
        .text-truncate {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* ปรับขนาดตัวอักษรเล็กพิเศษ */
        .extra-small {
            font-size: 0.7rem;
        }

        /* เมื่อ Hover ที่ปุ่มจุดสามจุด */
        .btn-light:hover {
            background-color: #f8f9fa;
            color: #000 !important;
        }

        /* ปรับแต่ง Verified Purchase ให้ดูเป็น Badge เล็กๆ */
        .text-success.small {
            letter-spacing: 0.3px;
            display: block;
        }
     
        /* ปรับแต่ง Dropdown ให้แบ่งเป็น 2 คอลัมน์เฉพาะบนจอคอม */
        @media (min-width: 992px) {
            .dropdown-menu.multi-column {
                width: 550px; /* ขยายความกว้าง */
                padding: 15px;
            }
            .dropdown-menu.multi-column .row {
                margin: 0;
            }
            .dropdown-menu.multi-column .col-sm-6 {
                padding: 0 10px;
            }
        }

        /* ตกแต่งหัวข้อกลุ่ม */
        .dropdown-header {
            color: #0d6efd; /* สีฟ้า */
            font-weight: bold;
            text-transform: uppercase;
            font-size: 0.85rem;
            padding-left: 10px;
            margin-top: 10px;
        }

        /* เส้นคั่นระหว่างคอลัมน์ (เลือกใส่ตามชอบ) */
        .col-divider {
            border-right: 1px solid #eee;
        }
        
        .nav-link-custom {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-direction: row;
            font-size: 1rem !important;
            text-transform: none;
        }

        .nav-link-custom:hover {
            background-color: #fff5f0; /* สีส้มอ่อนๆ จางๆ */
            color: #ff4700 !important;
        }
 
        .contact-section {
            padding: 60px 0;
            background-color: #f8f9fa;
        }
        .contact-info-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            height: 100%;
        }
        .contact-form-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        }
        .info-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 25px;
        }
        .info-item .icon-box {
            width: 50px;
            height: 50px;
            background: #fff5f0;
            color: #ff4700;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-size: 1.2rem;
        }
        .map-container {
            border-radius: 15px;
            overflow: hidden;
            margin-top: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .btn-contact {
            background-color: #ff4700;
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 8px;
            transition: 0.3s;
        }
        .btn-contact:hover {
            background-color: #e63e00;
            color: white;
        }
        .policy-header {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            padding: 50px 0;
            margin-bottom: 40px;
            border-bottom: 1px solid #dee2e6;
        }
        .policy-card {
            border: none;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
            transition: transform 0.3s ease;
        }
        .policy-card:hover {
            transform: translateY(-5px);
        }
        .icon-circle {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            margin-bottom: 20px;
        }
        .bg-success-light { background-color: #d1e7dd; color: #0f5132; }
        .bg-danger-light { background-color: #f8d7da; color: #842029; }
        .bg-warning-light { background-color: #fff3cd; color: #664d03; }
        
        .status-box {
            padding: 15px;
            border-radius: 10px;
            border-left: 5px solid;
        }
        .check-list {
            list-style: none;
            padding-left: 0;
        }
        .check-list li {
            position: relative;
            padding-left: 25px;
            margin-bottom: 10px;
        }
        .check-list li::before {
            content: "\f00c";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            left: 0;
            color: #198754;
        }
        .x-list li::before {
            content: "\f00d";
            color: #dc3545;
        }
        .no-stock {
        height: var(--nav-height);
        border: none;
        background: linear-gradient(45deg, #3f3f3f, #535353);
        color: white !important;
        font-weight: 700;
        font-size: 16px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: 0.2s;
    }
    
                    



    