/* ===== Global Style ===== */
body {
  font-family: "Tahoma", sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f8f8;
  color: #333;
}

/* Header */
header {
  display: flex;
  justify-content: space-between; /* logo left, nav right */
  align-items: center;
  background: rgb(255, 255, 255);
  padding: 20px 60px;
  height: 100px;
}

/* Logo */
header .logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

header .logo img {
  width: 80px;   /* bigger logo */
  height: 80px;
}

header .logo h1 {
  color: black;
  font-size: 28px;
  font-weight: bold;
}

/* Navbar */
nav ul {
  list-style: none;
  display: flex;
  margin-left: 400px;
  gap: 60px; /* more gap between items */
}

nav ul li a {
  color: black;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold; /* bold links */
  transition: color 0.3s ease;
}
nav .search-icon{
  position: absolute;
  margin-right: 300px;
  
}
nav ul li a:hover {
  color: #ffcc00; /* gold hover effect */
 
}
.back-btn {
  font-size: 26px;
  text-decoration: none;
  color: black;
  margin-right: 400px;
  margin-top:5px;
  transition: color 0.3s ease;
}

.back-btn:hover {
  color: #ffcc00; /* gold hover */
}

/* Search box inside navbar */
.search-container {
  display: flex;
  align-items: center;
  margin-right: 50px;
}

.search-container input {
  padding: 4px 6px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 220px; /* small width */
  transition: width 0.3s ease;
}

.search-container input:focus {
  width: 180px; /* expand on focus */
}

.search-container button {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 25px;
  font-size: 16px;
}

/* ===== Product Container ===== */
.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 60px;
  max-width: 1300px;
  margin: auto;

}

/* Images Section */
.product-images {
  flex: 1;
  min-width: 350px;
}

.big-image {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  height: 500px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  margin-right: 150px;
}

.thumbnails {
  display: flex;
  gap: 12px;
}

.thumbnails img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: border 0.3s;
}

.thumbnails img:hover {
  border: 2px solid #444;
}

/* Info Section */
.product-info {
  flex: 1;
  min-width: 320px;
  background: #fff;
  height: 500px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.product-info h1 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #222;
  margin-bottom: 60px;
}

.product-info p {
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 20px;
  color: gray;
  
}

.price {
  font-size: 22px;
  font-weight: bold;
  color: #c0392b;
  margin: 20px 0;
}

/* WhatsApp Button */
.btn-whatsapp {
  display: inline-block;
  padding: 14px 24px;
  background: #25d366;
  color: white;
  font-size: 18px;
  align-items: center;
  margin-top: 50px;
  margin-right: 160px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.btn-whatsapp:hover {
  background: #1ebe5c;
}

/* ===== Footer ===== */
.footer {
  background: #222;
  color: #ddd;
  padding: 60px 80px 20px;
  margin-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-column h3, 
.footer-column h4 {
  color: #ffcc00;
  font-size: 22px;
  margin-bottom: 18px;
}

.footer-column p {
  font-size: 16px;
  line-height: 1.8;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
  font-size: 16px;
}

.footer-column ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #ffcc00;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.footer-social img:hover {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 40px;
}

.footer-bottom p {
  font-size: 14px;
  color: #aaa;
}

/* ===== Fix Overflow ===== */
html, body {
  overflow-x: hidden; /* يمنع التمرير الجانبي */
  max-width: 100%;
}

/* ========== Responsive Fixes ========== */

/* Tablet view */
@media (max-width: 992px) {
  /* Header */
  header {
    padding: 15px 30px;
    height: auto;
  }

  nav ul {
    gap: 25px;
    margin-left: 0;
  }

  /* Product Section */
  .product-container {
    flex-direction: column; 
    align-items: center;
    padding: 20px;
  }

  .product-images {
    margin-right: 0;
    text-align: center;
  }

  .big-image {
    margin-right: 0;
    max-width: 100%;
    height: auto;
  }

  .thumbnails {
    justify-content: center;
    flex-wrap: wrap;
  }

  .product-info {
    width: 100%;
    margin-top: 30px;
    height: auto;
  }

  .btn-whatsapp {
    display: block;
    margin: 30px auto 0 auto;
  }

  /* Footer */
  .footer {
    padding: 40px 30px;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobile view */
@media (max-width: 600px) {
  /* Header */
  header {
    flex-direction: column;
    height: auto;
    padding: 15px;
  }

  nav ul {
    margin-left: 0;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li a {
    font-size: 16px;
  }

  /* Product Section */
  .product-container {
    padding: 15px;
    gap: 20px;
  }

  .big-image {
    width: 100%;
    height: auto;
  }

  .thumbnails img {
    width: 70px;
    height: 70px;
  }

  .product-info {
    padding: 20px;
    text-align: center;
    width: 250px;
  }

  .product-info h1 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .product-info p {
    font-size: 16px;
  }

  .price {
    font-size: 18px;
    margin: 15px 0;
  }

  .btn-whatsapp {
    width: 190px;
    font-size: 16px;
    padding: 12px;
    margin-top: 20px;
  }

  /* Footer */
  .footer {
    padding: 20px;
    text-align: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .footer-column h3,
  .footer-column h4 {
    font-size: 18px;
  }

  .footer-column p,
  .footer-column ul li {
    font-size: 14px;
  }

  .footer-bottom p {
    font-size: 13px;
  }
}
