body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  margin: 0;
  color: #222;
}

/* ===== Layout ===== */
.product-page {
  max-width: 1250px;
  margin: 40px auto;
  padding: 0 20px;
}
.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

/* ===== Gallery ===== */
.gallery {
  flex: 1;
  display: flex;
  gap: 20px;
  position: relative;
}
.thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.thumb {
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  object-fit: cover;
  transition: 0.3s;
}
.thumb.active,
.thumb:hover {
  border-color: #a88b45;
  transform: scale(1.05);
}
.main-image {
  position: relative;
}
.main-image img {
  width: 470px;
  height: 520px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}
.main-image img:hover {
  transform: scale(1.03);
}

/* ===== Icons ===== */
.image-icons {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}
.icon-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #444;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
}
.icon-btn:hover {
  background: #a88b45;
  color: #fff;
  transform: scale(1.1);
}
.icon-btn.active {
  background: #a88b45;
  color: #fff;
}

/* ===== Share Menu ===== */
.share-menu {
  position: absolute;
  top: 55px;
  right: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}
.share-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #444;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s;
}
.share-menu a:hover {
  color: #a88b45;
  transform: translateX(3px);
}

/* ===== Cart Count ===== */
.cart-counter {
  position: fixed;
  top: 20px;
  right: 25px;
  background: #a88b45;
  color: #fff;
  font-size: 13px;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  z-index: 999;
}

/* ===== Details ===== */
.details {
  flex: 1;
}
.title {
  font-size: 30px;
  font-weight: 600;
  color: #111;
}
.sku { color: #888; font-size: 13px; }
.price {
  font-size: 28px;
  font-weight: 700;
  color: #a88b45;
  margin: 12px 0;
}
.availability { font-size: 15px; }
.in-stock { color: #3c9a3c; font-weight: 600; }
.out-stock { color: #c33; font-weight: 600; }

.options { margin: 20px 0; }
select {
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
}
.buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.btn-cart, .btn-buy {
  flex: 1;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}
.btn-cart { background: #a88b45; color: #fff; }
.btn-buy { background: #000; color: #fff; }
.btn-cart:hover { background: #8a6c35; }
.btn-buy:hover { background: #333; }

/* ===== Popup ===== */
.popup {
  display: none;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-top: 20px;
  text-align: center;
}
.popup-btns a {
  display: inline-block;
  margin: 10px;
  background: #a88b45;
  color: white;
  padding: 10px 15px;
  border-radius: 25px;
  text-decoration: none;
}

/* ===== Tabs ===== */
.tabs { margin-top: 50px; }
.tab-buttons {
  display: flex;
  gap: 15px;
  border-bottom: 2px solid #eee;
  flex-wrap: wrap;
}
.tab-btn {
  background: none;
  border: none;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  color: #666;
  transition: 0.3s;
}
.tab-btn.active {
  color: #a88b45;
  border-bottom: 3px solid #a88b45;
}
.tab-content { display: none; padding: 20px 0; }
.tab-content.active { display: block; }

/* ===== Similar Products ===== */
.similar-section { margin: 60px 0; text-align: center; }
.similar-section h2 {
  font-size: 26px;
  font-weight: 700;
  color: #a88b45;
  margin-bottom: 25px;
}
.slider-container { position: relative; overflow: hidden; max-width: 1100px; margin: 0 auto; }
.slider-track { display: flex; gap: 20px; transition: transform 0.5s ease; }
.product-card {
  flex: 0 0 25%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 15px;
  text-align: center;
  transition: 0.3s;
}
.product-card:hover { transform: translateY(-5px); }
.product-card img { width: 100%; height: 230px; object-fit: cover; border-radius: 8px; }
.product-card h4 { margin: 12px 0 5px; font-size: 16px; color: #333; }
.product-card .price { color: #a88b45; font-weight: 600; margin-bottom: 10px; }
.btn-view {
  background: #a88b45; color: #fff; border: none; border-radius: 25px;
  padding: 8px 16px; cursor: pointer; font-size: 14px; transition: 0.3s;
}
.btn-view:hover { background: #8a6c35; }

.slide-btn {
  position: absolute; top: 45%; transform: translateY(-50%);
  background: rgba(0,0,0,0.6); color: #fff; border: none; font-size: 24px;
  padding: 10px 14px; cursor: pointer; border-radius: 50%; z-index: 5;
}
.slide-btn:hover { background: #a88b45; }
.slide-btn.prev { left: -10px; }
.slide-btn.next { right: -10px; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .product-container { flex-direction: column; align-items: center; }
  .main-image img { width: 100%; height: 400px; }
  .thumbs { flex-direction: row; justify-content: center; }
  .product-card { flex: 0 0 50%; }
}
@media (max-width: 576px) {
  .product-card { flex: 0 0 100%; }
  .slide-btn { display: none; }
  .details .title { font-size: 22px; }
  .price { font-size: 22px; }
  .buttons { flex-direction: column; }
  .main-image img { height: 340px; }
}
/* ===== Floating Cart Icon ===== */
.cart-icon {
  position: fixed;
  top: 25px;
  right: 25px;
  background: #a88b45;
  color: white;
  font-size: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: 0.3s;
}
.cart-icon:hover {
  background: #8a6c35;
  transform: scale(1.05);
}
#cartCount {
  position: absolute;
  top: 5px;
  right: 8px;
  background: #fff;
  color: #a88b45;
  font-weight: 700;
  font-size: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 576px) {
  .cart-icon {
    top: 15px;
    right: 15px;
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
  #cartCount {
    top: 2px;
    right: 5px;
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
}

/* ===== Wishlist & Share Icons ===== */
.image-icons {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.icon-btn i {
  font-size: 18px;
  color: #555;
  transition: 0.3s;
}

.icon-btn:hover {
  background: #fff;
  transform: scale(1.1);
}

/* Heart turns red when active */
.wishlist.active i {
  color: #e63946 !important;
  transform: scale(1.2);
}

/* Share dropdown */
.share-menu {
  display: none;
  flex-direction: column;
  background: white;
  border-radius: 8px;
  padding: 10px;
  position: absolute;
  right: 50px;
  top: 0;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  width: 160px;
}
.share-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #444;
  text-decoration: none;
  padding: 6px;
  font-size: 14px;
  transition: 0.2s;
}
.share-menu a:hover {
  color: #a88b45;
  background: #f5f5f5;
  border-radius: 5px;
}
