body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}
header {
  color: #111;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px,
    rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
  z-index: 999;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background-color: #fff;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.logo h4 {
  font-size: 22px;
}

.nav-item ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.nav-item ul li {
  margin: 0 10px;
}

.nav-item ul li a {
  color: #111;
  text-decoration: none;
  /* display: block; */
  padding: 8px 15px;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.ri-shopping-cart-line {
  font-size: 30px;
}
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
  padding: 10px 0px;
  z-index: 9;
}

.dropdown-content a {
  color: black;
  padding: 35px;
  text-decoration: none;
  display: block;
  opacity: 0.9;
  font-size: 16px;
  margin-bottom: 15px;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.nav-toggle {
  display: none;
}
.nav-toggle i {
  font-size: 30px;
  color: #111;
}
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #fff;
  overflow-x: hidden;
  transition: 0.5s;
  z-index: 9;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 20px;
  color: #111;
  display: block;
  transition: 0.3s;
  cursor: default;
}

.sidenav a:hover {
  color: #111 !important;
}

.sidenav span i {
  font-size: 50px;
  color: #111;
  cursor: default;
}
/* Add this to the existing CSS */
.sidenav .dropdown-content {
  display: none;
  position: relative;
  background-color: #f9f9f9;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
  padding: 10px 0px;
  width: 100%;
}

.sidenav .dropdown-content a {
  color: black;
  padding: px;
  text-decoration: none;
  display: block;
  opacity: 0.9;
  font-size: 16px;
  margin-bottom: 5px;
}

.sidenav .dropdown-content a:hover {
  background-color: #f1f1f1;
}
@media screen and (max-height: 450px) {
  .sidenav {  
    padding-top: 15px;
  }
  .sidenav a {
    font-size: 16px;
  }
  .navbar-toggle .toggle-icon {
    cursor: default !important;
  }
}
/* main section start*/
.hero {
  background: url(../images/hero.webp) no-repeat top center/cover;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  position: relative;
}
/* main section end */
.hero-inner {
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
.hero-content {
  z-index: 2;
  line-height: 2;
}

.hero p {
  font-size: 22px;
  font-family: "Times New Roman", Times, serif;
  letter-spacing: 2px;
}
.hero a button {
  background-color: #229799;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 25px;
  font-size: 18px;
  border: none;
  cursor: pointer;
}
.hero-content h1 {
  overflow: hidden; /* Ensures the content is not visible until typed */
  border-right: 0.05em solid #229799; /* Cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  letter-spacing: 0.15em; /* Adjust as needed */
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
  font-size: 50px;
  margin-bottom: 20px;
  text-transform: capitalize;
  font-weight: normal;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #229799;
  }
}

/* services section start */
.services {
  padding: 50px 0;
}
.services h1 {
  text-align: center;
  opacity: 0.8;
}
.card-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 10px;
  margin-top: 80px;
  display: flex;
  flex-wrap: wrap;
  /* justify-content: space-between; */
  gap: 20px;
}

/* Card Container */
.card {
  width: 280px;
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
}

/* Image Section */
.card-image {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.card-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.wishlist-icon {
  position: absolute;
  top: 0px;
  right: 10px;
  cursor: pointer;
}

.wishlist-icon p {
  color: #fff;
  font-size: 15px;
  background-color: #229799;
  padding: 8px 20px;
  border-radius: 20px;
}

/* Content Section */
.card-content {
  padding: 20px;
  text-align: left;
}

.card-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
  margin-top: 10px;
}

.card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.tag {
  padding: 5px 10px;
  font-size: 12px;
  background-color: #f2f2f2;
  color: #555;
  border-radius: 15px;
}

.card-content p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Footer Section */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  display: flex;
  gap: 10px;
}

.add-to-cart {
  padding: 10px 15px;
  background-color: #229799;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
  border-radius: 25px;
}
.quantity-value {
  font-size: 16px;
  font-weight: bold;
}
.add-to-cart:hover {
  background-color: #197374;
}

/* services section end */
.product-section {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 10px;
  background-color: #fff;
  flex-wrap: wrap; /* Ensures content wraps on smaller screens */
}

.product-card {
  width: 45%;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 1em;
  color: #666;
  margin-bottom: 20px;
}

.product-card img {
  width: 200px;
  height: auto;
  border-radius: 4px;
}
.features-section {
  background-color: #eef7f9;
  padding: 15px;
  margin-top: 50px;
}
.features {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  gap: 20px; /* Adds spacing between elements */
  align-items: center;
  /* background-color: #eef7f9; */
  padding: 0px 10px;
}

.feature {
  text-align: center;
  width: 20%;
  /* background-color: red; */
  min-width: 150px; /* Ensures a minimum size for each feature */
  box-sizing: border-box;
}

.feature img {
  width: 50px;
  margin-bottom: 10px;
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #333;
}

.feature p {
  font-size: 0.9rem;
  color: #666;
}

/* footer */
footer {
  background-color: #f8f8f8;
  padding: 20px 10px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin: 10px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.footer-section p {
  font-size: 15px;
  color: #111;
  opacity: 0.8;
  /* margin-bottom: 20px; */
}
.footer-section ul {
  list-style: none;
  padding: unset;
}

.footer-section ul li {
  margin-bottom: 8px;
  padding: 0px 0px;
}

.footer-section ul li a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
  opacity: 0.8;
  font-size: 15px;
}

.footer-section ul li a:hover {
  color: #197374;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  color: #666;
  font-size: 14px;
  max-width: 1200px;
  margin: 0 auto;
}


/* cart start */
.container {
  display: flex;
  justify-content: center;
  padding: 20px;

  
}

.cart {
  display: flex;
  width: 90%;
  max-width: 1400px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-200%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  position: fixed;
  top: 30%;
  /* left: 50%; */
  transform: translate(-50%, -50%);
  z-index: 999;
  height: 400px;
 
}

.cart.show {
  transform: translateX(0);
  opacity: 1;
}

.cart-details {
  flex: 2;
  padding: 20px;
  overflow-y: auto; 
}

.order-summary {
  flex: 1;
  background: #f9f9f9;
  padding: 20px;
  border-left: 1px solid #ddd;
}

h2 {
  font-size: 22px;
  margin-bottom: 15px;
}

.product {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: box-shadow 0.3s ease;
}

.product:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product img {
  width: 80px;
  height: auto;
  margin-right: 15px;
}

.product-details {
  flex: 1;
}

.product-details p {
  margin: 5px 0;
}

.quantity {
  display: flex;
  align-items: center;
}

.quantity button {
  background-color: #ddd;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
}

.quantity input {
  width: 40px;
  text-align: center;
  border: 1px solid #ddd;
  margin: 0 5px;
  border-radius: 4px;
}

.price {
  width: 80px;
  text-align: right;
}

.remove {
  color: #e74c3c;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
}

.continue-shopping {
  display: inline-block;
  margin-top: 20px;
  color: #3498db;
  text-decoration: none;
  font-size: 14px;
}

.order-summary h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.order-summary .summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.promo-code {
  margin-bottom: 20px;
}

.promo-code input {
  width: calc(100% - 80px);
  padding: 5px;
  border: 1px solid #ddd;
  margin-right: 10px;
  border-radius: 4px;
}

.promo-code button {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 5px 15px;
  cursor: pointer;
  border-radius: 4px;
}

.checkout-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.checkout-button:hover {
  background-color: #2874a6;
}

.cart-icon:hover {
  transform: scale(1.1);
}

/* cart end */

@media screen and (max-width: 768px) {
  .nav-item ul li {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-item ul li:nth-child(5) {
    display: block;
  }
  .hero-content h1 {
    font-size: 18px;
    white-space: normal; /* Allows the text to wrap */
    word-break: break-word;
    animation: none;
  }
  .product-card {
    width: 80%; /* Make cards take up more space on smaller screens */
  }
  .features {
    flex-direction: column; /* Stack elements vertically */
    align-items: center;
  }

  .feature {
    width: 80%; /* Adjust width for smaller screens */
  }
  .footer-container {
    flex-wrap: wrap;
  }
  .cart {
    flex-direction: column;
}

.cart-details,
.order-summary {
    width: 100%;
    border: none;
}

.order-summary {
    padding: 15px;
    border-top: 1px solid #ddd;
}

.product img {
    width: 60px;
}

.quantity input {
    width: 35px;
}

h2 {
    font-size: 18px;
}
}
/* Responsive adjustments */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 40px;
  }
}

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 35px;
  }
}
@media (max-width: 576px) {
  .card {
    width: auto;
  }
}

@media (max-width: 480px) {
  .product-card {
    width: 100%; /* Make cards stack fully on very small screens */
    padding: 15px; /* Reduce padding for smaller viewports */
  }

  .product-card h3 {
    font-size: 1.2em; /* Adjust font size for headings */
  }

  .product-card p {
    font-size: 0.9em; /* Adjust font size for text */
  }
  .feature img {
    width: 40px; /* Smaller icon size for small screens */
  }

  .feature h3 {
    font-size: 1rem;
  }

  .feature p {
    font-size: 0.8rem;
  }
  .cart-icon {
    padding: 10px 14px;
    font-size: 18px;
}

.promo-code input {
    width: calc(100% - 70px);
}

.checkout-button {
    font-size: 14px;
    padding: 8px 16px;
}
}
