:root {
    --dark: #020617;
    --mid: #090909;
    --light: #f6f7f9;
    --border: #e5e7eb;
    --blue: #2563eb;
    --green: #16a34a;
    --text: #111;
}

/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ================= HEADER ================= */

header {
    background: var(--mid);
    color: #fff;
    padding: 18px 5%;
    text-align: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

/* ================= SCROLL MENU ================= */

.scroll-menu {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    text-align: center;
    border-top: 1px solid #1f2933;
    border-bottom: 1px solid #1f2933;
    padding: 8px 0;
    background: #000;
}

.scroll-menu::-webkit-scrollbar {
    display: none;
}

.scroll-menu .inner {
    display: inline-flex;
    width: max-content;
}

.scroll-menu a {
    padding: 8px 18px;
    flex-shrink: 0;
    color: #fff;
    opacity: 0.85;
}

.scroll-menu a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ================= CATEGORY HERO ================= */

.category-hero {
    background: linear-gradient(135deg, #0f172a, #020617);
    color: #fff;
    text-align: center;
    padding: 70px 5%;
}

.category-hero h1 {
    font-size: 34px;
    margin-bottom: 10px;
}

.category-hero p {
    font-size: 14px;
    opacity: 0.9;
    max-width: 720px;
    margin: auto;
}

/* ================= CATEGORY PRODUCTS ================= */

.category-products {
    padding: 80px 5%;
    background: #ffffff;
}

.category-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 26px;
}

/* ================= PRODUCT CARD ================= */

.product-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
}

.product-card img {
    border-radius: 8px;
}

.product-card h3 {
    margin: 14px 0 6px;
    font-size: 17px;
}

.product-card p {
    font-size: 13px;
    color: #444;
}

/* ================= PRICE ================= */

.price {
    margin-top: 10px;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}

/* ================= VIEW BUTTON ================= */

.view-btn {
    margin-top: auto;
    display: block;
    background: var(--blue);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    transition: 0.3s;
}

.view-btn:hover {
    background: #1e4ed8;
}

/* ================= FOOTER ================= */

footer {
    background: #000;
    color: #bbb;
    padding: 32px 5%;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

footer h4 {
    color: #fff;
}

footer a {
    display: block;
    margin-bottom: 6px;
}

.copyright {
    text-align: center;
    margin-top: 22px;
    border-top: 1px solid #222;
    padding-top: 16px;
}

/* ================= MOBILE OPTIMIZATION ================= */

@media (max-width: 768px) {

    .category-hero h1 {
        font-size: 26px;
    }

    .category-products {
        padding: 60px 5%;
    }
}

@media (max-width: 480px) {

    .category-hero {
        padding: 60px 5%;
    }

    .category-hero p {
        font-size: 13px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Thin scrollbar */
::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-thumb {
    background: #b5b5b5;
    border-radius: 2px;
}

::-webkit-scrollbar-track {
    background: transparent;
}