h1 {
    font-size: 18px;
}

h2 {
    font-size: x-large !important;
}

p {
    font-size: 12.5px;
}

.grid__wraper__info h3 {
    font-weight: 300 !important;
}

.grid__wraper__price span {
    font-weight: 300 !important;
}

.headerarea__logo {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
}

@media (min-width: 1200px) {
	.container, .container-lg, .container-md, .container-sm, .container-xl {
		max-width: 100% !important;
		padding: 0px !important;
	}
}
@media (min-width: 1400px) {
	.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
		max-width: 100% !important;
		padding: 0px !important;
	}
}
@media (min-width: 1500px) and (max-width: 1920px) {
	.container {
		max-width: 100% !important;
		padding: 0px !important;
	}
}
@media (min-width: 991px) {
	.headerarea.header__sticky {
		padding: 8px 0px;
	}
}
@media (max-width: 991px) {
	.desktop__menu__wrapper {
		display: none !important;
	}
}
.grid__wraper:hover .primary__image {
    opacity: 0 !important;
}
.headerarea__right {
    margin-top: 5px !important;
    margin-bottom: 0rem !important;
}

/* Custom styles for SweetAlert menu */
.sweet-menu-popup {
	border-radius: 8px !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
	overflow: hidden;
}

.sweet-menu-close {
	top: 12px !important;
	right: 12px !important;
	color: #666 !important;
	transition: color 0.2s ease;
}

.sweet-menu-close:hover {
	color: #333 !important;
}

.sweet-menu {
	padding: 20px 0;
}

.sweet-menu-item {
	display: flex;
	align-items: center;
	padding: 15px 25px;
	text-decoration: none;
	color: #333;
	transition: all 0.2s ease;
	border: none;
	background: none;
	width: 100%;
	cursor: pointer;
	text-align: right;
	font-family: inherit;
	font-size: 16px;
}

.sweet-menu-item:hover {
	background-color: #f5f5f5;
	color: #2c3e50;
}

.sweet-menu-icon {
	margin-left: 12px;
	color: #666;
}

.logout-btn {
	color: #e74c3c;
}

.logout-btn .sweet-menu-icon {
	color: #e74c3c;
}

.logout-btn:hover {
	background-color: #ffeaea;
}

.user-menu-trigger {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
	transition: background-color 0.2s;
	color: #333;
}

.user-menu-trigger:hover {
	background-color: #f0f0f0;
}

/* RTL support */
.swal2-title, .swal2-content {
	direction: rtl;
	text-align: right;
}

.swal2-actions {
	flex-direction: row-reverse;
}

div:where(.swal2-icon) {
	border: .15em solid #252b2e !important;
	border-color: #252b2e !important;
}

a.sweet-menu-item {
	justify-content: center !important;
}

.setting__wrap__list.show {
	display: none !important;
}

div:where(.swal2-container) button:where(.swal2-close):focus-visible {
	outline: none !important;
	box-shadow: none !important;
}

ul.headerarea__submenu.headerarea__megamenu {
    margin-right: 40px !important;
    margin-left: 15px !important;
    width: 95% !important;
}

.headerarea__megamenu .mega__menu__li {
    width: 32% !important;
}


.category-image img {
    height: auto !important;
}


.category-image {
    height: auto !important;
}

ul.headerarea__right__nav {
    margin-bottom: 0px !important;
}

.headerarea__main__menu nav ul > li > a {
    font-weight: 500 !important;
}

/* Gaming Navigation Strip */
.gaming-nav-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(48, 48, 48, 0.25);
}

.gaming-nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gaming-nav-links {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.gaming-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.gaming-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.gaming-emoji {
    font-size: 15px;
    display: inline-block;
    cursor: pointer;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15));
    animation: idleFloat 3s ease-in-out infinite;
    transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}

/* Hover animation - gets 1.2x bigger then returns */
.gaming-link:hover {
    animation: hoverGrow 0.3s ease-in-out forwards;
}

@keyframes hoverGrow {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}


/* Responsive for mobile */
@media (max-width: 768px) {
    .gaming-nav-links {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .gaming-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .gaming-emoji {
        font-size: 24px;
    }
}

.image-popup-container {
	width: auto !important;
	max-width: 90vw !important;
	max-height: 90vh !important;
}

.image-popup {
	width: 100%;
	height: 100%;
}

.image-popup img {
	width: 100%;
	height: 100%;
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 12px;
}

.image-popup-close {
	color: white !important;
	font-size: 28px !important;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 30px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0 0 12px 12px;
  list-style: none;
  padding: 0;
  margin: 7px 0 0 0;
  width: 300px;
  z-index: 1000;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: none;
  direction: rtl;               /* Persian text alignment */
}

.autocomplete-dropdown-mobile {
  top: 100%;
  left: 0;
  right: 30px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0 0 12px 12px;
  list-style: none;
  padding: 0;
  margin: 7px 0 0 0;
  width: 260px;
  z-index: 1000;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: none;
  direction: rtl;               /* Persian text alignment */
}

.autocomplete-dropdown.active {
  display: block;
}

.autocomplete-dropdown-mobile.active {
  display: block;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: #f8f9ff;
}

.autocomplete-item .item-icon {
  font-size: 24px;
  margin-inline-end: 12px;      /* spacing in RTL mode */
  flex-shrink: 0;
}

.item-name {
  font-size: 14px;
  color: #222;
  font-family: 'IRANSans', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Login / Sign Up */
.gaming-emoji {
    font-size: 52px;
    display: inline-block;
    cursor: pointer;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15));
    transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.gaming-emoji-strip {
    font-size: 17px;
    display: inline-block;
    cursor: pointer;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15));
    transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}

/* Minor animation when idle (no interaction) */
@keyframes idleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-4px) rotate(2deg);
    }
}
/* Hover animation - more active gaming feel */
.gaming-emoji:hover {
    animation: gamingBounce 0.4s ease-in-out forwards;
}

@keyframes gamingBounce {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.35);
    }
    100% {
        transform: scale(1);
    }
}

/* Optional: Add a gaming glow effect on hover */
.gaming-emoji:hover {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

/* Static Toolbar for Mobile */
.static-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: white;
    backdrop-filter: blur(0px);
    padding: 8px 16px 12px;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2), 0 0 0 0.1px rgba(255, 255, 255, 0.01) inset;
    z-index: 1000;
    transition: all 0.2s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

/* each toolbar column */
.toolbar-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* home, tel, basket container, user box wrappers */
.toolbar-col span,
.toolbar-col .menu-user-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.toolbar-col a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 2px;
}

/* make the whole click area nice */
.home-icon, 
.toolbar-col.tel a,
.basket-icon,
.menu-user-box a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 2px;
}

/* text labels */
.txt-item {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #000000;
    transition: color 0.2s ease;
    font-family: 'IRANSans', sans-serif;
}

/* SVG icon containers - uniform sizing and styling */
.svg {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* all svg inside .svg */
.svg svg {
    display: block;
    transition: all 0.2s ease;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

/* --- specific sizing for each svg to match stylish black look --- */
/* home icon (larger original) */
.home-icon .svg svg {
    width: 26px;
    height: 26px;
}

/* products icon (tel class, 19x19 original but we scale nicely) */
.toolbar-col.tel .svg svg {
    width: 22px;
    height: 22px;
}

/* basket icon */
.basket-icon .svg svg {
    width: 25px;
    height: 25px;
}

/* profile icon */
.menu-user-box .svg svg {
    width: 24px;
    height: 24px;
}

/* ----- change stroke colors to modern light grey / black for dark theme ----- */
.home-icon .svg svg path,
.toolbar-col.tel .svg svg path,
.basket-icon .svg svg path,
.menu-user-box .svg svg path {
    stroke: black;
    transition: stroke 0.2s ease, fill 0.2s ease;
}

/* special case for basket icon extra paths, plus profile all strokes */
.basket-icon .svg svg path {
    stroke: black;
}

/* active / hover effect for touch / click feedback */
.toolbar-col a:active .txt-item,
.toolbar-col span:active .txt-item,
.menu-user-box a:active .txt-item,
.toolbar-col a:active .svg svg path,
.toolbar-col span:active .svg svg path {
    color: #ffffff;
    stroke: #ffffff !important;
}

/* subtle hover for non-touch (optional) */
@media (hover: hover) {
    .toolbar-col a:hover .txt-item,
    .menu-user-box a:hover .txt-item {
        color: #ffffff;
    }
    .toolbar-col a:hover .svg svg path,
    .menu-user-box a:hover .svg svg path {
        stroke: #ffffff;
    }
}

/* position of badge relative to basket icon area */
.basket-icon {
    position: relative;
}

.basket-icon .item-count {
    position: absolute;
    top: -10px;
    right: -8px;
}

/* special handling for RTL but we want consistent spacing */
.static-toolbar {
    direction: rtl;
}

/* enhancement: glass effect edge + inner glow */
.static-toolbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    border-radius: inherit;
}

/* make baseline consistent */
.toolbar-col span,
.toolbar-col .menu-user-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* remove default outline and add focus ring for accessibility */
.toolbar-col a:focus-visible,
.menu-user-box a:focus-visible {
    outline: 2px solid #ffffff80;
    outline-offset: 4px;
    border-radius: 20px;
}

/* For the 'home' class specifically within toolbar-col */
.toolbar-col.home {
    flex: 1;
}

/* ensure all svg strokes are updated to fresh silver/white palette */
.home-icon .svg svg path {
    stroke: black;
}

/* optional micro animation on badge (subtle pulse) */
@keyframes subtlePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* separator style: we don't need extra dividers but give spacing */
.static-toolbar {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
}

/* make active state feel luxurious */
.toolbar-col a.active .txt-item,
.toolbar-col span.active .txt-item {
    color: #ffffff;
    font-weight: 600;
    font-family: 'IRANSans', sans-serif;
    text-shadow: 0 0 2px rgba(255,255,200,0.3);
}

.toolbar-col a.active .svg svg path,
.toolbar-col span.active .svg svg path {
    stroke: #ffffff;
}

/* for demo: simulate page margin bottom to show toolbar doesn't overlap content */
/* this is just for demo context - NOT affecting toolbar itself */

/* responsive fine-tuning for very small devices */
/* Hide on tablets and desktops (screen width 768px and above) */
@media (min-width: 768px) {
    .static-toolbar {
        display: none !important;
    }
}

/* Optional: ensure it's visible on phones (explicit, though default is visible) */
@media (max-width: 767px) {
    .static-toolbar {
        display: flex !important;  /* or whatever display value you use */
    }
}
@media (max-width: 420px) {
    .static-toolbar {
        padding: 6px 12px 10px;
    }
    .txt-item {
        font-size: 10px;
    }
    .home-icon .svg svg {
        width: 24px;
        height: 24px;
    }
    .toolbar-col.tel .svg svg {
        width: 20px;
        height: 20px;
    }
    .basket-icon .svg svg {
        width: 23px;
        height: 23px;
    }
    .menu-user-box .svg svg {
        width: 22px;
        height: 22px;
    }
}

/* Add to your CSS file */
.autocomplete-item {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid #eee;
}

.autocomplete-item:hover {
  background-color: #f5f5f5;
}

.item-image {
  width: 50px;
  height: 50px;
  margin-left: 10px;
  flex-shrink: 0;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-name {
  font-weight: 500;
  margin-bottom: 4px;
}

.item-price {
  font-size: 0.85em;
  display: flex;
  gap: 8px;
  margin-bottom: 2px;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9em;
}

.discount-price {
  color: #e53935;
  font-weight: 600;
}

.price {
  color: #4caf50;
  font-weight: 600;
}

.item-category {
  font-size: 0.75em;
  color: #666;
}

.autocomplete-loading {
  padding: 10px;
  text-align: center;
  color: #666;
}

.no-results {
  justify-content: center;
  color: #999;
}