@font-face {
  font-family: IranYekanX;
  src: url("fonts/IRANYekanX-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: IranYekanX;
  src: url("fonts/IRANYekanX-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: IranYekanX;
  src: url("fonts/IRANYekanX-Bold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn UI FD;
  src: url("fonts/Vazirmatn-UI-FD-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn UI FD;
  src: url("fonts/Vazirmatn-UI-FD-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn UI FD;
  src: url("fonts/Vazirmatn-UI-FD-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --gray: #535452;

  --header-height: 4.5rem; /*75px*/

  /*Color mode HSL(hue, saturation, lightness)*/
  --hue: 230;
  /* --first-color: hsl(var(--hue), 24%, 32%);
  --first-color-alt: hsl(var(--hue), 24%, 28%);
  --first-color-light: hsl(var(--hue), 24%, 66%);
  --first-color-lighten: hsl(var(--hue), 24%, 92%); */
  --first-color: #3c467b;
  --first-color-alt: #50589c;
  --first-color-light: #636ccb;
  --first-color-lighten: #6e8cfb;
  --title-color: hsl(var(--hue), 4%, 15%);
  --text-color: hsl(var(--hue), 4%, 35%);
  --text-color-light: hsl(var(--hue), 4%, 55%);
  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-color: hsl(var(--hue), 0%, 100%);
  --container-color: #fff;
  --body-font: "IranYekanX", sans-serif;
  --big-font-size: 2rem;
  --h1-font-size: 1.75rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;
  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 900;
  /*========== Margenes Bottom ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 1500;
}

/* width */
::-webkit-scrollbar {
  width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: hsl(var(--hue), 4%, 29%);
  border-radius: 0.5rem;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

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

html {
  scroll-behavior: smooth;
}

body,
button,
input,
textarea {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  margin: var(--header-height) 0 0 0;
  background-color: var(--body-color);
  color: var(--text-color);
  transition: 0.4s; /*For animation dark mode*/
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.bg-green {
  background-color: var(--first-color);
  color: var(--white);
  transition: all 200ms ease-in-out;
}
.bg-green:hover {
  background-color: var(--first-color-light);
  color: var(--text-color);
}
.rotate-45 {
  transform: rotate(45deg);
}

.rotate-90 {
  transform: rotate(90deg);
}

button {
  font-size: inherit;
}

html {
  height: 100%;
}
body {
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  font-family: "IranYekanX", sans-serif !important;
  height: 100%;
  color: var(--text-color);
  background-color: white;
  min-height: 100vh;
}
main {
  /* padding-top: 80px; */
  position: relative;
  background-color: var(--white);
}

strong {
  font-weight: bold;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
  padding: 3.5rem 0 3rem;
}

.section__title,
.section__title-center {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-2);
  line-height: 140%;
}

.section__title-center {
  text-align: center;
}

.container-box {
  max-width: 1200px;
  margin: 0 auto;
}

.grid {
  display: grid;
}
.grid-column {
  grid-template-columns: 1fr 1fr;
}

.main {
  overflow-x: hidden; /*For animation*/
}

/*=============== BUTTONS ===============*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 1rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  transition: 0.3s;
}

.button:hover {
  background-color: var(--first-color-alt);
}

.button__icon {
  transition: 0.3s;
}

.button:hover .button__icon {
  transform: translateX(0.25rem);
}

.button--flex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
}

.button--link {
  color: var(--first-color);
  font-weight: var(--font-medium);
}

.button--link:hover .button__icon {
  transform: translateX(0.25rem);
}

a {
  color: inherit;
  text-decoration: none;
  font-size: inherit;
}
/* a:active,
a:hover,
a:visited {
  color: inherit;
} */

.page-content-container {
  position: relative;
  z-index: 10;
}

nav,
header {
  background-color: transparent;
  z-index: 20;
}
.profile-menu {
  box-shadow: 0 1px 4px hsla(var(--hue), 4%, 15%, 0.1);
}

.alert-box {
  position: absolute;
  z-index: 10;
  top: 20px;
  left: 20px;
}

.display-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.display-flex-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.display-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* CUSTOM WIDTHS */
.w-10,
.w-xs-10 {
  width: 10% !important;
}
.w-15,
.w-xs-15 {
  width: 15% !important;
}
.w-20,
.w-xs-20 {
  width: 20% !important;
}
.w-40,
.w-xs-40 {
  width: 40% !important;
}

.hover-underline {
  padding-bottom: 8px;
}
.hover-underline:hover {
  border-bottom: 2px solid var(--first-color);
}

.hover-bold:hover {
  font-weight: 700;
}

.w-fit {
  width: fit-content !important;
}

#shipping-price,
#total-price {
  font-family: "Vazirmatn UI FD", sans-serif !important;
}
ul,
p,
h2 {
  margin: 0;
}

.cart-warning,
.cart-error {
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}
.cart-warning {
  background-color: #fff3cd;
}

.cart-error {
  background-color: #ffb8bf;
}

/* MD breakpoint*/
@media (max-width: 900px) {
  html,
  body {
    font-size: 14px !important;
  }
  .container-box {
    max-width: 868px;
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
  }
  .grid-column {
    grid-template-columns: unset;
  }

  /* CUSTOM WIDTHS */
  .w-sm-10 {
    width: 10% !important;
  }
  .w-sm-15 {
    width: 15% !important;
  }
  .w-sm-20 {
    width: 20% !important;
  }
  .w-sm-50 {
    width: 50% !important;
  }
  .w-sm-75 {
    width: 75% !important;
  }
  .w-sm-90 {
    width: 90% !important;
  }
  .w-sm-100 {
    width: 100% !important;
  }
  .p-5 {
    padding: 2rem !important;
  }
}

/* Responsive typography */
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

@media (max-width: 400px) {
  .container-box {
    max-width: 340px;
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
  }
}
