/* magazine teması — tema PHP dosyasından ayrıldı.
   Dinamik değerler (kapak görseli, sütun sayısı) PHP tarafında
   :root değişkeni olarak basılır. */
:root {
    --accent: #c9a96a;
    /* Üst (hero) rengi — panelden değiştirilebilir; qrkafe_header_override_css() bu değişkenleri ezer */
    --header-tint-1: rgba(15,15,15,.72); --header-tint-2: rgba(15,15,15,.9);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
  html, body { overflow-x: hidden; }
  body { font-family: 'DM Sans', sans-serif; background: #f4f1ec; color: #1a1a1a; line-height: 1.5; min-height: 100vh; }
  .wrap { max-width: 720px; margin: 0 auto; }
  .hero {
    position: relative;
    background: linear-gradient(180deg, var(--header-tint-1), var(--header-tint-2)), var(--hero-cover) center/cover no-repeat;
    color: #f4f1ec;
    padding: 44px 24px 64px;
    text-align: center;
    overflow: hidden;
  }
  .hero::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 40px; background: #f4f1ec; border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform: scaleX(1.4); }
  .logo-card { position: relative;display:block; z-index: 1; width: min(300px, 78vw); margin: 0 auto 18px; background: #fff; border-radius: 24px; padding: 18px 24px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
  .logo-card img { width: 100%; display: block; height: auto; }
  .crown { position: relative; z-index: 1; display: inline-block; font-family: 'Playfair Display', serif; font-style: italic; font-size: 13px; letter-spacing: 6px; color: var(--accent); margin-bottom: 8px; text-transform: uppercase; }
  .hero h1 { position: relative; z-index: 1; font-family: 'Playfair Display', serif; font-weight: 900; font-size: 44px; letter-spacing: 1px; line-height: 1; margin-bottom: 12px; }
  .divider { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 10px; color: var(--accent); }
  .divider::before, .divider::after { content: ''; width: 32px; height: 1px; background: var(--accent); }
  .subtitle { position: relative; z-index: 1; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; opacity: .86; }
  .categories { padding: 8px 14px 30px; }
  .category { background: #fff; border-radius: 22px; margin-bottom: 14px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.04); transition: box-shadow .3s ease; }
  .category.open { box-shadow: 0 12px 36px rgba(0,0,0,.1); }
  .cat-head { display: flex; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; user-select: none; }
  .cat-thumb { width: 62px; height: 62px; border-radius: 16px; background-size: cover; background-position: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
  .cat-info { flex: 1; min-width: 0; }
  .cat-name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: #1a1a1a; line-height: 1.1; margin-bottom: 4px; }
  .cat-meta { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #999; }
  .cat-arrow { width: 36px; height: 36px; border-radius: 50%; background: #f4f1ec; display: grid; place-items: center; transition: .3s ease; flex-shrink: 0; color: #1a1a1a; }
  .cat-arrow svg { width: 14px; height: 14px; display: block; transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1); }
  .category.open .cat-arrow { background: #1a1a1a; color: var(--accent); }
  .category.open .cat-arrow svg { transform: rotate(180deg); }
  .cat-body { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
  .category.open .cat-body { max-height: 9999px; }
  .cat-divider { height: 1px; background: linear-gradient(90deg, transparent, #e6dfd1, transparent); margin: 0 20px 18px; }
  .cat-body-inner { padding: 0 14px 18px; }
  .item { display: block; background: #faf8f4; border-radius: 18px; overflow: hidden; margin-bottom: 14px; cursor: pointer; }
  .item:last-child { margin-bottom: 0; }
  .item-img { width: 100%; aspect-ratio: 4 / 3; background-size: cover; background-position: center; background-color: #efe6d8; position: relative; }
  .item-badge { position: absolute; top: 12px; left: 12px; padding: 6px 12px; background: rgba(255,255,255,.95); color: #1a1a1a; font-size: 10px; letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase; border-radius: 999px; }
  .item-body { padding: 16px 18px 18px; }
  .item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
  .item-name { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: #1a1a1a; line-height: 1.2; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .item-price { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; color: #1a1a1a; white-space: nowrap; }
  .item-desc { font-size: 13.5px; color: #6b6b6b; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .footer { text-align: center; padding: 30px 24px 40px; color: #888; }
  .footer-brand { font-family: 'Playfair Display', serif; font-style: italic; font-size: 25px; color: #1a1a1a; margin-bottom: 8px; }
  .footer a { color: #1a1a1a; font-weight: 700; text-decoration: none; }
  .footer{--ce-paper:#fff;--ce-ink:#1a1a1a;--ce-soft:#888;--ce-line:#e6dfd1;--ce-bg:#faf8f4;--ce-accent:#c9a96a;--ce-accent-soft:#f5efe3;--ce-feedback-bg:#1a1a1a;--ce-feedback-fg:#fffaf4}
