* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 70px;
    background: radial-gradient(circle at top, #0f2027, #000000);
    color: white;
}

main {
    flex: 1;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.search-box {
    position: relative;
    flex: 1;
    margin: 0 12px;
}

.search-box input {
    width: 100%;
    padding: 7px 10px 7px 30px;
    font-size: 12px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    outline: none;
}

.search-box i {
    position: absolute;
    top: 50%;
    left: 8px;
    font-size: 12px;
    opacity: 0.7;
    transform: translateY(-50%);
}

.header-icon {
    font-size: 18px;
    color: white;
    cursor: pointer;
}

.hero {
    padding: 35px 20px;
    text-align: center;
}

.hero h1 {
    margin-bottom: 8px;
    font-size: 26px;
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
}

.hero p {
    font-size: 14px;
    opacity: 0.8;
}

.section-title {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 20px;
    color: #00ffff;
    text-align: center;
}

.filter-bar {
    display: flex;
    gap: 8px;
    padding: 0 12px;
    margin-bottom: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 11px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn.active {
    color: black;
    background: linear-gradient(45deg, #00ffff, #39ff14);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pag-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    color: #00ffff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.pag-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-num {
    background: none;
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 12px;
}

.page-num.active {
    background: #00ffff;
    color: black;
    box-shadow: 0 0 10px #00ffff;
}

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 12px 20px;
}

.product-card {
    display: flex;
    flex-direction: column;
    padding: 10px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
    transition: 0.3s;
}

.product-card:hover {
    box-shadow: 0 0 20px #00ffff;
    transform: translateY(-4px);
}

.product-card img {
    width: 100%;
    height: 50%;
    margin-bottom: 6px;
    object-fit: cover;
    border-radius: 15px;
}

.product-card h3 {
    display: -webkit-box;
    height: 36px;
    margin-bottom: 3px;
    overflow: hidden;
    font-size: 12px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #39ff14;
}

.product-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    margin-bottom: 12px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.8);
}

.stat-item i {
    width: 12px;
    color: #00ffff;
    text-align: center;
}

.detail-btn {
    display: block;
    width: 100%;
    padding: 6px 0;
    margin-top: auto;
    font-size: 10px;
    font-weight: 600;
    color: black;
    text-decoration: none;
    background: linear-gradient(45deg, #00ffff, #39ff14);
    border-radius: 6px;
}

@media (max-width: 768px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
}
