:root {
  --gray-50: #bababa;
  --white-100: #f1f1f1;
  --jigari-200: #9e0000;
  --jigarhover-250: #cd2a2a;
  --blackmat-300: #181818;
  --mat2-350: #111111;
}

@font-face {
  font-family: Y;
  src: url(../assets/fonts/BYekan+\ Bold.ttf);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  overflow-x: hidden;
  font-family: Y;
  color: #f1f1f1;
}

body {
  background: var(--blackmat-300);
}

/* Start Headers Styling */
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  padding: 10px 7px;
  border-bottom: 2px solid;
}

/* =========================
   LOGO CONTAINER
========================= */

.logoContainer {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 7px 0px;

  border-radius: 14px;

  background: rgba(255, 255, 255, 0.025);

  border: 1px solid rgba(255, 255, 255, 0.06);

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}


/* =========================
   LOGO IMAGE
========================= */

.logoContainer img {
  display: block;

  width: 105px;
  height:85px;

  object-fit: contain;

  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}


/* =========================
   HOVER
========================= */

.logoContainer:hover {
  transform: translateY(-2px);

  background: rgba(205, 42, 42, 0.07);

  border-color: rgba(205, 42, 42, 0.25);

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(205, 42, 42, 0.08);
}


.logoContainer:hover img {
  transform: scale(1.04);

  filter:
    drop-shadow(0 0 8px rgba(205, 42, 42, 0.25));
}


/* =========================
   LOGO GLOW
========================= */

.logoContainer::before {
  content: "";

  position: absolute;

  width: 45px;
  height: 45px;

  background: rgba(205, 42, 42, 0.12);

  filter: blur(25px);

  border-radius: 50%;

  opacity: 0;

  transition: opacity 0.3s ease;

  pointer-events: none;
}


.logoContainer:hover::before {
  opacity: 1;
}


/* =========================
   MOBILE / TABLET
========================= */

@media (max-width: 900px) {

  .logoContainer {
    padding: 5px 10px;

    border-radius: 12px;
  }

  .logoContainer img {
    width: 95px;
  }

}

/* =========================
   NAVBAR
========================= */

nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 8px;

  list-style: none;
  margin: 0;
  padding: 0;
}


/* =========================
   NAV ITEM
========================= */

nav ul li {
  position: relative;
}


/* =========================
   NAV LINKS
========================= */

nav ul li a {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  padding: 10px 15px;

  color: #ffffff;
  text-decoration: none;

  font-size: 17px;
  font-weight: 500;

  border-radius: 10px;

  transition:
    color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}


/* =========================
   ICON
========================= */

nav ul li a svg {
  width: 21px;
  height: 21px;

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}


/* =========================
   NORMAL HOVER
========================= */

nav ul li a:not(.active):hover {
  color: #cd2a2a;

  background: rgba(205, 42, 42, 0.07);

  transform: translateY(-2px);
}


/* =========================
   NORMAL HOVER SVG
========================= */

nav ul li a:not(.active):hover svg {
  transform: scale(1.08);
}


/* =========================
   ACTIVE LINK
========================= */

nav ul li a.active {
  color: #cd2a2a;

  background: rgba(205, 42, 42, 0.09);

  box-shadow:
    inset 0 0 0 1px rgba(205, 42, 42, 0.08),
    0 5px 18px rgba(205, 42, 42, 0.06);

  transform: none;
}


/* =========================
   ACTIVE LINK HOVER
   هیچ تغییری نکند
========================= */

nav ul li a.active:hover {
  color: #cd2a2a;

  background: rgba(205, 42, 42, 0.09);

  box-shadow:
    inset 0 0 0 1px rgba(205, 42, 42, 0.08),
    0 5px 18px rgba(205, 42, 42, 0.06);

  transform: none;
}


/* =========================
   UNDERLINE
========================= */

nav ul li a::after {
  content: "";

  position: absolute;

  right: 50%;
  bottom: 4px;

  width: 0;
  height: 2px;

  border-radius: 50px;

  background: #cd2a2a;

  transform: translateX(50%);

  transition: width 0.3s ease;
}


/* فقط لینک‌های غیر Active در Hover خط بگیرند */
nav ul li a:not(.active):hover::after {
  width: 32%;
}


/* Active همیشه خط خودش را داشته باشد */
nav ul li a.active::after {
  width: 32%;
}


/* =========================
   ACTIVE SVG
========================= */

nav ul li a.active svg {
  filter: drop-shadow(
    0 0 5px rgba(205, 42, 42, 0.4)
  );

  transform: none;
}


/* =========================
   ICON HOVER
========================= */

nav ul li a:hover svg {
  transform: scale(1.08);

  filter: drop-shadow(0 0 5px rgba(205, 42, 42, 0.45));
}


/* =========================
   UNDERLINE
========================= */

nav ul li a::after {
  content: "";

  position: absolute;

  bottom: 3px;
  right: 50%;

  width: 0;
  height: 2px;

  background: #cd2a2a;

  border-radius: 10px;

  transform: translateX(50%);

  transition: width 0.3s ease;
}


nav ul li a:hover::after {
  width: 35%;
}


/* =========================
   ACTIVE NAV LINK
========================= */

nav ul li a.active {
  color: #cd2a2a;

  background: rgba(205, 42, 42, 0.08);

  box-shadow:
    inset 0 0 0 1px rgba(205, 42, 42, 0.08),
    0 4px 15px rgba(205, 42, 42, 0.05);
}

nav ul li a.active::after {
  width: 35%;
}

nav ul li a.active svg {
  filter: drop-shadow(0 0 6px rgba(205, 42, 42, 0.45));
}


/* =========================
   ACTIVE ICON
========================= */

nav ul li a.active svg {
  filter: drop-shadow(0 0 5px rgba(205, 42, 42, 0.45));
}


/* =========================
   MOBILE / TABLET
========================= */

@media (max-width: 900px) {

  nav {
    display: none;
  }

}


/* =========================
   HEADER ACTIONS
========================= */

.headerActions {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 6px;

  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  /*
   * مهم:
   * اجازه می‌ده Badge از محدوده بیرون بیاد
   * بدون ایجاد اسکرول
   */
  overflow: visible;
}



/* =========================================================
   SEARCH BUTTON
========================================================= */

.searchSection {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}


.searchLink {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  min-height: 42px;
  padding: 0 14px;

  border: 0;
  border-radius: 10px;

  color: #eeeeee;

  background: rgba(255, 255, 255, 0.035);

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  overflow: visible;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


.searchLink:hover {
  color: #ffffff;

  background: rgba(205, 42, 42, 0.12);

  transform: translateY(-1px);

  box-shadow:
    0 6px 18px rgba(205, 42, 42, 0.12);
}


.searchLink svg {
  flex-shrink: 0;

  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}


.searchLink:hover svg {
  transform: scale(1.08);

  filter:
    drop-shadow(0 0 5px rgba(205, 42, 42, 0.5));
}


/* =========================================================
   SEARCH MODAL
========================================================= */

.searchModal {
  position: fixed;

  inset: 0;

  z-index: 10000;

  display: flex;

  align-items: flex-start;
  justify-content: center;

  padding: 7vh 20px;

  visibility: hidden;
  opacity: 0;

  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}


.searchModal.open {
  visibility: visible;

  opacity: 1;

  pointer-events: auto;
}


/* =========================================================
   BACKDROP
========================================================= */

.searchModal__backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(0, 0, 0, 0.78);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


/* =========================================================
   MODAL CONTENT
========================================================= */

.searchModal__content {
  position: relative;

  z-index: 2;

  width: min(1100px, 100%);

  max-height: 86vh;

  display: flex;
  flex-direction: column;

  padding: 30px;

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(205, 42, 42, 0.08),
      transparent 30%
    ),
    #181818;

  border:
    1px solid rgba(205, 42, 42, 0.2);

  border-radius: 24px;

  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(205, 42, 42, 0.05);

  transform: translateY(-20px) scale(0.98);

  transition:
    transform 0.35s ease;
}


.searchModal.open .searchModal__content {
  transform: translateY(0) scale(1);
}


/* =========================================================
   MODAL HEADER
========================================================= */

.searchModal__header {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 22px;

  text-align: right;
}


.searchModal__badge {
  display: inline-flex;

  padding: 5px 12px;

  margin-bottom: 8px;

  color: #cd2a2a;

  background: rgba(205, 42, 42, 0.08);

  border:
    1px solid rgba(205, 42, 42, 0.22);

  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;
}


.searchModal__header h2 {
  margin: 0;

  color: #ffffff;

  font-size: 25px;
  font-weight: 800;

  line-height: 1.5;
}


.searchModal__close {
  width: 42px;
  height: 42px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 0;

  border:
    1px solid rgba(255, 255, 255, 0.08);

  border-radius: 12px;

  color: #ffffff;

  background: rgba(255, 255, 255, 0.04);

  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}


.searchModal__close:hover {
  color: #ffffff;

  background: rgba(205, 42, 42, 0.15);

  transform: rotate(90deg);
}


/* =========================================================
   SEARCH BOX
========================================================= */

.searchBox {
  position: relative;

  display: flex;

  align-items: center;

  width: 100%;

  min-height: 58px;

  padding: 0 18px;

  gap: 12px;

  background: #111111;

  border:
    1px solid rgba(255, 255, 255, 0.08);

  border-radius: 15px;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}


.searchBox:focus-within {
  border-color:
    rgba(205, 42, 42, 0.5);

  box-shadow:
    0 0 0 4px rgba(205, 42, 42, 0.07),
    0 10px 30px rgba(0, 0, 0, 0.2);
}


.searchBox input {
  flex: 1;

  min-width: 0;

  height: 56px;

  border: 0;
  outline: 0;

  color: #ffffff;

  background: transparent;

  font-family: inherit;
  font-size: 14px;

  text-align: right;
}


.searchBox input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}


.searchBox__clear {
  width: 30px;
  height: 30px;

  display: none;

  align-items: center;
  justify-content: center;

  border: 0;

  border-radius: 8px;

  color: rgba(255, 255, 255, 0.5);

  background: transparent;

  font-size: 22px;

  line-height: 1;

  cursor: pointer;
}


.searchBox__clear.visible {
  display: flex;
}


.searchBox__clear:hover {
  color: #cd2a2a;

  background: rgba(205, 42, 42, 0.08);
}


/* =========================================================
   RESULTS
========================================================= */

.searchResults {
  min-height: 0;

  margin-top: 22px;

  overflow: hidden;
}


.searchResults__header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  margin-bottom: 14px;

  color: rgba(255, 255, 255, 0.55);

  font-size: 13px;
}


.searchResults__list {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 15px;

  max-height: 58vh;

  padding: 3px;

  overflow-y: auto;
}


/* =========================================================
   SEARCH PRODUCT CARD
========================================================= */

.searchProductCard {
  display: grid;

  grid-template-columns: 150px minmax(0, 1fr);

  gap: 18px;

  padding: 14px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.015)
    );

  border:
    1px solid rgba(255, 255, 255, 0.075);

  border-radius: 17px;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}


.searchProductCard:hover {
  transform: translateY(-3px);

  border-color:
    rgba(205, 42, 42, 0.35);

  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.searchProductCard__image {
  width: 150px;
  height: 180px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 10px;

  background:
    rgba(0, 0, 0, 0.2);

  border-radius: 13px;

  overflow: hidden;
}


.searchProductCard__image img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  transition: transform 0.3s ease;
}


.searchProductCard:hover
.searchProductCard__image img {
  transform: scale(1.05);
}


/* =========================================================
   PRODUCT INFO
========================================================= */

.searchProductCard__info {
  min-width: 0;

  display: flex;

  flex-direction: column;

  text-align: right;
}


.searchProductCard__category {
  align-self: flex-start;

  padding: 4px 9px;

  margin-bottom: 7px;

  color: #cd2a2a;

  background:
    rgba(205, 42, 42, 0.08);

  border:
    1px solid rgba(205, 42, 42, 0.2);

  border-radius: 999px;

  font-size: 10px;
}


.searchProductCard__title {
  margin: 0 0 6px;

  color: #ffffff;

  font-size: 19px;
  font-weight: 800;
}


.searchProductCard__code {
  margin-bottom: 8px;

  color: rgba(255, 255, 255, 0.42);

  font-size: 11px;
}


.searchProductCard__description {
  margin: 0 0 12px;

  color: rgba(255, 255, 255, 0.6);

  font-size: 12px;

  line-height: 1.9;
}


.searchProductCard__meta {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 7px;

  margin-bottom: 12px;
}


.searchProductCard__stock,
.searchProductCard__price {
  display: inline-flex;

  align-items: center;

  min-height: 28px;

  padding: 0 9px;

  border-radius: 8px;

  font-size: 11px;
  font-weight: 700;
}


.searchProductCard__stock {
  color: #63d69b;

  background: rgba(60, 200, 130, 0.08);

  border:
    1px solid rgba(60, 200, 130, 0.18);
}


.searchProductCard__stock.out {
  color: #ff6b6b;

  background: rgba(205, 42, 42, 0.08);

  border-color:
    rgba(205, 42, 42, 0.2);
}


.searchProductCard__price {
  color: #ffffff;

  background: rgba(255, 255, 255, 0.04);

  border:
    1px solid rgba(255, 255, 255, 0.07);
}


.searchProductCard__actions {
  display: flex;

  align-items: center;

  gap: 8px;

  margin-top: auto;
}


.searchProductCard__add {
  flex: 1;

  min-height: 40px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  padding: 0 12px;

  border: 1px solid #cd2a2a;

  border-radius: 9px;

  color: #ffffff;

  background: #cd2a2a;

  font-family: inherit;

  font-size: 11px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


.searchProductCard__add:hover {
  background: #9e0000;

  box-shadow:
    0 8px 20px rgba(205, 42, 42, 0.2);

  transform: translateY(-1px);
}


.searchProductCard__add:disabled {
  color: rgba(255, 255, 255, 0.4);

  background: rgba(255, 255, 255, 0.06);

  border-color: rgba(255, 255, 255, 0.08);

  cursor: not-allowed;

  transform: none;

  box-shadow: none;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.searchEmpty {
  grid-column: 1 / -1;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  min-height: 240px;

  padding: 30px;

  color: rgba(255, 255, 255, 0.5);

  text-align: center;

  background:
    rgba(255, 255, 255, 0.02);

  border:
    1px dashed rgba(255, 255, 255, 0.1);

  border-radius: 16px;
}


.searchEmpty strong {
  margin-bottom: 7px;

  color: #ffffff;

  font-size: 16px;
}


.searchEmpty span {
  color: rgba(255, 255, 255, 0.42);

  font-size: 12px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

  .searchLink {
    min-width: 42px;
    min-height: 42px;

    padding: 0 10px;

    border-radius: 9px;
  }


  .searchLink span {
    display: none;
  }


  .searchModal {
    padding: 20px 12px;
  }


  .searchModal__content {
    max-height: 92vh;

    padding: 20px;

    border-radius: 20px;
  }


  .searchResults__list {
    grid-template-columns: 1fr;

    max-height: 62vh;
  }


  .searchProductCard {
    grid-template-columns: 115px minmax(0, 1fr);

    gap: 13px;
  }


  .searchProductCard__image {
    width: 115px;
    height: 150px;
  }

}


@media (max-width: 480px) {

  .searchModal {
    padding: 10px;
  }


  .searchModal__content {
    padding: 16px;

    border-radius: 17px;
  }


  .searchModal__header h2 {
    font-size: 20px;
  }


  .searchBox {
    min-height: 52px;

    padding: 0 13px;
  }


  .searchBox input {
    height: 50px;

    font-size: 12px;
  }


  .searchProductCard {
    grid-template-columns: 90px minmax(0, 1fr);

    gap: 11px;

    padding: 10px;
  }


  .searchProductCard__image {
    width: 90px;
    height: 120px;
  }


  .searchProductCard__title {
    font-size: 15px;
  }


  .searchProductCard__description {
    font-size: 11px;

    line-height: 1.8;

    display: -webkit-box;
    -webkit-box-orient: vertical;

    overflow: hidden;
  }

}



/* =========================
   CART SECTION
========================= */

.cartSection {
  display: flex;
  align-items: center;
  justify-content: center;

  overflow: visible;
}


/* =========================
   ACCOUNT SECTION
========================= */

.accountSection {
  position: relative;
  display: flex;
  align-items: center;
  overflow:hidden ;
}


/* =========================
   ACCOUNT BUTTON
========================= */

.accountLink {
  border: none;
  outline: none;
  background: transparent;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 8px 10px;

  color: var(--white-100);
  font-family: Y, sans-serif;
  font-size: 15px;

  cursor: pointer;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
    overflow: visible;
}

.accountLink:hover {
  color: var(--jigarhover-250);
}

.accountLink svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.accountLink:hover svg {
  transform: translateY(-2px);
}


/* =========================
   ACCOUNT DROPDOWN
========================= */

.accountDropdown {
  position: absolute;

  top: calc(100% + 12px);
  right: 0;

  width: 190px;

  padding: 8px;

  background: var(--mat2-350);

  border: 1px solid rgba(205, 42, 42, 0.25);
  border-radius: 12px;

  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(205, 42, 42, 0.08);

  opacity: 0;
  visibility: hidden;

  transform: translateY(-10px) scale(0.96);
  transform-origin: top right;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;

  z-index: 9999;
}


/* وقتی بازه */

.accountDropdown.active {
  opacity: 1;
  visibility: visible;

  transform: translateY(0) scale(1);
}


/* =========================
   DROPDOWN ITEMS
========================= */

.accountDropdownItem {
  width: 100%;

  display: flex;
  align-items: center;

  padding: 12px 13px;

  border: none;
  outline: none;
  background: transparent;

  border-radius: 8px;

  color: var(--white-100);

  font-family: Y, sans-serif;
  font-size: 14px;

  text-decoration: none;

  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    padding-right 0.25s ease;
}

.accountDropdownItem:hover {
  background: rgba(205, 42, 42, 0.1);

  color: var(--jigarhover-250);

  padding-right: 17px;
}


/* =========================
   LOGOUT
========================= */

.logoutBtn {
  font-family: Y, sans-serif;
  text-align: right;
}


/* =========================
   LINKS
========================= */

.cartLink,
.accountLink {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  min-height: 42px;
  padding: 0 14px;

  color: #eeeeee;
  text-decoration: none;

  border-radius: 10px;

  font-size: 14px;
  font-weight: 600;

  /*
   * مهم برای جلوگیری از ایجاد اسکرول
   */
  overflow: visible;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


/* =========================
   CART LINK
========================= */

.cartLink {
  background: rgba(205, 42, 42, 0.06);
}


/* =========================
   ACCOUNT LINK
========================= */

.accountLink {
  background: rgba(255, 255, 255, 0.035);
}


/* =========================
   HOVER
========================= */

.cartLink:hover,
.accountLink:hover {
  color: #ffffff;

  background: rgba(205, 42, 42, 0.12);

  /*
   * حرکت بسیار کم تا ارتفاع هدر تغییر نکند
   */
  transform: translateY(-1px);

  box-shadow:
    0 6px 18px rgba(205, 42, 42, 0.12);
}


/* =========================
   ICON
========================= */

.cartLink svg,
.accountLink svg {
  flex-shrink: 0;

  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}


/* =========================
   ICON HOVER
========================= */

.cartLink:hover svg,
.accountLink:hover svg {
  transform: scale(1.08);

  filter:
    drop-shadow(0 0 5px rgba(205, 42, 42, 0.5));
}


/* =========================
   CART ICON
========================= */

.cartIcon {
  position: relative;

  width: 24px;
  height: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  /*
   * Badge می‌تواند بیرون از آیکون قرار بگیرد
   */
  overflow: visible;
}


/* =========================
   CART COUNT
========================= */

.cartCount {
  position: absolute;

  top: -7px;
  right: -7px;

  min-width: 19px;
  height: 19px;

  padding: 0 5px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  background: #cd2a2a;
  color: #ffffff;

  border: 2px solid #111111;
  border-radius: 999px;

  font-size: 10px;
  font-weight: 800;

  line-height: 1;

  /*
   * اجازه نمی‌دهد عدد دو رقمی یا سه رقمی
   * نصفه نمایش داده شود
   */
  white-space: nowrap;

  /*
   * Badge همیشه روی آیکون باشد
   */
  z-index: 10;

  /*
   * جلوگیری از هرگونه اسکرول داخلی
   */
  overflow: visible;

  box-shadow:
    0 3px 10px rgba(205, 42, 42, 0.4);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


/* =========================
   CART COUNT HOVER
========================= */

.cartLink:hover .cartCount {
  transform: scale(1.08);

  box-shadow:
    0 0 12px rgba(205, 42, 42, 0.55);
}


/* =========================
   CLICK EFFECT
========================= */

.cartLink:active,
.accountLink:active {
  transform: translateY(0) scale(0.97);
}


/* =========================
   MOBILE / TABLET
========================= */

@media (max-width: 900px) {

  .headerActions {
    gap: 7px;

    padding: 5px;

    border-radius: 12px;

    overflow: visible;
  }


  .cartLink,
  .accountLink {

    min-width: 42px;
    min-height: 42px;

    padding: 0 10px;

    border-radius: 9px;

    overflow: visible;
  }


  .cartLink span:last-child,
  .accountLink span:last-child {
    display: none;
  }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

  .headerActions {
    gap: 5px;

    padding: 4px;

    border-radius: 11px;
  }


  .cartLink,
  .accountLink {

    width: 40px;
    height: 40px;

    min-width: 40px;
    min-height: 40px;

    padding: 0;
  }


  .cartIcon {
    width: 22px;
    height: 22px;
  }


  .cartLink svg,
  .accountLink svg {
    width: 22px;
    height: 22px;
  }


  .cartCount {
    top: -6px;
    right: -6px;

    min-width: 18px;
    height: 18px;

    font-size: 9px;
  }

}








/* =========================
   FOOTER
========================= */

.siteFooter {
    position: relative;

    width: 100%;

    margin-top: 80px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(205, 42, 42, 0.07),
            transparent 30%
        ),
        #0d0d0d;

    border-top: 1px solid rgba(255, 255, 255, 0.07);

    overflow: hidden;
}


/* =========================
   TOP GLOW
========================= */

.siteFooter::before {
    content: "";

    position: absolute;

    top: -1px;
    right: 10%;

    width: 180px;
    height: 2px;

    background: #cd2a2a;

    box-shadow:
        0 0 20px rgba(205, 42, 42, 0.5),
        0 0 50px rgba(205, 42, 42, 0.25);
}


/* =========================
   CONTAINER
========================= */

.footerContainer {
    position: relative;

    width: 94%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 70px 0 60px;

    display: grid;

    grid-template-columns:
        1.6fr
        1fr
        1fr
        1.2fr;

    gap: 55px;

    direction: rtl;
}


/* =========================
   BRAND
========================= */

.footerBrand {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    text-align: right;
    padding: 10px;
}


.footerLogoLink {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 95px;
    height: 75px;

    margin-bottom: 14px;

    text-decoration: none;

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.06);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.footerLogoLink img {
    width: 82px;
    height: 68px;

    object-fit: contain;

    display: block;
}


.footerLogoLink:hover {
    transform: translateY(-3px);

    background: rgba(205, 42, 42, 0.07);

    border-color: rgba(205, 42, 42, 0.25);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(205, 42, 42, 0.08);
}


.footerBrand h3 {
    margin: 0 0 10px;

    color: #fff;

    font-size: 20px;
    font-weight: 800;
}


.footerBrand p {
    max-width: 330px;

    margin: 0;

    color: rgba(255, 255, 255, 0.52);

    font-size: 13px;

    line-height: 2;
}


/* =========================
   SOCIAL
========================= */

.footerSocial {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 24px;
    padding: 10px;
}


.footerSocialItem {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.07);

    text-decoration: none;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.footerSocialItem:hover {
    transform: translateY(-4px);

    background: rgba(205, 42, 42, 0.08);

    border-color: rgba(205, 42, 42, 0.25);

    box-shadow:
        0 8px 22px rgba(205, 42, 42, 0.12);
}


.footerSocialItem svg {
    width: 30px;
    height: 30px;

    display: block;

    transition: transform 0.3s ease;
}


.footerSocialItem:hover svg {
    transform: scale(1.08);
}


/* =========================
   FOOTER COLUMNS
========================= */

.footerColumn {
    text-align: right;
}


.footerColumn h4 {
    position: relative;

    margin: 0 0 24px;

    padding-right: 12px;

    color: #fff;

    font-size: 16px;
    font-weight: 800;
}


.footerColumn h4::before {
    content: "";

    position: absolute;

    top: 50%;
    right: 0;

    width: 3px;
    height: 18px;

    background: #cd2a2a;

    border-radius: 10px;

    transform: translateY(-50%);
}


.footerLinks {
    display: flex;

    flex-direction: column;

    gap: 14px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.footerLinks li a {
    position: relative;

    display: inline-block;

    color: rgba(255, 255, 255, 0.52);

    text-decoration: none;

    font-size: 13px;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.footerLinks li a::before {
    content: "";

    position: absolute;

    right: -12px;
    top: 50%;

    width: 0;
    height: 1px;

    background: #cd2a2a;

    transform: translateY(-50%);

    transition: width 0.25s ease;
}


.footerLinks li a:hover {
    color: #fff;

    transform: translateX(-5px);
}


.footerLinks li a:hover::before {
    width: 7px;
}


/* =========================
   CONTACT
========================= */

.footerContact {
    display: flex;

    flex-direction: column;

    gap: 18px;
}


.footerContact h4 {
    margin-bottom: 4px;
}


.footerContactItem {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.contactLabel {
    color: rgba(255, 255, 255, 0.35);

    font-size: 11px;
}


.footerContactItem a,
.footerContactItem > span:last-child {
    color: rgba(255, 255, 255, 0.7);

    text-decoration: none;

    font-size: 13px;

    transition: color 0.25s ease;
}


.footerContactItem a:hover {
    color: #cd2a2a;
}


/* =========================
   BOTTOM
========================= */

.footerBottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);

    background: rgba(0, 0, 0, 0.18);
}


.footerBottomContainer {
    width: 94%;
    max-width: 1500px;

    min-height: 75px;

    margin: 0 auto;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    direction: rtl;
}


.footerBottomContainer p {
    margin: 0;

    color: rgba(255, 255, 255, 0.35);

    font-size: 11px;
}


.footerTrust {
    display: flex;

    align-items: center;
}


.Enamad {
    display: flex;

    align-items: center;
    justify-content: center;
}


.Enamad img {
    width: 55px;
    height: auto;

    display: block;

    border-radius: 8px;

    opacity: 0.85;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.Enamad img:hover {
    opacity: 1;

    transform: translateY(-2px);
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .footerContainer {
        grid-template-columns:
            1.4fr
            1fr
            1fr;

        gap: 45px;
    }

    .footerBrand {
        grid-column: 1 / -1;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .siteFooter {
        margin-top: 60px;
    }


    .footerContainer {
        width: 90%;

        padding: 55px 0 45px;

        grid-template-columns: 1fr 1fr;

        gap: 40px 25px;
    }


    .footerBrand {
        grid-column: 1 / -1;

        align-items: center;

        text-align: center;
    }


    .footerBrand p {
        max-width: 450px;
    }


    .footerSocial {
        justify-content: center;
    }


    .footerColumn {
        text-align: right;
    }


    .footerBottomContainer {
        width: 90%;

        min-height: 100px;

        padding: 15px 0;

        flex-direction: column;

        justify-content: center;

        text-align: center;

        gap: 15px;
    }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

    .footerContainer {
        width: 90%;

        grid-template-columns: 1fr;

        gap: 35px;
    }


    .footerBrand {
        grid-column: auto;
    }


    .footerColumn {
        text-align: center;
    }


    .footerColumn h4 {
        display: inline-block;

        padding-right: 0;

        padding-bottom: 9px;
    }


    .footerColumn h4::before {
        top: auto;

        right: 50%;

        bottom: 0;

        width: 35px;
        height: 2px;

        transform: translateX(50%);
    }


    .footerLinks {
        align-items: center;
    }


    .footerLinks li a:hover {
        transform: translateY(-2px);
    }


    .footerLinks li a::before {
        display: none;
    }


    .footerContact {
        align-items: center;
    }


    .footerSocialItem {
        width: 42px;
        height: 42px;
    }


    .footerSocialItem svg {
        width: 28px;
        height: 28px;
    }

}





/* Hamburger and mobile menu styles */
.hamburger {
  display: none;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 40px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
}
.hamburger span {
  display: block;
  height: 3px;
  background: var(--carnation-950);
  margin: 6px 0;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active {
  opacity: 0;
  pointer-events: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  z-index: 2002;
  transition: width 0.28s ease, background 0.28s ease;
}
.mobile-menu__content {
  width: 85%;
  max-width: 360px;
  height: 100%;
  padding: 24px;
  box-shadow: -6px 0 18px rgba(0, 0, 0, 0.12);
  background: #fff;
  z-index: 2003;
}
.mobile-menu__close {
  background: transparent;
  border: none;
  font-size: 22px;
  float: left;
  cursor: pointer;
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 40px;
}
.mobile-menu ul li a {
  font-size: 20px;
  color: var(--carnation-950);
  padding: 8px 6px;
  display: block;
}

/* When menu open */
.mobile-menu.open {
  width: 100%;
  background: transparent; /* remove overlay background when open */
}
.mobile-menu.open .mobile-menu__content {
  transform: translateX(0);
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--jigarhover-250);
  margin: 5px 0;
  border-radius: 3px;
}

/* ================= MOBILE MENU ================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 2000;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu__content {
  width: 80%;
  max-width: 340px;
  height: 100%;
  background: #fff;
  padding: 24px;
}

.mobile-menu a {
  color: #111;
  font-size: 18px;
}

/* Responsive rules: tablet/mobile */
@media (max-width: 900px) {
  header {
    justify-content: center;
    position: relative;
    padding: 14px 12px;
  }

  /* center logo */
  .logoContainer {
    transform: translateX(30px);
    order: 1;
    position: relative;
    z-index: 1001;
  }

  nav {
    display: none; /* hide desktop nav on small screens */
  }

  .hamburger {
    display: block;
  }

  .mobile-menu__content {
    padding: 20px;
    background-color: #333;
  }

  .mobile-menu__content li a {
    font-size: 25px;
  }

  .whyusTitle {
    margin-top: 100px;
    font-size: 35px;
  }

  .whyusDescription {
    padding: 10px 16px;
    font-size: 20px;
    line-height: 1.9;
  }

  .whyusLink {
    padding: 10px 40px;
    font-size: 20px;
  }

  .whyusLink svg {
    width: 27px;
    height: 27px;
  }
  
  .faq {
    width: 95%;
    padding: 22px;
  }
  footer {
    flex-direction: column;
    gap: 50px;
  }
}

/*----------------------- MOBILE RESPONSIVE-----------------------*/
@media (max-width: 480px) {

  /* Mobile-specific adjustments */
  .swiper svg {
    height: 20px;
    width: 20px;
  }

  .whyusTitle {
    margin-top: 90px;
    font-size: 20px;
    font-weight: bold;
  }

  .whyusDescription {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
  }

  .whyusLink {
    padding: 10px;
    font-size: 15px;
    margin: 0 auto;
  }

  #productTitle {
    font-size: 30px;
    font-weight: bold;
    padding: 0;
  }

  .faq {
    width: 95%;
    padding: 20px;
  }

  .faq-question,
  .faq-answer {
    font-size: 12px;
  }

  .faq .icon {
    font-size: 12px;
  }

  header {
    padding: 12px 10px;
  }

  footer {
    flex-direction: column;
    gap: 50px;
  }

  .mobile-menu__content {
    padding: 20px;
    background-color: #333;
  }

  .mobile-menu__content li a {
    font-size: 25px;
  }
}