/* RESET */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
  color: #000;
  background-color: #fff;
}

/* BODY LAYOUT */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* FADE-IN ANIMATION */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* LOGO */
.logo, .logo-img {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

/* INTRO TEXT */
.intro h1 {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 5px;
}

.intro p, .hero-text {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  text-align: center;
  line-height: 1.4;
}

/* PRODUCT GRID (3×3) */
.product-grid, .gallery, .main-layout {
  width: 95%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin: 40px auto;
}

/* PRODUCT CARD */
.product-card, .img-box {
  background: #fff;
  border: 2px solid #000;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: 0.3s ease;
}

.product-card:hover, .img-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.product-card img, .img-box img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* PRICE */
.price {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

/* BUTTONS */
.view-btn,
.whatsapp-btn,
.add-cart-btn {
  display: block;
  width: fit-content;
  margin: 10px auto 0;
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: #000;
  color: #fff;
  transition: 0.3s ease;
}

.view-btn:hover,
.add-cart-btn:hover,
.whatsapp-btn:hover {
  background: #444;
}

/* BACK BUTTON */
.back-btn {
  display: inline-block;
  color: #000;
  background-color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  border: 2px solid #000;
  transition: 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.back-btn:hover {
  background-color: #000;
  color: #fff;
  transform: scale(1.05);
}

/* FOOTER */
.footer {
  width: 100%;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  padding: 20px 0;
  margin-top: 40px;
}

/* CART ICON */
.cart-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #000;
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 10000;
  transition: 0.3s ease;
}

.cart-icon:hover {
  transform: translateY(-3px);
  background: #444;
}

/* SLIDE-IN ANIMATION */
@keyframes slideInCart {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* CART POPUP — BLACK BORDER STYLE */
.cart-popup {
  width: 160px;              /* Compact width */
  min-height: 180px;         /* Compact height */
  background: #fff;
  border: 2px solid #000;    /* Black border */
  border-radius: 12px;
  padding: 12px;
  position: fixed;
  top: 90px;
  right: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  z-index: 999;
  display: none;
  animation: slideInCart 0.4s ease forwards;
}

/* SLIDE-IN ANIMATION */
@keyframes slideInCart {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* CART CONTENT */
.cart-popup h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cart-popup ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.cart-popup li {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-popup button {
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.cart-popup button:hover {
  background: #444;
}

/* DELETE BUTTON */
.delete-btn {
  font-size: 14px;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
}

/* MOBILE VIEW */
@media (max-width: 480px) {
  .cart-popup {
    width: 70%;
    right: 15%;
    top: 120px;
    padding: 10px;
  }

  .cart-popup h2 {
    font-size: 14px;
  }

  .cart-popup li {
    font-size: 12px;
  }

  .cart-popup button {
    font-size: 0.75rem;
    padding: 5px 7px;
  }
}

/* DELETE BUTTON */
.delete-btn {
  font-size: 16px;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
}

/* MOBILE FIXES */
@media (max-width: 768px) {
  .cart-popup {
    width: 70%;
    right: 15%;
    top: 120px;
  }

  .product-grid, .gallery, .main-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cart-popup {
    width: 85%;
    right: 7%;
    top: 130px;
    padding: 12px;
  }

  .cart-popup h2 {
    font-size: 15px;
  }

  .cart-popup li {
    font-size: 13px;
  }

  .cart-popup button {
    font-size: 0.8rem;
    padding: 6px 8px;
  }

  .product-grid, .gallery, .main-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
