* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background: #fff;
  color: #333;
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: #fff;
  border-bottom: 1px solid #ddd;
  gap: 2rem;
}

h1, h2, h3 {
  color: #237a57;
}

.logo img {
  max-height: 50px;
}

/* Navigation */
header nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

header nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

header nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #237a57;
  transition: width 0.3s ease;
}

header nav ul li a:hover {
  color: #237a57;
}

header nav ul li a:hover::after {
  width: 100%;
}

/* Right side */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Search box */
.search-box {
  display: flex;
  align-items: center;
  border: 1px solid #237a57;
  border-radius: 25px;
  padding: 0.3rem 0.8rem;
  gap: 0.5rem;
}

.search-box input {
  border: none;
  outline: none;
  font-size: 0.9rem;
  width: 180px;
}

/* Icons */
.icons {
  display: flex;
  gap: 1rem;
  font-size: 1.2rem;
  cursor: pointer;
}

.icons i:hover {
  color: #237a57;
}

.product {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 5%;
  gap: 3rem;
}

/* Left side gallery */
.gallery {
  flex: 1;
  text-align: center;
}

.main-img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
}

.price {
  font-size: 1.5rem;
  color: #237a57;
  font-weight: bold;
  margin: 1rem 0;
}

.thumbnails {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

.thumbnails img {
  width: 60px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.3s ease;
}

.thumbnails img:hover {
  border: 2px solid #237a57;
}

/* Right side details */
.details {
  flex: 1;
}

.details h3 {
  color: #777;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.details h1 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  position: relative;
  transition: color 0.3s ease;
}

.details h1:hover {
  color: #1e6f5c;
}

.rating {
  color: #f4c542;
  font-size: 1.2rem;
}

.rating .reviews {
  color: #237a57;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.stock {
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.stock .in-stock {
  color: red;
  font-weight: bold;
}

/* Colors */
.colors {
  display: flex;
  gap: 10px;
  margin: 1rem 0;
}

.colors span {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ddd;
  transition: transform 0.2s;
}

.colors span:hover {
  transform: scale(1.2);
  border: 2px solid #237a57;
}

/* Specs list */
.specs {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  color: #333;
}

.specs li {
  margin: 0.4rem 0;
}

/* Description */
.desc {
  font-size: 0.9rem;
  color: #555;
  margin: 1rem 0;
}

/* Quantity */
.quantity {
  margin: 1.5rem 0;
}

.qty-box {
  display: flex;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  width: 120px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.qty-box button {
  flex: 1;
  border: none;
  background: #237a57;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0.5rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.qty-box button:hover {
  background: #006666;
  transform: scale(1.05);
}

.qty-box input {
  width: 50px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Buttons */
.buttons {
  display: flex;
  gap: 1rem;
}

.add-cart, .buy-now {
  flex: 1;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

/* Login button */
.add-cart {
  background: #237a57;
  color: #fff;
}

.add-cart:hover {
  background: #006666;
  color: #fff;
}

/* Register button */
.buy-now {
  background: #f8f8f8;
  border: 2px solid #237a57;
  color: #237a57;
}

.buy-now:hover {
  background: #237a57;
  color: #fff;
}

/* Reviews */
.gallery .reviews {
  margin-top: 2rem;
  text-align: left;
}

.reviews {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  animation: fadeInUp 1s ease-in-out;
}

.reviews h3 {
  font-size: 1.3rem;
  color: #237a57;
  margin-bottom: 1rem;
  text-align: left;
}

.review {
  padding: 0.8rem;
  border-bottom: 1px solid #ddd;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlide 0.8s ease forwards;
}

.review:last-child {
  border-bottom: none;
}

.review:nth-child(2) { animation-delay: 0.3s; }
.review:nth-child(3) { animation-delay: 0.6s; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlide {
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
  background: #f5f5f5;
  padding: 3rem 5%;
  font-family: Arial, sans-serif;
  color: #333;
  position: relative;
}

.footer::before {
  content: "";
  display: block;
  height: 2px;
  width: 120px;
  margin: 0 auto 20px;
  background: linear-gradient(
    90deg,
    rgba(245, 200, 76, 0),
    #f5c84c,
    rgba(245, 200, 76, 0)
  );
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col h3,
.footer-col .logo {
  margin-bottom: 1rem;
  font-weight: bold;
}

.footer-col p {
  margin: 0.5rem 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin: 0.4rem 0;
}

.footer-col ul li a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #237a57;
}

/* Subscribe */
.subscribe {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.subscribe input {
  padding: 0.5rem;
  border: none;
  border-bottom: 2px solid #333;
  background: transparent;
  outline: none;
}

.subscribe button {
  background: #000;
  color: #fff;
  border: none;
  padding: 0.6rem;
  cursor: pointer;
  transition: background 0.3s;
}

.subscribe button:hover {
  background: #237a57;
}

/* Social Icons */
.socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.socials a {
  color: #333;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.socials a:hover {
  color: #237a57;
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

/* === Brand Fingerprint: Cahaya Line (H1) === */
.details h1::after {
  content: "";
  display: block;
  width: 45%;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(
    90deg,
    #f5c84c,
    rgba(245, 200, 76, 0)
  );
}

/* Responsive Fingerprint */
@media (max-width: 768px) {
  .details h1::after {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile CTA refinement */
@media (max-width: 480px) {
  .add-cart,
  .buy-now {
    border-radius: 18px;
    letter-spacing: 0.3px;
  }
}

.rating {
  margin-top: 6px;
}