* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #fdfdfd; color: #000; font-family: 'Segoe UI', sans-serif; overflow-x: hidden; }

.bg-animation { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.circle { position: absolute; border-radius: 50%; background: rgba(0,0,0,0.02); animation: float 15s infinite alternate; }
.circle:nth-child(1) { width: 300px; height: 300px; top: 5%; left: 5%; }
.circle:nth-child(2) { width: 250px; height: 250px; top: 60%; left: 75%; }
@keyframes float { from { transform: translate(0,0); } to { transform: translate(40px, 60px); } }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; border-bottom: 2px solid #000; position: sticky; top: 0; background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); z-index: 100; }
.logo { font-size: 20px; font-weight: bold; cursor: pointer; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { font-weight: bold; font-size: 13px; text-transform: uppercase; cursor: pointer; }
.cart-trigger { background: #000; color: #fff; border: none; padding: 8px 20px; cursor: pointer; border-radius: 20px; }

.main-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { padding: 30px; border-right: 1px solid #eee; }
.filter-btn { display: block; width: 100%; text-align: left; background: none; border: none; padding: 10px 0; cursor: pointer; font-size: 13px; color: #555; }
.filter-btn.active { font-weight: bold; color: #000; text-decoration: underline; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 25px; padding: 30px; }
.card { border: 1px solid #eee; padding: 15px; text-align: center; background: #fff; transition: 0.3s; }
.card:hover { transform: translateY(-10px); border-color: #000; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.card img { width: 100%; height: 220px; object-fit: contain; }
.add-btn { width: 100%; padding: 12px; background: #000; color: #fff; border: none; cursor: pointer; font-weight: bold; }

.modal { display: none; position: fixed; z-index: 1000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); overflow-y: auto; }
.modal-content { background: #fff; margin: 50px auto; padding: 30px; border: 1px solid #000; position: relative; }
.product-modal-fix { max-width: 900px !important; }
.modal-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.modal-left img { width: 100%; max-height: 400px; object-fit: contain; margin-bottom: 15px; }
.modal-review-section { border-left: 1px solid #eee; padding-left: 30px; }
.review-scroll-area { max-height: 250px; overflow-y: auto; background: #fafafa; padding: 15px; border: 1px solid #eee; margin-bottom: 15px; }

.shopee-input { width: 100%; padding: 10px; margin: 5px 0; border: 1px solid #ddd; outline: none; }
.final-total { color: #ee4d2d; font-size: 24px; font-weight: bold; margin: 15px 0; }
.shopee-place-order { width: 100%; background: #ee4d2d; color: #fff; border: none; padding: 15px; font-weight: bold; cursor: pointer; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card { border: 2px solid #000; padding: 30px; text-align: center; background: #fff; }
.close-btn { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; z-index: 10; }
.form-input { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ddd; }

.review-dashboard { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.02); margin: 0 30px 30px 30px; }
.review-controls { display: flex; gap: 10px; margin-bottom: 20px; align-items: center; border-bottom: 2px solid #eee; padding-bottom: 15px; }
.review-controls .add-btn { width: auto; padding: 10px 20px; border-radius: 20px; }
.active-mode { background: #000 !important; }
.inactive-mode { background: #888 !important; }
.review-stats-grid { display: grid; grid-template-columns: 1.5fr 2fr; gap: 30px; align-items: center; margin-bottom: 20px; }
.rating-summary { text-align: center; border-right: 1px solid #eee; padding-right: 20px; }
.rating-summary h1 { font-size: 55px; color: #ee4d2d; margin: 0; line-height: 1; }
.rating-chart-container { width: 100%; }
.review-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; background: #fafafa; padding: 15px; border-radius: 8px; border: 1px solid #eee; }
.filter-star { background: #fff; border: 1px solid #ddd; padding: 6px 15px; border-radius: 20px; cursor: pointer; transition: 0.2s; font-size: 13px; }
.filter-star:hover { border-color: #ee4d2d; color: #ee4d2d; }
.active-star { border-color: #ee4d2d; color: #ee4d2d; font-weight: bold; background: #fff2f0; }
.advanced-review-list { max-height: 500px; overflow-y: auto; padding-right: 10px; }
.gen-review-card { border: 1px solid #eee; padding: 20px; background: #fff; margin-bottom: 15px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.01); }

.pay-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    background: white;
}
.pay-option:has(input:checked) {
    border-color: #ee4d2d;
    color: #ee4d2d;
    background: #fff2f0;
}
.shopee-input {
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 14px;
    border-radius: 2px;
}
.shopee-input:focus {
    border-color: #ee4d2d;
    outline: none;
}

.main-footer {
    background: #fbfbfb;
    padding: 60px 5% 30px;
    border-top: 1px solid #eee;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h4 {
    font-size: 13px;
    font-weight: bold;
    color: #555;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.footer-column ul li:hover {
    color: #ee4d2d;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 12px;
    color: #888;
}

@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 15px;
        display: flex;
        overflow-x: auto;
        gap: 10px;
        white-space: nowrap;
        border-right: none;
        border-bottom: 1px solid #eee;
        position: sticky;
        top: 70px;
        z-index: 90;
    }

    .sidebar section {
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .sidebar h3, .moving-ads, .sidebar button[onclick*="loginModal"] {
        display: none;
    }

    .filter-btn {
        display: inline-block;
        width: auto;
        padding: 5px 15px;
        background: #fff;
        border-radius: 15px;
        border: 1px solid #000;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px;
        gap: 15px;
    }

    .card img {
        height: 150px;
    }

    .navbar {
        padding: 10px 15px;
    }

    .logo {
        font-size: 16px;
    }

    .nav-links {
        gap: 10px;
    }

    .modal-content {
        width: 95% !important;
        margin: 20px auto;
        padding: 15px;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .review-stats-grid {
        grid-template-columns: 1fr;
    }

    .rating-summary {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 30px 20px;
    }

    .shopee-checkout {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
