.hero-carousel {
  width: 100%;
  height: 100%;
}

.product-desc ol li {
  font-family: "Vazirmatn UI FD", sans-serif !important;
}

.category-carousel {
  width: 100%;
}
.cart-success {
  display: none;
  column-gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 16px;
  top: 30px;
  left: 30px;
  position: absolute;
  background-color: var(--first-color-light);
  color: var(--title-color);
  width: 320px;
}
.main {
  overflow: hidden;
}

.hero {
  padding: 64px 0;
}
.hero-info {
  text-align: center;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  z-index: 200;
}
.step-links {
  margin: 0 auto;
}

.next-arrows,
.prev-arrows {
  color: var(--first-color);
  font-size: 24px;
}

.about-list {
  padding-right: 16px;
  list-style-type: disc !important;
}
@media screen and (max-width: 1280px) {
  .hero-info {
    padding: 3rem 0 3rem 3rem;
  }
}

.hero-info p {
  font-size: 1.2rem;
}

.hero-title {
  position: relative;
  font-optical-sizing: auto;
  font-weight: 900;
  font-size: 42px;
  margin-bottom: 2rem;
}
main .container {
  padding: 3.5rem 0 3rem;
}

.logo-divider {
  width: 80%;
  background-color: var(--gray);
  /* border: 1px solid var(--white); */
  height: 5px;
  position: absolute;
  bottom: 0;
  left: 10px;
}

.hero-links-sm {
  display: none;
}

.hero-links .hero-link {
  flex-direction: column;
  flex-wrap: nowrap;
  width: 45%;
  height: 90px;
  padding: 8px;
  /* border: 3px solid var(--first-color); */
  transition: all 300ms ease-in-out;
  border-radius: 8px;
  background-color: var(--first-color);
  color: var(--white);
}

.hero-links .hero-link .hero-link-hovered-text {
  display: none;
  height: 30px;
  overflow: hidden;
  font-weight: 800;
}

.hero-links .hero-link .hero-link-text {
  font-weight: 700;
  height: 30px;
  overflow: hidden;
}

.hero-links .hero-link:hover {
  width: 50%;
  background-color: var(--first-color-alt);
  color: var(--white);
}

.hero-link-text {
  font-weight: 700;
}

.hero-links .hero-link:hover .hero-link-text {
  display: none;
}

.hero-links .hero-link:hover .hero-link-hovered-text {
  display: block;
}

.hero-links .hero-link svg {
  fill: var(--white);
}

.slide-down {
  transform: rotate(180deg);
  height: 70px;
}
.arrow-down {
  z-index: 100;
  height: 50px;
  padding: 8px;
  transform: translate(-50%, -50%);
  transform: rotate(180deg);
  cursor: pointer;
}

.arrow-down div {
  display: block;
  width: 20px;
  height: 20px;
  border-bottom: 5px solid var(--first-color-alt);
  border-right: 5px solid var(--first-color-alt);
  transform: rotate(45deg);
  margin: -10px;
  animation: animate 2s infinite;
}

.arrow-down div:nth-child(2) {
  animation-delay: -0.2s;
}

.arrow-down div:nth-child(3) {
  animation-delay: -0.4s;
}

.why {
  margin: 3rem auto;
  padding: 60px 64px;
  background-color: var(--first-color);
  color: var(--title-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.why-flex {
  max-width: 1200px;
  width: 100%;
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
.why-detail {
  width: 350px;
  background-color: var(--container-color);
  padding: 2.5rem 1.5rem 2rem 3rem;
  border-radius: 1rem;
}
.why-icon {
  background-color: var(--first-color-alt);
  border-radius: 0.25rem;
  margin-bottom: var(--mb-1-5);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.why-detail:hover .why-icon {
  transform: translateY(-0.25rem);
}

.why-detail svg {
  fill: var(--white);
}
.why-detail p {
  text-align: justify;
  font-size: 0.85rem;
}
.why-detail-title {
  text-align: right;
  font-weight: bold;
  font-size: 1.1rem !important;
}
.bg-second {
  background-color: var(--first-color-lighten);
  color: var(--text-color);
}
.new-products-container {
  padding: 0 20px;
}

.featured-carousel {
  overflow: hidden;
  justify-items: center;
  color: #ffffff;
  display: grid;
  align-items: center;
  grid-template-columns: 200px 1fr;
  border-radius: 16px;
  background-color: var(--first-color-light);
  padding: 16px;
  width: 100%;
}
.featured-carousel h2 {
  color: #ffffff !important;
}
.categories,
.new-products,
.featured-box {
  margin-bottom: 32px;
  position: relative;
  padding: 52px 0 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.featured-box {
    padding:0 0 80px 0 !important;
}
.categories h2,
.new-products h2 {
  padding-top: 2rem;
  font-size: 40px;
  font-weight: 700;
  font-family: var(--body-font);
}
.category-conatiner {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: center;
  justify-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  width: 100%;
}

.pop-in-element {
  animation: pop-in 0.5s ease-in-out forwards;
}

.email-info {
  text-align: left;
}
.category-link img {
  width: 80px !important;
  height: 80px;
  margin: 0 auto;
  border-radius: 16px;
}

.category-link p {
  text-align: center;
  font-size: 14px;
}

.new-products {
  padding: 80px 32px 80px 32px;
  margin: 0 auto;
}

.new-products .pattern {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--first-color);
  font-size: 42px;
  display: flex;
  align-items: baseline;
}

.new-products .pattern::before {
  content: "";
  display: inline-block;
  width: 50vw;
  height: 5px;
  background-color: var(--first-color);
}

.new-in-category {
  flex-direction: column;
}
.new-in-category-title {
  font-weight: 600;
  font-size: 18px;
}
.new-in-category-link {
  font-size: 14px;
  font-weight: 600;
  transition: all 200ms ease-in-out;
}
.new-in-category-link:hover {
  transform: scale(1.05);
  font-weight: 800;
}
.product-card-price {
  margin-bottom: 0;
}
.inner-page {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 80px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto;
}
.inner-page .bg-img {
  width: 100%;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  height: 100%;
}
.inner-page .bg-img img {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.page-content {
  height: 100%;
  position: absolute;
  z-index: 10;
  padding: 0 16px;
  color: white;
  margin: 32px auto;
  width: 100%;
}

.inner-page .pagination {
  font-weight: 900;
  margin-top: 32px;
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-page .products {
  display: grid;
  align-items: center;
  justify-items: center;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 8px 16px;
  height: 100%;
  width: 100%;
  gap: 32px;
}

.page-title {
  padding: 20px;
  font-size: 42px;
  font-family: var(--body-font);
  font-weight: 900;
  margin-bottom: 0;
  color: inherit !important;
}

.cart-summary {
  background-color: white;
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  gap: 12px;
}
.summary-details {
  border-left: 2px solid var(--first-color-alt);
  padding: 16px;
  width: 100%;
}
.product-image-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  height: 150px;
  width: 150px;
}
.summary-total {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.total-box {
  top: 100px;

  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px !important;
}

.submit-cart a {
  background-color: var(--first-color);
  color: #ffffff;
  font-weight: bold;
}
.submit-cart a:hover {
  background-color: var(--first-color-alt);
  color: #ffffff;
}

.address-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.product-item {
  display: grid;
  height: 150px;
  grid-template-columns: 150px 1fr;
  align-items: center;
}
.product-item .cart-img-link {
  width: 100%;
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.product-item .cart-img-link img {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.cart-summary-detial-title {
  font-size: 1rem;
  margin: 0;
}
.product-summary {
  padding: 16px;
}
.cart-action-total {
  margin-top: 12px;
}
.actions-price {
  padding: 8px;
}
.about-content {
  display: grid;
  gap: 8px;
  padding: 16px 40px;
}

@keyframes animate {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-10px, -10px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(10px, 10px);
  }
}
@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.track-orders {
  background-color: var(--white);
  padding: 52px;
}
.order-status svg {
  width: 18px;
  height: 18px;
}
.order-status svg.pending {
  fill: var(--first-color);
}
.order-status svg.commited {
  fill: var(--first-color-alt);
}
.order-status svg.sent {
  fill: var(--first-color);
}

.order-date {
  opacity: 0.9;
}
.order-number span:first-of-type,
.order-price span:first-of-type {
  opacity: 0.9;
  font-size: 14px;
}
.dot-devider {
  opacity: 0.5;
  font-size: 10px;
  margin-top: 8px;
}
.track-order-item {
  padding: 8px;
  border-left: 2px solid #53545226;
}
.track-order-item:last-of-type {
  border-left: none;
}
.track-order-item .order-item-title {
  font-size: 14px;
  max-width: 150px;
}
.track-order-items {
  flex-wrap: nowrap;
  overflow-x: auto;
  height: 70px;
  overflow-y: hidden;
}
.track-order-item .order-item-qty {
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
  opacity: 0.8;
}
.no-orders {
  min-height: 100px;
  height: 100%;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}
.contact-page {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: baseline;
  position: relative;
}

.contact-page form {
  z-index: 100;
  background: #d7d2abe8;
  padding: 1rem;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}
.contact-info {
  z-index: 100;
}
.contact-info svg {
  width: 24px;
  height: 24px;
}
.contact-phones {
  margin: 24px 32px;
  width: 110px;
  display: grid;
  gap: 16px;
  font-weight: 700;
}
.contact-phones li a {
  display: block;
  width: 100%;
  text-align: left;
}
.contact-info-content {
  margin-right: 160px;
}
.why-header {
  color: var(--white);
  text-align: center;
  font-size: 1.2rem;
}
.about-page {
  padding: 40px;
  position: relative;
  width: 100%;
  height: 100%;
}

.bg-video {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
}
.bg-video video {
  object-fit: cover;
}
.about__data {
  padding: 1rem 0;
}
.about__container {
  gap: 24px;
}

.blogs-page .page-content {
  position: unset;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.blog-title {
  font-weight: 900;
}

.blog-detail-page img {
  display: block;
  margin: 24px auto;
  border-radius: 8px;
  aspect-ratio: 600/400;
}

.blog-detail-page ul,
.blog-detail-page ol {
  padding-right: 40px;
}
.blog-detail-page ul {
  list-style: disc;
}

.blog-detail-page ol li,
.blog-detail-page ul li {
  margin-bottom: 8px;
}
.blog-detail-page ol li:first-of-type,
.blog-detail-page ul li:first-of-type {
  margin-top: 8px;
}

.blog-detail-page ol {
  list-style-type: none;
  counter-reset: list-counter;
}

.blog-detail-page ol li {
  counter-increment: list-counter;
  margin-bottom: 10px;
}

.blog-detail-page ol li::before {
  content: counter(list-counter) "-";
  display: inline-block;
  direction: rtl;
  unicode-bidi: bidi-override;
  font-family: "Vazirmatn UI FD", sans-serif !important;
  font-weight: bold;
  font-size: 1.2rem;
}
.blog-detail-page ol li {
  gap: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}
.blog-detail-page .text-big {
  font-size: 1.2rem !important;
}
.blog-detail-page .text-huge {
  font-size: 1.5rem !important;
}
/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 3.5rem;
  grid-template-columns: 1fr 1fr;
}

.contact__data {
  display: grid;
  row-gap: 2rem;
}
.contact__phone {
  direction: ltr;
}

.contact__subtitle {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  margin-bottom: var(--mb-0-5);
}

.contact__description {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.contact__icon {
  font-size: 1.25rem;
}

.contact__inputs {
  display: grid;
  row-gap: 2rem;
  margin-bottom: var(--mb-2-5);
}

.contact__content {
  position: relative;
  height: 3rem;
  border-bottom: 1px solid var(--text-color-light);
}

.contact__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1rem 1rem 1rem 0;
  background: none;

  color: var(--text-color);

  border: none;
  outline: none;
  z-index: 1;
}

.contact__label {
  position: absolute;
  top: 0.75rem;
  width: 100%;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  transition: 0.3s;
}

.contact__area {
  height: 7rem;
}

.contact__area textarea {
  resize: none;
}

/*Input focus move up label*/
.contact__input:focus + .contact__label {
  top: -0.75rem;
  left: 0;
  font-size: var(--smaller-font-size);
  z-index: 10;
}

/*Input focus sticky top label*/
.contact__input:not(:placeholder-shown).contact__input:not(:focus)
  + .contact__label {
  top: -0.75rem;
  font-size: var(--smaller-font-size);
  z-index: 10;
}

@media screen and (max-width: 900px) {
    .hero {
        padding:32px 0;
    }
  .featured-carousel {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .cart-success {
    left: 16px;
  }
  .contact__container {
    grid-template-columns: 1fr;
  }
  .new-products .pattern {
    font-size: 30px;
  }

  .blog-detail-page img {
    margin: 16px auto;
    height: auto !important;
    aspect-ratio: 300/200 !important;
    max-width: 100%;
  }
  .blog-detail-page ul,
  .blog-detail-page ol {
    padding-right: 24px;
  }
  .why {
    padding: 60px;
  }
  .why-flex {
    margin-top: 24px;
    gap: 18px;
    justify-content: space-evenly;
  }
  .why-detail {
    width: 100%;
  }
  .about-content {
    padding: 16px 16px;
  }
  .about-content .page-title {
    margin-bottom: 0;
  }
  .new-products-container {
    padding: 0 16px;
  }
  .contact-info-content {
    margin-right: 0;
  }
  .contact-page {
    grid-template-columns: 1fr;
  }

  .contact-page .address-text {
    width: 150px;
  }
  .contact-page form {
    margin-top: 32px;
    padding: 1rem;
    width: 100%;
    max-width: 320px;
  }
  .track-orders {
    padding: 32px 16px;
  }
  .order-date {
    font-size: 14px;
  }
  .order-number span:first-of-type,
  .order-price span:first-of-type {
    font-size: 12px;
  }
  .track-order-item .order-item-title {
    font-size: 12px;
  }
  .address-box {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }
  .address-box p {
    font-size: 13px;
  }
  .checkout {
    padding: 1.2rem !important;
  }
  .new-in-category-title {
    font-size: 14px;
  }
  .new-in-category-link {
    font-size: 12px;
  }
  .hero-patterns {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 101;
    width: 75px;
    height: 270px;
  }

  .hero-patterns .green-branch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
  }
  .green-leaf {
    display: none;
  }

  .hero-info {
    justify-content: flex-start;
    padding: 2.5rem 1rem 1rem 1rem;
  }

  .hero-info h3 {
    font-size: 18px;
  }

  .leaf-logo svg {
    height: 24px !important;
    width: 24px !important;
  }

  .hero-info .hero-links {
    display: none !important;
  }

  .hero-links-sm {
    z-index: 300;
    width: fit-content;
    order: 3;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    max-width: 320px;
    width: 100%;
  }

  .hero-link-sm {
    background-color: var(--first-color);
    color: var(--white);
    flex-direction: column;
    width: 45%;
    height: 80px;
    padding: 8px;
    border: 2px solid var(--first-color);
    transition: all 300ms ease-in-out;
    border-radius: 8px;
  }

  .hero-link-hovered-text {
    display: none;
  }

  .hovered .hero-link-text {
    display: none;
  }

  .sibling {
    width: 40px;
  }

  .sibling .hero-link-text {
    display: none;
  }
  .hovered {
    width: 200px !important;
    background-color: var(--first-color-alt);
    color: var(--white);
  }
  .hero-link-hovered-text {
    font-size: 14px;
    font-weight: 600;
    height: 30px;
    overflow: hidden;
    color: var(--white);
  }
  .hovered .hero-link-hovered-text {
    display: block !important;
  }
  .hovered svg {
    fill: var(--white);
  }

  .hero-links-sm svg {
    fill: var(--white);
    height: 18px;
    width: 18px;
  }
  .slide-down {
    z-index: 400;
    order: 4;
    height: 60px !important;
    bottom: 10px;
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 10px;
  }

  .arrow-down div {
    width: 15px;
    height: 15px;
    border-bottom: 3px solid var(--white);
    border-right: 3px solid var(--white);
  }
  .categories,
  .new-products {
    padding: 60px 0;
    gap: 24px;
  }
  .categories h2,
  .new-products h2 {
    font-size: 24px;
    padding-top: 0;
  }
  .category-conatiner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
  }

  .inner-page {
    width: 100%;
    min-height: calc(100vh - 60px);
  }

  .page-content {
    z-index: 10;
    margin: 32px auto;
  }
  .inner-page .pagination {
    font-weight: 900;
    margin-top: 32px;
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .category-link img {
    width: 50px !important;
    height: 50px;
    margin: 0 auto;
    border-radius: 16px;
  }
  .category-link p {
    font-size: 12px;
  }

  .category-page .products {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .page-title {
    padding: 8px;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 24px;
  }
  .summary-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .cart-summary {
    padding: 16px !important;
  }
  .summary-total {
    background-color: white;
    z-index: 1400;
    position: sticky;
    top: 80px;
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .total-box {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px !important;
  }

  .summary-details {
    order: 2;
    border: none !important;
    padding: 0;
  }

  .product-item {
    display: grid;
    height: 130px;
    grid-template-columns: 100px 1fr;
    align-items: center;
  }
  .product-item .cart-img-link {
    width: 100%;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    overflow: hidden;
  }
  .product-item .cart-img-link img {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  .product-image-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    height: 100px;
    width: 100px;
  }
  .product-summary {
    padding: 8px;
  }
  .actions-price {
    padding: 8px;
  }
  .blogs-page .page-content {
    position: unset;
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 500px) {
  .category-page .products {
    grid-template-columns: 1fr 1fr;
  }
}
