/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header styles */
header {
  /* background-color: #007bff; */
  color: #fff;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-section .brand-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.menu {
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.menu:hover {
  background-color: #0040ff;
}

.search-section {
  flex: 1;
  max-width: 600px;
  margin: 0 2rem;
}

.search-form {
  display: flex;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.category-select {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  color: #333;
  border-right: 1px solid #ddd;
  cursor: pointer;
}

.search-form input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: none;
  outline: none;
}

.search-form button {
  padding: 0.5rem 1rem;
  background: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #000;
}

.bottom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #007bff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 1rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-radius: 4px;
}

nav ul li a:hover {
  background-color: #0040ff;
  color: #fff;
  border-radius: 4px;
}

.user-actions {
  display: flex;
  gap: 1rem;
}

.icon-link {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.icon-link:hover {
  background-color: #0040ff;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  padding: 30px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.modal-logo {
  width: 50px;
  height: 50px;
  margin-right: 15px;
  border-radius: 10px;
}

.modal-header h2 {
  font-size: 24px;
  color: #333;
}

.modal-body {
  margin-bottom: 30px;
}

.modal-body p {
  margin-bottom: 5px;
  line-height: 1.6;
  color: #555;
}

.author-name {
  color: #007bff;
  font-weight: bold;
}

.disclaimer {
  font-size: 14px;
  color: #777;
  font-weight: 700;
}

.close-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.close-btn:hover {
  background-color: #0040ff;
}

/* Hero section styles */
.hero {
  position: relative;
  background: linear-gradient(to bottom right, #f3f6fb, #abb9d1);

  padding: 4rem 2rem;
  overflow: hidden;
  min-height: 400px;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-button.prev {
  left: 20px;
}

.nav-button.next {
  right: 20px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text {
  padding-right: 2rem;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: bold;
  margin-bottom: 1rem;
}

.subtitle {
  color: #666;
  font-size: 0.9rem;
}

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  max-width: 100%;
  height: 300px;
}

.hero-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.countdown {
  display: flex;
  gap: 1rem;
}

.countdown-item {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-align: center;
  min-width: 60px;
}

.countdown-item span {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
}

.countdown-item small {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
}

.price-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.price {
  font-size: 1.8rem;
  font-weight: bold;
  color: #0046be;
}

.original-price {
  text-decoration: line-through;
  color: #888;
  font-size: 1rem;
}

.hero-nav-dots {
  position: absolute;
  bottom: 2rem;
  left: 20rem;
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  padding: 0;
}

.dot.active {
  background: #0046be;
}

/* Category Navigation styles */
.categories {
  display: flex;
  justify-content: space-around;
  padding: 2rem 0;
  background-color: #fff;
  /* border-bottom: 1px solid #e0e0e0; */
}

.category-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-item .material-icons {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #0046be;
}

/* Category cards styles */
.category-cards {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background-color: #fff;
}

.category-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #edf3fd;

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-card img {
  width: 200px;
  height: 200px;
  margin-left: auto;
  margin-right: 10px;
  object-fit: contain;
  display: block;
}

.category-card-content {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  gap: 5rem;
}

.category-card h3 {
  font-size: 1.25rem;
  color: #333;
}

.shop-now {
  display: inline-flex;
  align-items: center;
  color: #007bff;
  font-weight: bold;
}

.shop-now .material-symbols-outlined {
  margin-left: 0.5rem;
}

/* Featured products styles */
.featured-products,
.top-rated,
.recently-added {
  padding: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.product-card {
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: center;
  background-color: #fff;
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-card img {
  max-width: 100%;
  height: 200px;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.product-card .price {
  display: block;
  margin-bottom: 1rem;
}

.product-card button {
  background-color: #0046be;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.product-card button:hover {
  background-color: #003399;
}

/* Promo banner styles */
.promo-banner {
  position: relative;
  background: linear-gradient(to bottom right, #f3f6fb, #abb9d1);
  color: #000;
  padding: 4rem 2rem;
  margin: 2rem 0;
  overflow: hidden;
}

.promo-banner .banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.promo-banner .banner-text {
  flex: 1;
}

.promo-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.promo-banner .price {
  font-size: 2rem;
  font-weight: bold;
}

.promo-banner .banner-image {
  flex: 1;
  text-align: right;
}

.promo-banner .banner-image img {
  max-width: 100%;
  height: 400px;
}

.promo-banner .nav-button {
  color: #000;
}

.promo-banner .banner-nav-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

.promo-banner .dot {
  background-color: #fff;
}

.promo-banner .dot.active {
  background-color: #007bff;
}

/* Second banner styles */
.second-banner {
  background: linear-gradient(to bottom right, #f3f6fb, #abb9d1);
  padding: 1rem;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.second-banner .banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.second-banner .banner-text {
  flex: 1;
  padding-left: 2rem;
}

.second-banner h2 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.second-banner .discount {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000;
}

.second-banner .banner-image {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.second-banner .banner-image img {
  max-width: 100%;
  height: 300px;
  object-fit: contain;
}

/* Top rated products styles */
.top-rated {
  padding: 4rem 2rem;
  background-color: #fff;
}

.top-rate h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.rating {
  color: #ffc107;
  margin-bottom: 1rem;
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* Payment offer styles */
.payment-offer {
  background-color: #f8f9fa;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
}

.payment-offer .material-symbols-outlined {
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Recently added styles */
.recently-added {
  padding: 4rem 2rem;
  background-color: #fff;
}

.recently-added h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Product categories styles */
.product-categories {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 4rem 2rem;
  background-color: #f8f9fa;
}

.category {
  flex: 1;
}

.category h3 {
  margin-bottom: 1rem;
}

.category ul li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.category ul li img {
  width: 10%;
  max-width: 100px;
  height: 50px;
  object-fit: contain;
  margin-right: 1rem;
  border-radius: 4px;
}

.category ul li .price {
  margin-left: auto;
  font-weight: bold;
}

/* Footer styles */
footer {
  background-color: #333;
  color: #fff;
  padding: 4rem 2rem;
}

.newsletter {
  text-align: center;
  margin-bottom: 2rem;
}

.newsletter h3 {
  margin-bottom: 1rem;
}

.newsletter form {
  display: flex;
  justify-content: center;
}

.newsletter input {
  padding: 0.5rem;
  border: none;
  border-radius: 4px 0 0 4px;
  width: 300px;
}

.newsletter button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
}

.social-icons a {
  margin-right: 1rem;
}

.company-info {
  text-align: center;
  border-top: 1px solid #555;
  padding-top: 2rem;
}

.company-info p {
  margin-bottom: 0.5rem;
}

#my-link {
  color: #007bff;
  font-weight: bold;
}

.bottom-info {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.info {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.mobile-nav{
  display: none;
}

/* Responsive styles */
@media screen and (max-width: 1024px) {
  .top-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .search-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .category-select {
    display: none;
  }

  .bottom-header {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }

  nav ul {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  nav ul li {
    margin: 0 0.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .category-cards {
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-categories {
    flex-direction: column;
  }
}

/* Mobile responsive styles - matching the provided image */
@media screen and (max-width: 768px) {
  /* Header styles for mobile */
  .top-header {
    flex-direction: row;
    padding: 0.5rem;
    background-color: #007bff;
  }

  .logo-section .brand-logo {
    color: #fff;
    font-size: 1.8rem;
  }

  .search-section {
    margin: 0;
    max-width: 70%;
  }

  .search-form {
    border-radius: 20px;
  }

  .search-form input {
    padding: 0.3rem 0.5rem;
  }

  .search-form button {
    border-radius: 0 20px 20px 0;
  }

  .contact-info,
  .bottom-header {
    display: none;
  }

  /* Make hero section responsive instead of hiding it */
  .hero {
    padding: 1rem;
    min-height: auto;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
    text-align: center;
  }

  .hero-image-container {
    display: none;
  }

  .hero-details {
    display: none;
  }

  .hero-nav-dots {
    display: none;
  }

  .nav-button {
    display: none;
  }

  /* Categories styling for mobile */
  .categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
  }

  .category-item {
    font-size: 0.8rem;
  }

  .category-item .material-symbols-outlined {
    font-size: 1.5rem;
  }

  /* Make category cards responsive instead of hiding */
  .category-cards {
    display: none;
  }

  /* Featured products styling */
  .featured-products,
  .top-rated,
  .recently-added {
    padding: 1rem;
  }

  .featured-products h2,
  .top-rated h2,
  .recently-added h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .product-card {
    padding: 0.5rem;
    border: none;
    box-shadow: none;
  }

  .product-card img {
    height: 100px;
    object-fit: contain;
  }

  .product-card h3 {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .product-card .price {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #0046be;
  }

  .product-card button {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background-color: #007bff;
  }

  /* Promo banner styling */
  .promo-banner {
    padding: 1rem;
    margin: 1rem 0;
  }

  .promo-banner .banner-content {
    flex-direction: column;
  }

  .promo-banner h2 {
    font-size: 1.5rem;
  }

  .promo-banner .banner-image img {
    height: 200px;
  }

  .promo-banner .nav-button {
    display: none;
  }

  /* Second banner styling */
  .second-banner {
    padding: 1rem;
  }

  .second-banner .banner-content {
    flex-direction: column;
  }

  .second-banner h2 {
    font-size: 1.5rem;
  }

  .second-banner .banner-image img {
    height: 150px;
  }

  /* Keep product categories visible and style for mobile */
  .product-categories {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .category h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .category ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .category ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .category ul li img {
    width: 80%;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 0.5rem;
    background-color: #eee;
    padding: 0.5rem;
    border-radius: 4px;
  }

  .category ul li span:first-of-type {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    display: block;
    width: 100%;
  }

  .category ul li .price {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    color: #0046be;
    margin-bottom: 0.5rem;
  }

  /* Add buttons to the product category items */
  .category ul li::after {
    content: "Add to Cart";
    display: block;
    background-color: #007bff;
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    text-align: center;
    
  }

  /* Footer styling - keep visible */
  footer {
    display: none;
  }

  /* Mobile navigation bar - ensure it's visible */
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: white;
    border-top: 1px solid #ddd;
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
  }

  .mobile-nav-item .material-symbols-outlined {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
  }

  /* Add padding to body to account for fixed nav */
  body {
    padding-bottom: 60px;
  }

  /* Remove these pseudo-elements that were causing issues */
  body::after,
  body::before {
    display: none;
  }
}

