/* Google Font */
/* --- Shopping Cart Sidebar Style --- */
/* បន្ថែម Effect ពេលដាក់ Mouse លើ Logo */
.logo-link {
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05); /* រីកបន្តិចពេលដាក់ Mouse លើ */
    opacity: 0.9;
}

.logo-link:active {
    transform: scale(0.95); /* រួមតូចបន្តិចពេលចុចលើវា */
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* លាក់ទុកនៅខាងក្រៅអេក្រង់ */
    width: 380px;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-sidebar.active {
    right: 0; /* បង្ហាញខ្លួនមកវិញ */
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 20px;
    color: #00d2ff;
}

.close-cart {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
}

.close-cart:hover { color: #ff4757; }

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.empty-cart-msg {
    text-align: center;
    color: #64748b;
    margin-top: 50px;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.total-price { color: #00d2ff; }

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    transition: 0.3s;
}

.checkout-btn:hover { background: #2563eb; transform: translateY(-2px); }

.view-cart-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.view-cart-btn:hover { background: rgba(255, 255, 255, 0.05); }

/* Overlay Background */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 1999;
}

.cart-overlay.active { display: block; }

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #0f172a; /* ពណ៌ផ្ទៃក្រោយងងឹត */
    color: white;
    line-height: 1.6;
}

/* --- Header & Navbar --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 5%;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    background: #00d2ff;
    color: #fff;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 18px;
}

.shop-name {
    font-weight: 700;
    font-size: 20px;
    display: block;
}

.tagline {
    font-size: 10px;
    color: #00d2ff;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a.active, .nav-links a:hover {
    color: #00d2ff;
}

/* Right Section: Search & Auth */
.right-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: #94a3b8;
}

.search-box input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 15px 8px 35px;
    border-radius: 20px;
    color: white;
    width: 180px;
    outline: none;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-login {
    text-decoration: none;
    color: white;
    font-size: 14px;
}

.btn-register {
    text-decoration: none;
    background: #3b82f6;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.btn-register:hover {
    background: #2563eb;
}

/* --- Hero Section --- */
/* --- Modern Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    padding-top: 100px; /* Offset សម្រាប់ Header */
    /* បន្ថែមពន្លឺផ្ទៃខាងក្រោយតិចៗ */
    background: radial-gradient(circle at right center, rgba(0, 210, 255, 0.05) 0%, #0f172a 60%);
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: 55px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    color: #94a3b8;
    margin-bottom: 40px;
}

/* Button ថ្មី Clean និងមាន Shadow ស្អាត */
.start-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #00d2ff, #3b82f6);
    color: #ffffff;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2);
}

.start-btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.start-btn:hover {
    box-shadow: 0 15px 25px rgba(0, 210, 255, 0.4);
    transform: translateY(-3px);
}

/* ពេល Hover លើ Button ឱ្យសញ្ញាព្រួញរុញទៅមុខបន្តិច */
.start-btn:hover i {
    transform: translateX(5px);
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ពន្លឺនៅពីក្រោយកុំព្យូទ័រ (Glow Effect) */
.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(0, 210, 255, 0.15);
    filter: blur(100px);
    border-radius: 50%;
    z-index: -1;
}

.laptop-img {
    max-width: 100%;
    width: 700px; /* អាចសារ៉េធំតូចតាមចិត្ត */
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    /* ដាក់ចលនា Animation ឈ្មោះ float រយៈពេល 6 វិនាទី វិលជុំរហូត */
    animation: float 6s ease-in-out infinite;
}

/* --- Keyframes សម្រាប់ចលនាអណ្តែត (Floating Animation) --- */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px); /* អណ្តែតឡើងលើ 20px */
    }
    100% {
        transform: translateY(0px);
    }
}

/* Responsive សម្រាប់ទូរស័ព្ទ និង Tablet */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 120px;
    }
    .hero-content {
        margin-bottom: 50px;
    }
    .hero-title {
        font-size: 40px;
    }
    .hero-image-container {
        justify-content: center;
    }
    .laptop-img {
        width: 90%;
    }
}

/* --- Modern Footer Style --- */
.modern-footer {
    background: #000;
    color: white;
    padding: 80px 8% 30px;
    border-top: 1px solid #222;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-subscribe h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.subscribe-form {
    display: flex;
    border-bottom: 1.5px solid white;
    padding-bottom: 10px;
    margin-bottom: 30px;
    max-width: 400px;
}

.subscribe-form input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    font-size: 15px;
}

.subscribe-form button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-social a {
    color: white;
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: 0.3s;
}

.footer-social a:hover {
    border: 1px solid white;
    border-radius: 50%;
}

.app-download img {
    height: 38px;
    margin-right: 12px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.footer-link-col h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.footer-link-col ul {
    list-style: none;
}

.footer-link-col ul li {
    margin-bottom: 12px;
}

.footer-link-col ul li a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-link-col ul li a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #222;
    padding-top: 30px;
    font-size: 12px;
    color: #666;
}

.country-select {
    background: transparent;
    color: #aaa;
    border: 1px solid #333;
    padding: 6px 12px;
    border-radius: 5px;
}

.bottom-right a {
    color: #666;
    text-decoration: none;
    margin-left: 20px;
}

.bottom-right a:hover { color: white; }

/* Responsive */
@media (max-width: 992px) {
    .footer-top { grid-template-columns: 1fr; }
    .hero { flex-direction: column; text-align: center; height: auto; padding-top: 150px; }
    .laptop-img { width: 100%; margin-top: 50px; }
}





/* --- Shop Page Styles --- */

.shop-banner {
    text-align: center;
    padding: 150px 20px 60px;
    background: linear-gradient(to bottom, rgba(0,210,255,0.1), transparent);
}

.shop-banner h1 {
    font-size: 40px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.shop-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    margin-bottom: 100px;
}

/* Sidebar Filter */
.filter-sidebar h3 {
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    color: #00d2ff;
}

.filter-sidebar ul {
    list-style: none;
    margin-bottom: 40px;
}

.filter-sidebar ul li {
    margin-bottom: 15px;
}

.filter-sidebar ul li a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    transition: 0.3s;
}

.filter-sidebar ul li a.active, 
.filter-sidebar ul li a:hover {
    color: white;
    padding-left: 5px;
}

.price-filter button {
    display: block;
    width: 100%;
    background: #1e293b;
    border: 1px solid #333;
    color: #ccc;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.3s;
}

.price-filter button:hover {
    background: #3b82f6;
    color: white;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: 0.4s;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 20px;
    z-index: 2;
    text-transform: uppercase;
}

.product-badge.sale { background: #ef4444; }

.product-img {
    position: relative;
    height: 250px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img img {
    width: 80%;
    transition: 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transition: 0.3s;
    display: flex;
    justify-content: center;
    opacity: 0;
}

.product-card:hover .product-overlay {
    bottom: 0;
    opacity: 1;
}

.add-cart-btn {
    background: white;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.product-info {
    padding: 20px;
}

.product-info .category {
    font-size: 11px;
    color: #3b82f6;
    text-transform: uppercase;
    font-weight: bold;
}

.product-info h4 {
    margin: 5px 0 10px;
    font-size: 18px;
    color: white;
}

.product-info .price {
    font-weight: 700;
    color: #fff;
    font-size: 16px;
}

.product-info .price span {
    text-decoration: line-through;
    color: #64748b;
    font-size: 14px;
    margin-right: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .shop-container { grid-template-columns: 1fr; }
    .filter-sidebar { display: none; } /* លាក់ sidebar លើទូរស័ព្ទដើម្បីឱ្យមើលស្រួល */
}

/* Modern Footer Styling - Based on Provided Image */
.modern-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 80px 8% 40px 8%;
    font-family: 'Poppins', sans-serif;
    border-top: 1px solid #1a1a1a;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-left-content {
    flex: 1;
    min-width: 300px;
}

.footer-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.subscribe-input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid #ffffff;
    padding-bottom: 8px;
    max-width: 380px;
    margin-bottom: 35px;
}

.subscribe-input-wrapper input {
    background: transparent;
    border: none;
    color: #ffffff;
    width: 100%;
    outline: none;
    font-size: 15px;
}

.subscribe-input-wrapper button {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
}

.footer-social-icons {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
}

.footer-social-icons a {
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-social-icons a:hover {
    opacity: 0.6;
}

.app-badges {
    display: flex;
    gap: 15px;
}

.app-badges img {
    height: 38px;
    cursor: pointer;
}

/* Links Grid */
.footer-links-container {
    flex: 1.5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    min-width: 450px;
}

.link-column h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.link-column ul {
    list-style: none;
}

.link-column ul li {
    margin-bottom: 12px;
}

.link-column ul li a {
    text-decoration: none;
    color: #999999;
    font-size: 14px;
    transition: color 0.3s;
}

.link-column ul li a:hover {
    color: #ffffff;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    border-top: 1px solid #1a1a1a;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666666;
}

.custom-select {
    background: transparent;
    color: #ffffff;
    border: 1px solid #333333;
    padding: 8px 15px;
    border-radius: 4px;
    outline: none;
    font-size: 12px;
}

.bottom-right-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.legal-links a {
    color: #666666;
    text-decoration: none;
    margin-left: 15px;
}

.legal-links a:hover {
    color: #ffffff;
}

/* Responsive for Mobile */
@media (max-width: 900px) {
    .footer-links-container {
        grid-template-columns: 1fr 1fr;
        min-width: 100%;
    }
    .footer-bottom-bar {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}