body {
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
  background: #f5f5f5;
  color: #333;
  font-weight: normal;
}
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
}

.logo img {
  height: 60px;
  margin: 0 auto;
  display: block;
}


/* Navbar styling */
nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

nav li {
  margin: 0 15px;
}

nav a {
  text-decoration: none;
  color: #003366;
  font-weight: 500;
  position: relative;
}

nav a:hover,
nav a:focus {
  color: #0077cc;
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #0077cc;
}

.navbar nav a:hover,
.navbar nav a:focus,
.navbar nav a.active {
  color: #003366;
  border-bottom: 2px solid #003366;
}


.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  border-bottom: 1px solid #ddd;
  background-color: #fff;
}

/* Left: Logo */
.header-left .logo img {
  height: 50px;
}

/* Center: Navbar (Keep your existing styles) */

/* Right: Login + Search + Cart */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.login-btn {
  background-color: #0077cc;
  color: #fff;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
}

.login-btn:hover {
  background-color: #005fa3;
}

.icon-link img {
  width: 22px;
  height: 22px;
  cursor: pointer;
}

/* Responsive Fixes */
@media (max-width: 900px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  .header-right {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.search-input {
  opacity: 0;
  visibility: hidden;
  width: 0px;
  padding: 0.4rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 20px;
  outline: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;

}

/* Show search input when hovering OR when focused inside */
.search-container:hover .search-input,
.search-container:focus-within .search-input {
  opacity: 1;
  visibility: visible;
  width: 160px;
}


.icon-link img {
  width: 22px;
  height: 22px;
  cursor: pointer;
}

.icon-link.cart-icon img {
  width: 26px;
  height: 26px;
}

/* Buy Common Style */
.product-detail {
  background: #fff;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
  color: #222;
}

.product-header h1 {
  font-size: 2.2rem;
  font-weight: bold;
  color: #112255;
  margin-bottom: 1.5rem;
margin-left: 56%;
}

.product-buy-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.image-gallery {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  height: 450px;
  justify-content: flex-start;
}

.main-image {
  width: 100%;
  height: 350px;
  object-fit: contain;
  border-radius: 10px;
  transition: opacity 0.4s ease, transform 0.4s ease;
  margin-bottom: 1rem;
}


.thumbnail-images {
  display: flex;
  gap: 0.5rem;
}

.thumbnail-images img {
  width: 100px;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
}

.thumbnail-images img.active {
  border-color: #0077cc;
}

@keyframes slideIn {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in {
  animation: slideIn 0.4s ease;
}


.buy-now-box {
  flex: 1 1 30%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-left: 2rem; 
}


.buy-now-box h2 {
  font-size: 1.8rem;
  color: #112255;
  margin-bottom: 1rem;
}


.buy-now-box .price {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.buy-now-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.buy-now-inline input {
  width: 60px;
  padding: 0.4rem;
}

.buy-now-inline button {
  background: #ff9900;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.buy-now-inline button:hover{
   background: #e08800;
}
.trust-badges {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  gap: 0.8rem;
}

.trust-badges .badge {
  flex: 0 0 70px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  color: #1a3365;
  font-size: 0.75rem;
  line-height: 1.2;
}

.trust-badges .badge img {
  width: 60px;
  height: 60px;
  margin-bottom: 0.25rem;
}
.trust-badges p{
  font-size: 0.9rem;
}

.product-details {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 0.5rem;
}

.detail-section {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
}
.detail-section.tabular-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 90%;      
  margin: 2rem 0;    
  padding-left: 0;  
  gap: 3rem;         
}

.detail-section .tabular-grid ul,
.detail-section .tabular-grid ol {
  margin: 0;
  padding-left: 20px;
  max-width: 600px;     
}

.detail-section .tabular-grid ul{
  list-style-type: disc;
}
.detail-section h2 {
  color: #112255;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.detail-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.detail-text {
  flex: 1;
}

.detail-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.detail-image img {
 max-width: 350px;  
  height: auto;       
  object-fit: contain;
  border-radius: 10px;
}

#specs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

#specs th {
  background: #112255;
  color: #fff;
  padding: 0.8rem;
  text-align: left;
}

#specs td {
  padding: 0.8rem;
  border: 1px solid #ddd;
  background: #f9f9f9;
}

.key-features {
  background: #E6ECFF;
  padding: 2rem 1rem;
  text-align: center;
}

.section-title {
  font-size: 1.8rem;
  color: #112255;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #0077cc;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.features-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.2rem;
  width: 220px;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-size: 1rem;
  color: #333;
  margin: 0;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.tabular-grid > div {
  flex: 1;
}

.tabular-grid 
{
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}

.tabular-grid ul {
  list-style: none;
  padding: 0;
}

.tabular-grid li {
  margin-bottom: 0.5rem;
}


.precautions h3 {
  font-size: 1.3rem;
  color: #112255;
}

.precaution-note {
  font-size: 0.9rem;
  color: #555;
}
.reviews {
  margin-top: 3rem;
  background: #fafafa;
  padding:2rem;
  padding-bottom: 5rem;
  border-radius: 8px;
  border: 1px solid #eee;
  overflow: hidden;   
}

.reviews h3 {
  font-size: 1.6rem;
  color: #112255;
  margin-bottom: 1.5rem;
  text-align: center;
}

.reviews-row {
  display: flex;
  gap: 1rem;
  animation: scrollReviews 25s linear infinite; /* 🔹 controls speed */
}

.review-card {
  flex: 0 0 300px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.stars {
  font-size: 1.2rem;
  color: #ff9900; /* gold stars */
  margin-bottom: 0.5rem;
}

.review-card p {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.review-card span {
  font-weight: bold;
  color: #112255;
}

/* 🔹 Keyframes for smooth continuous sliding */
@keyframes scrollReviews {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%); /* depends on how many cards are duplicated */
  }
}

hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08); 
}

/* Newsletter */
.newsletter {
  position: relative;
  height: 400px;
  background: #003366;
  border-top: 2px solid #003366;
  /* margin-top: 3rem; */
}

.newsletter-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 51, 102, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.newsletter-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
  color: #fff;
  z-index: 2;
}

.newsletter-content h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.newsletter-content form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-content input {
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
  width: 250px;
}
.newsletter-content h2 {
  color: #fff !important;
}

.newsletter-content button {
  padding: 0.5rem 1rem;
  border: none;
  font-size: 1rem;
  border-radius: 4px;
  background: #3399cc;
  color: #fff;
  cursor: pointer;
}

.newsletter-content button:hover {
  background: #0077cc;
}
.newsletter-address {
  font-size: 0.8rem;
  color: #ccc;
  margin-top: 1rem;
}

footer {
  text-align: center;
  padding: 0.5rem;      
  background: #fff;
  border-top: 1px solid #ddd;
  font-size: 0.8rem;    
}
.footer-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #003366;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer-links a:hover {
  border-color: #003366;
}

