* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial;
}

body {
  background: #fff;
  color: #000;
}

/* HEADER */
.main-header {
  border-bottom: 1px solid #eee;
}

.header-inner {
  max-width: 1400px;
  margin: auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu {
  display: flex;
  gap: 30px;
}

.menu a {
  text-decoration: none;
  color: #000;
  font-size: 14px;
}

/* PRODUCT DETAIL */
.product-detail {
  max-width: 1400px;
  margin: 80px auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

/* IMAGES */
.product-gallery img {
  width: 100%;
}

.image-zoom {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: zoom-in;
}

.image-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.thumbs {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.thumbs img {
  width: 90px;
  cursor: pointer;
  border: 1px solid #ddd;
}

/* INFO */
.product-info h1 {
  font-size: 32px;
  margin-bottom: 15px;
}

.price {
  font-size: 22px;
  margin-bottom: 25px;
}

.desc {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.add-cart {
  padding: 16px 40px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 1px;
}

/* PRODUCT DETAIL */
.product-detail {
  padding: 80px 6%;
  background: #fff;
  color: #111;
}

.product-detail-inner {
  max-width: 900px;
}

.product-detail h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
}

.product-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 15px;
}

.product-detail h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 18px;
}

.product-features {
  list-style: none;
  padding: 0;
}

.product-features li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 10px;
  font-size: 14px;
}

.product-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #000;
}

/* RELATED PRODUCTS */
.related-products {
  padding: 80px 6%;
  background: #fafafa;
}

.related-products h2 {
  font-size: 26px;
  margin-bottom: 40px;
}

.related-products .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.related-products .product-card {
  background: #fff;
  padding: 15px;
  transition: transform 0.3s ease;
}

.related-products .product-card:hover {
  transform: translateY(-6px);
}

.related-products img {
  width: 100%;
}

.related-products h3 {
  font-size: 15px;
  margin: 15px 0 5px;
}

.related-products .price {
  font-weight: 600;
}

/* Footer */
.footer {
    background-color: #333;
    padding: 20px 0;
    color: #fff;
    text-align: center;
    margin-top: 50px;
}

.footer p {
    margin: 0;
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.site-footer {
  background: #000;
  color: #fff;
  padding: 70px 40px 30px;
  font-family: Arial, sans-serif;
}

.footer-container {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.footer-logo {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 30px;
}

.footer-title {
  font-size: 15px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.footer-text {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: background 0.3s, transform 0.3s;
}

.social-icons a:hover {
  background: #fff;
  color: #000;
  transform: translateY(-4px);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #222;
  text-align: center;
  font-size: 13px;
  color: #777;
}

/* PRODUCT INFO PANEL */
.product-info {
  max-width: 520px;
  padding: 40px;
}

.product-title {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 20px;
}

.product-price {
  margin-bottom: 25px;
}

.old-price {
  text-decoration: line-through;
  color: #aaa;
  margin-right: 10px;
  font-size: 18px;
}

.new-price {
  color: #e53935;
  font-size: 26px;
  font-weight: 600;
}

.product-points {
  margin: 25px 0;
  padding-left: 18px;
}

.product-points li {
  margin-bottom: 10px;
  color: #555;
  font-size: 15px;
}

.product-option {
  margin-bottom: 25px;
}

.product-option label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.product-option select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.product-actions-row {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  align-items: center;
}

.qty {
  display: flex;
  border: 1px solid #ddd;
}

.qty button {
  width: 36px;
  background: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.qty span {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  padding: 14px 22px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.btn.cart {
  background: #e53935;
  color: #fff;
}

.btn.buy {
  background: #c62828;
  color: #fff;
}

.product-links {
  margin-top: 20px;
}

.product-links a {
  text-decoration: none;
  color: #444;
  font-size: 14px;
}



.product-actions-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
}

.qty-box {
  display: flex;
  border: 1px solid #ddd;
}

.qty-box button {
  width: 35px;
  height: 35px;
  border: none;
  background: #fff;
  cursor: pointer;
}

.qty-box span {
  width: 40px;
  text-align: center;
  line-height: 35px;
}

.btn-cart {
  background: #d83434;
  color: #fff;
  border: none;
  padding: 12px 25px;
  cursor: pointer;
}

.btn-buy {
  background: #d83434;
  color: #fff;
  border: none;
  padding: 12px 25px;
  cursor: pointer;
}

.extra-actions {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  font-size: 14px;
  cursor: pointer;
}

.product-meta {
  border-top: 1px solid #ddd;
  padding-top: 20px;
  font-size: 14px;
}

.product-meta p {
  margin-bottom: 8px;
}

.product-meta .share span {
  margin-left: 10px;
  cursor: pointer;
}





/* =========================
   MOBILE PRODUCT DETAIL
========================= */
@media (max-width: 768px) {

  .product-detail {
    flex-direction: column;
    padding: 20px;
  }

  .product-gallery,
  .product-info {
    width: 100%;
  }

  .product-gallery {
    margin-bottom: 25px;
  }

  .image-zoom img {
    width: 100%;
    height: auto;
  }

  .thumbs {
    justify-content: center;
    gap: 10px;
  }

  .thumbs img {
    width: 70px;
  }

  .product-info h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  .price {
    font-size: 20px;
  }

  /* Select */
  .product-info select {
    width: 100% !important;
  }

  /* Adet + butonlar */
  .product-info > div {
    flex-wrap: wrap;
  }

  .add-cart,
  .product-info button {
    width: 100%;
    margin-top: 10px;
  }

  /* Karşılaştır / istek */
  .product-info > div + div {
    flex-direction: column;
    gap: 10px;
  }

  /* Alt bilgi */
  .product-info > div:last-child {
    font-size: 13px;
  }
}




/* =========================
   MOBILE HEADER FIX
========================= */
@media (max-width: 768px) {

  .main-header {
    padding: 10px 15px;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Logo */
  .logo {
    height: 32px !important;
    width: auto;
  }

  /* Menü mobilde gizle */
  .menu {
    display: none;
  }

  /* Sağ ikonlar */
  .header-icons {
    display: flex;
    gap: 14px;
    font-size: 18px;
  }

  .header-icons span {
    cursor: pointer;
  }
}


/* =========================
   MOBILE GLOBAL SCALE
========================= */
@media (max-width: 768px) {

  /* ===== HEADER ===== */
  .main-header {
    padding: 8px 12px;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  /* Logo küçült */
  .logo {
    height: 26px;
    width: auto;
  }

  /* Menü küçült (GİZLEMEZ) */
  .menu {
    display: flex;
    gap: 10px;
  }

  .menu a {
    font-size: 11px;
    white-space: nowrap;
  }

  /* Sağ ikonlar */
  .header-icons {
    display: flex;
    gap: 8px;
    font-size: 15px;
  }

  /* ===== PRODUCT DETAIL ===== */
  .product-detail {
    padding: 20px 12px;
  }

  .product-info h1 {
    font-size: 18px;
  }

  .price {
    font-size: 16px;
  }

  .product-info select,
  .add-cart {
    width: 100%;
    font-size: 14px;
  }

  /* ===== FOOTER ===== */
  .site-footer {
    padding: 30px 15px;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .footer-col img {
    height: 40px;
  }

  .footer-title {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .footer-text,
  .footer-desc {
    font-size: 12px;
    line-height: 1.5;
  }

  .footer-links li a {
    font-size: 12px;
  }

  .social-icons img {
    height: 22px;
  }

  .footer-bottom {
    margin-top: 20px;
    font-size: 11px;
    text-align: center;
  }
}





/* =========================
   MOBILE PRODUCT FIX
========================= */
@media (max-width: 768px) {

  /* Genel düzen */
  .product-detail {
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    gap: 25px;
  }

  /* Resim en üstte */
  .product-gallery {
    width: 100%;
    order: 1;
  }

  .image-zoom {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  /* Ürün bilgileri resmin ALTINA */
  .product-info {
    width: 100%;
    order: 2;
    padding: 0;
  }

  /* Başlık */
  .product-info h1 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  /* Fiyat */
  .price strong {
    font-size: 18px !important;
  }

  /* Özellikler */
  .product-features {
    font-size: 13px;
    line-height: 1.6;
  }

  /* Select */
  .product-info select {
    width: 100% !important;
  }

  /* ADET + BUTONLAR alt alta */
  .product-info > div[style*="display:flex"] {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .product-info button {
    width: 100%;
    text-align: center;
  }

  /* Alt aksiyonlar alt alta */
  .product-info > div[style*="gap:20px"] {
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
  }

  /* Alt bilgi */
  .product-info > div[style*="border-top"] {
    font-size: 13px;
  }
}





.cart-icon {
  position: relative;
  cursor: pointer;
}

#cartCount {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #e53935;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  display: none;
}



#cartPopup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #111;
  color: #fff;
  padding: 15px 20px;
  border-radius: 6px;
  display: none;
  z-index: 9999;
}

#cartPopup a {
  color: #e53935;
  text-decoration: none;
  font-weight: bold;
}


.cart-icon {
  position: relative;
  cursor: pointer;
}

#cartCount {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #e53935;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  display: none;
}
