/* ========== Global Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Category Bar */
.category-bar {
  background: linear-gradient(90deg, #fce4ec, #f8bbd0);
  color: #333;
  border-top: 1px solid #e5e5e5;
}
.category-bar ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 10px 0;
  gap: 25px;
}
.category-bar a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: 0.3s;
}
.category-bar a:hover {
  color: #193153;
  font-weight: 600;
}
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* ========== Product Section ========== */
.product-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin: 40px auto;
  padding: 40px;
  max-width: 1150px;
  gap: 40px;
}

.add{
  background-color: #f78a21;
  color: #193153;
  border: none;
  padding: 15px;
  border-radius: 10px;
}

/* Gallery */
.image-gallery {
  display: flex;
  gap: 20px;
  flex: 1;
  min-width: 280px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  height: fit-content;
}

.thumbnail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumbnail-list img {
  width: 70px;
  height: 70px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  object-fit: cover;
}

.thumbnail-list img:hover {
  border-color: #193153;
}

.main-image img {
  width: 250px;
  height: 350px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Product Info */
.product-info {
  flex: 1.5;
  min-width: 300px;
}

.product-info h2 {
  font-size: 1.6rem;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.4;
}

.rating {
  color: #28a745;
  font-weight: 500;
  margin-bottom: 15px;
}

.price-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.price-current {
  font-size: 1.7rem;
  color: #007a00;
  font-weight: 700;
}

.price-old {
  text-decoration: line-through;
  color: #888;
  font-size: 1rem;
}

.offer-tag {
  background: #eaffea;
  color: #007a00;
  font-size: 0.9rem;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #b6f1b6;
}

/* Button */
.add-btn {
  background: #ff3366;
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 3px 8px rgba(255, 51, 102, 0.3);
}
.add-btn:hover {
  background: #e0245e;
}

/* Divider */
.divider {
  border: 1px solid #eee;
  margin: 25px 0;
}

/* Info Blocks */
.details, .nutrition, .info {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.details h3, .nutrition h3, .info h3 {
  color: #193153;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.details ul, .info ul {
  list-style: none;
}

.details li, .info li {
  margin: 5px 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.new-footer {
  background: linear-gradient(135deg, #8c2f70, #d94f9c);
  color: #fff;
  padding: 60px 8% 30px;
  font-family: "Poppins", sans-serif;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 30px;
}

.footer-brand img {
  width: 60px;
  margin-bottom: 10px;
}
.footer-brand h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffd54f;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #fce4ec;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #ffd54f;
  position: relative;
}
.footer-links ul,
.footer-contact ul {
  list-style: none;
}
.footer-links li,
.footer-contact li {
  margin: 8px 0;
}
.footer-links a {
  text-decoration: none;
  color: #fce4ec;
  transition: 0.3s;
}
.footer-links a:hover {
  color: #ffd54f;
  padding-left: 5px;
}

.footer-contact li {
  font-size: 14px;
  color: #fce4ec;
}

.footer-social {
  margin-top: 12px;
}
.footer-social a {
  display: inline-block;
  margin-right: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 8px;
  border-radius: 50%;
  font-size: 15px;
  transition: 0.3s;
}
.footer-social a:hover {
  background: #ffd54f;
  color: #8c2f70;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: #fce4ec;
}

.footer-bottom span {
  color: #ffd54f;
  font-weight: 600;
}
/* ========== Responsive ========== */
@media (max-width: 900px) {
  .product-section {
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
  }

  .image-gallery {
    position: static;
    flex-direction: column;
    align-items: center;
  }

  .thumbnail-list {
    flex-direction: row;
  }

  .main-image img {
    width: 250px;
  }

  .product-info {
    text-align: center;
  }
}


/* ========== Gallery Interaction Enhancements ========== */
.thumbnail-list img.active-thumb {
  border-color: #193153;
  transform: scale(1.05);
}

.main-image {
  overflow: hidden;
  border-radius: 12px;
}

.main-image img {
  transition: transform 0.3s ease, transform-origin 0.3s ease;
  cursor: zoom-in;
}
