/* renkler panelden geliyor (index.php içindeki :root) */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
    margin: 0;
    background: var(--zemin);
    color: var(--yazi);
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

/* üst kısım */
.ust {
    position: relative;
    text-align: center;
    padding: 56px 20px 34px;
}

.dil-sec {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    border: 1px solid color-mix(in srgb, var(--yazi) 18%, transparent);
    border-radius: 999px;
    overflow: hidden;
    font-size: 12px;
    letter-spacing: .08em;
}
.dil-sec a {
    padding: 5px 11px;
    text-decoration: none;
    opacity: .6;
}
.dil-sec a.secili {
    background: var(--yazi);
    color: var(--zemin);
    opacity: 1;
}

.marka { display: inline-block; text-decoration: none; }
.logo { max-height: 96px; width: auto; margin: 0 auto; }
.marka-yazi {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(38px, 9vw, 56px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: .01em;
}

.slogan {
    margin: 14px auto 0;
    max-width: 440px;
    font-size: 15px;
    font-weight: 300;
    opacity: .75;
}
.slogan::before,
.slogan::after {
    content: '';
    display: inline-block;
    width: 22px;
    height: 1px;
    background: var(--ana);
    vertical-align: middle;
    margin: 0 10px;
}

.iletisim {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    font-size: 13px;
    opacity: .7;
}
.iletisim a { text-decoration: none; border-bottom: 1px dotted currentColor; }

/* kategori çubuğu */
.kategori-cubuk {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--zemin) 92%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid color-mix(in srgb, var(--yazi) 10%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--yazi) 10%, transparent);
}
.kategori-ic {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    max-width: 1080px;
    margin: 0 auto;
    scrollbar-width: none;
}
.kategori-ic::-webkit-scrollbar { display: none; }
.kategori-ic a {
    flex: 0 0 auto;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid color-mix(in srgb, var(--yazi) 14%, transparent);
    transition: background .2s, color .2s, border-color .2s;
}
.kategori-ic a.aktif {
    background: var(--ana);
    border-color: var(--ana);
    color: #fff;
}

/* bölümler */
.menu {
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px 16px 40px;
}

.bolum { padding-top: 34px; }

.bolum-bas {
    text-align: center;
    margin-bottom: 22px;
}
.bolum-bas h2 {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(30px, 6vw, 40px);
    font-weight: 600;
    line-height: 1.1;
}
.bolum-bas p {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 300;
    opacity: .7;
}
.bolum-bas::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    margin: 14px auto 0;
    background: var(--ana);
    border-radius: 2px;
}

.urunler {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 760px) {
    .urunler { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ürün kartı */
.urun {
    display: flex;
    gap: 14px;
    padding: 12px;
    background: var(--kart);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 18px -10px rgba(0, 0, 0, .12);
}
.urun.gorselsiz { padding: 16px 18px; }

.urun-gorsel {
    flex: 0 0 104px;
    height: 104px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: color-mix(in srgb, var(--yazi) 6%, transparent);
    cursor: zoom-in;
}
.urun-gorsel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.urun-gorsel:hover img { transform: scale(1.05); }

.urun-govde {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.urun-ust {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}
.urun h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.35;
}
.fiyat {
    flex: 0 0 auto;
    font-weight: 600;
    font-size: 15px;
    color: var(--ana);
    white-space: nowrap;
}

.aciklama {
    margin: 5px 0 0;
    font-size: 13.5px;
    font-weight: 300;
    opacity: .75;
}

.etiket {
    align-self: flex-start;
    margin-top: 8px;
    padding: 2px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--yazi) 10%, transparent);
}
.urun.tukendi .urun-gorsel img,
.urun.tukendi h3,
.urun.tukendi .fiyat { opacity: .45; }
.urun.tukendi .fiyat { text-decoration: line-through; }

/* kalori / alerjen açılır alan */
.detay {
    margin-top: auto;
    padding-top: 8px;
    font-size: 12.5px;
}
.detay summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: .6;
    user-select: none;
}
.detay summary::-webkit-details-marker { display: none; }
.detay summary::after {
    content: '+';
    font-size: 15px;
    line-height: 1;
    transition: transform .2s;
}
.detay[open] summary::after { transform: rotate(45deg); }
.detay dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 10px;
    margin: 8px 0 4px;
}
.detay dt { font-weight: 500; }
.detay dd { margin: 0; opacity: .8; }
.detay small { display: block; opacity: .55; }

.bos {
    text-align: center;
    padding: 60px 0;
    opacity: .6;
}

/* alt kısım */
.alt {
    text-align: center;
    padding: 30px 20px 44px;
    font-size: 13px;
    opacity: .6;
}
.alt p { margin: 4px 0; }

.yukari {
    position: fixed;
    right: 16px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--yazi);
    color: var(--zemin);
    text-decoration: none;
    font-size: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
    z-index: 30;
}
.yukari.gorunur { opacity: .85; pointer-events: auto; }

/* görsel büyütme */
.buyutec {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .82);
    cursor: zoom-out;
}
.buyutec[hidden] { display: none; }
.buyutec img {
    max-width: min(92vw, 720px);
    max-height: 86vh;
    border-radius: 14px;
    object-fit: contain;
}

@media (max-width: 380px) {
    .urun-gorsel { flex-basis: 86px; height: 86px; }
    .urun h3 { font-size: 13px; }
}
