:root {
    --primary: #8B4513;
    --primary-light: #CD853F;
    --accent: #D4AF37;
    --text: #2D2D2D;
    --text-light: #6B6B6B;
    --cream: #FFF5E6;
    --brand-dark: #4E342E;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1.1rem 1.25rem;
    background: rgba(255,255,255,.28);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 20px;
    backdrop-filter: blur(18px);
    position: relative;
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
}

    /* Kahverengi çizgiyi kaldır */
    .header-section::before {
        content: none;
    }

.category-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-header-image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.9);
}

.category-title {
    font-weight: 800;
    font-size: 1.7rem;
    margin: 0;
    color: var(--brand-dark);
    background: var(--cream);
    padding: .32rem .7rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    line-height: 1.2;
}

/* Sadece Geri Dön sticky ve palete uygun renk */
.tools {
    position: sticky;
    top: 12px;
    z-index: 50;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    pointer-events: none;
}

    .tools .btn-back {
        pointer-events: auto;
    }

.btn-back,
.btn-back:link,
.btn-back:visited {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem 1.15rem;
    background: var(--cream);
    border: 1.5px solid rgba(78,52,46,.18);
    border-radius: 999px;
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: .98rem;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

    .btn-back:hover,
    .btn-back:focus {
        background: #ffffff;
        color: var(--brand-dark);
        box-shadow: 0 10px 28px rgba(0,0,0,.12);
    }

    .btn-back:active {
        transform: translateY(1px);
    }

    .btn-back:focus-visible {
        outline: 3px solid var(--accent);
        outline-offset: 3px;
    }

.products-list {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1rem;
}

@media (min-width:768px) {
    .products-list {
        grid-template-columns: repeat(2,1fr);
        gap: 1.4rem;
    }
}

@media (min-width:1024px) {
    .products-list {
        grid-template-columns: repeat(3,1fr);
        gap: 1.8rem;
    }
}

@media (max-width:420px) {
    .products-list {
        grid-template-columns: 1fr;
    }
}

/* Ürün kartı — daha küçük & daha opak */
.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,.42); /* opaklık arttı */
    border: 1px solid rgba(255,255,255,.58);
    backdrop-filter: blur(18px);
    min-height: 220px;
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 48px rgba(0,0,0,.22);
    }

.product-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,.9);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

    .product-image[src=""] {
        background: linear-gradient(45deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);
        background-size: 200% 200%;
        animation: shimmer 1.5s infinite;
    }

.product-name {
    margin-top: .75rem;
    font-weight: 700;
    font-size: 1.04rem;
    color: #fff;
    line-height: 1.35;
    text-shadow: 0 2px 6px rgba(0,0,0,.7);
    max-width: 95%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* AÇIKLAMA — görünür, okunur, arkaplanlı chip */
.product-desc {
    margin-top: .45rem;
    font-weight: 500;
    font-size: .96rem;
    line-height: 1.45;
    color: var(--brand-dark);
    background: rgba(255,245,230,.92); /* krem arka plan */
    padding: .5rem .7rem;
    border-radius: 12px;
    border: 1px solid rgba(78,52,46,.08);
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
    max-width: 95%;
    /* Uzunsa taşma kontrolü + satır sonlarını koru */
    white-space: pre-line;
    overflow: hidden;
    display: block;
}

/* İstersen kısaltma: destek varsa clamp uygula */
@supports (-webkit-line-clamp: 1) {
    .product-desc {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
}

/* Fiyat — kontrast artırıldı */
.product-price {
    margin-top: .6rem;
    font-weight: 800;
    font-size: 1.18rem;
    color: var(--brand-dark);
    background: #FFF5E6;
    padding: .5rem 1rem;
    border-radius: 999px;
    border: 1px solid #E8DCC4;
    text-shadow: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.currency {
    font-size: .9em;
    opacity: .9;
}

@keyframes shimmer {
    0% {
        background-position: -200% -200%;
    }

    100% {
        background-position: 200% 200%;
    }
}

@media (max-width:767px) {
    .container {
        padding: 1rem;
    }

    .category-header-image {
        width: 50px;
        height: 50px;
    }

    .category-title {
        font-size: 1.35rem;
        padding: .28rem .6rem;
    }

    .btn-back {
        padding: .5rem 1rem;
        font-size: .95rem;
    }

    .product-card {
        min-height: 210px;
        padding: .9rem;
    }

    .product-image {
        width: 88px;
        height: 88px;
    }

    .product-name {
        font-size: .98rem;
    }

    .product-desc {
        font-size: .94rem;
        -webkit-line-clamp: 4;
    }

    .product-price {
        font-size: 1.08rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
