/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
}

/* 1. Top Bar */
.top-bar {
  background-color: #f5e6c4;
  color: #333;
  padding: 10px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-bar .left {
  font-weight: 700;
  font-size: 16px;
}

.top-bar .offer {
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.4);
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 15px;
}

/* 2. Middle Header */
.middle-header {
  background-color: white;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
}

.middle-header .container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.middle-header .logo img {
  width: 120px;
}

.search-box {
  flex-grow: 1;
  margin: 0 40px;
  display: flex;
  border: 1px solid #d33;
  border-radius: 4px;
  overflow: hidden;
}

.search-box input {
  border: none;
  padding: 10px;
  width: 100%;
}

.search-box button {
  background-color: #d33;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
}

.icons i {
  font-size: 20px;
  margin-left: 20px;
  color: #333;
  position: relative;
}

.cart {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* 3. Navigation Bar */
.main-nav {
  background-color: #0a0a0a;
  color: white;
  padding: 15px 0;
}

.main-nav .container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
  font-weight: 600;
  font-size: 15px;
}

.support-info {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-info .phone-icon {
  background-color: #d33;
  padding: 10px;
  border-radius: 50%;
  font-size: 18px;
  color: white;
}

.support-info .details span {
  font-size: 13px;
  display: block;
}

.support-info strong {
  color: #d33;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: #fdd835;
}

.nav-links a.active {
  color: #fdd835;
  border-bottom: 2px solid #fdd835;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-images {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  transition: transform 1s ease-in-out;
}

.hero-img {
  width: 50%;
  height: 100vh;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: black;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.cta-btn {
  text-decoration: none;
  background-color: #d33;
  padding: 10px 20px;
  color: white;
  font-size: 1.2rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: #e64a19;
}

/* cards css */
.card-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid #f1f1f1;
}

.card-content {
  padding: 15px;
  text-align: center;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.price {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #333;
}

.cta-btn {
  background-color: #d33;
  color: white;
  padding: 8px 15px;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: #e64a19;
}

/* footer css */
.footer {
  background-color: #2c3e50;
  color: white;
  padding: 40px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  flex-wrap: wrap;
}

.footer-about,
.footer-links,
.footer-contact,
.footer-social {
  flex: 1;
  margin: 10px;
  min-width: 200px;
}

.footer-about h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.f_p {
  font-size: 14px;
  color: #f7f6f6;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.footer-links ul,
.footer-contact ul,
.footer-social ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-contact ul li {
  margin-bottom: 8px;
}

.footer-links ul li a,
.footer-contact ul li a {
  color: white;
  text-decoration: none;
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover {
  color: #f39c12;
}

.footer-social ul {
  display: flex;
}

.footer-social ul li {
  margin-right: 15px;
}

.footer-social ul li a {
  color: white;
  font-size: 20px;
  transition: color 0.3s ease;
}

.footer-social ul li a:hover {
  color: #f39c12;
}

.footer-bottom {
  background-color: #34495e;
  text-align: center;
  padding: 15px 0;
  margin-top: 20px;
}

.f_p{
  font-size: 14px;
  color: #f6f5f5;
}

/* popup styles */
.popup {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.popup-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  position: relative;
}

.popup-content h2 {
  margin-bottom: 15px;
}



/* Media Queries for Mobile Responsiveness */
@media only screen and (max-width: 768px) {
  /* 1. Top Bar Adjustments */
  .top-bar .container {
    flex-direction: column;
    text-align: center;
    padding: 8px 10px;
  }
  
  .top-bar .left {
    margin-bottom: 5px;
    font-size: 14px;
  }
  
  .top-bar .right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .top-bar .offer {
    margin: 5px 0 0 0;
    width: fit-content;
  }

  /* 2. Middle Header Adjustments */
  .middle-header .container {
    flex-direction: column;
    padding: 15px;
  }
  
  .middle-header .logo img {
    width: 120px;
    margin-bottom: 15px;
  }
  
  .search-box {
    margin: 15px 0;
    width: 100%;
  }
  
  .icons {
    display: flex;
    justify-content: center;
    margin-top: 15px;
  }
  
  .icons i {
    margin: 0 10px;
  }

  /* 3. Navigation Bar Adjustments */
  .main-nav .container {
    flex-wrap: wrap;
    padding: 10px 15px;
  }
  
  .category-btn {
    order: 1;
    width: 100%;
    padding: 8px 0;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .menu-toggle {
    display: block;
    order: 2;
    margin-left: auto;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 4;
    background-color: #1a1a1a;
    margin-top: 10px;
    padding: 10px 0;
    border-radius: 5px;
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .nav-links li {
    padding: 8px 15px;
    border-bottom: 1px solid #333;
  }
  
  .nav-links li:last-child {
    border-bottom: none;
  }
  
  .support-info {
    order: 3;
    margin: 10px 0;
    width: 100%;
    justify-content: center;
  }
  
  .support-info .details {
    font-size: 12px;
  }

  /* Hero Section Adjustments */
  .hero {
    height: 60vh;
  }
  
  .hero-content {
    width: 90%;
  }
  
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .hero p {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  
  .cta-btn {
    font-size: 1rem;
    padding: 8px 16px;
  }

  /* Card Grid Adjustments */
  .card-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
  }
  
  .card-img {
    height: 150px;
  }
  
  .card h3 {
    font-size: 1rem;
  }
  
  .price {
    font-size: 0.9rem;
  }
  
  .cta-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  /* Footer Adjustments */
  .footer-container {
    flex-direction: column;
    padding: 0 15px;
  }
  
  .footer-about,
  .footer-links,
  .footer-contact,
  .footer-social {
    margin: 15px 0;
    text-align: center;
  }
  
  .footer-social ul {
    justify-content: center;
  }

  /* Popup Adjustments */
  .popup-content {
    width: 95%;
    margin: 20% auto;
    padding: 15px;
  }
  
  input, select, textarea {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* Smaller Mobile Devices (up to 480px) */
@media only screen and (max-width: 480px) {
  /* Card Grid for Very Small Screens */
  .card-container {
    grid-template-columns: 1fr;
  }
  
  /* Hero Section Further Adjustments */
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  /* Navigation Font Sizes */
  .nav-links {
    font-size: 14px;
  }
  
  /* Search Box Adjustments */
  .search-box input {
    padding: 8px;
  }
  
  .search-box button {
    padding: 8px 12px;
  }
  
  /* Footer Bottom Text */
  .footer-bottom p {
    font-size: 12px;
  }
}

/* Tablet Adjustments (768px - 1024px) */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
  /* Card Grid for Tablets */
  .card-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Navigation Bar Adjustments */
  .nav-links {
    gap: 15px;
    font-size: 14px;
  }
  
  /* Hero Section Adjustments */
  .hero h1 {
    font-size: 2.5rem;
  }
  
  /* Middle Header Adjustments */
  .middle-header .container {
    padding: 0 30px;
  }
  
  .search-box {
    margin: 0 20px;
  }
}


@media only screen and (max-width: 768px) {
  .middle-header .logo img {
      width: 90px;
      margin-bottom: -27px;
      margin-top: -47px;
  }
}






  /* code for shiiping address */
  .popup {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
  }
  
  .popup-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
  }
  
  .popup-content h2 {
    margin-bottom: 15px;
    color: #333;
  }
  
  .popup-content input,
  .popup-content textarea {
    width: 100%;
    margin: 8px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  .popup-content button {
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .popup-content button:hover {
    background-color: #218838;
  }
  
  .close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
  }

  
  /* buy now button */
  .buy-now {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    padding: 6px 11px;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-decoration: none;
  }
  
  .buy-now:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.4);
  }
  
  .popup-content select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
  }


  
@media only screen and (max-width: 480px) {
  .nav-links {
      font-size: 10px;
      margin-left: 160px;
  }
}

@media only screen and (max-width: 768px) {
  .nav-links {
      display: none;
      flex-direction: column;
      width: 45%;
      order: 4;
      background-color: #1a1a1a;
      margin-top: -60px;
      padding: 10px 0;
      border-radius: 5px;
      margin-left: 160px;
  }
}

@media only screen and (max-width: 768px) {
  .category-btn {
      order: 1;
      width: 95%;
      padding: 1px 0;
      text-align: center;
      margin-bottom: -25px;
  }
}



/* Features Section */
.features {
  background-color: #f8f9fa;
  padding: 40px 0;
  margin-top: -20px; /* Adjust this value to overlap with the hero section if desired */
}

.feature-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  text-align: center;
  padding: 20px;
  width: 200px;
  margin: 10px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.feature-item i {
  font-size: 2.5em;
  color: #007bff;
  margin-bottom: 15px;
}

.feature-item h3 {
  font-size: 1.2em;
  margin-bottom: 5px;
  color: #333;
}

.feature-item p {
  font-size: 0.9em;
  color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .feature-container {
    flex-direction: column;
    align-items: center;
  }

  .feature-item {
    width: 80%;
    max-width: 300px;
  }
}





/* About Section */
.about-section {
  background-color: #f9f9f9;
  padding: 60px 0;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-container h2 {
  font-size: 2.5em;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

.about-container h3 {
  font-size: 1.8em;
  color: #444;
  margin-top: 40px;
  margin-bottom: 20px;
}

.about-container p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

.featured-products {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 30px;
}

.product {
  width: 22%;
  text-align: center;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product:hover {
  transform: translateY(-5px);
}

.product img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 10px;
}

.product h4 {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 0;
}

.know-more-btn {
  display: block;
  width: 200px;
  margin: 40px auto 0;
  padding: 15px 30px;
  background-color: #007bff;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 1.1em;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.know-more-btn:hover {
  background-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product {
    width: 48%;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .product {
    width: 100%;
  }
}






/* Common styles for sections */
.trending-section,
.blogs-section,
.why-choose-us,
.how-different,
.our-usps,
.faq-section {
  padding: 50px 0;
  background-color: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 15px;
}

/* Trending Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.product-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-item h4 {
  padding: 15px;
  font-size: 1.1rem;
  text-align: center;
}

/* Know More Button */
.know-more-btn {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.know-more-btn:hover {
  background-color: #0056b3;
}

/* USPs */
.usp-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.usp-item h3 {
  font-size: 1.5rem;
  color: #007bff;
  margin-bottom: 10px;
}

/* FAQ Section */
.faq-item {
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-item h3 {
  font-size: 1.2rem;
  padding: 15px;
  background-color: #f0f0f0;
  cursor: pointer;
  margin: 0;
}

.faq-answer {
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-answer.active {
  max-height: 500px; 
  padding: 15px;
}

.faq-item {
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
  font-size: 1.2rem;
  padding: 15px;
  background-color: #f0f0f0;
  cursor: pointer;
  margin: 0;
  position: relative;
  transition: background-color 0.3s ease;
}

.faq-item h3:hover {
  background-color: #e0e0e0;
}

.faq-item h3::after {
  content: '\25BC';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.faq-item h3.active::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer p {
  margin: 0;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .faq-item h3 {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .faq-answer {
    font-size: 0.9rem;
  }
  .h4_fo {
    margin-left: 5px !important;
}
}



.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer.active {
  max-height: 135px;
  overflow-y: auto;
}

.faq-item h3 {
  cursor: pointer;
}

.faq-item h3::after {
  content: '+';
  float: right;
}

.faq-item h3.active::after {
  content: '-';
}




/* css for payment mode */
.footer-payment {
  margin-bottom: 20px;
}

.footer-payment h4 {
  margin-bottom: 10px;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.payment-icons a {
  font-size: 24px;
  color: #fff;
  transition: color 0.3s ease;
}

.payment-icons a:hover {
  color: #f39c12;
}

.fa-dollar-sign {
  background-color: #00D632;
  padding: 5px 8px;
  border-radius: 5px;
}

.fa-vimeo-v {
  background-color: #3D95CE;
  padding: 5px 8px;
  border-radius: 5px;
}
.h4_fo {
margin-left: 105px; 
}