* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto;
    background: #f6f7f9;
    padding-top: 5em;
}

/* ================== BANNER ================== */
.top-banner {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}

.banner-inner {
    max-width: 1200px;
    margin: auto;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
}

.banner-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.banner-left img {
    width: 55px;
}

.company-name {
    font-weight: 700;
    font-size: 15px;
}

.company-meta {
    font-size: 12px;
    color: #666;
}

.search-area {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 10px;
}

.search-area input,
.search-area select {
    padding: 10px 14px;
    border-radius: 25px;
    border: 1px solid #ddd;
}

.banner-right a {
    background: #25D366;
    color: #fff;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}

/* ================== PRODUCTS ================== */
.products-wrapper {
    padding: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    cursor: pointer;
    position: relative;
}

.product-card img {
    width: 100%;
    aspect-ratio: 1200 / 1486;
    object-fit: cover;
}

.product-name {
    padding: 14px;
    font-weight: 600;
}

/* ================== HOT DEAL ================== */
.hot-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff2d2d;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
}

/* ================== BACK TO TOP ================== */
#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #1a8cff;
    color: #fff;
    border: none;
    padding: 12px 14px;
    border-radius: 50%;
    display: none;
    cursor: pointer;
}

/* ================== MOBILE ================== */
@media (max-width: 768px) {
    
     /* Hide category dropdown */
    .search-area select {
        display: none;
    }
    
    
    body { padding-top: 240px; }

    .banner-inner {
        grid-template-columns: 1fr;
    }

    .search-area {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide toggle on desktop */
.mobile-toggle {
    display: none;
}

/* Mobile panel default hidden */
.mobile-panel {
    display: contents;
}

@media (max-width: 768px) {

    body {
        padding-top: 110px; /* MUCH smaller */
    }

    .banner-inner {
        grid-template-columns: 1fr;
        position: relative;
    }

    /* Mobile toggle button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    margin: 4px 0;
    border-radius: 2px;
}


@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
        margin-left: auto;
    }
}

    /* Hide panel by default */
    .mobile-panel {
        display: none;
        flex-direction: column;
        gap: 10px;
        padding-top: 10px;
        animation: slideDown 0.3s ease;
    }

    .mobile-panel.active {
        display: flex;
    }

    .search-area {
        grid-template-columns: 1fr;
    }

    .banner-right {
        display: flex;
        gap: 8px;
    }
}

/* Slide animation */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}