body {
  font-family: "Qaf", sans-serif;
  margin: 0;
  padding: 0;
  background: #f6f8f7;
  color: #333;
  direction: rtl;
  overflow-x: hidden;
}

.categories,
.special-offers,
.product-section,
.whyus,
.hero-section {
  margin-left: auto;
  margin-right: auto;
}

.cat-container,
.offers-swiper,
.product-container {
  margin-left: auto;
  margin-right: auto;
}

* {
  box-sizing: border-box;
}
html,
body {
  padding: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .special-offers,
  .categories,
  .product-section,
  .whyus {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
  }
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 25px;
  overflow: hidden;
  padding: 40px 60px;
}

.hero-image {
  flex: 1;
  position: relative;
  z-index: 1;
}
.hero-image img {
  width: 60%;
  margin-right: auto;
  margin-left: auto;
  filter: drop-shadow(0 10px 10px #4caf50);
  border-radius: 20px;
}
.hero-image .blur-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-text {
  flex: 1;
  z-index: 2;
}
.hero-text h1 {
  font-size: 2.8rem;
  color: #000;
  margin-bottom: 20px;
}
.hero-text .highlight {
  color: #4caf50;
  font-weight: bold;
}
.hero-text p {
  color: #333;
  font-size: 1.2rem;
  line-height: 1.8;
}

.categories {
  position: relative;
  margin: 50px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-container {
  display: flex;
  width: 80%;
  border-radius: 50px 50px 0 0;
  border: 3px solid #4caf50;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 25px;
  padding: 10px 20px;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #4caf50 #f1f1f1;
}

.cat-item {
  background: #fff;
  border-radius: 15px;
  flex: 0 0 auto;
  width: 100px;
  text-align: center;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}
.cat-item:hover {
  transform: translateY(-5px);
}
.cat-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}
.cat-name {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #333;
}

.arrow-btn {
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: 0.3s;
  font-size: 1.8rem;
  color: #4caf50;
  z-index: 10;
  margin: 20px;
}
.arrow-btn:hover {
  background: #4caf50;
  color: #fff;
}

.cat-container::-webkit-scrollbar {
  height: 10px;
}

.cat-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.cat-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #4caf50, #66bb6a);
  border-radius: 20px;
  transition: background 0.3s ease;
  transition: 0.2s ease;
}

.cat-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #43a047, #2e7d32);
  transition: 0.2s ease;
}

.cat-container {
  scrollbar-width: thin;
  scrollbar-color: #4caf50 #f1f1f1;
}

.special-offers {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #43893b;
  padding: 40px 50px;
  margin: 80px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  width: calc(80% - 100px);
  border-radius: 30px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.offers-swiper {
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 80%;
}
.offers-header {
  width: 18%;
  text-align: center;
}
.offers-header h3 {
  font-size: 1.6rem;
  color: #fff;
}
.offers-header img {
  width: 140px;
  margin: 10px auto;
}

.offer-card {
  position: relative;
  background: #f9f9f9;
  border-radius: 15px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  width: 200px;
  height: 320px;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.offer-card:hover {
  transform: translateY(-6px);
}

.offer-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.2));
}

.offer-card h4 {
  font-size: 1rem;
  color: #333;

  color: rgba(255, 255, 255, 0.302);
  margin: 8px 0 5px;
}
.offer-prices {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  font-weight: bold;
}
.offer-prices .old {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
}
.offer-prices .new {
  color: #4caf50;
  font-size: 1rem;
}
.offer-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff5252, #ff1744);
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 10;
  font-weight: 600;
}

.offers-prev,
.offers-next {
  position: absolute;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 22px;
  color: #2e6f3e;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 10;
  transition: 0.3s ease;
}
.offers-prev:hover,
.offers-next:hover {
  background: #2e6f3e;
  color: #fff;
}
.offers-prev {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.offers-next {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 400px) {
  .special-offers {
    flex-direction: column;
    width: 50%;
    padding: 25px 15px;
    border-radius: 20px;
    margin: 50px auto;
  }

  .hero-text h1 {
    margin-right: auto;
    margin-left: auto;
    display: block;
    align-items: center;
  }
  .hero-text p {
    margin-right: auto;
    margin-left: auto;
    display: block;
    align-items: center;
  }

  .cat-container {
    width: 100%;
    margin-right: 20px;
  }

  #cat-next,
  #cat-prev {
    display: none;
  }
}
@media (max-width: 576px) {
  .special-offers {
    flex-direction: column;
    width: 95%;
    padding: 25px 15px;
    border-radius: 20px;
    margin: 50px auto;
  }

  .offers-header {
    width: 100%;
    margin-bottom: 15px;
  }
  .offers-header h3 {
    font-size: 1.3rem;
  }
  .offers-header img {
    width: 90px;
  }

  .offers-swiper {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .offer-card {
    width: 85%;
    height: auto;
    padding: 15px;
  }
  .offer-card img {
    height: 180px;
  }

  .offers-prev,
  .offers-next {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    margin: 10px 8px 0;
  }

  .offers-swiper::after {
    content: "";
    display: block;
    height: 10px;
  }

  .special-offers {
    align-items: center;
    justify-content: center;
  }
  .offers-prev,
  .offers-next {
    display: inline-block;
  }
}

@media (max-width: 992px) {
  .special-offers {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 30px;
    border-radius: 20px;
    width: 90%;
  }
  .offers-header {
    width: 100%;
    order: -1;
    margin-bottom: 25px;
  }
  .offers-swiper {
    width: 100%;
  }
  .offer-card {
    width: 180px;
    height: 320px;
  }
}

.product-section {
  margin: 80px 0;
}

.product-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-title {
  font-size: 1.8rem;
  color: #4caf50;
}
.section-description {
  color: #333;
  font-size: 1rem;
  margin-top: 6px;
}

.product-nav {
  display: flex;
  gap: 10px;
}
.custom-prev,
.custom-next {
  background: #4caf50;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-prev:hover,
.custom-next:hover {
  background: #2e6f3e;
  color: #fff;
}

.product-swiper {
  width: 100%;
  overflow: hidden;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: all 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  display: block;
}

@supports not (aspect-ratio: 1 / 1) {
  .product-card img {
    height: 250px;
  }
}

.product-info {
  flex: 1;
}
.product-title {
  font-size: 1.1rem;
  color: #4caf50;
}
.views {
  font-size: 0.9rem;
  color: #333;
  margin: 6px 0;
}
.price-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.price-box {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-weight: bold;
}
.price-old {
  text-decoration: line-through;
  color: #333;
}
.price-new {
  color: #4caf50;
}

.bbtt {
  position: relative;
  width: 100%;
  padding: 1em 1em;
  height: 30px;
  outline: none;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  background-color: #4caf50;
  border-radius: 5px;
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  z-index: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
}

.bbtt:hover {
  animation: sh0 0.5s ease-in-out both;
}

@keyframes sh0 {
  0% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }

  25% {
    transform: rotate(3deg) translate3d(0, 0, 0);
  }

  50% {
    transform: rotate(-3deg) translate3d(0, 0, 0);
  }

  75% {
    transform: rotate(1deg) translate3d(0, 0, 0);
  }

  100% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
}

.bbtt:hover span {
  animation: storm 0.7s ease-in-out both;
  animation-delay: 0.06s;
}

.bbtt::before,
.bbtt::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: transform 0.15s cubic-bezier(0.02, 0.01, 0.47, 1),
    opacity 0.15s cubic-bezier(0.02, 0.01, 0.47, 1);
  z-index: -1;
  transform: translate(100%, -25%) translate3d(0, 0, 0);
}

.bbtt:hover::before,
.bbtt:hover::after {
  opacity: 0.15;
  transition: transform 0.2s cubic-bezier(0.02, 0.01, 0.47, 1),
    opacity 0.2s cubic-bezier(0.02, 0.01, 0.47, 1);
}

.bbtt:hover::before {
  transform: translate3d(50%, 0, 0) scale(0.9);
}

.bbtt:hover::after {
  transform: translate(50%, 0) scale(1.1);
}

.whyus {
  background: #4caf4fc0;
  border: 3px solid #4caf50;
  color: #fff;
  border-radius: 0 0 30px 30px;
  padding: 60px 40px;
  margin: 80px auto;
  text-align: center;
  max-width: 1200px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.whyus-header h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.whyus-header p {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 40px;
}

.whyus-items {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 25px;
  flex-wrap: wrap;
}

.whyus-item {
  flex: 1 1 calc(25% - 20px);
  background: linear-gradient(135deg, #4caf50, #47a04a);
  padding: 25px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: flex;
  color: #fff;
  flex-direction: column;
  align-items: center;
}
.whyus-item:hover {
  transform: translateY(-5px);
  color: #fff;
}

.whyus-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.2));
}

.whyus-item p {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
}

.icon-eye {
  height: 18px;
  width: auto;
  margin-left: 6px;
  vertical-align: middle;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

@media (max-width: 768px) {
  .whyus-items {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .whyus-item {
    width: 80%;
  }
}

.swiper {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  padding-bottom: 10px;
}
.swiper-wrapper {
  display: flex;
  align-items: stretch;
}
.swiper-slide {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: auto;
  transition: transform 0.3s ease;
}

@media (max-width: 992px) {
  .hero-section {
    flex-direction: column-reverse;
    padding: 30px;
  }
  .offers-header {
    display: none;
  }
  .special-offers {
    flex-direction: column;
  }
  .whyus {
    flex-direction: column;
    text-align: center;
  }
  .whyus img {
    width: 70%;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .offer-card,
  .product-card {
    width: 90%;
    margin: 0 auto;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
}



/*
 =========================================
 👨‍💻 Developer Information
 Author: Mohammad Hosein Habibi
 GitHub: @mandosein2025
 Instagram: @mohammadhosein_habb
 Tel: 09030428445
 =========================================
 */
