body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #ffffff;
    color: #111111;
}
  
header {
    background: #000000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}
  
nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.2s ease;
}
  
nav a:hover {
    color: #d32f2f; /* vurgu rengi */
}
  
.banner {
    height: 300px;
    background: linear-gradient(90deg, #d32f2f, #000000);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 8px;
    margin: 20px;
}
  
.section {
    padding: 40px 30px;
}
  
.section h2 {
    margin-bottom: 20px;
    color: #d32f2f; /* vurgu rengi */
}
  
.categories, .products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
  
.card {
    background: #ffffff;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
  
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    border: 1px solid #d32f2f;
}
  
.products img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}
  
.card h3 {
    margin: 10px 0 5px;
    font-size: 1.1rem;
}
  
.price {
    font-weight: bold;
    color: #d32f2f; /* vurgu rengi */
    margin-bottom: 15px;
}
  
.btn {
    background: #d32f2f; /* ana renk */
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}
  
.btn:hover {
    background: #b71c1c; /* hover’da koyu kırmızı */
}


/* KATEGORI TARAFI */
.container {
  display: flex;
  padding: 20px 30px;
  gap: 30px;
}

/* Sol filtre alanı */
.filters {
    width: 220px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
  
.filters h3 {
    margin-bottom: 15px;
    color: #d32f2f;
}
  
.filter-group {
    margin-bottom: 20px;
}
  
.filter-group h4 {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #111;
}
  
/* Sağ ürün listesi */
.product-list {
    flex: 1;
}
  
.product-list h2 {
    margin-bottom: 20px;
    color: #d32f2f;
}
  
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.products .card {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: opacity, transform;
}

.products .card.hidden {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

/* URUN DETAY */
.product-detail {
    display: flex;
    gap: 40px;
    padding: 40px;
}
  
.product-images {
    flex: 1;
}
  
.product-images .main-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}
  
.thumbs {
    display: flex;
    gap: 10px;
}
  
.thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s ease;
}
  
.thumbs img:hover {
    border: 2px solid #d32f2f; /* hover’da vurgu */
}
  
.product-info {
    flex: 1;
}
  
.product-info h1 {
    margin-bottom: 10px;
}
  
.product-info .price {
    font-size: 1.5rem;
    color: #d32f2f;
    margin-bottom: 15px;
}
  
.related {
    padding: 40px;
}
  
.related h2 {
    margin-bottom: 20px;
    color: #d32f2f; 
}

.cart-icon {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: inherit;
}
  
#cartCount {
    background: #d32f2f;
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    right: -10px;
}

/* SEPET */
.cart-container {
  display: flex;
  gap: 30px;
  padding: 40px;
}

.cart-items {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  align-items: center;
}

.cart-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-info {
  flex: 1;
}

.cart-info h3 {
  margin: 0 0 5px;
}

.cart-info .price {
  font-weight: bold;
  color: #d32f2f;
  margin-bottom: 10px;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity button {
  background: #000;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

.remove {
  margin-top: 10px;
  background: transparent;
  border: none;
  color: #d32f2f;
  cursor: pointer;
}

.cart-summary {
  flex: 1;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: fit-content;
}

.cart-summary h2 {
  margin-bottom: 15px;
}

.cart-summary .btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.cart-summary .checkout {
  background: #d32f2f;
  color: #fff;
}

.cart-summary .continue {
  background: #000;
  color: #fff;
}

/* Hamburger menü ve masaüstü kategorileri için genel stiller (media query dışında) */
.hamburger-menu {
  display: none;
  cursor: pointer;
}

.hamburger-icon {
  font-size: 2rem;
  color: #fff;
  line-height: 1;
}

.mobile-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #000;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 1000;
  border-radius: 0 0 8px 8px;
}

.mobile-dropdown a {
  display: block;
  padding: 14px 20px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #333;
  font-size: 1.1rem;
}

.mobile-dropdown a:last-child {
  border-bottom: none;
}

.mobile-dropdown a:hover,
.mobile-dropdown a:focus {
  background: #d32f2f;
}

/* Masaüstü kategorileri (hamburger yerine görünen linkler) */
.desktop-categories {
  display: flex;
  gap: 20px;
}

.desktop-categories a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.desktop-categories a:hover {
  color: #d32f2f;
}

  /* ────────────────────────────────────────────────
    MOBİL MEDIA QUERY – BURAYI GÜNCELLİYORUZ
  ──────────────────────────────────────────────── */
  @media (max-width: 768px) {
    header {
      flex-direction: column;
      align-items: center;
      padding: 10px env(safe-area-inset-left) 10px env(safe-area-inset-right);
      padding-top: env(safe-area-inset-top, 10px);
      gap: 10px;
      position: relative;
      box-sizing: border-box;
    }

    .logo {
      font-size: 1.6rem;
      margin: 0;
      text-align: center;
      width: 100%;
      order: 1;
    }

    nav {
      width: 100%;
      order: 3;
    }

    /* Masaüstü kategorileri gizle */
    .desktop-categories {
      display: none;
    }

    /* Hamburger menüyü göster */
    .hamburger-menu {
      display: block;
      margin-left: auto;           /* sağa yasla */
      order: 2;
    }

    /* İkonları hizala (önceki ayarlarını koru) */
    .icons {
      width: 100%;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center;
      gap: 0 !important;
      padding: 0 10px;
      box-sizing: border-box;
      margin-top: 6px;
    }

    .icons > * {
      flex: 1;
      text-align: center;
      max-width: 60px;
    }

    /* Mobil dropdown açıkken göster */
    .mobile-dropdown.open {
      display: block;
    }

      /* Footer responsive düzen */
    .footer-container {
      grid-template-columns: 1fr;
      gap: 30px;
      text-align: center;
    }

    .footer-nav {
      flex-direction: column;
      align-items: center;
    }

    .footer-nav ul {
      text-align: center;
    }

    .logo-with-image {
      display: flex;                /* desktop için olanla uyumlu olmalı*/
      flex-direction: column;       /* dikey hizala */
      align-items: center;          /* ortala */
      justify-content: center;
      gap: 12px;                    /* aradaki boşluk */
      width: 100%;
    }

    .footer-logo-img {
      height: 70px;                 /* resmi küçült */
      margin-left: 0;               /* sola kaydırmayı kaldır */
      order: 3;                     /* en alta al */
    }

    .logo-text {
      align-items: center;          /* yazıları ortala */
      text-align: center;
    }

    .logo-text .logo {
      order: 1;                     /* önce D.D.M.S */
      font-size: 1.6rem;
      margin-bottom: 4px;

    }

    .logo-text p {
      order: 2;                     /* sonra slogan */
      margin-top: 0;
      font-size: 0.95rem;
      white-space: normal;          /* taşma olmasın, satır kırılabilsin */
    }

      /* Footer responsive düzen */


    .search-icon,
    .cart-icon,
    .user-icon {
      font-size: 1.4rem !important;      /* ikon boyutunu biraz küçült (1.5 → 1.4) */
      line-height: 1;                    /* dikey hizalamayı düzelt */
    }
    #cartCount {
      font-size: 0.65rem !important;
      padding: 2px 6px !important;
      min-width: 18px;
      top: -6px;
      right: -6px;
    }

    .search-box button[type="submit"] {  /* "Ara" butonu */
      flex: 0 0 auto;
      padding: 12px 18px;
      font-size: 1rem;
      white-space: nowrap;
    }
    /* Arama overlay içindeki çarpı butonu mobil için daha iyi olsun */
  .search-box button#closeSearch {     /* Çarpı butonu – en küçük ve yuvarlak yap */
      flex: 0 0 auto;
      width: 42px;                        /* Sabit genişlik verelim */
      height: 42px;
      padding: 0;
      font-size: 1.6rem;
      line-height: 42px;
      text-align: center;
      background: transparent !important;
      color: #fff !important;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      transition: background 0.2s;
    }
    .search-box button#closeSearch:hover {
      background: rgba(255,255,255,0.15) !important;
    }

    /* Overlay arama kutusunu tam genişlik yap */
    .search-overlay.active .search-box {
      width: 92% !important;          /* Ekranın neredeyse tamamı */
      max-width: 360px;               /* iPhone'larda taşma önleme */
      flex-direction: row;            /* Yan yana tutmaya çalış */
      gap: 8px;
      align-items: center;
      flex-wrap: nowrap;              /* Taşma olsa bile sarmasın */
    }

  .search-box input {
      flex: 1 1 auto;                 /* Input büyüsün, diğerleri sabit kalsın */
      min-width: 0;                   /* Daralsa bile küçülsün */
      font-size: 1rem;
      padding: 12px 14px;
      border-radius: 8px;
    }
  }


  /* ────────────────────────────────────────────────
    MOBİL MEDIA QUERY – BURAYI GÜNCELLİYORUZ
  ──────────────────────────────────────────────── */
/* SEPET */

/* KULLANICI */
.user-icon {
  cursor: pointer;
  position: relative;
}

.user-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 40px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  padding: 10px;
  z-index: 1000;
}

.user-menu a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

.user-menu a:hover {
  background: #f0f0f0;
}
/* KULLANICI */

/* FOOTER */
footer {
  background: #000;
  color: #ccc;
  padding: 50px 20px 30px;
  margin-top: 60px;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  text-align: center; /* altındaki slogan ortada kalsın */
}

.footer-brand .logo {
  display: inline-flex;       /* inline-flex yaparsak ortada durur */
  align-items: center;
  gap: 8px;                   /* resim ile yazı arasına boşluk */
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
}
.logo {
  font-size:2rem;       /* yazıyı büyüttük */
  font-weight:bold;
  letter-spacing:2px;   /* harf arası boşluk */
  color:#fff;
   }

.logo-with-image {
  display: flex;
  align-items: center;
  justify-content: center; 
  gap: 50px;   /* boşluğu arttır ama abartma */
}

.footer-logo-img {
  height: 80px;   /* resmi daha küçük tut */
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-text .logo {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
}

.logo-text p {
  color: #d32f2f;
  font-style: italic;
  margin: 0;
  white-space: nowrap;   /* slogan tek satırda kalsın */
}


.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* yazılar resmin sağında üstten hizalanır */
}

.logo-text .logo {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
}

.logo-text p {
  color: #d32f2f;
  font-style: italic;
  margin: 0;
}

.footer-logo-img {
  height: 150px;               /* daha küçük boyut */
  width: auto;
}

.footer-brand p {
  color: #d32f2f;
  font-style: italic;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 140px;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #d32f2f;
}

.footer-security {
  text-align: center;
  font-size: 0.9rem;
}

.footer-security strong {
  color: #fff;
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #222;
  font-size: 0.85rem;
  color: #777;
}

/* FOOTER */


/* SAĞDAN AÇILIR PANEL */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 16px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
  padding: 20px;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-panel h3 {
  margin-top: 0;
  color: #d32f2f;
}

.close-cart-panel {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #999;
}

.close-cart-panel:hover {
  color: #d32f2f;
}

.cart-panel-content-item {
  text-align: center;
}

.cart-panel-content-item img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}

.cart-panel-content-item p {
  margin: 5px 0;
}

.cart-panel-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-panel-actions .btn {
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.continue-shopping {
  background: #eee;
  color: #333;
}

.go-cart {
  background: #d32f2f;
  color: #fff;
}
/* SAĞDAN AÇILIR PANEL */ 