/* --- Reset & Base Styles --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f4f6f9;
            color: #333;
            line-height: 1.6;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* --- Navigation Menu (Always Visible on Mobile) --- */
        nav {
            background-color: #1a1a2e;
            color: #fff;
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        nav .container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .logo {
            font-size: 22px;
            font-weight: bold;
            color: #00adb5;
            letter-spacing: 1px;
            text-align: center;
        }

        .nav-links {
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 12px;
        }

        .nav-links a {
            font-size: 14px;
            font-weight: 500;
            transition: color 0.3s;
            padding: 4px 6px;
        }

        .nav-links a:hover {
            color: #00adb5;
        }

        .nav-icons {
            display: flex;
            gap: 20px;
            font-size: 16px;
        }

        .nav-icons i {
            cursor: pointer;
            transition: color 0.3s;
        }

        .nav-icons i:hover {
            color: #00adb5;
        }

        /* --- Smoother Responsive Categories --- */
        .category-bar {
            background-color: #fff;
            border-bottom: 1px solid #e0e6ed;
            padding: 12px 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.02);
        }

        /* Mobile View: Clean, uniform layout using fractional sizing */
        .category-bar .container {
            display: grid;
            grid-template-columns: repeat(2, 1fr); /* 2 items per row perfectly balanced on small screens */
            gap: 8px; /* Smooth tight margin for compact phone layout */
        }

        .category-item {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 12px;
            background-color: #f0f2f5;
            border-radius: 8px; /* Slightly squared for cleaner layout look */
            font-size: 13px;
            font-weight: 500;
            color: #444;
            cursor: pointer;
            transition: background-color 0.2s, color 0.2s;
            user-select: none;
            text-align: center;
        }

        /* Force first "All Products" button to stretch beautifully if it is alone */
        .category-item:first-child {
            grid-column: span 2;
        }

        .category-item i {
            color: #00adb5;
            font-size: 14px;
        }

        .category-item:hover, .category-item.active {
            background-color: #00adb5;
            color: #fff;
        }

        .category-item:hover i, .category-item.active i {
            color: #fff;
        }

        /* --- Global Modal Base --- */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(26, 26, 46, 0.85);
            z-index: 2000;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

        .close-btn {
            position: absolute;
            top: 20px;
            right: 25px;
            font-size: 30px;
            color: #fff;
            cursor: pointer;
            transition: color 0.3s;
            z-index: 10;
        }

        .close-btn:hover {
            color: #00adb5;
        }

        /* --- Modal 1: Search Form --- */
        .search-modal {
            background-color: rgba(26, 26, 46, 0.96);
        }

        .search-form-container {
            width: 90%;
            max-width: 600px;
            transform: scale(0.8);
            transition: transform 0.3s ease;
        }

        .search-modal.active .search-form-container {
            transform: scale(1);
        }

        .search-box-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            border-bottom: 3px solid #fff;
            padding-bottom: 10px;
        }

        .search-input {
            width: 100%;
            background: transparent;
            border: none;
            outline: none;
            color: #fff;
            font-size: 24px;
            padding-right: 40px;
        }

        .search-input::placeholder {
            color: #888;
        }

        .search-submit-btn {
            background: transparent;
            border: none;
            color: #fff;
            font-size: 24px;
            cursor: pointer;
            position: absolute;
            right: 0;
        }

        /* --- Modal 2: Product Details --- */
        .details-modal-content {
            background: #fff;
            width: 90%;
            max-width: 800px;
            max-height: 90vh;
            border-radius: 12px;
            overflow-y: auto;
            position: relative;
            padding: 30px;
            transform: translateY(30px);
            transition: transform 0.3s ease;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .details-modal.active .details-modal-content {
            transform: translateY(0);
        }

        .details-modal .close-btn {
            color: #333;
        }

        .details-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
            margin-top: 15px;
        }

        .details-img-wrapper img {
            width: 100%;
            max-height: 350px;
            object-fit: cover;
            border-radius: 8px;
            background-color: #f0f2f5;
        }

        .details-body .modal-tag {
            font-size: 12px;
            text-transform: uppercase;
            color: #00adb5;
            font-weight: bold;
            display: inline-block;
            margin-bottom: 5px;
        }

        .details-body h2 {
            font-size: 24px;
            color: #1a1a2e;
            margin-bottom: 10px;
        }

        .details-body .modal-price {
            font-size: 26px;
            font-weight: bold;
            color: #D12504;
            margin-bottom: 15px;
        }

        .details-body .status-badge {
            display: inline-block;
            padding: 3px 10px;
            font-size: 12px;
            background: #e8f5e9;
            color: #2e7d32;
            border-radius: 20px;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .details-body p {
            font-size: 15px;
            color: #666;
            margin-bottom: 20px;
        }

        .specs-list {
            list-style: none;
            margin-bottom: 25px;
            font-size: 14px;
        }

        .specs-list li {
            padding: 6px 0;
            border-bottom: 1px dashed #e0e0e0;
        }

        .specs-list strong {
            color: #333;
        }

        .action-row {
            display: flex;
            gap: 15px;
            align-items: center;
            flex-wrap: wrap;
        }

        .qty-selector {
            display: flex;
            border: 1px solid #ccc;
            border-radius: 4px;
            overflow: hidden;
        }

        .qty-selector button {
            background: #f0f2f5;
            border: none;
            width: 35px;
            height: 40px;
            font-size: 18px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .qty-selector button:hover {
            background: #e4e6e9;
        }

        .qty-selector input {
            width: 45px;
            border: none;
            text-align: center;
            font-size: 16px;
            font-weight: 600;
            outline: none;
        }

        .btn-modal-add {
            flex-grow: 1;
            background-color: #1a1a2e;
            color: #fff;
            border: none;
            height: 40px;
            padding: 0 20px;
            border-radius: 4px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .btn-modal-add:hover {
            background-color: #00adb5;
        }

        /* --- Header / Hero Image Section --- */
        header {
            background: linear-gradient(rgba(26, 26, 46, 0.85), rgba(26, 26, 46, 0.85)),
                        url('https://images.unsplash.com/photo-1587202372775-e229f172b9d7?auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
            height: 380px;
            display: flex;
            align-items: center;
            text-align: center;
            color: #fff;
        }

        header h1 {
            font-size: 38px;
            margin-bottom: 10px;
        }

        header p {
            font-size: 16px;
            color: #eee;
            margin-bottom: 25px;
        }

        .btn-shop {
            background-color: #00adb5;
            color: #fff;
            padding: 12px 30px;
            border-radius: 5px;
            font-weight: bold;
            transition: background 0.3s;
        }

        .btn-shop:hover {
            background-color: #008c95;
        }

        /* --- Shared Section Title Style --- */
        .section-title {
            text-align: center;
            font-size: 28px;
            margin-bottom: 35px;
            position: relative;
        }

        .section-title::after {
            content: '';
            display: block;
            width: 50px;
            height: 4px;
            background-color: #00adb5;
            margin: 10px auto 0;
            border-radius: 2px;
        }

        /* --- Items Cards Section --- */
        .products-section {
            padding: 50px 0;
        }

        .product-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 25px;
        }

        /* សម្រាប់អេក្រង់ Tablet ធំល្មម (មាន ២ ធាតុក្នុងមួយជួរ) */
        @media (min-width: 300px) {
            .product-grid {
                grid-template-columns: repeat(1, 1fr);
            }
        }

        /* សម្រាប់អេក្រង់ Tablet ធំល្មម (មាន ២ ធាតុក្នុងមួយជួរ) */
        @media (min-width: 400px) {
            .product-grid {
                grid-template-columns: repeat(1, 1fr);
            }
        }

        /* សម្រាប់អេក្រង់ Tablet ធំល្មម (មាន ២ ធាតុក្នុងមួយជួរ) */
        @media (min-width: 600px) {
            .product-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* សម្រាប់អេក្រង់កុំព្យូទ័រ Desktop (មាន ៤ ធាតុក្នុងមួយជួរ) */
        @media (min-width: 1024px) {
            .product-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }


        .product-card {
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s, box-shadow 0.3s;
            display: flex;
            flex-direction: column;
            cursor: pointer;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }

        .product-img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            background-color: #eceff1;
        }

        .product-info {
            padding: 20px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .product-tag {
            font-size: 11px;
            color: #00adb5;
            text-transform: uppercase;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .product-name {
            font-size: 16px;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .product-price {
            font-size: 18px;
            color: #D12504;
            font-weight: bold;
            margin-top: auto;
            margin-bottom: 15px;
        }

        .btn-card {
            background-color: #1a1a2e;
            color: #fff;
            text-align: center;
            padding: 10px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 500;
            transition: background 0.3s;
        }

        .btn-card:hover {
            background-color: #00adb5;
        }

        /* --- Services Section --- */
        .services-section {
            background-color: #eef2f7;
            padding: 60px 0;
            border-top: 1px solid #e0e6ed;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 25px;
        }

        .service-box {
            background: #fff;
            padding: 30px 20px;
            text-align: center;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.03);
            border-bottom: 3px solid transparent;
            transition: all 0.3s ease;
        }

        .service-box:hover {
            border-bottom: 3px solid #00adb5;
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0,0,0,0.08);
        }

        .service-icon {
            font-size: 40px;
            color: #00adb5;
            margin-bottom: 15px;
        }

        .service-box h3 {
            font-size: 18px;
            color: #1a1a2e;
            margin-bottom: 10px;
        }

        .service-box p {
            font-size: 14px;
            color: #666;
        }

        /* --- Footer & Contact --- */
        footer {
            background-color: #1a1a2e;
            color: #fff;
            padding: 40px 0 20px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }

        .footer-about h3, .footer-contact h3 {
            color: #00adb5;
            margin-bottom: 15px;
            font-size: 20px;
        }

        .footer-contact p {
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
        }

        .footer-contact i {
            color: #00adb5;
        }

        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 15px;
        }

        .social-icons a {
            background-color: #2a2a40;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background 0.3s, color 0.3s;
        }

        .social-icons a:hover {
            background-color: #00adb5;
            color: #fff;
        }

        .footer-bottom {
            text-align: center;
            border-top: 1px solid #2a2a40;
            padding-top: 20px;
            font-size: 14px;
            color: #aaa;
        }

        /* --- Media Queries / Viewports Overrides --- */

        /* Small Tablet Breakpoint */
        @media (min-width: 480px) {
            .category-bar .container {
                grid-template-columns: repeat(3, 1fr); /* Snaps to 3 columns on small tabs */
            }
            .category-item:first-child {
                grid-column: auto; /* Reset home span */
            }
        }

        /* Full Desktop Breakpoint */
        @media (min-width: 768px) {
            nav .container {
                flex-direction: row;
                justify-content: space-between;
                gap: 0;
            }
            .logo { font-size: 24px; }
            .nav-links { gap: 25px; }
            .nav-links a { font-size: 15px; }
            header h1 { font-size: 52px; }
            header p { font-size: 18px; }

            /* Desktop Layout Overrides: Transitions from grid to neat single line line row */
            .category-bar { padding: 14px 0; }
            .category-bar .container {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 15px;
            }
            .category-item {
                /* min-width: 180px; */
                /* flex-wrap: wrap; */
                font-size: 14px;
                padding: 8px 18px;
                border-radius: 20px; /* Pillow capsule style for desktop symmetry */
            }

            .details-grid { grid-template-columns: 1fr 1fr; }
        }

        .contact{
            position: fixed;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 9999;
        }
        .contact img{
            width: 67px;
        }

        .link a{
            font-weight: bold;
        }
        .link a:hover{
            color: #1a1a2e;
        }
