.custom-pagination .page-link {
    border-radius: 12px;
    margin: 0 4px;
    color: #0d6efd;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.custom-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0d6efd, #4f8cff);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(13,110,253,0.35);
}

.custom-pagination .page-link:hover {
    background-color: #e7f1ff;
}

.custom-pagination .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}
/* استایل شیک برای هدر جدیدترین محصولات */
.section-title {
    position: relative;
    font-weight: 700;
    margin-bottom: 0;
    padding-bottom: 12px;
}

.modern-title {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    position: relative;
    padding-right: 20px;
}

    .modern-title::before {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        width: 50px;
        height: 4px;
        background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        border-radius: 2px;
    }

    .modern-title::after {
        content: "";
        position: absolute;
        right: 55px;
        bottom: 0;
        width: 20px;
        height: 4px;
        background: #f093fb;
        border-radius: 2px;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}


.modern-title1 {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    color: #0d6efd;
    background: linear-gradient(135deg, #e7f1ff, #f8fbff);
    box-shadow: 0 6px 18px rgba(20, 110, 253, 0.15);
}



.section-title-20 {
    font-size: 1.5rem; /* اندازه بزرگ */
    font-weight: 700; /* ضخیم و پررنگ */
    text-align: center; /* وسط چین */
    color: #0d6efd; /* رنگ اصلی سایت */
    position: relative; /* برای خط زیر تیتر */
    margin-bottom: 2rem;
}

    /* خط زیر تیتر */
    .section-title-20::after {
        content: "";
        display: block;
        width: 90px; /* طول خط */
        height: 4px; /* ضخامت خط */
        background-color: #0d6efd; /* رنگ خط */
        margin: 8px auto 0 auto; /* فاصله از متن و وسط چین */
        border-radius: 2px; /* گوشه‌های نرم */
        box-shadow: 0 2px 6px rgba(13,110,253,0.3);
    }

/* ریسپانسیو */
@media (max-width: 768px) {
    .section-title-20 {
        font-size: 1.6rem;
    }

        .section-title-20::after {
            width: 40px;
            height: 3px;
        }
}


/* row افقی */
.carousel-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
}

    /* مخفی کردن اسکرول */
    .carousel-row::-webkit-scrollbar {
        display: none;
    }

/* فلش‌ها */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    opacity: 0;
    transition: 0.3s;
    z-index: 10;
}

    .carousel-arrow.left {
        left: -12px;
    }

    .carousel-arrow.right {
        right: -12px;
    }

/* روی hover ظاهر بشه */
.carousel-wrapper:hover .carousel-arrow {
    opacity: 1;
}



.best-seller-fieldset {
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
   /* background-color: #7e0000;*/
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

    .best-seller-fieldset legend {
        float: unset;
        width: auto;
        padding: 0 12px;
        font-size: 1.2rem;
        font-weight: 700;
        color: #0d6efd;
       /* background: #fff;*/
        border-radius: 8px;
    }
fieldset {
    border: 1px solid #d1d5db !important;
}

/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007bff; /* آبی بوت استرپ */
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

.link{
    text-decoration:none;
}

/* --- General Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay for hero elements */
.fade-in-up:nth-child(1) { animation-delay: 0.2s; }
.fade-in-up:nth-child(2) { animation-delay: 0.4s; }
.fade-in-up:nth-child(3) { animation-delay: 0.6s; }
.section-title-2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #152850;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-right: 75px;
}
.section-title1 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #152850;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
  
}
.section-title1::before,
.section-title1::after {
    content: "";
    width: 40px;
    height: 2px;
    background: #ddd;
    border-bottom: 5px solid blue;
}
    .section-title-2::before,
    .section-title-2::after {
        content: "";
        width: 40px;
        height: 2px;
        background: #ddd;
        border-bottom:5px solid blue;
    }



.category-link {
    all: unset; /* کل استایل پیش‌فرض لینک */
    display: block; /* مثل div رفتار کنه */
    cursor: pointer;
}

    .category-link:hover,
    .category-link:active,
    .category-link:focus {
        color: inherit;
    }

/* --- Category Section --- */
#categories {
    background-color: #f8f9fa;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* فاصله بیشتر */
}

.category-card {
    width: 120px; /* بزرگتر */
    text-align: center;
    text-decoration: none;
    color: #1f2937;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-icon {
    width: 90px; /* بزرگتر */
    height: 90px; /* بزرگتر */
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px; /* بزرگتر */
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.category-card:hover .category-icon {
    background-color: #0d6efd;
    color: #fff;
    transform: scale(1.25) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.category-card span {
    font-size: 1rem; /* بزرگتر */
    font-weight: 600; /* شیک‌تر */
    transition: color 0.3s ease;
}

.category-card:hover span {
    color: #0d6efd;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .category-card {
        width: 100px;
    }

    .category-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .category-card span {
        font-size: 0.95rem;
    }
}
.category-icon i {
    font-size: 2rem;
    color: #1a2a6c; /* سرمه‌ای */
}

/* --- Product Card --- */
.product-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /*transition: all 0.3s ease;*/
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid blue;
}


    .product-card:hover {
        transform: translateY(-12px) scale(1.01);
        box-shadow: 0 25px 50px -12px rgba(44, 62, 80, 0.25), 0 0 0 1px, 0 0 0 3px rgba(192, 57, 43, 0.15);
    }

        .product-card:hover::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #2c3e50, #c0392b);
            animation: shimmer 1.5s infinite;
        }

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}
/*    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        border: 4px solid lightblue;
    }
*/
.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-card .card-img-top {
    transition: transform 0.5s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card:hover .card-img-top {
    transform: scale(1.1);
}

.product-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.product-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}
.badge-sale {
    right: 0 !important; /* override کردن start-0 */
    left: auto !important; /* از بین بردن left:0 */
}

