:root {
    --primary: #ff8c00;
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --bg-input: #252525;
    --text-main: #f0f0f0;
    --text-muted: #888;
    --border: #333;
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-bottom: 80px;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- LOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, #1f1f1f 0, #0b0b0b 55%, #000 100%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.pan-loader {
    position: relative;
    width: 80px;
    height: 80px;
}

.pan {
    width: 60px;
    height: 15px;
    background: #555;
    border-radius: 0 0 20px 20px;
    position: absolute;
    bottom: 20px;
    left: 10px;
    animation: toss 1.2s ease-in-out infinite;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.pan::after {
    content: '';
    position: absolute;
    right: -25px;
    top: -5px;
    width: 30px;
    height: 8px;
    background: #333;
    transform: rotate(-15deg);
    border-radius: 5px;
}

.food {
    width: 30px;
    height: 10px;
    background: var(--primary);
    border-radius: 5px;
    position: absolute;
    bottom: 35px;
    left: 25px;
    animation: jump 1.2s ease-in-out infinite;
}

.loading-text {
    margin-top: 15px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #ccc;
}

@keyframes toss {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg) translateY(-2px);
    }
    75% {
        transform: rotate(10deg) translateY(-2px);
    }
}

@keyframes jump {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* --- HEADER --- */
header {
    background: linear-gradient(90deg, #141414, #1f1f1f);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
}

.brand {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    cursor: pointer;
}

.brand span {
    color: var(--primary);
}

.header-btns {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.25s ease;
}

.icon-btn:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* --- SEARCH --- */
.search-area {
    padding: 20px 20px 5px;
}

.search-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    background: var(--bg-input);
    color: #fff;
    outline: none;
    transition: 0.25s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-input::placeholder {
    color: #777;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.4);
}

/* --- CONTAINER --- */
.container {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* KATEGORİLER */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 1/1;
    border: 1px solid transparent;
    transition: 0.25s ease;
    transform: translateZ(0);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.cat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.06);
}

.cat-card:active {
    transform: scale(0.97);
}

.cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: transform 0.5s ease;
}

.cat-card:hover .cat-img {
    transform: scale(1.05);
}

.cat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.1) 60%);
    pointer-events: none;
}

.cat-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* --- ÜRÜN NAVİGASYON & FİLTRELER --- */
.nav-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.nav-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-btn {
    background: var(--bg-input);
    border: none;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
}

.page-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.filter-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.sort-select {
    background: var(--bg-input);
    color: #fff;
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 8px;
    outline: none;
    font-size: 0.85rem;
}

/* --- ÜRÜN KARTLARI --- */
#productList {
    transition: 0.3s;
}

.product-card {
    display: flex;
    background: var(--bg-card);
    margin-bottom: 15px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 110px;
    transform: translateZ(0);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
}

.prod-img-box {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    background: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.prod-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.prod-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prod-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.prod-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.2;
}

.prod-price {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.prod-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Placeholder Tasarımı */
.placeholder-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    font-size: 0.6rem;
    color: #555;
    font-weight: 700;
    text-transform: uppercase;
}

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- FOOTER --- */
.footer-ad {
    text-align: center;
    padding: 30px;
    font-size: 0.75rem;
    color: #444;
    margin-top: 30px;
}

.footer-ad a {
    color: #666;
    text-decoration: none;
}

