* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  border-bottom: 1px solid #eaeaea;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.05); /* ✅ subtle shadow */
}

.logo img {
  max-width: 50px;
  height: auto;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #555;
}

/* Hide hamburger by default */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* Mobile nav state */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 20px;
    position: absolute; 
    top: 30px; /* adjust to your nav height */
    right: 70px;
    background-color: #fff;
    border: 1px solid #eaeaea;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    font-size: 24px;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }
  .logo img {
  max-width: 120px;
  height: auto;
  width: auto;
  }
}

.hero {
  z-index: 0;
  padding: 120px 40px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  color: #666;
}

footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid #eaeaea;
  color: #999;
  font-size: 14px;
}

/* Product Page */
.product-page {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  padding: 80px 40px;
  justify-content: flex-end;
}

.product-gallery {
  flex: 1 1 500px;
}

.main-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  transition: opacity 1s ease;
  opacity: 1;
}

.main-image.fade-out {
  opacity: 0;
}

.main-image.fade-in {
  opacity: 1;
}

.thumbnail-row {
  display: flex;
  flex-wrap: wrap;  /* ✅ Let it wrap to new lines */
  gap: 20px;
  margin-top: 20px;
}

.thumbnail-row img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  cursor: pointer;
  transition: border 0.3s ease;
}

.thumbnail-row img:hover {
  border: 1px solid #999;
}

.product-details {
  display: flex;
  flex-direction: column;
}

.product-details h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.product-details .price {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
}

.product-details .description {
  max-width: 450px;
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
}

.product-gallery {
  flex: 1 1 500px;
  max-width: 500px;
}

.original-price {
  font-size: 20px;
  color: #999;
  text-decoration: line-through;
  margin-bottom: 5px;
}

.price {
  font-size: 24px;
  color: #333;
  font-weight: bold;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 20px;
}

.stars {
  position: relative;
  display: inline-block;
  font-size: 20px;
  color: #ccc;
  line-height: 1;
}

.filled-stars {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  color: #FFD700; /* gold */
}

.rating-text {
  font-size: 14px;
  color: #666;
}

.filled-stars::before {
  content: "★★★★★";
}

.rating-text {
  font-size: 14px;
  color: #666;
}

/* Border */
.Boarder {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 15px;
  margin: 20px 0;
}

.product-info-list {
  list-style: none;
  padding-left: 0;
  padding-top: 15px;  
  padding-bottom: 15px;
  gap: 10px;
}

.info-button {
  background-color: rgb(243, 237, 237);
  border: 1px solid #ccc;
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
}

.info-button:hover {
  background-color: #f9f9f9;
  border-color: #999;
}

/* Tabs container */
.tabs {
  display: flex;
  border-bottom: 2px solid #ccc;
  margin-bottom: 0;
}

/* PaymentImage */
.PaymentImage {
  order: 7;
  display: block;
  width: 100%;
  text-align: center;
  margin: 5px 0;
}

.PaymentImage img {
  max-width: 200px; /* or whatever max size fits well */
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Each tab button looks like a folder tab */
.tab-button {
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: bold;
  margin-right: 5px;
  transition: background 0.3s ease, border 0.3s ease;
}

/* Hover state */
.tab-button:hover {
  background: #eaeaea;
}

/* Active tab appears on top */
.tab-button.active {
  background: #fff;
  border-bottom: 2px solid #fff; /* hides bottom border to merge with content box */
  position: relative;
  z-index: 2;
}

/* Content area */
.tab-content {
  display: none;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 0 5px 5px 5px;
  background: #fff;
  margin-top: -1px; /* overlap border nicely with tabs */
}

/* Show active content */
.tab-content.active {
  display: block;
}

/* List Content */
.tab-content ul {
  list-style: none;         /* Remove default bullets */
  padding: 0;
  margin: 20px 0;
}

.tab content ul li {
  position: relative;       /* Needed for custom bullet */
  padding-left: 25px;       /* Space for custom bullet */
  margin-bottom: 10px;      /* Space between items */
  font-size: 16px;
  color: #555;
  font-weight: bold;
}

.tab content ul li::before {
  content: '•';             /* Custom icon — change to anything */
  position: absolute;
  left: 0;
  color: #333;
  font-size: 14px;
}

/* Specifications Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 12px;
}

.specs-table th,
.specs-table td {
  text-align: left;
  padding: 12px 15px;
  border: 1px solid #ddd;
}

.specs-table th {
  background-color: #f5f5f5;
  font-weight: 600;
  width: 40%;
}

.specs-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.specs-table tr:hover {
  background-color: #f1f1f1;
}

/* Feature Section */
.feature-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap; /* wrap on small screens */
  margin-top: 20px;
  padding: 10px;
}

.feature-section h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
  text-align: center;
}

.feature-section .description {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.feature-text {
  flex: 1 1;
  text-align: left;
}

.feature-image {
  flex: 1 1 400px;
}

.feature-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

 /* Customer Reviews */
.customer-reviews {
  background: #f9f9f9;
  padding: 40px 20px;
  margin-top: 40px;
  border-radius: 8px;
  text-align: center;
  overflow: hidden;
}

.customer-reviews h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 30px;
  color: #333;
}

.review-carousel {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  min-height: 220px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 12px 26px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-arrow:hover {
  background: #333;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.left {
  left: -40px; /* adjust based on your layout */
}

.carousel-arrow.right {
  right: -40px; /* adjust based on your layout */
}

.review {
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 30px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.review.active {
  z-index: 2;
  opacity: 1;
  position: relative; /* unstack the visible one */
}

.review-image {
  max-height: 300px;
  height: auto;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.review-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;  
  font-size: 1rem;
}

.review-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.review-header strong {
  font-size: 16px;
  color: #333;
}

.stars {
  color: #FFD700;
  font-size: 16px;
}

.review-text {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  color: #555;
}

/* Modal backdrop */
.modal {
  display: none; /* hidden by default */
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%;
  overflow: auto; 
  background-color: rgba(0,0,0,0.7); /* dimmed backdrop */
}

/* Modal content box */
.modal-content {
  background-color: #fff;
  margin: 10% auto; /* vertical centering */
  padding: 40px;
  border: 1px solid #888;
  width: 85%;
  max-width: 600px;
  border-radius: 8px;
  position: relative;
  font-size: 14px;
}

/* Close button (the X) */
.close {
  color: #aaa;
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-content ul {
  margin: 10px 0;
  padding-left: 20px;
}

.modal-content li {
  margin-bottom: 5px;
  list-style-type: disc;
}

.modal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
}

.modal-content th,
.modal-content td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.modal-content th {
  background: #f5f5f5;
  font-weight: bold;
}

.modal-content tr:nth-child(even) {
  background: #f9f9f9;
}

/* Footer */
.site-footer {
  background-color: #f8f8f8;
  padding: 40px 20px;
  border-top: 1px solid #eaeaea;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: center;
}

.footer-logo img {
  max-width: 120px;
  height: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #555;
}

.footer-contact {
  font-size: 14px;
  color: #666;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}



@media (max-width: 900px) {
  .product-page {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 15px 0 15px;
  }

  .product-details {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .title { order: 1; }
  .rating { 
    order: 2;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding-bottom: 10px;
  }
  .original-price { order: 3; }
  .price { order: 4; }
  .product-gallery { 
    order: 5;
    flex: 1 1 100%;
    max-width: 100%;
  }
  .product-info-list { order: 6; }
  stripe-buy-button { 
    order: 8;
    margin-top: 10px;
    margin-bottom: 40px;
  }
  .feature-section { order: 11; }
  .thumbnail-row { justify-content: center; }

    .product-details h1 {
    margin: 0;
    padding: 0;
  }
  .tabs {
    order: 9;
  }

    .tab-content{
    order: 9;
    text-align: left;
    font-size: 1rem;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;   
  }
    .tab-content.active {
    text-align: left;
  }
    .feature-section {
    flex-direction: column;
    text-align: center;
  }

  .feature-image img {
    max-width: 100%;
  }
  .PaymentImage img {
    max-width: 200px;
  }
  .customer-reviews {
    order: 12;
  }
  .review {
    padding: 20px;
  }
}
