/* ===================== */
/*     استایل‌های کلی    */
/* ===================== */
html {
    overflow-x: hidden;
}
body {
    font-family: Tahoma, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    overflow-x: hidden;
}

/* ---------- تصاویر عمومی ---------- */
img {
    max-width: 100%;
    height: auto;
}

/* ===================== */
/*       هدر اصلی        */
/* ===================== */
.main-header .top-bar {
    background: #2d1b4e;
    color: #e0d7f5;
    padding: 8px 0;
    font-size: 0.9rem;
}
.main-header .top-bar .social-icon {
    color: #e0d7f5;
    margin-right: 10px;
    font-size: 1.1rem;
    transition: 0.3s;
}
.main-header .top-bar .social-icon:hover {
    color: #fff;
}

.main-navbar {
    background: linear-gradient(135deg, #4a148c, #7b1fa2);
    padding: 10px 0;
}
.main-navbar .navbar-brand {
    color: #fff;
    font-weight: bold;
    font-size: 1.5rem;
}
.main-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    margin: 0 5px;
    transition: 0.3s;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: #ff79c6 !important;
}

.search-box {
    display: flex;
    background: rgba(255,255,255,0.15);
    border-radius: 30px;
    overflow: hidden;
}
.search-box input {
    border: none;
    background: transparent;
    color: #fff;
    padding: 5px 15px;
    outline: none;
    width: 180px;
}
.search-box input::placeholder {
    color: rgba(255,255,255,0.7);
}
.search-box button {
    border: none;
    background: transparent;
    color: #fff;
    padding: 5px 15px;
}
html {
    zoom: 0.8; /* عدد 0.9 یعنی 90 درصد سایز فعلی، می‌توانید 0.85 یا 0.95 هم بگذارید */
}
/* ===================== */
/*       فوتر اصلی       */
/* ===================== */
.main-footer {
    background: #2d1b4e;
    color: #d4c4f2;
    padding: 50px 0 0;
    margin-top: 50px;
}
.main-footer h5 {
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.main-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: #ff79c6;
}
.main-footer a {
    color: #d4c4f2;
    text-decoration: none;
    transition: 0.3s;
}
.main-footer a:hover {
    color: #ff79c6;
    padding-right: 5px;
}
.main-footer .social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    text-align: center;
    margin-left: 8px;
    transition: 0.3s;
}
.main-footer .social-icons a:hover {
    background: #ff79c6;
    color: #fff;
    transform: translateY(-3px);
}
.contact-info i {
    margin-left: 8px;
    color: #ff79c6;
    width: 20px;
}
.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 20px 0;
}
.copyright {
    font-size: 0.9rem;
    padding-bottom: 20px;
}

/* ===================== */
/*     اسلایدر اصلی      */
/* ===================== */
#homeSlider {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    height: auto;                 /* height:100% حذف شد */
}

#homeSlider .carousel-inner {
    border-radius: 12px;
    overflow: hidden;
}

#homeSlider .carousel-item img {
    height: 350px;                /* ارتفاع پیش‌فرض ثابت */
    object-fit: cover;
    width: 100%;
    display: block;
    vertical-align: bottom;
}

/* دکمه‌های کنترل */
#homeSlider .carousel-control-prev,
#homeSlider .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 15px;
    transition: all 0.3s ease;
}
#homeSlider .carousel-control-prev:hover,
#homeSlider .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.7);
    width: 55px;
    height: 55px;
}

/* نشانگرها */
#homeSlider .carousel-indicators {
    bottom: 10px;
}
#homeSlider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    opacity: 0.7;
    margin: 0 5px;
    transition: 0.3s;
}
#homeSlider .carousel-indicators button.active {
    background: #ff79c6;
    border-color: #ff79c6;
    opacity: 1;
    width: 14px;
    height: 14px;
}

/* کپشن */
#homeSlider .carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.1));
    border-radius: 0 0 12px 12px;
    left: 0; right: 0; bottom: 0;
    padding: 20px;
    text-align: right;
}
#homeSlider .carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

/* ===================== */
/*     تصاویر کناری      */
/* ===================== */
.sidebar-images {
    height: auto;
}
.sidebar-img-link {
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.sidebar-img-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.sidebar-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-img-placeholder {
    background: #f0f0f0;
    color: #aaa;
    font-size: 1.2rem;
    border: 2px dashed #ddd;
}

/* ===================== */
/*   هدر پنل مدیریت     */
/* ===================== */
.admin-header .admin-top-bar {
    background: #1b0f2e;
    color: #d4c4f2;
    padding: 6px 0;
    font-size: 0.85rem;
}
.admin-header .admin-top-bar .btn-outline-light {
    border-color: rgba(255,255,255,0.4);
    color: #d4c4f2;
}
.admin-header .admin-top-bar .btn-outline-light:hover {
    background: #ff79c6;
    border-color: #ff79c6;
    color: #fff;
}
.admin-header .admin-top-bar .btn-outline-danger {
    color: #ff79c6;
    border-color: #ff79c6;
}
.admin-header .admin-top-bar .btn-outline-danger:hover {
    background: #ff79c6;
    color: #fff;
}

.admin-navbar {
    background: linear-gradient(135deg, #2d1b4e, #4a148c);
    padding: 8px 0;
}
.admin-navbar .navbar-brand {
    color: #fff;
    font-weight: bold;
    font-size: 1.3rem;
}
.admin-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    margin: 0 5px;
    transition: 0.3s;
}
.admin-navbar .nav-link:hover,
.admin-navbar .nav-link.active {
    color: #ff79c6 !important;
}
.admin-navbar .dropdown-menu {
    background: #2d1b4e;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.admin-navbar .dropdown-menu .dropdown-item {
    color: #d4c4f2;
    transition: 0.2s;
}
.admin-navbar .dropdown-menu .dropdown-item:hover {
    background: #4a148c;
    color: #fff;
}
.admin-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* ===================== */
/*     بخش صفحات اصلی    */
/* ===================== */
.pages-section {
    padding: 20px 0 50px;
}

.section-header {
    position: relative;
}

.section-title {
    color: #2d1b4e;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff79c6;
    border-radius: 3px;
}

.section-subtitle {
    color: #666;
    font-size: 1rem;
}

/* کارت‌های صفحات */
.page-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-card .card {
    position: relative;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    cursor: pointer;
}

/* افکت hover روی کارت */
.page-card:hover .card {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(45, 27, 78, 0.2);
}

/* لایه overlay برای افکت hover */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.9), rgba(255, 121, 198, 0.9));
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.page-card:hover .card-overlay {
    opacity: 0.95;
}

/* آیکون وسط کارت هنگام hover */
.card-overlay::after {
    content: '\f06e'; /* آیکون چشم Font Awesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 3rem;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.page-card:hover .card-overlay::after {
    opacity: 1;
    transform: scale(1);
}

/* آیکون بالای کارت */
.card-icon {
    text-align: center;
    padding: 30px 20px 10px;
    font-size: 3rem;
    color: #4a148c;
    transition: all 0.4s ease;
}

.page-card:hover .card-icon {
    color: #fff;
    position: relative;
    z-index: 2;
}

/* عنوان کارت */
.card-title {
    color: #2d1b4e;
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 15px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.page-card:hover .card-title {
    color: #fff;
}

/* متن کارت */
.card-text {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.page-card:hover .card-text {
    color: rgba(255, 255, 255, 0.9);
}
/* استایل تصویر کارت */
.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.page-card:hover .card-image img {
    transform: scale(1.1);
}
/* استایل صفحه جزئیات */
.page-featured-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px !important;
}

.page-title {
    color: #2d1b4e;
    font-weight: bold;
    border-bottom: 3px solid #ff79c6;
    padding-bottom: 10px;
    display: inline-block;
}

.page-content {
    line-height: 2;
    font-size: 1.05rem;
    color: #333;
}

/* فوتر کارت */
.card-footer {
    background: transparent;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.page-card:hover .card-footer {
    border-top-color: rgba(255, 255, 255, 0.3);
}

.read-more {
    color: #4a148c;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s ease;
}

.page-card:hover .read-more {
    color: #fff;
}

.read-more i {
    transition: all 0.3s ease;
}

.page-card:hover .read-more i {
    transform: translateX(-5px);
}

/* نشان وضعیت */
.badge-status {
    background: #f0e6ff;
    color: #4a148c;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.4s ease;
}

.page-card:hover .badge-status {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* افکت ریپل (موج) هنگام hover */
.page-card .card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 1;
}

.page-card:hover .card::before {
    width: 500px;
    height: 500px;
}

/* انیمیشن ظاهر شدن کارت‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pages-section .col-lg-4 {
    animation: fadeInUp 0.6s ease forwards;
}

.pages-section .col-lg-4:nth-child(1) { animation-delay: 0.1s; }
.pages-section .col-lg-4:nth-child(2) { animation-delay: 0.2s; }
.pages-section .col-lg-4:nth-child(3) { animation-delay: 0.3s; }
.pages-section .col-lg-4:nth-child(4) { animation-delay: 0.4s; }
.pages-section .col-lg-4:nth-child(5) { animation-delay: 0.5s; }
.pages-section .col-lg-4:nth-child(6) { animation-delay: 0.6s; }/* ===================== */
/*   بخش نظرات کاربران   */
/* ===================== */
.testimonials-section {
    padding: 40px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin: 40px 0;
}

.rating-overview {
    display: inline-block;
    background: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.stars-display {
    display: inline-block;
    color: #ffc107;
    font-size: 1.2rem;
    margin-left: 10px;
}

.rating-text {
    color: #666;
    font-size: 0.95rem;
}

/* کارت نظر */
.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(74, 20, 140, 0.15);
    border-color: rgba(74, 20, 140, 0.1);
}

.quote-icon {
    font-size: 3rem;
    color: rgba(74, 20, 140, 0.1);
    position: absolute;
    top: 15px;
    left: 20px;
    transition: all 0.3s ease;
}

.testimonial-card:hover .quote-icon {
    color: rgba(255, 121, 198, 0.2);
    transform: scale(1.2) rotate(-10deg);
}

.testimonial-text {
    color: #555;
    line-height: 1.9;
    font-size: 0.95rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    min-height: 80px;
}

.testimonial-rating {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-rating .fa-star {
    color: #ddd;
    font-size: 0.9rem;
    margin: 0 1px;
    transition: all 0.3s ease;
}

.testimonial-rating .fa-star.active {
    color: #ffc107;
}

.testimonial-card:hover .testimonial-rating .fa-star.active {
    color: #ff9800;
    animation: starPulse 0.6s ease;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* نویسنده نظر */
.testimonial-author {
    display: flex;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    position: relative;
    z-index: 1;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a148c, #ff79c6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin-left: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(74, 20, 140, 0.3);
}

.author-name {
    color: #2d1b4e;
    font-weight: 600;
    margin-bottom: 3px;
}

.author-date {
    color: #999;
    font-size: 0.85rem;
}

/* انیمیشن ظاهر شدن کارت‌ها */
.testimonials-section .col-lg-4 {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.testimonials-section .col-lg-4:nth-child(1) { animation-delay: 0.1s; }
.testimonials-section .col-lg-4:nth-child(2) { animation-delay: 0.2s; }
.testimonials-section .col-lg-4:nth-child(3) { animation-delay: 0.3s; }
.testimonials-section .col-lg-4:nth-child(4) { animation-delay: 0.4s; }
.testimonials-section .col-lg-4:nth-child(5) { animation-delay: 0.5s; }
.testimonials-section .col-lg-4:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* فرم ثبت نظر */
.add-comment-section .card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.add-comment-section .card-header {
    background: linear-gradient(135deg, #4a148c, #7b1fa2) !important;
}

/* ستاره‌های امتیازدهی */
.star-rating-input {
    direction: rtl;
}

.star-rating-input .stars {
    display: inline-flex;
    flex-direction: row-reverse;
}

.star-rating-input .stars input {
    display: none;
}

.star-rating-input .stars label {
    cursor: pointer;
    font-size: 1.8rem;
    color: #ddd;
    transition: all 0.2s ease;
    margin: 0 3px;
}

.star-rating-input .stars label:hover,
.star-rating-input .stars label:hover ~ label,
.star-rating-input .stars input:checked ~ label {
    color: #ffc107;
}

.star-rating-input .stars label:hover i,
.star-rating-input .stars input:checked ~ label i {
    animation: starBounce 0.4s ease;
}

@keyframes starBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

/* بخش خالی نظرات */
.testimonials-section .fa-comments {
    opacity: 0.3;
}
/* بخش نمایش اعتبار کاربران */
.credit-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 15px 25px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.credit-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}
.credit-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2d1b4e;
}

.credit-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 15px 25px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.credit-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}
.credit-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2d1b4e;
    display: block;
}
.credit-words {
    font-size: 1rem;
    color: #4a148c;
    margin-top: 5px;
    font-weight: normal;
    background: rgba(255,255,255,0.6);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}
.captcha-img {
    height: 38px;
    width: auto;
    cursor: pointer;
}
/* بهبود نمایش کپچا در مودال */
.captcha-img {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}
.input-group .btn-outline-secondary {
    border-color: #dee2e6;
}
.input-group .btn-outline-secondary:hover {
    background-color: #e9ecef;
}
/* ===================== */
/*     کارت‌های کالا      */
/* ===================== */
.goods-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
}
.goods-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
}
.goods-img-wrapper {
    height: 160px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.goods-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.goods-img-placeholder {
    font-size: 2.5rem;
    color: #adb5bd;
}
@media (max-width: 576px) {
    .goods-img-wrapper {
        height: 130px;
    }
}

/* ===================== */
/*      کیف پول طلایی    */
/* ===================== */
.wallet-badge {
    background: #ffffff;
    color: #b8860b;
    border: 2px solid #ffd700;
    padding: 6px 15px;
    border-radius: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    animation: whiteGlow 2s infinite alternate;
    white-space: nowrap;
}
.wallet-badge i {
    color: #ffd700;
    font-size: 1.1rem;
}
.wallet-amount {
    letter-spacing: 1px;
    color: #b8860b;
}
.wallet-currency {
    font-size: 0.8rem;
    opacity: 0.8;
    color: #b8860b;
}
@keyframes whiteGlow {
    from { box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }
    to   { box-shadow: 0 0 30px rgba(255, 215, 0, 0.9); }
}

/* ===================== */
/*     متفرقه             */
/* ===================== */
.credit-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 15px 25px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.credit-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}
.credit-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2d1b4e;
    display: block;
}
.credit-words {
    font-size: 1rem;
    color: #4a148c;
    margin-top: 5px;
    font-weight: normal;
    background: rgba(255,255,255,0.6);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}
.captcha-img {
    height: 38px;
    width: auto;
    cursor: pointer;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}
.input-group .btn-outline-secondary {
    border-color: #dee2e6;
}
.input-group .btn-outline-secondary:hover {
    background-color: #e9ecef;
}