
/* ==========================================================================
   Variables
   ========================================================================== */

:root {
  --slider-primary: rgb(26 26 26 / 0.65);
  --slider-primary-hover: #c40d2a;
  --slider-text: #1f1f1f;
  --slider-white: #ffffff;

  --page-bg: #ffffff;
  --soft-bg: #fafafa;
  --card-bg: #ffffff;
  --muted-text: #6b7280;

  --border-soft: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(230, 18, 51, 0.14);
  --slider-frame-border: rgba(0, 0, 0, 0.1);

  --slider-radius-lg: 16px;
  --slider-radius-md: 14px;
  --slider-radius-sm: 12px;

  --slider-content-width: 1240px;
  --slider-desktop-ratio: 1240 / 280;
  --slider-mobile-ratio: 2 / 1;

  --slider-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  --slider-shadow-mobile: 0 4px 15px rgba(0, 0, 0, 0.08);

  --slider-arrow-size: 44px;
  --slider-arrow-icon-size: 21px;
  --slider-arrow-offset: 16px;

  --slider-arrow-bg: rgba(255, 255, 255, 0.84);
  --slider-arrow-bg-hover: #e61233;
  --slider-arrow-border: rgba(255, 255, 255, 0.4);
  --slider-arrow-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  --slider-arrow-shadow-hover: 0 6px 18px rgba(230, 18, 51, 0.35);

  --slider-dots-bg: rgba(0, 0, 0, 0.25);
  --slider-dot: rgba(255, 255, 255, 0.55);
  --slider-dot-hover: rgba(255, 255, 255, 0.9);

  --slider-transition-main:
    transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);

  --slider-transition-ui:
    opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Global
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--slider-text);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.main-content {
  width: 100%;
  padding-top: 12px;
  background: var(--page-bg);
}

/* ==========================================================================
   Slider
   ========================================================================== */

.slider-container {
  position: relative;
  isolation: isolate;

  width: calc(100% - 24px);
  max-width: var(--slider-content-width);
  aspect-ratio: var(--slider-desktop-ratio);
  margin: 0 auto 24px;

  overflow: hidden;
  border: 1px solid var(--slider-frame-border);
  border-radius: var(--slider-radius-lg);

  background: var(--slider-white);
  box-shadow: var(--slider-shadow);

  direction: ltr;
  touch-action: pan-y;
  cursor: grab;

  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.slider-container.is-dragging,
.slider-container.is-dragging .slider-wrapper {
  cursor: grabbing;
}

.slider-container:focus-within .slider-arrow {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

.slider-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: var(--slider-transition-main);
  will-change: transform;
}

.slide {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;

  overflow: hidden;
  background: var(--slider-white);
}

.slide > a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  overflow: hidden;
  outline: none;
  touch-action: pan-y;
}

.slide > a:focus-visible {
  outline: 3px solid var(--slider-primary);
  outline-offset: -3px;
}

.slide img {
  display: block;

  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 0;

  object-fit: contain;
  object-position: center;

  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;

  image-rendering: auto;
}

/* ==========================================================================
   Slider Arrows
   ========================================================================== */

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  width: var(--slider-arrow-size);
  height: var(--slider-arrow-size);
  padding: 0;
  margin: 0;

  border: 1px solid var(--slider-arrow-border);
  border-radius: 50%;
  outline: none;

  appearance: none;
  -webkit-appearance: none;

  background: var(--slider-arrow-bg);
  color: var(--slider-text);
  box-shadow: var(--slider-arrow-shadow);

  font-size: 0;
  line-height: 1;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) scale(0.92);
  transition: var(--slider-transition-ui);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.slider-arrow.prev {
  left: var(--slider-arrow-offset);
}

.slider-arrow.next {
  right: var(--slider-arrow-offset);
}

.slider-arrow .arrow-icon {
  display: block;
  width: var(--slider-arrow-icon-size);
  height: var(--slider-arrow-icon-size);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-arrow:focus-visible {
  opacity: 1;
  visibility: visible;
  outline: 2px solid var(--slider-primary);
  outline-offset: 2px;
  transform: translateY(-50%) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .slider-container:hover .slider-arrow {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
  }

  .slider-arrow:hover {
    border-color: var(--slider-arrow-bg-hover);
    background: var(--slider-arrow-bg-hover);
    color: var(--slider-white);
    box-shadow: var(--slider-arrow-shadow-hover);
    transform: translateY(-50%) scale(1.08);
  }

  .slider-arrow.prev:hover .arrow-icon {
    transform: translateX(-2px);
  }

  .slider-arrow.next:hover .arrow-icon {
    transform: translateX(2px);
  }
}

/* ==========================================================================
   Slider Dots
   ========================================================================== */

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  min-width: max-content;
  padding: 6px 12px;

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;

  background: var(--slider-dots-bg);

  opacity: 1;
  visibility: visible;
  transform: translateX(-50%);

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.slider-container.dots-hidden .slider-dots {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  margin: 0;

  border: 0;
  border-radius: 999px;

  appearance: none;
  -webkit-appearance: none;

  background: var(--slider-dot);
  cursor: pointer;

  transition:
    width 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.slider-dot:hover {
  background: var(--slider-dot-hover);
}

.slider-dot.active {
  width: 18px;
  background: var(--slider-primary);
  box-shadow: 0 0 10px rgba(230, 18, 51, 0.45);
}

.slider-dot:focus-visible {
  outline: 2px solid var(--slider-primary);
  outline-offset: 2px;
}
@media (max-width: 1024px) {
  .slider-container {
    width: calc(100% - 20px);
    margin-bottom: 18px;
    border-radius: var(--slider-radius-md);
    box-shadow: var(--slider-shadow-mobile);
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .slider-arrow.prev {
    left: 12px;
  }

  .slider-arrow.next {
    right: 12px;
  }

  .slider-dots {
    bottom: 10px;
    gap: 5px;
    padding: 5px 10px;
  }

  .slider-dot {
    width: 7px;
    height: 7px;
  }

  .slider-dot.active {
    width: 15px;
  }
}
@media (max-width: 480px) {


  .slider-arrow {
    width: 36px;
    height: 36px;
  }

  .slider-arrow.prev {
    left: 8px;
  }

  .slider-arrow.next {
    right: 8px;
  }

  .slider-arrow .arrow-icon {
    width: 18px;
    height: 18px;
  }

  .slider-dots {
    bottom: 5px;
    gap: 3px;
    padding: 2px 6px;
  }

  .slider-dot {
    width: 4px;
    height: 4px;
  }

  .slider-dot.active {
    width: 10px;
  }
}
/* ==========================================================================
   Intro
   ========================================================================== */

.home-default-content {
  width: 100%;
  max-width: var(--slider-content-width);
  margin: 0 auto 18px;
  padding: 0 12px;
  text-align: center;
}

.home-default-content h2 {
  margin: 0 0 8px;
  color: #171717;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.3;
}

.home-default-content p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted-text);
  font-size: 0.96rem;
  line-height: 1.9;
}

/* ==========================================================================
   Circle Navigation
   ========================================================================== */

.home-circle-navigation {
  width: 100%;
  max-width: var(--slider-content-width);
  margin: 0 auto 26px;
  padding: 0 12px;
  overflow: hidden;
}

.home-circle-list {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 18px;

  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 8px 4px 10px;

  overflow-x: auto;
  overflow-y: hidden;
  list-style: none;

  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;

  scroll-behavior: auto;
  scroll-snap-type: none;
  overscroll-behavior-x: contain;

  cursor: grab;
  touch-action: pan-y;

  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.home-circle-list::-webkit-scrollbar {
  display: none;
}

.home-circle-list.is-centered {
  justify-content: center;
  overflow-x: hidden;
  cursor: default;
}

.home-circle-list.is-scrollable {
  justify-content: flex-start;
  overflow-x: auto;
  cursor: grab;
}

.home-circle-list.is-dragging,
.home-circle-list.is-dragging .home-circle-item,
.home-circle-list.is-dragging .home-circle-item * {
  cursor: grabbing;
}

.home-circle-list.is-dragging .home-circle-image {
  transition: none;
}

.home-circle-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;

  flex: 0 0 108px;
  width: 108px;
  min-width: 108px;
  max-width: 108px;

  color: #1f1f1f;
  text-decoration: none;
  cursor: pointer;

  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.home-circle-item * {
  cursor: pointer;
}

.home-circle-image {
  display: block;
  flex: 0 0 88px;

  width: 88px;
  height: 88px;

  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 50%;

  background: #f3f4f6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.home-circle-image img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.home-circle-title {
  width: 100%;
  margin-top: 10px;

  color: #222222;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;

  white-space: normal;
  overflow-wrap: anywhere;

  transition: color 0.2s ease;
}

.home-circle-item:focus-visible {
  outline: none;
}

.home-circle-item:focus-visible .home-circle-image {
  border-color: var(--slider-primary);
  box-shadow: 0 0 0 3px rgba(230, 18, 51, 0.18);
}

@media (hover: hover) and (pointer: fine) {
  .home-circle-item:hover .home-circle-image {
    border-color: rgba(230, 18, 51, 0.22);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
  }

  .home-circle-item:hover .home-circle-title {
    color: var(--slider-primary);
  }

  .home-circle-list.is-dragging .home-circle-item:hover .home-circle-image {
    transform: none;
  }
}
/* ==========================================================================
   Category Showcase
   ========================================================================== */

.home-category-showcase {
  width: 100%;
  max-width: var(--slider-content-width);
  margin: 24px auto 0;
  padding: 0 12px;
}

.category-showcase-shell {
  padding: 22px 24px 24px;
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.05);
}

.category-showcase-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  font-size: 15px;
  white-space: nowrap;
}

.category-showcase-header {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr);
  grid-template-areas: "title action";
  align-items: center;
  gap: 18px;
  width: 100%;
  min-width: 0;
  margin-bottom: 18px;
  direction: rtl;
}

.category-showcase-header-title {
  grid-area: title;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 10px 20px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: #ffffff;
  color: #161616;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-showcase-header-link {
  grid-area: action;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 18px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: #ffffff;
  color: #111111;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.category-showcase-header-link:hover {
  border-color: rgba(230, 18, 51, 0.24);
  color: var(--slider-primary);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.category-showcase-header-link:focus-visible {
  outline: 2px solid var(--slider-primary);
  outline-offset: 2px;
}

.category-showcase-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  grid-template-areas: "side products";
  align-items: stretch;
  gap: 18px;
  min-width: 0;
  overflow: hidden;
  direction: ltr;
}

/* ==========================================================================
   Category Side
   ========================================================================== */

.category-showcase-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* مهم: مرکز عمودی */
  gap: 14px;
  width: 100%;
  min-height: 100%;
  padding: 24px 10px 18px; /* کمی فضای بالایی بیشتر */
  text-decoration: none;
  color: inherit;
  direction: rtl;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: #fff;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.category-showcase-side:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 18, 51, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.category-showcase-side-circle {
  width: 118px;
  height: 118px;
  flex: 0 0 118px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.category-showcase-side-circle-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.category-showcase-side-circle-text {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: #222;
  border-radius: 50%;
  background: #fff;
}

.category-showcase-side-text {
  margin-top: 0;
  color: #202020;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
  transition: color 0.2s ease;
}

.category-showcase-side:hover .category-showcase-side-text {
  color: #0d6efd;
}

.category-showcase-side:hover .category-showcase-side-circle {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

/* ==========================================================================
   Category Products
   ========================================================================== */

.category-showcase-products {
  grid-area: products;
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding-bottom: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  direction: rtl;
  scroll-behavior: auto;
  scroll-snap-type: none;
  overscroll-behavior-x: contain;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.category-showcase-products::-webkit-scrollbar {
  display: none;
}

.category-showcase-products.is-dragging,
.category-showcase-products.is-pointer-down {
  cursor: grabbing;
}

.category-product-card {
  display: flex;
  flex: 0 0 168px;
  flex-direction: column;
  width: 168px;
  min-width: 168px;
  max-width: 168px;
  min-height: 100%;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: var(--card-bg);
  color: #202020;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  direction: rtl;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.category-product-card:hover {
  border-color: rgba(230, 18, 51, 0.18);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.category-product-card:focus-visible {
  outline: 2px solid var(--slider-primary);
  outline-offset: 2px;
}

.category-product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 18px;
  background: #f3f4f6;
  user-select: none;
  -webkit-user-select: none;
}

.category-product-image img,
.category-product-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.category-product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #7b7b7b;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.category-product-name {
  display: -webkit-box;
  min-height: 3.1em;
  margin-bottom: 10px;
  overflow: hidden;
  color: #202020;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.65;
  text-align: right;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-product-price {
  margin: 3px;
  color: var(--slider-primary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.category-product-price.is-call {
  color: #4b5563;
}

.category-empty-state {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 18px;
  border: 1px dashed rgba(0, 0, 0, 0.14);
  border-radius: 18px;
  background: #ffffff;
  color: #666666;
  font-size: 0.94rem;
  line-height: 1.8;
  text-align: center;
}

/* کارت ویژه مشاهده همه محصولات */
.category-showcase-products > .category-showcase-side.is-mobile-product-item {
  display: none;
}

/* ==========================================================================
   Product Action / Add to Cart
   ========================================================================== */

.category-product-action {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.category-product-form {
  width: 100%;
  margin: 0;
}

.category-add-to-cart-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.2s ease, transform 0.2s ease;
}

.category-add-to-cart-btn:hover {
  background: #15803d;
}

.category-add-to-cart-btn:active {
  transform: translateY(1px);
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 1024px) {
  .home-category-showcase {
    padding: 0 10px;
  }

  .category-showcase-shell {
    padding: 16px;
    border-radius: 24px;
  }

  .category-showcase-header {
    grid-template-columns: minmax(0, 2fr) minmax(135px, 1fr);
    gap: 12px;
  }

  .category-showcase-header-link,
  .category-showcase-header-title {
    min-height: 44px;
    border-radius: 14px;
  }

  .category-showcase-header-title {
    padding: 9px 14px;
    font-size: 1.08rem;
  }

  .category-showcase-header-link {
    padding: 9px 12px;
    font-size: 0.82rem;
  }

  .category-showcase-body {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
  }

  .category-showcase-side {
    justify-content: center;
    gap: 8px;
    padding: 18px 6px 14px;
    border-radius: 20px;
  }

  .category-showcase-side-circle {
    width: 84px;
    height: 84px;
    flex-basis: 84px;
  }

  .category-showcase-side-text {
    margin-top: 0;
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .category-product-card {
    flex-basis: 158px;
    width: 158px;
    min-width: 158px;
    max-width: 158px;
    border-radius: 22px;
  }

  .category-product-image {
    border-radius: 16px;
  }

  .category-product-name {
    font-size: 0.86rem;
  }

  .category-product-price {
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 480px) {
  .home-category-showcase {
    margin-top: 18px;
    padding: 0 8px;
  }

  .category-showcase-shell {
    padding: 14px;
    border-radius: 20px;
  }

  .category-showcase-header {
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 7px;
    margin-bottom: 14px;
  }

  .category-showcase-header-link,
  .category-showcase-header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 42px;
    min-height: 42px;
    overflow: hidden;
    border-radius: 14px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .category-showcase-header-link {
    width: 100%;
    gap: 3px;
    padding: 0 6px;
    font-size: 0.74rem;
    font-weight: 800;
  }

  .category-showcase-header-title {
    padding: 0 8px;
    font-size: 0.95rem;
    font-weight: 900;
  }

  .category-showcase-body {
    display: block;
    min-width: 0;
    overflow: hidden;
  }

  .category-showcase-body > .category-showcase-side {
    display: none;
  }

  .category-showcase-products {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2px 1px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    direction: rtl;
  }

  .category-product-card {
    flex: 0 0 150px;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    padding: 10px;
    border-radius: 20px;
    direction: rtl;
  }

  .category-product-image {
    margin-bottom: 10px;
    border-radius: 14px;
  }

  .category-product-name {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .category-product-price {
    font-size: 0.88rem;
  }

  .category-showcase-products > .category-showcase-side.is-mobile-product-item {
    display: flex;
    grid-area: auto;
    flex: 0 0 130px;
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    min-height: auto;
    padding: 12px 8px;
    border-radius: 20px;
    direction: rtl;
  }

  .category-showcase-products > .category-showcase-side.is-mobile-product-item .category-showcase-side-circle {
    flex: 0 0 86px;
    width: 86px;
    height: 86px;
    padding: 10px;
    font-size: 0.86rem;
    line-height: 1.45;
    text-align: center;
  }

  .category-showcase-products > .category-showcase-side.is-mobile-product-item .category-showcase-side-text {
    margin-top: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.55;
    text-align: center;
    white-space: normal;
  }
}

/* ==========================================================================
   Very Small Mobile
   ========================================================================== */

@media (max-width: 380px) {
  .home-category-showcase {
    padding: 0 6px;
  }

  .category-showcase-shell {
    padding: 10px;
    border-radius: 18px;
  }

  .category-showcase-header {
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 5px;
    margin-bottom: 12px;
  }

  .category-showcase-header-link,
  .category-showcase-header-title {
    height: 40px;
    min-height: 40px;
    border-radius: 12px;
  }

  .category-showcase-header-link {
    gap: 2px;
    padding: 0 4px;
    font-size: 0.66rem;
  }

  .category-showcase-header-title {
    padding: 0 6px;
    font-size: 0.86rem;
  }

  .category-showcase-products {
    gap: 8px;
    padding-bottom: 6px;
  }

  .category-product-card {
    flex-basis: 138px;
    width: 138px;
    min-width: 138px;
    max-width: 138px;
    padding: 9px;
  }

  .category-product-name {
    font-size: 0.76rem;
  }

  .category-product-price {
    font-size: 0.82rem;
  }

  .category-showcase-products > .category-showcase-side.is-mobile-product-item {
    flex-basis: 118px;
    width: 118px;
    min-width: 118px;
    max-width: 118px;
    padding: 12px 8px;
    border-radius: 20px;
  }

  .category-showcase-products > .category-showcase-side.is-mobile-product-item .category-showcase-side-circle {
    flex-basis: 78px;
    width: 78px;
    height: 78px;
    padding: 8px;
    font-size: 0.8rem;
  }

  .category-showcase-products > .category-showcase-side.is-mobile-product-item .category-showcase-side-text {
    margin-top: 10px;
    font-size: 0.82rem;
    line-height: 1.5;
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .slider-wrapper,
  .slider-arrow,
  .slider-dot,
  .slide,
  .home-circle-image,
  .home-circle-title,
  .category-showcase-header-link,
  .category-showcase-side,
  .category-product-card,
  .category-add-to-cart-btn {
    animation: none !important;
    transition: none !important;
  }
}
/* =========================================================
   Empty Category Component
   مناسب برای قالب‌های فارسی و راست‌چین
========================================================= */

.empty-category-message {
    --empty-primary: #2f7d70;
    --empty-primary-dark: #23665b;
    --empty-primary-light: #e7f3ef;
    --empty-text: #233b36;
    --empty-text-muted: #72827f;
    --empty-border: #dfebe7;

    grid-column: 1 / -1;
    justify-self: stretch;

    position: relative;
    isolation: isolate;

    width: min(100% - 32px, 920px);
    min-height: 330px;
    margin: 48px auto 64px;
    padding: 42px 48px;

    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);

    overflow: hidden;
    direction: rtl;
    text-align: right;

    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98),
        rgba(247, 251, 250, 0.98)
    );

    border: 1px solid var(--empty-border);
    border-radius: 28px;

    box-shadow:
        0 20px 50px rgba(35, 74, 66, 0.08),
        0 4px 14px rgba(35, 74, 66, 0.04);
}

/* دایره‌های تزئینی پس‌زمینه */
.empty-category-message::before,
.empty-category-message::after {
    content: "";
    position: absolute;
    z-index: -1;

    pointer-events: none;
    border-radius: 50%;
    filter: blur(1px);
}

.empty-category-message::before {
    width: 260px;
    height: 260px;
    top: -145px;
    left: -95px;
    background: rgba(117, 190, 174, 0.12);
}

.empty-category-message::after {
    width: 190px;
    height: 190px;
    right: -90px;
    bottom: -100px;
    background: rgba(214, 235, 229, 0.6);
}

/* یک خط ظریف در بالای کارت */
.empty-category-message > * {
    position: relative;
    z-index: 1;
}

/* =========================================================
   Illustration
========================================================= */

.empty-category-illustration {
    position: relative;

    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 22px;
    background:
        radial-gradient(
            circle at center,
            #ffffff 0%,
            #f0f8f5 72%,
            #eaf4f1 100%
        );
}

.empty-category-illustration::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 28px;
    bottom: 22px;

    border-radius: 50%;
    background: rgba(67, 116, 105, 0.12);
    filter: blur(10px);
}

.empty-category-illustration img {
    position: relative;
    z-index: 1;

    display: block;
    width: min(100%, 260px);
    height: auto;
    object-fit: contain;

    filter: drop-shadow(0 13px 12px rgba(52, 104, 94, 0.13));

    animation: emptyCategoryFloat 4.5s ease-in-out infinite;
}

/* =========================================================
   Content
========================================================= */

.empty-category-content {
    min-width: 0;
}

.empty-category-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 12px;

    color: var(--empty-primary-dark);
    background: var(--empty-primary-light);

    border: 1px solid rgba(47, 125, 112, 0.12);
    border-radius: 999px;

    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
}

.empty-category-label::before {
    content: "";
    width: 7px;
    height: 7px;

    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--empty-primary);
    box-shadow: 0 0 0 4px rgba(47, 125, 112, 0.1);
}

.empty-category-content h2 {
    max-width: 500px;
    margin: 18px 0 11px;

    color: var(--empty-text);
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 900;
    line-height: 1.75;
    letter-spacing: -0.03em;
}

.empty-category-content p {
    max-width: 480px;
    margin: 0 0 27px;

    color: var(--empty-text-muted);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 2.1;
}

/* =========================================================
   Button
========================================================= */

.back-home-btn {
    position: relative;

    min-height: 50px;
    padding: 10px 11px 10px 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    overflow: hidden;

    color: #ffffff;
    background: linear-gradient(
        135deg,
        var(--empty-primary),
        #3b9181
    );

    border: 1px solid transparent;
    border-radius: 14px;

    box-shadow:
        0 10px 20px rgba(47, 125, 112, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;

    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

.back-home-btn::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        110deg,
        transparent 25%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 75%
    );

    transform: translateX(120%);
    transition: transform 550ms ease;
}

.back-home-btn:hover {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        var(--empty-primary-dark),
        var(--empty-primary)
    );

    box-shadow:
        0 14px 26px rgba(47, 125, 112, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    transform: translateY(-3px);
}

.back-home-btn:hover::before {
    transform: translateX(-120%);
}

.back-home-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.back-home-btn:focus-visible {
    outline: 3px solid rgba(47, 125, 112, 0.25);
    outline-offset: 4px;
}

.back-home-arrow {
    position: relative;
    z-index: 1;

    width: 29px;
    height: 29px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    direction: ltr;
    color: var(--empty-primary-dark);
    background: #ffffff;
    border-radius: 50%;

    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;

    transition:
        transform 220ms ease,
        background-color 220ms ease;
}

.back-home-btn:hover .back-home-arrow {
    background: #f1faf7;
    transform: translateX(-5px);
}

/* =========================================================
   Responsive - Tablet
========================================================= */

@media (max-width: 760px) {
    .empty-category-message {
        width: min(100% - 28px, 600px);
        min-height: auto;
        padding: 32px 28px;

        grid-template-columns: 190px 1fr;
        gap: 28px;
        border-radius: 24px;
    }

    .empty-category-illustration {
        min-height: 200px;
    }

    .empty-category-illustration img {
        width: min(100%, 215px);
    }

    .empty-category-content h2 {
        font-size: clamp(1.2rem, 3vw, 1.55rem);
    }

    .empty-category-content p {
        font-size: 0.9rem;
    }
}

/* =========================================================
   Responsive - Mobile
========================================================= */

@media (max-width: 560px) {
    .empty-category-message {
        width: min(100% - 22px, 430px);
        margin: 30px auto 42px;
        padding: 28px 20px 30px;

        display: flex;
        flex-direction: column;
        gap: 24px;

        text-align: center;
        border-radius: 22px;
    }

    .empty-category-illustration {
        width: 100%;
        min-height: 190px;
    }

    .empty-category-illustration img {
        width: min(100%, 210px);
    }

    .empty-category-content {
        width: 100%;
    }

    .empty-category-label {
        font-size: 0.74rem;
    }

    .empty-category-content h2 {
        margin-top: 15px;
        font-size: 1.2rem;
        line-height: 1.85;
    }

    .empty-category-content p {
        margin-right: auto;
        margin-left: auto;
        font-size: 0.88rem;
        line-height: 2;
    }

    .back-home-btn {
        width: min(100%, 270px);
        margin: 0 auto;
    }
}

/* =========================================================
   Responsive - Small Mobile
========================================================= */

@media (max-width: 360px) {
    .empty-category-message {
        padding: 23px 15px 25px;
    }

    .empty-category-illustration {
        min-height: 165px;
    }

    .empty-category-illustration img {
        width: 180px;
    }

    .empty-category-content h2 {
        font-size: 1.05rem;
    }

    .empty-category-content p {
        font-size: 0.82rem;
    }

    .back-home-btn {
        min-height: 46px;
        padding-right: 9px;
        padding-left: 13px;
        font-size: 0.82rem;
    }

    .back-home-arrow {
        width: 26px;
        height: 26px;
    }
}

/* =========================================================
   Accessibility
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .empty-category-illustration img {
        animation: none;
    }

    .back-home-btn,
    .back-home-btn::before,
    .back-home-arrow {
        transition: none;
    }
}

/* =========================================================
   Animation
========================================================= */

@keyframes emptyCategoryFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}
/* =========================================================
   CATEGORY EMPTY STATE - COMPACT / PROFESSIONAL
========================================================= */

.category-empty-state {
    --empty-bg: linear-gradient(135deg, #ffffff 0%, #fbfdfc 100%);
    --empty-border: #e7efec;
    --empty-shadow: 0 8px 24px rgba(34, 84, 72, 0.06);
    --empty-text: #203731;
    --empty-muted: #6f837d;
    --empty-primary: #2f7d70;
    --empty-primary-dark: #27695f;
    --empty-primary-soft: #eaf5f2;
    --empty-icon-bg: linear-gradient(135deg, #f3fbf8 0%, #e7f4ef 100%);

    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    gap: 18px;

    padding: 18px 20px;
    margin: 12px 0 8px;

    background: var(--empty-bg);
    border: 1px solid var(--empty-border);
    border-radius: 18px;
    box-shadow: var(--empty-shadow);

    position: relative;
    overflow: hidden;
    direction: rtl;
}

.category-empty-state::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(47, 125, 112, 0.05);
    pointer-events: none;
}

.category-empty-state::after {
    content: "";
    position: absolute;
    bottom: -35px;
    right: -35px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(47, 125, 112, 0.04);
    pointer-events: none;
}

.category-empty-icon-wrap {
    width: 78px;
    height: 78px;
    min-width: 78px;
    flex: 0 0 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--empty-icon-bg);
    border: 1px solid #e1efea;
    border-radius: 16px;

    position: relative;
    z-index: 1;
}

.category-empty-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    opacity: 0.95;
}

.category-empty-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.category-empty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    margin-bottom: 8px;

    background: var(--empty-primary-soft);
    color: var(--empty-primary-dark);
    border: 1px solid #d8ebe5;
    border-radius: 999px;

    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.category-empty-title {
    margin: 0 0 6px;
    color: var(--empty-text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.7;
}

.category-empty-text {
    margin: 0;
    color: var(--empty-muted);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.9;
}

.category-empty-action {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

.category-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 18px;

    background: linear-gradient(135deg, var(--empty-primary) 0%, #3b9687 100%);
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 12px;

    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;

    box-shadow: 0 6px 16px rgba(47, 125, 112, 0.16);
    transition: all 0.22s ease;
}

.category-empty-btn:hover {
    background: linear-gradient(135deg, var(--empty-primary-dark) 0%, var(--empty-primary) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(47, 125, 112, 0.22);
}

.category-empty-btn:focus-visible {
    outline: 3px solid rgba(47, 125, 112, 0.18);
    outline-offset: 3px;
}

/* =========================
   Tablet
========================= */

@media (max-width: 900px) {
    .category-empty-state {
        gap: 14px;
        padding: 16px;
        border-radius: 16px;
    }

    .category-empty-icon-wrap {
        width: 70px;
        height: 70px;
        min-width: 70px;
        flex-basis: 70px;
    }

    .category-empty-icon {
        width: 42px;
        height: 42px;
    }

    .category-empty-title {
        font-size: 0.95rem;
    }

    .category-empty-text {
        font-size: 0.82rem;
    }

    .category-empty-btn {
        min-height: 40px;
        padding: 0 16px;
        font-size: 0.8rem;
    }
}

.category-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
}

.category-product-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.category-product-action {
    width: 100%;
    margin-top: auto;
}

.category-product-form {
    width: 100%;
}

.category-add-to-cart-btn {
    width: 100%;
}

.category-empty-state {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}





/* =========================================================
   ARTICLES CTA BANNER STYLES
========================================================= */

.articles-cta-section {
    width: 100%;
    padding: 25px 20px 40px;
    box-sizing: border-box;
}

.articles-cta-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.articles-cta-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #172554 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 36px 42px;
    overflow: hidden;
    box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* افکت نورانی پس‌زمینه */
.articles-cta-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.articles-cta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.45);
}

.articles-cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    max-width: 720px;
    position: relative;
    z-index: 1;
}

/* برچسب دانشنامه */
.articles-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #93c5fd;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
}

/* تیتر بزرگ مقاله */
.articles-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

/* متن توضیحات */
.articles-description {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.96rem;
    line-height: 1.8;
}

.articles-cta-action {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* دکمه رفتن به مقالات */
.btn-articles-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #2563eb;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-articles-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

.btn-articles-primary:active {
    transform: scale(0.97);
}

.btn-arrow-icon {
    transition: transform 0.25s ease;
}

.btn-articles-primary:hover .btn-arrow-icon {
    transform: translateX(-4px); /* در حالت RTL فلش به سمت چپ حرکت می‌کند */
}

/* =========================================================
   RESPONSIVE (موبایل و تبلت)
========================================================= */
@media (max-width: 860px) {
    .articles-cta-card {
        flex-direction: column;
        align-items: stretch;
        text-align: right;
        padding: 26px 20px;
        gap: 22px;
    }

    .articles-title {
        font-size: 1.45rem;
    }

    .articles-description {
        font-size: 0.88rem;
    }

    .btn-articles-primary {
        width: 100%;
        box-sizing: border-box;
        padding: 13px 20px;
    }
}


/* ===================================================
   استایل شیک سربرگ گروه دسته‌بندی (نسخه کاملاً متقارن)
   =================================================== */

.category-group-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px auto 30px auto;
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    box-sizing: border-box;
}

/* خطوط محو دو طرف */
.category-group-header::before,
.category-group-header::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
    border-radius: 2px;
}

/* تیتر کپسولی - با پدینگ کاملاً متقارن برای مرکزیت دقیق */
.category-group-header h2 {
    margin: 0 20px;
    padding: 10px 35px; /* پدینگ یکسان در هر دو طرف */
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    box-shadow: 0 4px 15px -2px rgba(0, 0, 0, 0.05),
                0 2px 6px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    white-space: nowrap;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* نقطه نوری - با استفاده از Absolute هیچ تاثیری روی مرکزیت متن نمی‌گذارد */
.category-group-header h2::before {
    content: "";
    position: absolute;
    right: 15px; /* داخل فضای پدینگ سمت راست قرار می‌گیرد */
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
}

/* ریسپانسیو کامپکت و روان برای صفحه‌های کوچک و موبایل */
@media (max-width: 480px) {
    .category-group-header {
        /* کاهش فاصله حاشیه متناسب با عرض صفحه */
        margin: 25px auto 15px auto;
        width: 100%;
        box-sizing: border-box;
    }

    .category-group-header h2 {
        /*
           حداقل اندازه: 0.85rem
           اندازه متغیر متناسب با عرض: 3.5vw
           حداکثر اندازه: 1.05rem
        */
        font-size: clamp(0.82rem, 3.5vw, 1.05rem);

        /* پدینگ بر حسب vw تا با جمع شدن صفحه، کادر هم باریک‌تر شود */
        padding: 6px clamp(12px, 4vw, 22px);
        margin: 0 clamp(4px, 2vw, 10px);

        /* جلوگیری از شکستن ناگهانی یا بیرون‌زدگی در صفحات خیلی کوچک */
        max-width: 90%;
        white-space: nowrap;
        text-overflow: ellipsis;
        box-sizing: border-box;
    }

    .category-group-header h2::before {
        right: clamp(6px, 2vw, 10px);
        width: clamp(4px, 1.5vw, 6px);
        height: clamp(4px, 1.5vw, 6px);
    }
}
