#logo {
    animation: rotateX360 6s linear infinite;
    transform-style: preserve-3d; /* برای بهتر شدن جلوه سه‌بعدی */
}

@keyframes rotateX360 {
    from {
        transform: rotateX(0deg);
    }
    to {
        transform: rotateX(360deg);
    }
}
.text-dangers{
    color: rgb(5, 255, 138) !important;
}
.product-item {
    height: auto;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}
.product-item:hover {
    background: #f0f8ff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.product-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: 10px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    /*  white-space: nowrap; */
}
.hero {
    text-align: center;
    padding: 50px 20px;
}

.hero-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    direction: rtl;

    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5),
    2px 2px 4px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 1.5rem;
    }
}

.product-description {
    font-size: 0.85rem;
    color: #282828;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

/* واکنش‌گرایی مخصوص موبایل */
@media (max-width: 768px) {
    .product-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
    }
    .product-img {
        margin: 0 0 10px 0;
        width: 100%;
        height: auto;
        max-width: 250px;
    }
    .product-title {
        white-space: normal;
    }

}
.title-wrapper {
    position: relative;
    overflow: hidden;
    padding: 10px;
}

.title-wrapper h2 {
    color: #fff;
    margin: 0;
    font-size: 1.8rem;
    position: relative;
    text-align: center;
    animation: fadeInDown 1s ease forwards;
}

.title-wrapper::after {
    content: "";
    display: block;
    width: 242px;
    height: 3px;
    margin: 8px auto 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #ffffff 50%, rgba(255,255,255,0) 100%);
    animation: shine 2s infinite;
}

/* انیمیشن fadein */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* انیمیشن خط درخشان */
@keyframes shine {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}
/* موبایل */
@media (max-width: 768px) {
    .custom-column {
        border-left: none !important;
        border-radius: 12px;
    }
}

  #categoryScroll {
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      /* gap: 10px;*/
      flex-wrap: nowrap;
      cursor: grab;
  }

#categoryScroll .card {
    scroll-snap-align: start;
}

.carousel-inner {
    touch-action: pan-y;  /* برای لمس بهتر */
    overflow: hidden;
}
.carousel-inner img {
    width: 100%;
    height: 300px;
    object-fit: contain;  /* جلوگیری از برش */
}
.navbar-nav .nav-item a {
    padding: 10px 15px;
}

.footer .footer-img-mobile {
    text-align: center;
}

.footer .footer-img-mobile img {
    width: 80px;
}

.badge-discount {
    position: absolute;
    top: 30px;
    left: -3px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-size: 0.9rem;
    font-weight: bold;
    font-family: 'Vazir', sans-serif;
}
@media (max-width: 768px) {
    #intro .container {
        flex-direction: column;
    }
    #intro img {
        width: 100%;  /* عرض کامل عکس برای موبایل */
    }
}

