@font-face {
    font-family: iransansX;
    src: url('./fonts/IRANSansWeb.woff');
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --primary-bg-color: #333333;
  --secondary-bg-color: #ffffff;
  --primary-color: #f8f9fa;
  --secondary-color: #ffd523;
  --secondary-text-color: #495057;
}
/*::selection {*/
/*  background-color: transparent;*/
/*}*/
html {
  font-size: 10px;
  direction: rtl;
}
body {
  font-size: 1.6rem;
  background-color: var(--secondary-bg-color);
  font-family: iransansX;
}
.hidden {
  display: none !important;
}
header {
  width: 100%;
  height: 11rem;
  padding: 0.5rem 10%;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--primary-color);
}

main {
  display: flex;
  flex-direction: column;
  padding: 1rem 15%;
  margin-bottom: 4rem;
}
.category {
  background-color: var(--primary-color);
  border-radius: 1rem;
  cursor: pointer;
  margin-top: 2rem;
}
.cat-title {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.category-name {
  font-weight: 600;
}
.open-cat {
  background-color: var(--secondary-color);
  border-radius: 1rem 1rem 0 0;
}
.icon{
    width: 3rem;
    height: 3rem;
    background-image: url('./images/minus.png');
    background-repeat: no-repeat;
    background-size: cover;
  }
.icon.open{
  background-image: url('./images/plus.png');
}
.cat-items {
  background-color: var(--secondary-bg-color);
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 0 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.item-img {
  width: 10rem;
  border-radius: 1rem;
  aspect-ratio: 1;
}
.item-info {
  width: 100%;
}
.item-name-price {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.item-desc {
  font-size: 1.2rem;
  color: var(--secondary-text-color);
  margin-top: 1rem;
}
.item-name {
  font-weight: 600;
    font-size: 1.5rem;
    white-space: nowrap;
}
.item-price {
  color: var(--secondary-color);
  font-weight: 600;
    white-space: nowrap;
      font-size: 1.4rem;
}
.item-line {
  width: 100%;
  border-style: dotted;
  border-width: 2px 0 0 0;
  margin-top: 1.4rem;
  border-color: #e9ecef;
}
.lock-screen{
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.lightbox{
    background-color: #ffffff;
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    top: 0;
    gap: 2rem;
}
.big-image{
    width: 100%;
    border-radius: 1rem;
    border: 1px solid var(--primary-text);
    aspect-ratio: 1 / 1;
    max-width: 40rem; 
}
.det-exit{
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 2rem;
    width: 100%;
    align-items: center;
}
.lb-name-price-desc{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.lb-name-price{
    display: flex;
    justify-content: space-between;
}
.lb-desc{
    color: rgb(168, 162, 158);
    font-size: 1.3rem;
    line-height: 1.55;
}
.hidden {
  display: none !important;
}
.exit-icon{
    width: 2rem;
    height: 2rem;
    background-image: url('./images/exit.png');
    background-repeat: no-repeat;
    background-size: cover;
    filter: opacity(0.6);
  }
@media screen and (max-width: 1024px) {
  main {
    padding: 0 3%;
  }
}
