:root {
  --main-color-one: #222831;
  --main-color-two: #393e46;
  --main-color-three: #ffd369;
  --main-color-four: hwb(0 93% 7%);
  --vegas-natural: #3e2723;
  --vegas-bg: #fafaf9;
  --text-dark: #333;
  --text-muted: #777;
  --discount-red: #e74c3c;
  --transition-speed: 0.4s;
  --reveal-speed: 0.8s;
}

body {
  scrollbar-width: none;
  overflow-y: scroll;
}

body::-webkit-scrollbar {
  display: none;
}

.custom-scrollbar {
  position: fixed;
  left: auto;
  top: 0;
  width: 6px;
  height: 100vh;
  z-index: 9999;
  background: rgb(0, 0, 0);
  border-radius: 8px;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.custom-scrollbar:hover {
  width: 14px;
}

.custom-scrollbar-thumb {
  position: absolute;
  width: 100%;
  background: var(--main-color-one);
  border-radius: 8px;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--vegas-natural);
  display: flex;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition:
    opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1),
    visibility 0.6s;
}

/* html:has(#preloader) {
  overflow: hidden;
} */

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  animation: fadeZoomIn 0.3s ease forwards;
}

.loader-logo {
  font-family: "Vazirmatn", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--main-color-three);
  letter-spacing: 8px;
  margin-bottom: 20px;
  animation: loaderPulse 2s infinite ease-in-out;
}

.loader-bar-container {
  width: 120px;
  height: 2px;
  background: var(--main-color-three);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 4px;
}

.loader-bar {
  width: 100%;
  height: 100%;
  background: #222831;
  transform: translateX(-100%);
  animation: loaderLine 1.5s infinite cubic-bezier(0.65, 0, 0.35, 1);
}
/* Search results paper dropdown */
.search-results-paper {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 14px;
  z-index: 2900;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform-origin: top center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.price-input-container input {
  text-align: center;
}

.search-results-paper a:hover {
  background-color: #f8f9fa;
  color: var(--main-color-one) !important;
}

.search-results-paper hr {
  margin: 12px 0;
  opacity: 0.1;
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
}

@keyframes loaderLine {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes fadeZoomIn {
  from {
    opacity: 0.7;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeZoomout {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1);
    display: none;
  }
}

.fade-zoom-in {
  animation: fadeZoomIn 0.3s ease forwards;
}

.fade-zoom-out {
  animation: fadeZoomout 0.3s ease forwards;
}

.mobile-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-dark);
  z-index: 10;
}

.circular-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: #3e2723e6;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  clip-path: circle(0% at 95% 5%);
  will-change: clip-path;
  backdrop-filter: blur(20px);
}

.menu-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-close-btn:hover {
  background-color: var(--main-color-three);
  color: var(--main-color-one);
}

.menu-content {
  text-align: center;
  width: 100%;
}

.menu-link {
  color: #fff !important;
  font-size: 1.8rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: color 0.3s ease;
  opacity: 1;
}

.menu-link i {
  width: 32px;
  height: 32px;
  color: var(--main-color-three);
}

.menu-link:hover {
  color: var(--main-color-three) !important;
  transform: scale(1.05);
}

.btn-gold {
  background: var(--main-color-three);
  color: #000000 !important;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s;
}

.btn-gold:hover {
  background: var(--main-color-one);
  color: #fff !important;
}

html,
body {
  height: 100%;
  font-size: 16px;
}
body {
  font-family: Vazirmatn, sans-serif;
  background-color: #fff;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-size: 16px !important;
}

label,
input[type="checkbox"] {
  cursor: pointer;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity var(--reveal-speed) ease-out,
    transform var(--reveal-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
header {
  position: relative;
}

.logo {
  position: relative;
}

.header-top {
  padding: 10px 0;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.logo {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--main-color-one);
  text-decoration: none;
  letter-spacing: 2px;
}
.search-bar {
  background: #f1f3f5;
  border-radius: 8px;
  padding: 6px 15px;
  display: flex;
  align-items: center;
  transition: all 0.3s;
}
.search-bar:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px var(--main-color-one);
}
.search-bar input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  padding-right: 10px;
  font-size: 0.9rem;
}

/* Full Width Mega Menu */
.nav-bar {
  background: #c1c1c1;
  border-bottom: 1px solid #eee;
  z-index: 1020;
  position: sticky;
  top: 0;
}
.category-btn {
  background: var(--main-color-three);
  color: var(--vegas-natural);
  padding: 12px 24px;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 0.25rem;
}
.category-btn:hover {
  background: #1a1e25;
  color: #fff;
}

.mega-menu-wrapper {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 5%;
  width: 90%;
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  visibility: hidden;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 0;
  z-index: 1000;
  border-top: 2px solid var(--vegas-natural);
  min-height: 450px;
}

.mega-menu-wrapper:hover .mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Mega Menu Sidebar */
.mega-sidebar {
  width: 280px;
  background: #fcfcfc;
  border-left: 1px solid #f0f0f0;
  padding: 20px 0;
}

.mega-sidebar-item {
  padding: 14px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s;
  color: #555;
  border-right: 3px solid transparent;
}

.mega-sidebar-item:hover,
.mega-sidebar-item.active {
  background: #fff;
  color: var(--vegas-natural);
  border-right-color: var(--vegas-natural);
}

/* Mega Menu Content */
.mega-content-area {
  flex: 1;
  padding: 40px;
  display: none; /* Hidden by default */
  animation: megaFadeIn 0.5s ease;
}

.mega-content-area.active {
  display: flex;
}

@keyframes megaFadeIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mega-col h6 {
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--main-color-one);
  font-size: 1rem;
}

.mega-col ul {
  list-style: none;
  padding: 0;
}

.mega-col ul li {
  margin-bottom: 10px;
}

.mega-col ul li a {
  text-decoration: none;
  color: #666;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: inline-block;
  transition: all 0.3s ease;
}

.mega-col ul li a:hover {
  color: var(--vegas-natural);
  transform: translateX(-5px);
}

.mega-promo-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 100%;
  min-height: 250px;
}

.mega-promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
}

.mega-promo-card:hover img {
  transform: scale(1.1);
}

.mobile-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-dark);
  z-index: 10000;
}

/* ── Mobile Menu Tabs ─────────────────────────────── */
.circular-menu-overlay {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.menu-tabs-bar {
  display: flex;
  padding: 50px 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.menu-tab-pill {
  flex: 1;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: rgba(255, 255, 255, 0.45);
  font-family: "Vazirmatn", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition:
    color 0.25s,
    border-color 0.25s;
}

.menu-tab-pill.mobile-menu-active {
  color: var(--main-color-three);
  border-bottom-color: var(--main-color-three);
}

.menu-tab-panel {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 40px;
  scrollbar-width: none;
}

.menu-tab-panel::-webkit-scrollbar {
  display: none;
}

.menu-tab-panel.mobile-menu-active {
  display: block;
}

/* Nav items inside tab 1 */
.menu-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
  transition:
    color 0.25s,
    padding-right 0.25s;
}

.menu-nav-item:last-of-type {
  border-bottom: none;
}

.menu-nav-item .nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition:
    background 0.25s,
    color 0.25s;
}

.menu-nav-item .nav-arrow {
  margin-right: auto;
  font-size: 0.75rem;
  opacity: 0.35;
}

.login-cta {
  margin-top: 24px;
  background: var(--main-color-three);
  color: var(--main-color-one);
  border: none;
  border-radius: 12px;
  padding: 14px;
  width: 100%;
  font-family: "Vazirmatn", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.25s;
  text-decoration: none;
}

.cat-list {
  display: flex;
  flex-direction: column;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 300;
  transition:
    color 0.25s,
    padding-right 0.25s;
}

.cat-card:last-child {
  border-bottom: none;
}

.cat-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background 0.25s;
}

.cat-card .cat-name {
  flex: 1;
  font-size: 0.95rem;
}

.cat-card .cat-arrow {
  font-size: 0.75rem;
}

.cat-card {
  cursor: default;
}

.cat-card .cat-name {
  flex: 1;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  transition: color 0.25s;
}

.cat-toggle {
  cursor: pointer;
}

.cat-card.open .cat-arrow {
  transform: rotate(-90deg);
  color: var(--main-color-three);
}

.cat-arrow {
  transition: transform 0.3s ease;
}

/* Submenu */
.cat-submenu {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  transition:
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
  opacity: 0;
  padding-right: 54px; /* aligns under the text */
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cat-submenu.open {
  max-height: 300px;
  opacity: 1;
}

.cat-sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition:
    color 0.2s,
    padding-right 0.2s;
}

.cat-sub-item:last-child {
  border-bottom: none;
}

.cat-sub-item:hover {
  color: var(--main-color-three);
  padding-right: 6px;
}

.cat-sub-item i {
  font-size: 1.2rem;
  color: var(--main-color-three);
  opacity: 0.6;
}

/* ── Menu Search ─────────────────────────────────── */
.menu-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 24px 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 16px;
  transition: border-color 0.25s;
  flex-shrink: 0;
}

.menu-search-bar:focus-within {
  border-color: var(--main-color-three);
  background: rgba(255, 255, 255, 0.12);
}

.menu-search-icon {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.menu-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: "Vazirmatn", sans-serif;
  font-size: 0.95rem;
  direction: rtl;
}

.menu-search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.menu-search-clear {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  font-size: 0.75rem;
  display: none;
  transition: color 0.2s;
}

.menu-search-clear.visible {
  display: block;
}

.menu-search-clear:hover {
  color: var(--main-color-three);
}

/* Search results panel */
.menu-search-results {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px 40px;
  scrollbar-width: none;
}

.menu-search-results::-webkit-scrollbar {
  display: none;
}

.menu-search-results.active {
  display: flex;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    color 0.2s,
    padding-right 0.2s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  color: var(--main-color-three);
  padding-right: 6px;
}

.search-result-item:hover .search-result-icon {
  background: var(--main-color-three);
}

.search-result-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.25s;
}

.search-result-label {
  flex: 1;
}

.search-result-label mark {
  background: transparent;
  color: var(--main-color-three);
  font-weight: 800;
}

.search-result-tag {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
  margin-top: 2px;
  display: block;
}

.menu-search-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  padding: 40px 0;
}

.section-title {
  font-weight: 800;
  color: var(--discount-red);
  border-right: 4px solid var(--discount-red);
  padding-right: 15px;
  margin: 60px 0 30px;
}
.section-title.popular {
  color: var(--text-dark);
  border-right-color: var(--text-dark);
}

.abstract-parent {
  position: relative;
  padding: 1px 0 60px;
  max-width: 100vw;
}

.abstract-parent .abstract {
  position: absolute;
  top: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  background-attachment: fixed;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.3);
  filter: blur(10px);
  opacity: 0.3;
}

.abstract {
  position: absolute;
  top: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: blur(6px);
  opacity: 0.9;
}

.footer {
  background: #f8f9fa;
  border-top: 1px solid #eee;
  padding: 60px 0 20px;
  border-top: 2px solid var(--main-color-three);
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .newsletter-group input {
  direction: rtl;
}

.social-icons a {
  color: #fff;
  background: #333;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-left: 10px;
  text-decoration: none;
}

.category-btn {
  font-weight: normal;
  font-size: 0.8rem;
}

.btn {
  color: #000000;
}

.btn.btn-dark {
  color: #ffffff;
}

/* 3D Tilt Banner Styles */
.tilt-container-wrapper {
  perspective: 1200px;
  width: 100%;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tilt-banner-card {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform 0.15s ease-out,
    box-shadow 0.1s ease;
  display: flex;
  align-items: center;
}

/* Ken Burns (Slow Zoom) Effect on Background Layer */
.tilt-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: translateZ(-50px) scale(1.05); /* Recessed slightly more for depth */
  transition: transform 8s cubic-bezier(0.1, 0, 0.3, 1); /* Long cinematic transition */
}

.tilt-banner-card:hover .tilt-banner-bg {
  transform: translateZ(-50px) scale(1.35); /* Zoom in effect */
}

.tilt-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  z-index: 1;
}

.tilt-content {
  position: relative;
  z-index: 2;
  color: white;
  transform: translateZ(50px); /* Content pops out */
  pointer-events: none;
}

.tilt-badge {
  background: var(--main-color-three);
  color: black;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  transform: translateZ(20px);
}

.tilt-content h2,
.tilt-content p,
.tilt-content a {
  transform: translateZ(30px);
  pointer-events: auto;
}

.tilt-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s;
}

.tilt-banner-card:hover .tilt-glare {
  opacity: 1;
}

.fw-black {
  font-weight: 900;
}

@media (max-width: 991px) {
  .tilt-container-wrapper {
    height: 350px;
  }
  .tilt-content h2 {
    font-size: 1.8rem;
  }
}

/* Swiper Controls overrides */
.swiper .swiper-button-next,
.swiper .swiper-button-prev {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.swiper .swiper-button-next:hover,
.swiper .swiper-button-prev:hover {
  background: var(--main-color-one);
  transform: scale(1.1);
  box-shadow: 0 0 5px var(--vegas-natural);
}

/* Arrow animation */
.swiper .swiper-button-next::after,
.swiper .swiper-button-prev::after {
  font-size: 12px;
  font-weight: bold;
}

.swiper .swiper-button-next:hover::after {
  animation: arrowMove 0.4s ease;
}

.swiper .swiper-button-prev:hover::after {
  animation: arrowMoveBack 0.4s ease;
}

@keyframes arrowMove {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes arrowMoveBack {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
  }
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 6px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  background: rgb(0, 0, 0);
  opacity: 0.8;
  border: 1px solid var(--vegas-natural);
}

.swiper-pagination-bullet-active {
  width: 30px;
  background: var(--main-color-three);
  border-radius: 20px;
  border: 1px solid var(--vegas-natural);
}

.swiper-pagination-bullet-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  animation: mainHeroProgress 6s linear forwards;
}

@keyframes mainHeroProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@keyframes ripple {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* Categories styles  */
.categoriesSwiper {
  width: 100%;
  padding: 20px 0;
}

.categoriesSwiper .swiper-slide {
  aspect-ratio: 1/1;
  perspective: 2000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card:hover .fade-in-top,
.flip-card:hover .fade-in-bottom {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: all 0.8s ease;
  transition-delay: 0.2s;
}

.fade-in-top {
  opacity: 0;
  transform: translateY(-10px) scale(0);
  transition: all 0.2s ease;
}

.fade-in-bottom {
  opacity: 0;
  transform: translateY(30px) scale(0);
  transition: all 0.2s ease;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-card-front {
  background-size: cover;
  background-position: center;
}

.overlay {
  background: var(--vegas-natural);
  opacity: 0.9;
  width: 100%;
  height: 100%;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.card-logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 50%;
  margin-bottom: 1rem;
  margin-top: -1rem;
}

.card-title {
  font-size: 1rem;
  font-weight: bold;
}

.flip-card-back {
  background: #f4f4f4;
  color: #333;
  transform: rotateY(180deg);
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flip-card-back h3 {
  margin: 0 0 10px;
}

/* input error tooltip */
/* Error messages */
.error {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 8px;
  display: none;
}

.error.show {
  display: block;
  animation: shake 0.3s ease;
}

/* Shake animation for error feedback */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.input-error-border {
  border-color: #e74c3c !important;
}

.input-tooltip-error {
  font-family: inherit;
  position: absolute;
  right: 50%;
  transform: translate(50%, 0%);
  top: -15px;
  background: #fff;
  color: #e74c3c;
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid #e74c3c;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.08);
  white-space: nowrap;
  margin-top: 4px;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.2s;
  opacity: 1;
}

.input-tooltip-arrow {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  bottom: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #e74c3c;
}

.req-star {
  font-size: 16px;
  vertical-align: middle;
  margin-right: 2px;
  color: #e74c3c;
}

.steps-container {
  max-width: 700px;
  margin: 0 auto;
}

.steps-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 60px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.step-circle.active {
  background: #ffd369;
  color: #222831;
  box-shadow: 0 8px 32px rgba(255, 211, 105, 0.4);
  transform: scale(1.1);
}

.step-circle.completed {
  background: #222831;
  color: #ffd369;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-circle.inactive {
  background: #ededed;
  color: #777;
}

.step-circle svg {
  width: 24px;
  height: 24px;
  stroke-width: 3;
  fill: none;
}

.step-connector {
  height: 4px;
  flex: 1;
  background: #ededed;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  margin: 0 -8px;
  margin-bottom: 32px;
  transition: all 0.3s ease;
}

.step-connector::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 0%;
  background: #ffd369;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.step-connector.filled::after {
  width: 100%;
}

.step-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 12px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.step-label.active {
  color: #222831;
}

.step-label.inactive {
  color: #777;
}

.flip-x {
  transform: scaleX(-1);
}

.deal-tag {
  position: relative;
}

.progress-line {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--main-color-three);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform linear;
}

.popover {
  width: 400px !important;
}

.transition-all {
  transition: all 0.3s ease;
}

.opacity-75 {
  opacity: 0.75 !important;
}

.hover-opacity-100:hover {
  opacity: 1 !important;
}

.desktop {
  display: block;
}

.mobile {
  display: none;
}

/* Product-specific styles extracted from pages to avoid inline CSS */
:root {
  --transition-speed: 0.35s;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s;
  text-align: center;
}
.product-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.product-img-container {
  position: relative;
  aspect-ratio: 3/3;
  overflow: hidden;
}
.product-img-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition:
    opacity var(--transition-speed) ease,
    transform var(--transition-speed) ease;
}
.img-primary {
  opacity: 1;
}
.img-secondary {
  opacity: 0;
  transform: scale(1.05);
}
.product-card:hover .img-primary {
  opacity: 0;
  transform: scale(0.95);
}
.product-card:hover .img-secondary {
  opacity: 1;
  transform: scale(1);
}

.variation-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: fit-content;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  transform: translateY(100%);
  transition: transform 0.35s;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.product-card:hover .variation-sheet {
  transform: translateY(0);
}
.size-chip {
  border: 1px solid #ddd;
  padding: 4px 8px;
  border-radius: 6px;
  margin: 4px;
  font-size: 0.8rem;
}
.size-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.white-space-nowrap {
  white-space: nowrap;
}

@media (max-width: 991px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #eee, #f5f5f5, #eee);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  border-radius: 10px;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.skeleton-img {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 8px;
}
.skeleton-line {
  height: 12px;
  border-radius: 6px;
  margin-top: 10px;
}

.product-title {
  font-weight: 700;
}
.product-price {
  font-weight: 700;
}

.topbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.sort-select {
  min-width: 180px;
}

/* Special Deal Card with Countdown */
.special-deal-card {
  border: 2px solid var(--vegas-natural);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.special-deal-card .deal-tag {
  background: var(--vegas-natural);
  color: white;
  padding: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.special-deal-card .img-container {
  position: relative;
  aspect-ratio: 1;
}

.special-deal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.countdown-timer-box {
  background: #f8f9fa;
  padding: 15px 10px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.countdown-display {
  font-family: "Vazirmatn", sans-serif;
  font-weight: 900;
  color: #333;
  font-size: 1.1rem;
  letter-spacing: 1px;
  direction: ltr;
}

.hero-section {
  margin-top: 20px;
}

.main-swiper-wrapper {
  width: 100%;
  min-height: 450px;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.3);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  max-height: 600px;
}

.main-hero-swiper {
  border-radius: 16px;
  overflow: hidden;
  /* height: 100%; */
}

.main-hero-swiper .swiper-slide img {
  height: 100%;
  object-fit: contain;
  margin: auto;
}

.mainHeroSwiperContent {
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  min-height: 450px;
}

.mainHeroSwiperContent * {
  color: #000 !important;
}

.mainHeroSwiperContent .swiper-slide.hero-slide {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8%;
  height: 100%;
}

.mainHeroSwiperContent .swiper-slide.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  transform: scale(1.4);
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.mainHeroSwiperContent .swiper-slide-active.hero-slide::before {
  transform: scale(1);
}

.hero-slide .hero-content {
  direction: rtl;
  max-width: 600px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-slide .hero-title,
.hero-slide .hero-caption {
  text-align: justify;
}

.hero-slide .hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.hero-slide .hero-caption {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

.hero-slide .hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-slide .hero-title,
.hero-slide .hero-caption,
.hero-slide .hero-buttons {
  opacity: 0;
  transform: scale(0);
  transition: all 0.6s ease 0.5s;
}

.swiper-slide-active .hero-title,
.swiper-slide-active .hero-caption,
.swiper-slide-active .hero-buttons {
  opacity: 1;
  transform: scale(1);
}

.hero-button:hover {
  padding-bottom: 0 !important;
}

@media (max-width: 991px) {
  .main-hero-swiper .swiper-slide img {
    height: 400px;
  }
}

/* ── Filters Modal ─────────────────────────── */
.filters-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  align-items: flex-end;
  justify-content: center;
  transition: all 0.25s ease;
}

.filters-modal.active {
  display: flex;
}

.filters-modal-content {
  background: #fff;
  width: 100%;
  max-width: 540px;
  border-radius: 20px 20px 0 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.filters-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.filters-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.filters-modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #555;
}

.filters-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.filter-group-simple {
  margin-bottom: 24px;
}

.filter-group-title-simple {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--main-color-one);
}

.filters-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 12px;
}

.btn-reset-filters {
  flex: 1;
  padding: 12px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 600;
}

.btn-apply-filters {
  flex: 2;
  padding: 12px;
  background: var(--main-color-one);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 600;
}

/* Price range inputs inside modal */
.price-input-container {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.price-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-field label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.price-field input {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
}

.slider-badge-container {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.slider-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .step-circle {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .step-label {
    font-size: 0.8rem;
  }
}

@keyframes fadeInTop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInBottom {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 2560px) {
  .mega-menu {
    width: 50%;
    left: 25%;
  }
}

@media (min-width: 1400px) and (max-width: 2559.98px) {
  .mega-menu {
    width: 90%;
    left: 5%;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .mega-menu {
    width: 90%;
    left: 5%;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
}

@media (max-width: 991px) {
  .mobile-toggle {
    display: block;
  }
  .desktop-nav,
  .category-btn {
    display: none;
  }
  .mega-menu {
    display: none !important;
  }
  .search-col {
    order: 3;
    width: 100%;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 18px;
  }
  header {
    padding: 15px !important;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  .logo {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .steps-container {
    width: 80%;
  }
  .step-circle {
    width: 35px;
    height: 35px;
  }
  .step-circle svg {
    width: 20px;
    height: 20px;
  }
  .mobile {
    display: block;
  }
  .desktop {
    display: none;
  }
  .store-front {
    padding: 0px;
  }
  .card-logo {
    width: 60px;
    height: 60px;
  }
  .card-title {
    font-size: 0.7rem;
  }

  .categoriesSwiper .swiper-pagination {
    bottom: -5px;
  }
  .hero-content-wrapper {
    margin-top: -60px;
  }
  .hero-slide .hero-title {
    font-size: 1.8rem;
  }
}
