/* 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; /* yellow hover */
  }
  
  .nav-links a.active {
    color: #fdd835;
    border-bottom: 2px solid #fdd835;
  }
  

  .menu-toggle {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
  }
 
  
  



  /* cards css */
  .card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cards in one row for large screens */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto; /* Center the card container */
  }
  
  
  
  .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; /* Reduced padding for compact view */
    text-align: center;
  }
  
  .card h3 {
    font-size: 1.2rem; /* Smaller font size for compact view */
    margin-bottom: 10px;
    color: #333;
  }
  
  .price {
    font-size: 1rem; /* Smaller font size for prices */
    margin-bottom: 10px;
    color: #333;
  }
  
  .cta-btn {
    background-color: #d33;
    color: white;
    padding: 8px 15px; /* Smaller button for compact view */
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  .cta-btn:hover {
    background-color: #e64a19;
  }
  
  




  /* css for footer */
   
  /* footer css */
  /* Footer styles */
.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;
  }
  
  .footer-about p {
    font-size: 14px;
  }
  
  .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;
  }
  
  .footer-bottom p {
    font-size: 14px;
  }
  
  



  /* 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 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;
  }

  /* 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;
  }
  
  .buy-now {
    padding: 6px 11px;
    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;
  }
}

/* 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;
  }
  
  /* 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;
  }
  
  /* Buy Now Button */
  .buy-now {
    padding: 6px 11px;
    font-size: 0.85rem;
  }
}

/* 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;
  }
  
  /* 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;
  }
}



@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;
  }
}






/* 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; 
}



/* Responsive adjustments */
@media (max-width: 768px) {
  .h4_fo {
    margin-left: 5px !important;
}
}