:root {
    --accent: #ffd700;
    --dark: #0b0f14;
    --card: #151b23;
    --gray: #9aa4af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark);
    color: white;
    font-family: system-ui;
}

/* BANNER */
.banner {
    height: 120px;
    overflow: hidden;
    position: relative;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

/* HEADER */
.header-box {
    background: white;
    color: black;
    border-radius: 25px;
    padding: 20px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* TOP */
.top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.title h1 {
    font-size: 1.4rem;
    font-weight: 700;
}

.title p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* SOCIAL */
.socials {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    justify-content: space-around;
}

.socials i {
    background: #111;
    color: white;
    padding: 10px;
    border-radius: 50%;
    transition: 0.2s;
    cursor: pointer;
}

.socials i:hover {
    background: var(--accent);
    color: black;
}

#menus {
    background: var(--accent);
    color: black;
}

/* SEARCH */
.search {
    display: flex;
    align-items: center;
    margin-top: 15px;
    background: #f1f1f1;
    border-radius: 12px;
    padding: 10px;
}

.search input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
}

/* CATEGORY */
.category-wrapper {
    position: sticky;
    top: 0;
    background: var(--dark);
    padding: 15px 0;
    z-index: 100;
}

#categoryScroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 20px;

    scroll-behavior: smooth;
    scrollbar-width: none;
}

#categoryScroll::-webkit-scrollbar {
    display: none;
}

#categoryScroll button {
    flex: 0 0 auto;
    background: var(--card);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    white-space: nowrap;
    transition: 0.2s;
    cursor: pointer;
}

#categoryScroll button:hover {
    background: #222;
}

#categoryScroll button.active {
    background: var(--accent);
    color: black;
}

/* PRODUCTS */
.products {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.products h2 {
    margin-bottom: 15px;
}

/* GRID */
#productList {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* CARD */
.card {
    display: flex;
    gap: 12px;
    background: var(--card);
    border-radius: 15px;
    padding: 12px;
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    background: #1c2430;
}

.card img {
    width: 95px;
    height: 95px;
    border-radius: 12px;
    object-fit: cover;
}

.info h3 {
    font-size: 1rem;
}

.info p {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 5px 0;
}

.price {
    color: var(--accent);
    font-weight: bold;
}

/* LINKS MENU */
#linkm {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: #0b0f14;
    z-index: 1000;
    padding: 20px;
}

#linkm.show {
    display: flex;
}

.links a {
    text-decoration: none;
    background: var(--card);
    color: white;
    padding: 12px;
    border-radius: 12px;
    margin-top: 10px;
}

.links a:hover {
    background: var(--accent);
    color: black;
}

/* CLOSE */
.xBox {
    display: flex;
    justify-content: flex-end;
}

.xBox i {
    font-size: 20px;
}

/* RESPONSIVE */
@media (min-width: 768px) {
    #productList {
        grid-template-columns: repeat(2, 1fr);
    }
    #menus {
        display: none;
    }
}

@media (min-width: 1200px) {
    #productList {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 🔥 EN ÖNEMLİ FIX */
    #categoryScroll {
        justify-content: flex-start;
        max-width: 1100px;
        margin: auto;
    }

    .socials {
        display: flex;
        gap: 12px;
        margin-top: 15px;
        justify-content: center;
    }

    .banner {
        height: 300px;
        overflow: hidden;
        position: relative;
    }
}