* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", sans-serif;

  background: #ffffff;
  color: #333333;

  transition:
    background 0.3s ease,
    color 0.3s ease;
}

/* =====================================
   HEADER
===================================== */

.header {
  width: 100%;
  background: #ffffff;
  z-index: 1000;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.04);
}

/* =====================================
   ردیف بالا
===================================== */

.header-top {
  height: 94px;
  display: flex;
  align-items: center;
  padding: 0 5%;
  gap: 14px;
}

/* =====================================
   لوگو
===================================== */

.logo-area {
  display: flex;
  align-items: center;

  gap: 9px;

  min-width: 190px;
}

.logo-placeholder {
  width: 55px;
  height: 55px;

  border-radius: 18px;

  background: #2e9092;

  flex-shrink: 0;
}

.logo-text h2 {
  font-size: 17px;
  font-weight: 800;

  color: #222222;

  margin-bottom: 4px;
}

.logo-text span {
  font-size: 9px;
  font-weight: 500;

  color: #278b8d;
}

/* =====================================
   SEARCH
===================================== */

.search-box {
  height: 48px;

  flex: 1;

  max-width: 720px;
  min-width: 100px;

  display: flex;
  align-items: center;

  background: #f5f1f0;

  border-radius: 18px;

  padding: 0 17px;
}

.search-box input {
  width: 100%;
  height: 100%;

  border: none;
  outline: none;

  background: transparent;

  font-family: inherit;

  font-size: 13px;

  text-align: right;

  color: #444444;
}

.search-box input::placeholder {
  color: #999999;
}

.search-box button {
  width: 32px;
  height: 32px;

  border: none;

  background: transparent;

  padding: 0;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.search-box button svg {
  width: 30px;
  height: 30px;

  display: block;

  stroke: #2d9092;
}

/* =====================================
   HEADER ICONS
===================================== */

.header-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-inline-start: auto;
}

/* =====================================
   ماه / خورشید
===================================== */

.theme-wrapper {
  width: 30px;
  height: 32px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.theme-btn {
  width: 27px;
  height: 27px;

  border: none;

  padding: 0;

  background: transparent;

  cursor: pointer;

  display: flex;

  align-items: center;
  justify-content: center;
}

.theme-icon {
  width: 24px;
  height: 24px;

  display: block;

  color: #6f6868;
}

.theme-icon svg {
  width: 24px;
  height: 24px;

  display: block;

  stroke-width: 2;
}

#moonIcon,
#sunIcon {
  width: 24px;
  height: 24px;

  display: block;
}

#moonIcon svg,
#sunIcon svg {
  width: 24px;
  height: 24px;

  display: block;

  stroke-width: 2;
}

#sunIcon {
  display: none;
}

/* =====================================
   کره زمین
===================================== */

.extra-icon {
  width: 30px;
  height: 32px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: #6f6868;

  flex-shrink: 0;
}

.extra-icon svg {
  width: 23px;
  height: 23px;

  display: block;

  stroke-width: 2;
}

/* =====================================
   خط کنار ماه
===================================== */

.header-divider {
  width: 1px;

  height: 40px;

  background: #e3e3e3;

  flex-shrink: 0;

  margin: 0 2px;
}

/* =====================================
   پروفایل / قلب / سبد
===================================== */

.icon-item {
  position: relative;

  width: 46px;
  height: 48px;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 2px;

  text-decoration: none;

  color: #8b8181;

  flex-shrink: 0;
}

.icon-box {
  width: 25px;
  height: 25px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.icon-box svg {
  width: 25px;
  height: 25px;

  display: block;

  stroke-width: 2;
}

.icon-item small {
  display: block;

  font-size: 9px;

  line-height: 13px;

  white-space: nowrap;

  text-align: center;

  color: #8b8181;
}

/* =====================================
   شماره سبد
===================================== */

.cart b {
  position: absolute;

  top: -3px;
  right: -4px;

  width: 17px;
  height: 17px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #e51c4d;

  color: #ffffff;

  font-size: 8px;

  font-weight: 600;
}

/* =====================================
   ورود
===================================== */

.login-btn {
  border: none;

  background: #3a9698;

  color: #ffffff;

  font-family: inherit;

  font-size: 13px;

  font-weight: 700;

  padding: 8px 19px;

  border-radius: 17px;

  cursor: pointer;

  white-space: nowrap;

  transition: 0.2s;
}

.login-btn:hover {
  background: #287f81;
}

/* =====================================
   پنل مدیریت
===================================== */

.admin-btn {
  border: none;

  background: #202126;

  color: #ffffff;

  font-family: inherit;

  font-size: 13px;

  font-weight: 700;

  padding: 8px 19px;

  border-radius: 17px;

  cursor: pointer;

  white-space: nowrap;

  transition: 0.2s;
}

.admin-btn:hover {
  background: #000000;
}

/* =====================================
   NAVBAR
===================================== */

.navbar {
  height: 60px;

  border-top: 1px solid #eeeeee;

  display: flex;

  align-items: center;

  padding: 0 5%;
}

.navbar-links {
  width: 100%;

  display: flex;

  align-items: center;

  justify-content: flex-start;

  gap: 37px;
}

.navbar a {
  position: relative;

  height: 60px;

  display: flex;

  align-items: center;

  text-decoration: none;

  color: #6d6870;

  font-size: 13px;

  font-weight: 600;

  white-space: nowrap;

  transition: color 0.2s ease;
}

.navbar a:hover {
  color: #2d9092;
}

.navbar a.active::after {
  content: "";

  position: absolute;

  bottom: 0;

  right: 0;
  left: 0;

  height: 3px;

  background: #2d9092;

  border-radius: 3px 3px 0 0;
}

/* =====================================
   MAIN
===================================== */

.main-content {
  padding-top: 154px;

  min-height: 100vh;
}

.hero {
  min-height: 600px;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  background: #fafafa;

  text-align: center;
}

.hero h1 {
  font-size: 30px;

  margin-bottom: 15px;
}

.hero p {
  color: #777777;
}

/* =====================================
   DARK MODE
===================================== */

body.dark-mode {
  background: #18191d;

  color: #ffffff;
}

body.dark-mode .header {
  background: #202126;
}

body.dark-mode .logo-text h2 {
  color: #ffffff;
}

body.dark-mode .search-box {
  background: #292a2f;
}

body.dark-mode .search-box input {
  color: #ffffff;
}

body.dark-mode .search-box input::placeholder {
  color: #999999;
}

body.dark-mode .navbar {
  border-color: #303136;
}

body.dark-mode .navbar a {
  color: #aaaaaa;
}

body.dark-mode .navbar a.active,
body.dark-mode .navbar a:hover {
  color: #3b9698;
}

body.dark-mode .icon-item small {
  color: #aaaaaa;
}

body.dark-mode .theme-icon,
body.dark-mode .extra-icon {
  color: #aaaaaa;
}

body.dark-mode .header-divider {
  background: #3a3b3f;
}

body.dark-mode .hero {
  background: #18191d;
}

/* ===========================
      MOBILE HEADER
=========================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;

  background: url(/image/back.png) center center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;

  width: 110%;
  height: 110%;

  background: inherit;

  animation: zoom 18s infinite alternate;
}

@keyframes zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.12);
  }
}

.overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(120deg,
      rgba(0, 80, 90, 0.55),
      rgba(0, 0, 0, 0.7));

  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;

  text-align: center;

  color: white;

  z-index: 5;

  animation: fadeUp 1.2s ease;
}

.tag {
  display: inline-block;
  padding: 14px 30px;

  color: #f8d36b;

  background: rgba(183, 145, 33, 0.18);
  /* طلایی کدر */

  border: 1px solid rgba(255, 215, 0, 0.45);

  border-radius: 50px;

  backdrop-filter: blur(10px);

  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);

  letter-spacing: 3px;
}

.hero h1 {
  font-size: 75px;

  font-weight: 900;

  line-height: 1.3;

  margin-bottom: 25px;
}

.hero p {
  font-size: 24px;

  color: #ececec;

  margin-bottom: 50px;
}

.hero-buttons {
  display: flex;

  justify-content: center;

  gap: 20px;
}

.btn {
  padding: 18px 42px;

  border-radius: 15px;

  text-decoration: none;

  font-size: 20px;

  transition: 0.4s;

  backdrop-filter: blur(15px);
}

.btn-main {
  background: #42b7bd;

  color: white;

  box-shadow: 0 10px 40px rgba(66, 183, 189, 0.4);
}

.btn-main:hover {
  transform: translateY(-7px);

  box-shadow: 0 20px 60px rgba(66, 183, 189, 0.6);
}

.btn-second {
  border: 1px solid rgba(255, 255, 255, 0.4);

  background: rgba(255, 255, 255, 0.08);

  color: white;
}

.btn-second:hover {
  background: white;

  color: black;
}

.scroll {
  margin-top: 90px;

  letter-spacing: 6px;

  color: #d7d7d7;

  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    transform: translateY(0);

    opacity: 0.4;
  }

  50% {
    transform: translateY(10px);

    opacity: 1;
  }

  100% {
    transform: translateY(0);

    opacity: 0.4;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;

    transform: translateY(60px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* ================= HERO MOBILE ================= */

@media (max-width: 992px) {
  .hero {
    min-height: 85vh;
    height: auto;
    padding: 80px 20px 50px;
    background-position: center;
  }

  .overlay {
    position: absolute;
    inset: 0;
  }

  .hero-content {
    width: 100%;

    max-width: 100%;

    text-align: center;

    align-items: center;
  }

  .tag {
    font-size: 11px;

    padding: 8px 14px;

    letter-spacing: 1px;

    display: inline-block;
  }

  .hero-content h1 {
    font-size: 32px;

    line-height: 1.5;

    margin: 25px 0 15px;
  }

  .hero-content p {
    font-size: 14px;

    line-height: 2;

    width: 100%;

    margin: auto;
  }

  .hero-buttons {
    display: flex;

    flex-direction: column;

    width: 100%;

    gap: 14px;

    margin-top: 30px;
  }

  .hero-buttons .btn {
    width: 100%;

    height: 52px;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 15px;
  }

  .scroll {
    margin-top: 35px;

    font-size: 11px;
  }
}

#Story {
  width: 100%;
  height: 100px;
  padding: 10px;
  margin-top: 18px;
  display: flex;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: auto;
  scrollbar-width: none;
}

.StoryBox {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 80px;
  height: 80x;
  color: white;
  text-decoration: none;
  cursor: pointer;
  margin-left: 8px;
}

.StoryBox img {
  width: 60px;
  height: 60px;
  border-radius: 100%;
  border: 2px solid transparent;
  background: conic-gradient(from 0deg,
      #feda75,
      #fa7e1e,
      #d62976,
      #962fbf,
      #4f5bd5,
      #feda75);

  background-color: #2e9092;
}

.StoryBox p {
  color: #000;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.Swp {
  height: 500px;
  font-size: 14px;
  color: #fff;
  padding: 24px 8px;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #444;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
}

.swiper-slide>h1 {
  font-size: 56px;
  font-weight: 900;
  text-shadow: #000000;
}

.swiper-slide>span {
  font-weight: 900;
  text-shadow: #000000;
}

.swiper-slide>div {
  width: 100%;
  padding: 16px;
  margin-top: 24px;
}

.swiper-slide>div>a {
  display: inline-block;
  color: white;
  background-color: #287f81;
  border-radius: 16px;
  box-sizing: border-box;
  text-decoration: none;
  padding: 16px;
  min-width: 100px;
  font-weight: 700;
  margin-bottom: 8px;
  box-shadow: #000;
}

#swp1,
#swp2 {
  position: relative;
  overflow: hidden;
}

#swp1::before,
#swp2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  z-index: 0;
}

#swp1::before {
  background-image: url('../images/imageswed.jpeg');

}

#swp2::before {
  background-image: url('../images/referf.jpeg');

}

#swp1>*,
#swp2>* {
  position: relative;
  z-index: 1;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  justify-items: center;
  padding: 30px 5%;
}

@media (min-width: 1200px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 500px) {
  .features {
    grid-template-columns: 1fr;
  }

  .feature {
    max-width: 400px;
  }
}

.feature {
  width: 100%;
  max-width: 400px;
  height: 84px;
  box-sizing: border-box;

  display: flex;
  flex-direction: row;

  align-items: center;
  justify-content: flex-start;
  gap: 14px;

  padding: 0 20px;
  border: 2px solid #eeeeee;
  border-radius: 18px;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.feature-icon {
  width: 44px;
  height: 44px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #eef9fa;
  color: #319ba1;

  border-radius: 14px;
}

.feature-text {
  flex: 1;
  text-align: right;
}

.feature-text h3 {
  margin: 0 0 5px;

  font-size: 15px;
  font-weight: 700;
  color: #202020;
}

.feature-text p {
  margin: 0;

  font-size: 12px;
  font-weight: 400;
  color: #888;
}

.products-section {
  width: 100%;
  padding: 30px 5%;
  box-sizing: border-box;
  direction: rtl;
}

/* ================= HEADER ================= */

.products-header {
  display: flex;
  align-items: center;
  justify-content: space;
  gap: 25px;
  margin-bottom: 28px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-line {
  width: 4px;
  height: 34px;
  background: #ed1745;
  border-radius: 10px;
}

.products-header h2 {
  margin: 0;
  font-size: 23px;
  color: #222;
}

.products-header p {
  margin: 5px 0 0;
  color: #888;
  font-size: 12px;
}

/* ================= TIMER ================= */

.discount-timer {
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 8px 12px;

  border: 1px solid #ffccd6;
  border-radius: 15px;

  color: #ed1745;
  font-weight: bold;
}

.discount-timer span {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ed1745;
  color: #fff;

  border-radius: 11px;
  font-size: 14px;
}

/* ================= SHOW ALL ================= */

.show-all {
  color: #318f91;
  text-decoration: none;
  font-size: 13px;
  margin-inline-start: auto;
  font-weight: bold;
}

.show-all:hover {
  color: #287d7f;
}

/* ================= GRID ================= */

.products-grid {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));

  gap: 16px;
}

/* ================= CARD ================= */

.product-card {
  width: 100%;
  min-width: 0;

  display: block;

  background: #fff;

  border: 1px solid #eeeeee;
  border-radius: 18px;

  overflow: hidden;

  text-decoration: none;
  color: inherit;

  transition: 0.25s ease;
}

.product-card:hover {
  color: inherit;
  text-decoration: none;

  transform: translateY(-4px);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ================= IMAGE ================= */

.product-image {
  position: relative;

  width: 100%;
  aspect-ratio: 1 / 1;

  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

/* ================= DISCOUNT ================= */

.discount {
  position: absolute;

  top: 12px;
  right: 12px;

  background: #ed1745;
  color: #fff;

  padding: 6px 9px;

  border-radius: 12px;

  font-size: 11px;
  font-weight: bold;
}

/* ================= CONTENT ================= */

.product-content {
  padding: 12px 14px 14px;
}

/* ================= TAGS ================= */

.product-tags {
  min-height: 23px;

  display: flex;
  align-items: center;

  gap: 5px;

  margin-bottom: 7px;
}

.tag {
  padding: 4px 7px;

  border-radius: 8px;

  font-size: 9px;
  font-weight: bold;
}

.tag.express {
  background: #e9f7f7;
  color: #318f91;
}

.tag.installment {
  background: #fff5dc;
  color: #d47a00;
}

/* ================= TITLE ================= */

.product-title {
  height: 42px;

  margin: 0 0 10px;

  color: #222;

  font-size: 13px;
  font-weight: 600;

  line-height: 1.8;

  overflow: hidden;
}

/* ================= PRICE ================= */

.price {
  display: flex;
  flex-direction: column;

  gap: 3px;

  margin-bottom: 12px;
}

.price del {
  color: #aaa;
  font-size: 10px;
}

.price strong {
  color: #318f91;

  font-size: 15px;
  font-weight: 800;
}

/* ================= ADD CART ================= */

.add-cart {
  width: 100%;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #399698;
  color: #fff;

  font-size: 12px;
  font-weight: bold;

  transition: 0.2s ease;
}

.product-card:hover .add-cart {
  background: #287d7f;
}

.add-cart span {
  font-size: 17px;
  margin-left: 5px;
}

/* ================= TABLET ================= */

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ================= MOBILE ================= */

@media (max-width: 700px) {
  .products-section {
    padding: 20px 15px;
  }

  .products-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .products-header h2 {
    font-size: 18px;
  }

  .discount-timer {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .show-all {
    font-size: 11px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-content {
    padding: 10px;
  }

  .product-title {
    font-size: 11px;
    height: 38px;
  }

  .price strong {
    font-size: 12px;
  }

  .price del {
    font-size: 9px;
  }

  .add-cart {
    height: 32px;
    font-size: 10px;
  }

  .tag {
    font-size: 8px;
  }
}

/* ================= SMALL MOBILE ================= */

@media (max-width: 400px) {
  .products-grid {
    gap: 8px;
  }

  .product-content {
    padding: 8px;
  }

  .discount {
    top: 7px;
    right: 7px;

    font-size: 9px;
    padding: 5px 7px;
  }
}

.categories-section,
.brands-section {
  width: 100%;
  box-sizing: border-box;
  padding: 24px 5%;
}

/* ================= HEADER ================= */

.section-header {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-header h2 {
  margin: 0;
  color: #292929;
  font-size: 25px;
  font-weight: 800;
}

.section-header p {
  margin: 5px 0 0;
  color: #8b8585;
  font-size: 12px;
}

.see-all {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #318f91;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.see-all span {
  font-size: 22px;
  line-height: 0;
}

/* ================= CATEGORIES ================= */

.categories-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

/* Category Card */

.category-card {
  min-width: 0;
  height: 98px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 8px;

  background: #fff;

  border: 1px solid #eeeeee;
  border-radius: 17px;

  color: #222;

  text-decoration: none;

  box-sizing: border-box;

  transition: transform 0.2s ease,
    box-shadow 0.2s ease;
}

.category-card:hover {
  color: #222;

  transform: translateY(-3px);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Icon */

.category-icon {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fae9ee;

  border-radius: 50%;

  font-size: 25px;

  line-height: 1;
}

/* Text */

.category-card span {
  font-size: 12px;
  font-weight: 700;

  white-space: nowrap;

  color: #242424;
}

/* ================= BRANDS ================= */

.brands-section {
  margin-top: 62px;
}

.brands-grid {
  width: 100%;

  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 14px;
}

.brand-card {
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;

  border: 1px solid #eeeeee;
  border-radius: 15px;

  color: #292929;

  font-size: 13px;
  font-weight: 800;

  text-decoration: none;

  transition: transform 0.2s ease,
    box-shadow 0.2s ease;
}

.brand-card:hover {
  color: #292929;

  transform: translateY(-2px);

  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.06);
}

/* ================= TABLET ================= */

@media (max-width: 900px) {
  .categories-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ================= MOBILE ================= */

@media (max-width: 600px) {
  .section-header {
    align-items: center;
  }

  .section-header h2 {
    font-size: 19px;
  }

  .section-header p {
    font-size: 10px;
  }

  .see-all {
    font-size: 11px;
  }

  /* 2 ستون */

  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 10px;
  }

  .category-card {
    height: 92px;

    border-radius: 15px;
  }

  .category-icon {
    width: 44px;
    height: 44px;

    font-size: 23px;
  }

  .category-card span {
    font-size: 11px;
  }

  /* Brands */

  .brands-section {
    margin-top: 45px;
  }

  .brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;
  }

  .brand-card {
    height: 52px;

    font-size: 11px;

    border-radius: 14px;
  }
}

/* ================= SMALL MOBILE ================= */

@media (max-width: 400px) {
  .section-header h2 {
    font-size: 17px;
  }

  .section-header p {
    font-size: 9px;
  }

  .see-all {
    font-size: 10px;
  }

  .categories-grid {
    gap: 8px;
  }

  .category-card {
    height: 88px;
  }

  .category-icon {
    width: 40px;
    height: 40px;

    font-size: 21px;
  }

  .category-card span {
    font-size: 10px;
  }

  .brands-grid {
    gap: 8px;
  }

  .brand-card {
    height: 48px;
    font-size: 10px;
  }
}

/* start comment */

.reviews-section {
  max-width: 720px;
  margin: 0 auto;
}

/* Header */
.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.header-right {
  text-align: right;
}

.header-right h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.header-right p {
  font-size: 0.95rem;
  color: #6b6b6b;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0d9488;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: 8px;
  transition: color 0.2s;
}

.view-all:hover {
  color: #0f766e;
}

.view-all svg {
  width: 16px;
  height: 16px;
}

/* Reviews list */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Single review card */
.review-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
}

.user-details h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.user-details .city {
  font-size: 0.85rem;
  color: #888;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  background: #e0f7f5;
  color: #0d9488;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.stars {
  display: flex;
  gap: 2px;
  margin: 10px 0 12px;
  color: #f59e0b;
  font-size: 1.1rem;
}

.review-text {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 540px) {
  .reviews-header {
    flex-direction: column;
    gap: 12px;
  }

  .view-all {
    margin-top: 0;
  }

  .review-card {
    padding: 16px 18px;
  }
}

/* end comment */

.ftx-footer {
  width: 100%;
  background: #2d2d2d;
  padding: 55px 0 25px;
  direction: rtl;
}

.ftx-container {
  width: 90%;
  max-width: 1400px;
  margin: auto;
}

/*==========================
        GRID
==========================*/

.ftx-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 70px;
  align-items: start;
}

/*==========================
       ABOUT
==========================*/

.ftx-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}

.ftx-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #3d989b;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ftx-logo-icon i {
  color: #fff;
  font-size: 18px;
}

.ftx-logo h3 {
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}

.ftx-about p {
  color: #a8a8a8;
  line-height: 2.2;
  font-size: 15px;
  margin-bottom: 28px;
}

/*==========================
      CONTACT
==========================*/

.ftx-contact-item {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 14px;
  color: #b7b7b7;
  font-size: 15px;
}

.ftx-contact-item i {
  width: 20px;
  text-align: center;
  color: #8f8f8f;
}

/*==========================
      SOCIAL
==========================*/

.ftx-social {
  display: flex;
  gap: 14px;
  margin-top: 25px;
}

.ftx-social a {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  transition: 0.3s;
}

.ftx-social a:nth-child(1) {
  background: #25d366;
}

.ftx-social a:nth-child(2) {
  background: #229ed9;
}

.ftx-social a:nth-child(3) {
  background: linear-gradient(45deg, #ff543e, #e1306c, #833ab4);
}

.ftx-social a:hover {
  transform: scale(1.1);
  filter: brightness(1.15);
}

/*==========================
        LINKS
==========================*/

.ftx-links h4 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 24px;
  font-weight: 700;
}

.ftx-links a {
  display: block;
  color: #9d9d9d;
  text-decoration: none;
  margin-bottom: 16px;
  font-size: 16px;
  transition: 0.25s;
}

.ftx-links a:hover {
  color: #ffffff;
}

/*==========================
        LINE
==========================*/

.ftx-line {
  width: 100%;
  height: 1px;
  background: #404040;
  margin: 45px 0 25px;
}

/*==========================
       BOTTOM
==========================*/

.ftx-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ftx-bottom span {
  color: #7c7c7c;
  font-size: 14px;
}

/*==========================
      BADGES
==========================*/

.ftx-badges {
  display: flex;
  gap: 14px;
}

.ftx-badges a {
  padding: 8px 18px;
  border: 1px solid #4c4c4c;
  border-radius: 12px;
  color: #bdbdbd;
  text-decoration: none;
  font-size: 14px;
  transition: 0.25s;
}

.ftx-badges a:hover {
  color: #fff;
  background: #3a3a3a;
  border-color: #666;
}

/*==========================
      RESPONSIVE
==========================*/

@media (max-width: 1000px) {
  .ftx-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 700px) {
  .ftx-grid {
    grid-template-columns: 1fr;
  }

  .ftx-about,
  .ftx-links {
    text-align: center;
  }

  .ftx-logo {
    justify-content: center;
  }

  .ftx-contact-item {
    justify-content: center;
  }

  .ftx-social {
    justify-content: center;
  }

  .ftx-bottom {
    flex-direction: column;
    gap: 20px;
  }

  .ftx-badges {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .ftx-grid {
    display: block !important;
  }

  .ftx-about {
    width: 100%;
    margin-bottom: 35px;
  }

  .ftx-links {
    display: inline-block;
    vertical-align: top;
    width: 32% !important;
    margin: 0;
    padding: 0;
  }

  .ftx-links h4 {
    font-size: 13px;
    white-space: nowrap;
  }

  .ftx-links a {
    font-size: 11px;
    white-space: nowrap;
  }

  .ftx-bottom {
    margin-top: 30px;
  }
}

/* حذف فضای سفید کنار موبایل */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

* {
  box-sizing: border-box;
}

.header,
.header-top,
.navbar,
.main-content {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden !important;
  }

  .header {
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
  }

  .header-top {
    width: 100% !important;
  }

  .navbar {
    width: 100% !important;
  }
}

@media (max-width: 900px) {
  .header {
    width: 100%;
    overflow: hidden;
  }

  .header-top {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    direction: rtl;
    flex-wrap: nowrap;
  }

  /* حذف موارد اضافی */
  .logo-area,
  .logo-text,
  .theme-wrapper,
  .extra-icon,
  .header-divider,
  .admin-btn {
    display: none !important;
  }

  /* آیکون ها */
  .header-icons {
    order: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    width: auto;
    flex-shrink: 0;
  }

  .icon-item {
    width: 30px;
    height: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .icon-box,
  .icon-box svg {
    width: 20px !important;
    height: 20px !important;
  }

  .icon-item small {
    font-size: 8px;
    white-space: nowrap;
  }

  /* سرچ */
  .search-box {
    order: 2;
    flex: 1;
    min-width: 0;
    height: 42px;
    display: flex;
  }

  .search-box input {
    width: 100%;
    min-width: 0;
    height: 42px;
    font-size: 11px;
  }

  .search-box button {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
  }

  .search-box button svg {
    width: 20px;
    height: 20px;
  }

  /* ورود */
  .login-btn {
    order: 3;
    flex-shrink: 0;
    width: 60px;
    height: 38px;
    padding: 0;
    font-size: 10px;
    white-space: normal;
  }

  /* منوی پایین */
  .navbar {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .navbar::-webkit-scrollbar {
    display: none;
  }

  .navbar-links {
    display: flex;
    width: max-content;
    gap: 22px;
    padding: 0 15px;
  }

  .navbar-links a {
    font-size: 12px;
    white-space: nowrap;
  }
}

/* مخصوص 320px */

@media (max-width: 320px) {
  .header-top {
    gap: 3px;
    padding: 8px 4px;
  }

  .header-icons {
    gap: 2px;
  }

  .icon-item {
    width: 25px;
  }

  .icon-item small {
    display: none;
  }

  .search-box {
    height: 38px;
  }

  .search-box input {
    height: 38px;
    font-size: 10px;
  }

  .login-btn {
    width: 52px;
    font-size: 9px;
  }
}

@media (max-width: 768px) {
  .header-top {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    gap: 8px;
  }

  /* سرچ بالا */
  .search-box {
    order: 1;
    width: calc(100% - 75px);
    flex: 1;
    height: 42px;
  }

  /* ورود کنار سرچ */
  .login-btn {
    order: 2;
    width: 65px;
    height: 42px;
    font-size: 11px;
    padding: 0;
  }

  /* آیکون ها برن ردیف دوم */
  .header-icons {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 25px;
    border-top: 1px solid #eee;
    padding-top: 10px;
  }

  /* همه آیکون ها نمایش داده شوند */
  .header-icons .icon-item {
    display: flex;
    width: 45px;
    height: 45px;
  }

  .icon-box,
  .icon-box svg {
    width: 22px !important;
    height: 22px !important;
  }

  .icon-item small {
    font-size: 10px;
  }

  /* منوی پایین */
  .navbar {
    overflow-x: auto;
  }

  .navbar-links {
    width: max-content;
    display: flex;
    gap: 22px;
    padding: 0 15px;
  }

  .navbar-links a {
    font-size: 12px;
    white-space: nowrap;
  }
}

/* برای 320px */
@media (max-width: 320px) {
  .search-box {
    width: calc(100% - 65px);
  }

  .login-btn {
    width: 55px;
    font-size: 9px;
  }

  .header-icons {
    gap: 15px;
  }

  .header-icons .icon-item {
    width: 38px;
  }

  .navbar-links {
    gap: 16px;
  }
}

/* ===============================
   FINAL MOBILE FIX OVERRIDE
   768px + 320px
================================ */

@media (max-width: 768px) {
  .header-top {
    height: auto !important;
    flex-wrap: wrap !important;
    padding: 10px 8px !important;
    gap: 8px !important;
  }

  /* حذف اضافی ها */
  .logo-area,
  .theme-wrapper,
  .extra-icon,
  .header-divider,
  .admin-btn {
    display: none !important;
  }

  /* سرچ بالا */
  .search-box {
    order: 1 !important;
    width: calc(100% - 75px) !important;
    height: 42px !important;
    flex: none !important;
  }

  /* ورود کنار سرچ */
  .login-btn {
    order: 2 !important;
    width: 65px !important;
    height: 42px !important;
    padding: 0 !important;
    font-size: 10px !important;
    flex: none !important;
  }

  /* آیکون ها پایین */
  .header-icons {
    order: 3 !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 25px !important;
    border-top: 1px solid #eee !important;
    padding-top: 10px !important;
  }

  .header-icons .icon-item {
    display: flex !important;
    width: 45px !important;
    height: 45px !important;
  }

  .icon-box,
  .icon-box svg {
    width: 22px !important;
    height: 22px !important;
  }

  .icon-item small {
    font-size: 9px !important;
  }

  /* منو */
  .navbar {
    height: 55px !important;
    padding: 0 !important;
    overflow-x: auto !important;
  }

  .navbar-links {
    width: max-content !important;
    gap: 22px !important;
    padding: 0 15px !important;
  }

  .navbar a {
    font-size: 12px !important;
  }
}

@media (max-width: 320px) {
  .header-top {
    padding: 8px 5px !important;
    gap: 5px !important;
  }

  .search-box {
    width: calc(100% - 60px) !important;
    height: 38px !important;
  }

  .login-btn {
    width: 55px !important;
    height: 38px !important;
    font-size: 9px !important;
  }

  .header-icons {
    gap: 12px !important;
  }

  .header-icons .icon-item {
    width: 35px !important;
  }

  .icon-item small {
    font-size: 8px !important;
  }

  .navbar-links {
    gap: 15px !important;
  }

  .navbar a {
    font-size: 11px !important;
  }
}

@media (max-width: 768px) {
  .header-top {
    direction: ltr !important;
  }

  /* سرچ و ورود سمت چپ */
  .search-box {
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  /* آیکون های پایین وسط */
  .header-icons {
    direction: rtl !important;
    justify-content: center !important;
  }

  /* متن سرچ دوباره راست چین */
  .search-box input {
    direction: rtl !important;
    text-align: right !important;
  }

  /* دکمه ورود */
  .login-btn {
    direction: rtl !important;
  }
}

@media (max-width: 320px) {
  .header-top {
    direction: ltr !important;
  }

  .search-box {
    width: calc(100% - 60px) !important;
  }

  .login-btn {
    margin-left: 0 !important;
  }
}

/* ===============================
      MOBILE HEADER FINAL LAYOUT
================================ */

@media (max-width: 768px) {
  .header-top {
    display: flex !important;
    flex-wrap: wrap !important;
    direction: ltr !important;
    padding: 8px !important;
    gap: 6px !important;
  }

  /* علاقه + سبد + پروفایل سمت چپ */
  .header-icons {
    order: 1 !important;
    width: auto !important;
    display: flex !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    border: none !important;
    padding: 0 !important;
  }

  /* اندازه آیکون ها */
  .header-icons .icon-item {
    width: 34px !important;
    height: 38px !important;
  }

  .icon-box,
  .icon-box svg {
    width: 20px !important;
    height: 20px !important;
  }

  .icon-item small {
    font-size: 8px !important;
  }

  /* سرچ وسط */
  .search-box {
    order: 2 !important;
    flex: 1 !important;
    width: auto !important;
    height: 38px !important;
  }

  /* ورود راست */
  .login-btn {
    order: 3 !important;
    width: 55px !important;
    height: 38px !important;
    font-size: 9px !important;
  }

  /* منو کامل پایین */
  .navbar {
    height: 45px !important;
  }

  .navbar-links {
    gap: 15px !important;
    padding: 0 10px !important;
  }

  .navbar a {
    height: 45px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 320px) {
  .header-top {
    gap: 3px !important;
    padding: 6px !important;
  }

  .header-icons {
    gap: 4px !important;
  }

  .header-icons .icon-item {
    width: 30px !important;
  }

  .icon-item small {
    display: none !important;
  }

  .search-box {
    height: 35px !important;
  }

  .login-btn {
    width: 50px !important;
    font-size: 8px !important;
  }

  .navbar-links {
    gap: 12px !important;
  }

  .navbar a {
    font-size: 10px !important;
  }
}

/* ===============================
        MOBILE 320px FIX
================================ */

@media (max-width: 320px) {
  .header-top {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 6px 4px !important;
    direction: ltr !important;
  }

  /* علاقه - سبد - پروفایل */
  .header-icons {
    order: 1 !important;
    width: auto !important;
    gap: 3px !important;
    flex-shrink: 0 !important;
  }

  .header-icons .icon-item {
    width: 27px !important;
    height: 32px !important;
  }

  .icon-box,
  .icon-box svg {
    width: 17px !important;
    height: 17px !important;
  }

  .icon-item small {
    font-size: 7px !important;
    line-height: 9px !important;
  }

  /* سرچ */
  .search-box {
    order: 2 !important;
    height: 34px !important;
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 8px !important;
    border-radius: 12px !important;
  }

  .search-box input {
    font-size: 9px !important;
  }

  .search-box button {
    width: 25px !important;
  }

  .search-box button svg {
    width: 17px !important;
    height: 17px !important;
  }

  /* ورود */
  .login-btn {
    order: 3 !important;
    width: 48px !important;
    height: 34px !important;
    font-size: 8px !important;
    border-radius: 12px !important;
  }

  /* منو */
  .navbar {
    height: 42px !important;
  }

  .navbar-links {
    gap: 12px !important;
    padding: 0 8px !important;
  }

  .navbar a {
    height: 42px !important;
    font-size: 10px !important;
  }
}

/* =======================هدر تمام ==================== */
.desktop-space {
  display: block;
}

@media (max-width: 768px) {
  .desktop-space {
    display: none;
  }
}

@media (min-width: 768px) {
  #Story {
    padding: 0 5%;
  }

  .Swp {
    padding: 30px 5%;
  }

}