html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/*************** main ***************/
@font-face {
	font-family: iransansdn;
	font-style: normal;
	font-weight: bold;
	src: url('./../fonts/eot/iransansdnbold.eot');
	src: url('./../fonts/eot/iransansdnbold.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('./../fonts/woff2/iransansdnbold.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('./../fonts/woff/iransansdnbold.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('./../fonts/ttf/iransansdnbold.ttf') format('truetype');
}

@font-face {
	font-family: iransansdn;
	font-style: normal;
	font-weight: 300;
	src: url('./../fonts/eot/iransansdnlight.eot');
	src: url('./../fonts/eot/iransansdnlight.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('./../fonts/woff2/iransansdnlight.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('./../fonts/woff/iransansdnlight.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('./../fonts/ttf/iransansdnlight.ttf') format('truetype');
}

@font-face {
	font-family: iransansdn;
	font-style: normal;
	font-weight: normal;
	src: url('./../fonts/eot/iransansdn.eot');
	src: url('./../fonts/eot/iransansdn.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('./../fonts/woff2/iransansdn.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('./../fonts/woff/iransansdn.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('./../fonts/ttf/iransansdn.ttf') format('truetype');
}
body {

}
body,* {
  font-family: iransansdn;
  color: #374856;
  scroll-behavior: smooth;
  scroll-padding-top: 170px;
}
a,a:Hover {
  text-decoration: none;
  color: #374856;
}
.container {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  margin: auto;
	background: #faf6f7;
	display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
	padding: 10px;
}
.container svg {
	fill: #374856;
}
/*************** header ***************/
.header {
	width: 100%;
	border-radius: 10px;
	background: #fff;
	padding: 20px 10px;
	box-shadow: 0 0 10px #eeeeee;
	display: flex;
	justify-content: space-between;
	align-items: center;
	
}
.header .logo {
	width: auto;
	height: 40px;
}
.header button {
	background: none;
	border: none;
	outline: none;
}

/*modal*/
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 90%;
  width: 320px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.modal-backdrop.show .modal-box {
  transform: translateY(0);
  opacity: 1;
}
.modal-box h3 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: bold;
}
.modal-box input[type="number"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 16px;
  font-size: 16px;
  width: 100%;
}
.modal-box .actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
  justify-content: end;
  align-content: center;
  width: 100%;
}
.modal-box button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.modal-box .confirm {
 color: #335bf2;
}
.modal-box .cancel {
  color: #dc2626;
}
.modal-box header {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 10px;
}
.modal-box main form {
  display: flex;
  align-items: center;
  flex-direction: column;
}
/*************** NAV ***************/
.category-menu {
  width: 100%;
  margin-top: 10px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #faf6f7;
}
.category-menu ul {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 1px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  width: calc(100%); /* عرض کل کانتینر */
}
.category-menu ul::-webkit-scrollbar {
  display: none;
}
.category-menu ul li {
  flex: 0 0 calc(100% / 6 - 10px); /* تقسیم عرض 100% به 5 آیتم */
  background: #fff;
  text-align: center;
  scroll-snap-align: start;
  display: flex;
  border-radius: 10px;
  @media (max-width: 500px) {
    flex: 0 0 calc(100% / 5 - 10px); /* تقسیم عرض 100% به 5 آیتم */
  }
}
.category-menu ul li:first-child {
  margin-right: auto;
}
.category-menu ul li:last-child {
  margin-left: auto;
}
.category-menu ul li a {
  border-radius: 10px;
  background: #fff;
  padding: 20px 5px;
  padding-top: 10px;
  display: block;
  width: 100%;
  line-height: 1.3;
  text-align: center;
  border: 2px solid transparent;
  transition: border-color 0.3s;
  @media (max-width: 500px) {
    padding: 10px 5px;
    font-size: 0.8rem;
  }

}
.category-menu ul li a.active {
  border-color: #c63a31;
  background: #f6cbcb;
}
.category-menu ul li a img {
  width: 50px;
  height: 50px;
  display: block;
  margin: auto;
  margin-bottom: 15px;
}
.category-menu ul li a strong {
  display: block;
  font-weight: bold;
  font-size: 1rem;
  @media (max-width: 500px) {
    font-size: 0.8rem;
  }
}
/*************** main ***************/
.main {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  align-items: stretch;
}
.main section {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  align-items: stretch;
  margin: 10px 0;
}
.titr {
  background: #fbe2e2;
  border: 1px solid #c63a31;
  border-right-width: 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
}
.titr img {
  width: 45px;
  height: 45px;
}
.main .item {
  display: flex;
  width: 100%;
  margin: 10px 0;
  justify-content: space-between;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 0 10px #eeeeee;
}
.item header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.item header h2 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 20px;
}























