:root {
    --gold: #d4af37;
    --black: #111111;
    --dark: #1c1c1c;
    --white: #ffffff;
    --gray: #f4f4f4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: var(--gray);
    color: #222;
}

header {
    background: var(--black);
    color: var(--white);
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    color: var(--gold);
    font-size: 25px;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
}

nav a:hover {
    color: var(--gold);
}

.cart-button {
    background: var(--gold);
    color: #111;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.hero {
    background: linear-gradient(120deg, #111, #38301a);
    color: white;
    text-align: center;
    padding: 55px 20px;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 12px;
    color: var(--gold);
}

.hero p {
    margin-bottom: 25px;
}

.search-box {
    max-width: 650px;
    margin: auto;
    display: flex;
}

.search-box input {
    flex: 1;
    min-width: 0;
    padding: 14px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.search-box button {
    padding: 14px 20px;
    background: var(--gold);
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 0 5px 5px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 35px auto;
}

.section-heading {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.section-heading h2 {
    font-size: 25px;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.category {
    background: white;
    padding: 22px 12px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    color: #222;
    box-shadow: 0 2px 8px #0000000c;
    cursor: pointer;
    border: 1px solid transparent;
}

.category:hover,
.category.active {
    border-color: var(--gold);
    background: #fff9e7;
}

.category .emoji {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.product {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px #0000000c;
    transition: transform 0.2s;
}

.product:hover {
    transform: translateY(-4px);
}

.product-image {
    height: 190px;
    background: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 65px;
}

.product-info {
    padding: 17px;
}

.product-info h3 {
    margin-bottom: 9px;
    font-size: 18px;
}

.description {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.price {
    font-size: 21px;
    color: #947313;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-info button {
    width: 100%;
    padding: 12px;
    background: var(--black);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.product-info button:hover {
    background: #947313;
}

.sell-banner {
    margin-top: 45px;
    background: var(--gold);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.sell-banner h2 {
    margin-bottom: 8px;
}

.sell-banner a {
    background: #111;
    color: white;
    padding: 13px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.empty-message {
    grid-column: 1 / -1;
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
}

footer {
    margin-top: 45px;
    background: #111;
    color: white;
    text-align: center;
    padding: 25px;
}

footer a {
    color: var(--gold);
    margin: 0 8px;
    text-decoration: none;
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    nav {
        justify-content: center;
    }

    .cart-button {
        width: 100%;
    }

    .container {
        width: 92%;
    }
}