/* 
    14. Small Product css 
*/
.product__sidebar {
  border: 1px solid var(--secondary-color);
  background: var(--body-background-color);
  border-radius: 5px;
}

@media only screen and (max-width: 991px) {
  .product__sidebar {
    margin-top: 3rem;
  }
}

.small__product--header {
  background: var(--secondary-color);
}

.small__product--header__title {
  color: var(--text-white-color);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 4.5rem;
  padding: 0 1.8rem;
}

@media only screen and (min-width: 1200px) {
  .small__product--header__title {
    font-size: 1.8rem;
  }
}

.small__product--inner {
  padding: 0.3rem 1.2rem 1.2rem;
  max-height: 463px;
}

@media only screen and (min-width: 1200px) {
  .small__product--inner {
    padding: 0.5rem 1.5rem 1.5rem;
  }
}

@media only screen and (min-width: 1366px) {
  .small__product--inner {
    padding: 0.4rem 1.7rem 1.7rem;
  }
}

.small__product--thumbnail {
  overflow: hidden;
  width: 90px;
}

@media only screen and (max-width: 1199px) {
  .small__product--thumbnail {
    width: 63px;
  }
}

@media only screen and (max-width: 767px) {
  .small__product--thumbnail {
    width: 55px;
  }
}

/* ===== کارت محصول به‌عنوان باکس مستقل ===== */
.small__product--card {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: var(--transition);
}

.small__product--card:last-child {
  margin-bottom: 0;
}

.small__product--card:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.12);
  transform: translateY(-2px);
}

@media only screen and (min-width: 768px) {
  .small__product--card {
    gap: 1.2rem;
  }
}

@media only screen and (min-width: 1200px) {
  .small__product--card {
    gap: 1.5rem;
  }
}

@media only screen and (min-width: 1366px) {
  .small__product--card {
    gap: 2rem;
  }
}
.small__product--thumbnail img {
  width: 100%;
  aspect-ratio: 8 / 7;
  height: auto;
  object-fit: contain;
}




.small__product--card:hover .small__product--thumbnail img {
  transform: scale(1.03);
}

.small__product--card__title {
  margin-bottom: 0.3rem;
  font-size: 1.4rem;
}

@media only screen and (min-width: 1200px) {
  .small__product--card__title {
    font-size: 1.5rem;
  }
}

.small__product--card__price {
  margin-bottom: 0.4rem;
}

.small__product--card.style2 {
  gap: 2rem;
  padding: 1.5rem;
  border: 1px solid transparent;
  background: var(--body-background-color);
  border-radius: 5px;
  transition: var(--transition);
}

@media only screen and (min-width: 576px) {
  .small__product--card.style2 {
    padding: 2rem;
  }
}

@media only screen and (min-width: 1200px) {
  .small__product--card.style2 {
    gap: 3rem;
  }
}

.small__product--card.style2:hover {
  border-color: var(--secondary-color);
}

.small__product--card.style2 .small__product--rating {
  margin-bottom: 8px;
}

.small__product--swiper__btn {
  position: absolute;
  top: 35px;
  padding: 0;
  height: auto;
  right: 8px;
  width: auto;
  color: var(--text-white-color);
}

.small__product--swiper__btn::after {
  display: none;
}

.small__product--swiper__btn.swiper-button-prev {
  right: 34px;
  left: auto;
}

.small__product--swiper__btn.swiper-button-disabled {
  opacity: 0.55;
}

/* ===== Premium Small Product Section ===== */
.small__product--section__bg {
    position: relative;
    padding: 80px 0;
    background-color: var(--body-background-color);
    overflow: hidden;

    /* نور ملایم و جهت‌دار به‌جای ۴ حباب پخش‌شده */
    background-image:
        linear-gradient(
            180deg,
            rgba(17, 24, 39, 0.035) 0%,
            transparent 18%,
            transparent 82%,
            rgba(17, 24, 39, 0.035) 100%
        ),
        radial-gradient(
            ellipse 900px 500px at 50% -10%,
            rgba(220, 38, 38, 0.05) 0%,
            transparent 60%
        );

    /* سایه‌ی چندلایه برای عمق واقعی‌تر، نه یک inset تخت */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 24px 48px -32px rgba(15, 23, 42, 0.10),
        inset 0 -24px 48px -32px rgba(15, 23, 42, 0.10);

    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid var(--border-color);
}

/* لهجه‌ی رنگی هدفمند: یک خط باریک برند در بالای سکشن */
.small__product--section__bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(60%, 480px);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--secondary-color),
        transparent
    );
    opacity: 0.5;
}

.small__product--section__bg .container {
    position: relative;
    z-index: 1;
}

.current__price {
  color: var(--secondary-color);
  font-weight: 600;
  line-height: 1.8rem;
  font-family: var(--inter-fonts);
}