/* =====================================================
   RESET & BASE
===================================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f6f6f6;
  color: #222;
  padding-bottom: 90px; /* sabit WhatsApp için alan */
}

a {
  text-decoration: none;
  color: inherit;
}

/* =====================================================
   HEADER
===================================================== */
.site-header {
  background: #8b1d1d;
  color: #fff;
}

/* HEADER küçültme */
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 16px;
}

#site-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* sosyal ikonlar */
.header-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* =====================================================
   ANNOUNCEMENT BAR (KAYAN YAZI)
===================================================== */
.announcement-bar {
  width: 100%;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.announcement-track {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  padding: 8px 0;
  animation: marquee 16s linear infinite;
}

.announcement-track span {
  font-size: 13px;
  font-weight: 500;
}

@keyframes marquee {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* =====================================================
   CATEGORY FILTER
===================================================== */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: #fff;
}

.filter-bar button {
  border: 1px solid #ddd;
  background: #fff;
  color: #444;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
}

.filter-bar button.active {
  background: #8b1d1d;
  color: #fff;
  border-color: #8b1d1d;
}

/* desktop’ta yatay */
@media (min-width: 768px) {
  .filter-bar {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* =====================================================
   PRODUCT GRID
===================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

/* tablet */
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* desktop */
@media (min-width: 1100px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =====================================================
   PRODUCT CARD
===================================================== */
.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* görsel */
.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* içerik */
.card .info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card .info h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #333;
}

/* fiyat */
.card .info .price {
  color: #8b1d1d;
  font-weight: 700;
  font-size: 13px;
}

/* açıklama */
.card .info .desc {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* daha fazla */
.card .info .read-more {
  margin-top: auto;
  font-size: 12px;
  font-weight: 500;
  color: #1d4ed8;
}

/* =====================================================
   DETAIL PAGE
===================================================== */
.detail {
  max-width: 640px;
  margin: 16px auto;
  padding: 0 14px;
}

.detail img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin-bottom: 14px;
}

.detail h2 {
  margin: 8px 0;
  font-size: 20px;
}

.detail p {
  line-height: 1.6;
  color: #444;
}

.detail span {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  color: #8b1d1d;
  font-weight: 700;
}

.detail .desc {
  white-space: pre-line;
}

/* =====================================================
   WHATSAPP SABİT BUTON (MOBİL)
===================================================== */
.wp {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  z-index: 999;
}

.whatsapp-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px;
  border-radius: 30px;
  background: #5ac582;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn__icon {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

/* =====================================================
   UTIL
===================================================== */
.hidden {
  display: none;
}

/* =====================================================
   MOBILE TUNING (≤480px)
===================================================== */
@media (max-width: 480px) {
  /* ---------- HEADER ---------- */
  .header-top {
    padding: 8px 12px;
    gap: 10px;
  }

  #site-title {
    font-size: 15px;
    letter-spacing: 0.4px;
  }

  .social-icon {
    width: 18px;
    height: 18px;
  }

  /* ---------- ANNOUNCEMENT ---------- */
  .announcement-track {
    padding: 6px 0;
    gap: 40px;
  }

  .announcement-track span {
    font-size: 12px;
  }

  /* ---------- CATEGORY FILTER ---------- */
  .filter-bar {
    padding: 12px;
    gap: 8px;
  }

  .filter-bar button {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 12px;
  }

  /* ---------- GRID ---------- */
  .grid {
    gap: 12px;
    padding: 12px;
  }

  /* ---------- CARD ---------- */
  .card {
    border-radius: 12px;
  }

  .card img {
    aspect-ratio: 1 / 1;
  }

  .card .info {
    padding: 10px;
    gap: 5px;
  }

  .card .info h3 {
    font-size: 13px;
    line-height: 1.35;
  }

  .card .info .price {
    font-size: 13px;
  }

  .card .info .desc {
    font-size: 11.5px;
  }

  .card .info .read-more {
    font-size: 11.5px;
  }

  /* ---------- DETAIL ---------- */
  .detail h2 {
    font-size: 18px;
  }

  .detail span {
    font-size: 18px;
  }

  /* ---------- WHATSAPP ---------- */
  .wp {
    bottom: 10px;
    width: calc(100% - 24px);
  }

  .whatsapp-btn {
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 26px;
  }

  .whatsapp-btn__icon {
    width: 20px;
    height: 20px;
  }
}
