/* style.css */
:root {
    --primary-color: #5a6fdc;
    /* رنگ اصلی */
    --primary-light: #eef0fb;
    --primary-hover: #485ac0;
    --secondary-color: #2d376e;
    --text-dark: #444;
    --bg-light: #f9faff;
    --card-radius: 16px;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    /* تضمین راست‌چین بودن کل بدنه */
    direction: rtl;
    text-align: right;
}

/* --- Announcement Ribbons --- */
.nimvajabi-ribbon {
    position: relative;
    z-index: 1040;
    transition: all 0.4s ease;
    overflow: hidden;
    font-size: 0.95rem;
}

.nimvajabi-ribbon.closing {
    margin-top: -100px;
    opacity: 0;
}

/* Animations */
@keyframes ribbonPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes ribbonBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-3px);
    }

    60% {
        transform: translateY(-1px);
    }
}

@keyframes ribbonSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes ribbonShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-2px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(2px);
    }
}

.ribbon-anim-pulse {
    animation: ribbonPulse 2s ease-in-out;
}

.ribbon-anim-bounce {
    animation: ribbonBounce 2s;
}

.ribbon-anim-spin {
    animation: ribbonSpin 2s linear;
}

.ribbon-anim-shake {
    animation: ribbonShake 1s;
}

.anim-infinite {
    animation-iteration-count: infinite !important;
}

.anim-once {
    animation-iteration-count: 1 !important;
}

.ribbon-img {
    max-height: 28px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .ribbon-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .ribbon-img {
        max-height: 24px;
    }
}

.ribbon-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    opacity: 0.6;
    transition: opacity 0.3s;
    border: none;
    width: 24px;
    height: 24px;
}

.ribbon-close:hover {
    opacity: 1;
}

/* --- Top Bar & Header --- */
.top-bar {
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.8rem;
    padding: 6px 0;
}

.main-header {
    background: white;
    box-shadow: 0 4px 15px rgba(90, 111, 220, 0.08);
    z-index: 1030;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s;
}

.logo-text:hover {
    transform: scale(1.05);
}

@media (min-width: 992px) {
    .logo-text {
        font-size: 1.8rem;
    }
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

/* Custom Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 111, 220, 0.3);
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box input {
    border-radius: 50px;
    padding: 10px 20px;
    background: var(--primary-light);
    border: none;
    transition: 0.3s;
    padding-left: 50px;
    text-align: right;
    direction: rtl;
}

.search-box input:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(90, 111, 220, 0.2);
    outline: none;
}

.search-box input::placeholder {
    text-align: right;
    opacity: 0.7;
}

.search-box .btn-search {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    cursor: pointer;
}

.search-box .btn-search:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Icons */
.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
}

@media (min-width: 768px) {
    .btn-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.1);
}

.badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffc107;
    color: #333;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@media (min-width: 768px) {
    .badge-count {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}

/* Navbar */
.nav-link {
    font-weight: 500;
    color: #555 !important;
    margin: 0 8px;
    transition: 0.3s;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Mobile Menu */
.mobile-nav-list .list-group-item {
    border: none;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
    transition: 0.3s;
}

.mobile-nav-list .list-group-item:hover {
    background-color: var(--primary-light);
}

.nav-link-mobile {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    display: block;
    width: 100%;
    transition: 0.3s;
}

.nav-link-mobile:hover {
    color: var(--primary-color);
    padding-right: 10px;
}

/* Carousel */
.carousel-item img {
    height: 250px;
    object-fit: cover;
    border-radius: 0 0 20px 20px;
}

@media (min-width: 576px) {
    .carousel-item img {
        height: 350px;
    }
}

@media (min-width: 992px) {
    .carousel-item img {
        height: 500px;
        border-radius: 0 0 40px 40px;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(90, 111, 220, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.carousel-control-prev {
    right: 15px;
}

.carousel-control-next {
    left: 15px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: var(--primary-color);
}

/* Categories */
.category-item {
    cursor: pointer;
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-item:hover .cat-circle {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(90, 111, 220, 0.2);
}

.cat-circle {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(90, 111, 220, 0.15);
    transition: all 0.3s;
    background: white;
}

.cat-title {
    font-size: 0.8rem;
    margin-top: 8px;
    transition: color 0.3s;
}

.category-item:hover .cat-title {
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .cat-circle {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }

    .cat-title {
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .cat-circle {
        width: 120px;
        height: 120px;
        border-width: 5px;
    }

    .cat-title {
        font-size: 1rem;
    }
}

.cat-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-item:hover .cat-circle img {
    transform: scale(1.1);
}

/* Product Cards */
.section-title {
    font-weight: 800;
    color: var(--secondary-color);
    border-right: 4px solid var(--primary-color);
    padding-right: 10px;
    margin-bottom: 0;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.5rem;
        border-right-width: 5px;
        padding-right: 15px;
    }
}

.btn-outline-custom {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.8rem;
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .btn-outline-custom {
        border-width: 2px;
        font-size: 0.9rem;
    }
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 111, 220, 0.2);
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
    border: 1px solid #eee;
    height: 100%;
}

@media (min-width: 768px) {
    .product-card {
        border-radius: var(--card-radius);
    }
}

.product-card:hover {
    box-shadow: 0 15px 30px rgba(90, 111, 220, 0.15);
    transform: translateY(-5px);
}

.img-wrapper {
    position: relative;
    padding-top: 100%;
    background: linear-gradient(to bottom, #fafafa, #f0f0f0);
    overflow: hidden;
}

.img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 10px;
    transition: 0.5s;
}

@media (min-width: 768px) {
    .img-wrapper img {
        padding: 15px;
    }
}

.product-card:hover .img-wrapper img {
    transform: scale(1.08);
    padding: 5px;
}

.badge-discount,
.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff3e3e;
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
    animation: float 3s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@media (min-width: 768px) {

    .badge-discount,
    .badge-new {
        top: 15px;
        right: 15px;
        padding: 4px 10px;
        border-radius: 8px;
        font-size: 0.8rem;
    }
}

.badge-new {
    background: #00d2d3;
}

.product-title {
    font-size: 0.85rem;
    font-weight: 700;
    height: 38px;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 5px;
    color: #333;
}

@media (min-width: 768px) {
    .product-title {
        font-size: 0.95rem;
        height: 45px;
        line-height: 1.6;
        margin-bottom: 10px;
    }
}

.price-old {
    text-decoration: line-through;
    color: #bbb;
    font-size: 0.75rem;
    display: block;
}

.price-new {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .price-old {
        font-size: 0.85rem;
    }

    .price-new {
        font-size: 1.1rem;
    }
}

.btn-add-cart {
    border: 1px solid #eee;
    color: #666;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s;
    padding: 5px;
    background: white;
    font-size: 0.8rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .btn-add-cart {
        border-width: 2px;
        border-radius: 12px;
        padding: 8px;
        font-size: 0.9rem;
        width: 45px;
        height: 45px;
    }
}

.btn-add-cart:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* Amazing Offer Section */
.border-custom {
    border: 2px solid var(--primary-light);
    position: relative;
    overflow: hidden;
}

.amazing-img {
    /* تغییر ۱: تعیین ارتفاع ثابت برای موبایل */
    height: 300px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    /* برای پوزیشن‌دهی درست */
}

.amazing-img img {
    /* تغییر ۲: این تنظیمات جلوی دفرمه شدن را می‌گیرد */
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* عکس را برش می‌دهد تا کل کادر را پر کند بدون دفرمه شدن */
    object-position: center;
    /* مرکز عکس را نشان می‌دهد */
    transition: transform 0.8s ease;
}

.amazing-img:hover img {
    transform: scale(1.05);
}

.responsive-h2 {
    font-size: 1.2rem;
}

@media (min-width: 768px) {
    .responsive-h2 {
        font-size: 1.8rem;
    }

    .amazing-img {
        height: 450px;
        /* ارتفاع ثابت و بلندتر برای دسکتاپ */
        min-height: auto;
        max-height: none;
        /* حذف محدودیت‌های اشتباه قبلی */
    }
}

.timer-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 55px;
    transition: all 0.5s ease;
}

@media (min-width: 768px) {
    .timer-box {
        padding: 10px 15px;
        border-radius: 10px;
        min-width: 70px;
    }
}

.timer-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(90, 111, 220, 0.3);
}

.timer-box span {
    display: block;
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1;
}

.timer-box small {
    font-size: 0.6rem;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .timer-box span {
        font-size: 1.5rem;
    }

    .timer-box small {
        font-size: 0.7rem;
    }
}

/* ======================================================== */
/* --- Banner Shapes با Hover نرم‌تر و قابلیت تصویر --- */
/* ======================================================== */

.banner-card {
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none !important;
    min-height: 280px;

    /* سایه نرم و گسترده */
    box-shadow: 0 10px 30px rgba(90, 111, 220, 0.15);

    /* جلوگیری از پرش در انیمیشن */
    transform: translateZ(0);
    width: 100%;
}

.banner-card:hover {
    /* سایه عمیق‌تر و نرم */
    box-shadow: 0 20px 40px rgba(90, 111, 220, 0.25);

    /* تغییر شکل بسیار ملایم و نرم */
    border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%;
    transform: translateY(-5px) scale(1.02);
}

/* دکمه داخل بنر */
.banner-btn {
    transition: all 0.4s ease !important;
    position: relative;
    overflow: hidden;
}

.banner-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}

.banner-btn:hover::before {
    left: 100%;
}

/* --- تعریف شکل‌های کاملاً دفرمه و نامتقارن --- */

/* شکل ۱: فرمی پهن و کج (شبیه آمیب) */
.banner-shape-1 {
    border-radius: 56% 44% 71% 29% / 50% 59% 41% 50%;
}

/* شکل ۲: فرمی متفاوت (شبیه سنگ رودخانه) */
.banner-shape-2 {
    border-radius: 28% 72% 56% 44% / 37% 32% 68% 63%;
}

/* در موبایل شدت دفرمه بودن را کم می‌کنیم تا محتوا دیده شود */
@media (max-width: 576px) {

    .banner-shape-1,
    .banner-shape-2 {
        border-radius: 20px;
    }

    .banner-card {
        min-height: 220px;
    }
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.4s ease;
    height: 100%;
}

@media (min-width: 768px) {
    .blog-card {
        border-radius: 20px;
    }
}

.blog-card:hover {
    box-shadow: 0 15px 30px rgba(90, 111, 220, 0.15);
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .blog-card img {
        height: 200px;
    }
}

/* Footer */
.main-footer {
    border-top: 5px solid var(--primary-color);
    background: linear-gradient(to bottom, white, #f9faff);
}

@media (min-width: 768px) {
    .main-footer {
        border-top-width: 8px;
    }
}

.newsletter-box {
    border: 2px dashed #b0baf5;
    background-color: var(--primary-light) !important;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.newsletter-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(90, 111, 220, 0.1);
}

.footer-links a {
    color: #666;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    text-align: right;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 8px;
    transform: translateX(-3px);
}

.social-icons a {
    display: inline-flex;
    width: 35px;
    height: 35px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    text-decoration: none;
    transition: all 0.4s ease;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .social-icons a {
        width: 40px;
        height: 40px;
        margin: 0 5px;
        font-size: 1.1rem;
    }
}

.social-icons a:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(15deg) scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slowShine {

    0%,
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.product-card,
.category-item,
.banner-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive improvements */
@media (max-width: 768px) {

    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .banner-content {
        margin: 0 !important;
    }
}

/* ========================================== */
/* Shop Page Filter Offcanvas Customization */
/* ========================================== */

/* Filter Button Styling */
.btn-primary-custom {
    transition: all 0.3s ease;
}

.btn-primary-custom:active {
    transform: scale(0.98);
}

/* Offcanvas Customization */
#filterOffcanvas {
    max-width: 85%;
}

@media (min-width: 576px) {
    #filterOffcanvas {
        max-width: 400px;
    }
}

#filterOffcanvas .offcanvas-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

#filterOffcanvas .offcanvas-title {
    font-weight: 700;
    font-size: 1.1rem;
}

#filterOffcanvas .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

#filterOffcanvas .btn-close:hover {
    opacity: 1;
}

#filterOffcanvas .offcanvas-body {
    padding: 1rem;
    background: #f9f9f9;
}

/* Filter Sidebar Enhancements */
.filter-sidebar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Ensure filter form buttons are visible in offcanvas */
#filterOffcanvas .btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
}

#filterOffcanvas .btn-outline-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

#filterOffcanvas .btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}


/* Loading animations */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.loaded {
    opacity: 1;
    transform: translateY(0);
}


/* استایل‌های مخصوص صفحه فروشگاه - باید به style.css اضافه شوند */

/* صفحه هدر */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: 0 0 40px 40px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* سایدبار فیلتر */
.filter-sidebar {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(90, 111, 220, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filter-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-title i {
    transition: transform 0.3s;
}

.filter-title.collapsed i {
    transform: rotate(-90deg);
}

.filter-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-option {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    margin-left: 8px;
    cursor: pointer;
}

.filter-option label {
    cursor: pointer;
    flex-grow: 1;
    color: #555;
    transition: color 0.2s;
}

.filter-option label:hover {
    color: var(--primary-color);
}

.price-range {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

.price-input {
    width: 45%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.price-slider {
    width: 100%;
    margin: 15px 0;
    height: 6px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 3px;
    outline: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.color-option {
    width: 100%;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid white;
    transition: transform 0.2s;
}

.color-option:hover {
    transform: scale(1.1);
}

/* هدر فروشگاه */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(90, 111, 220, 0.08);
}

.sort-select {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px 15px;
    background: white;
    color: #555;
    min-width: 180px;
    cursor: pointer;
}

.product-count {
    color: #777;
    font-size: 0.9rem;
}

/* صفحه‌بندی */
.pagination-container {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination-custom {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item-custom {
    margin: 0 3px;
}

.page-link-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid #eee;
    cursor: pointer;
}

.page-link-custom:hover:not(.disabled):not(.active) {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.page-link-custom.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link-custom.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* دکمه‌های تغییر نمایش */
.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #eee;
    color: #777;
    transition: all 0.3s;
    cursor: pointer;
}

.view-btn:hover,
.view-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* حالت نمایش لیستی */
.product-list-view .product-card {
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 200px;
}

.product-list-view .img-wrapper {
    width: 200px;
    padding-top: 0;
    height: 200px;
    flex-shrink: 0;
}

.product-list-view .product-card-body {
    padding: 20px;
    flex-grow: 1;
}

.product-list-view .product-title {
    height: auto;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.product-list-view .product-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .product-list-view .product-card {
        flex-direction: column;
    }

    .product-list-view .img-wrapper {
        width: 100%;
        height: 200px;
    }

    .shop-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .page-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .filter-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}


/* استایل‌های مخصوص صفحه تکی محصول */
.product-single-header {
    background: linear-gradient(135deg, #f8faff 0%, #eef0fb 100%);
    padding: 40px 0;
    margin-bottom: 40px;
    border-radius: 0 0 30px 30px;
}

.product-main-image {
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(90, 111, 220, 0.15);
    cursor: zoom-in;
    position: relative;
}

.product-main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-main-image:hover img {
    transform: scale(1.05);
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}

.product-thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(90, 111, 220, 0.15);
    height: 100%;
}

.product-title-single {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.rating-count {
    color: #777;
    font-size: 0.9rem;
}

.product-price-single {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.old-price {
    font-size: 1.2rem;
    color: #bbb;
    text-decoration: line-through;
    display: block;
    margin-bottom: 5px;
}

.discount-badge {
    background: #ff3e3e;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
}

.product-description-single {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1rem;
}

.product-meta {
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #666;
}

.meta-icon {
    width: 30px;
    color: var(--primary-color);
}

.color-options {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.color-option-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.color-option-circle.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.color-option-circle.active:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.size-options {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.size-option {
    padding: 8px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    background: white;
}

.size-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-add-to-cart {
    flex-grow: 1;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-wishlist {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    border: 2px solid #eee;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-wishlist:hover,
.btn-wishlist.active {
    background: #ff3e3e;
    color: white;
    border-color: #ff3e3e;
}

.product-tabs {
    margin-top: 60px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(90, 111, 220, 0.1);
}

.tab-nav {
    display: flex;
    background: var(--primary-light);
    border-bottom: 2px solid #eee;
}

.tab-link {
    padding: 20px 30px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    text-decoration: none;
    display: block;
}



.tab-link.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table tr {
    border-bottom: 1px solid #eee;
}

.specifications-table td {
    padding: 15px 10px;
}

.specifications-table td:first-child {
    font-weight: 600;
    color: var(--secondary-color);
    width: 30%;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding: 25px 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.review-text {
    color: #555;
    line-height: 1.8;
}

.related-products-section {
    margin-top: 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary-color);
    border-right: 4px solid var(--primary-color);
    padding-right: 15px;
}

.delivery-info {
    background: var(--primary-light);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.delivery-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.delivery-text {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.share-text {
    color: #666;
    font-weight: 600;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.share-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .product-title-single {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.6rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-wishlist {
        width: 100%;
    }


}


/* استایل‌های جدید برای تب‌ها در موبایل */

@media (max-width: 768px) {
    .tab-nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 10px 15px;
        background: var(--primary-light);
        border-bottom: 2px solid #eee;
    }

    .tab-nav::-webkit-scrollbar {
        display: none;
    }

    .tab-link {
        padding: 12px 20px;
        font-weight: 600;
        color: #666;
        cursor: pointer;
        transition: all 0.3s;
        position: relative;
        text-decoration: none;
        display: block;
        white-space: nowrap;
        border-radius: 10px;
        margin: 0 5px;
        background: white;
        border: 2px solid transparent;
        flex-shrink: 0;
    }

    .tab-link:hover {
        color: var(--primary-color);
    }

    .tab-link.active {
        color: var(--primary-color);
        background: white;
        border-color: var(--primary-color);
        box-shadow: 0 3px 10px rgba(90, 111, 220, 0.15);
    }

    .tab-link.active:after {
        display: none;
    }

    .tab-content {
        padding: 20px;
    }
}



/* هدر صفحه بلاگ */
.blog-page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 70px 0 40px;
    text-align: center;
    margin-bottom: 50px;
    border-radius: 0 0 40px 40px;
}

.blog-page-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.blog-page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

/* دسته‌بندی‌های بلاگ */
.blog-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.blog-category {
    padding: 10px 24px;
    background: white;
    border: 2px solid transparent;
    border-radius: 25px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.blog-category:hover,
.blog-category.active {
    background: var(--primary-color);
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* پست ویژه */
.featured-post {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(90, 111, 220, 0.15);
    margin-bottom: 60px;
    transition: all 0.4s;
}

.featured-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(90, 111, 220, 0.25);
}

.featured-post-content {
    padding: 40px;
}

.featured-post-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff3838);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.featured-post-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.featured-post-excerpt {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* پست‌های معمولی */
.blog-post {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(90, 111, 220, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s;
    height: 100%;
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(90, 111, 220, 0.2);
}

.post-image {
    height: 220px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-post:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #777;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta-item i {
    color: var(--primary-color);
}

.post-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.5;
    height: 60px;
    overflow: hidden;
}

.post-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    height: 70px;
    overflow: hidden;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.post-tag {
    padding: 5px 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.post-tag:hover {
    background: var(--primary-color);
    color: white;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    padding: 10px 0;
    transition: all 0.3s;
}

.read-more-btn:hover {
    color: var(--secondary-color);
    gap: 12px;
}

/* سایدبار */
.blog-sidebar {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(90, 111, 220, 0.1);
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.sidebar-title:after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* جستجو */
.blog-search-box {
    position: relative;
    margin-bottom: 25px;
}

.blog-search-box input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.blog-search-box input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(90, 111, 220, 0.1);
}

.blog-search-box button {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-search-box button:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.05);
}

/* پست‌های محبوب */
.popular-posts {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.popular-post {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.popular-post:hover {
    padding-right: 10px;
}

.popular-post:last-child {
    border-bottom: none;
}

.popular-post-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-post-content h5 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.popular-post-content h5 a:hover {
    color: var(--primary-color);
}

.popular-post-content span {
    color: #777;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.popular-post-content span i {
    color: var(--primary-color);
}

/* دسته‌بندی‌ها */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.category-item:hover {
    padding-right: 10px;
}

.category-item:last-child {
    border-bottom: none;
}

.category-name {
    color: #555;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.category-name:hover {
    color: var(--primary-color);
}

.category-count {
    background: var(--primary-light);
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* خبرنامه */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 25px;
}

.newsletter-widget h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.newsletter-widget p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-widget input {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
}

.newsletter-widget button {
    width: 100%;
    padding: 14px;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-widget button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* صفحه‌بندی */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.page-item {
    display: flex;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: white;
    color: #555;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: 2px solid #eee;
}

.page-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .blog-page-title {
        font-size: 2rem;
    }

    .blog-page-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }

    .blog-categories {
        padding: 10px;
        gap: 8px;
    }

    .blog-category {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .featured-post-content {
        padding: 25px;
    }

    .featured-post-title {
        font-size: 1.4rem;
    }

    .featured-post-excerpt {
        font-size: 1rem;
    }

    .blog-sidebar {
        margin-top: 40px;
    }
}



/* استایل‌های مخصوص صفحه تکی محصول */
.product-single-header {
    background: linear-gradient(135deg, #f8faff 0%, #eef0fb 100%);
    padding: 40px 0;
    margin-bottom: 40px;
    border-radius: 0 0 30px 30px;
}

.product-main-image {
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(90, 111, 220, 0.15);
    cursor: zoom-in;
    position: relative;
}

.product-main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-main-image:hover img {
    transform: scale(1.05);
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}

.product-thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(90, 111, 220, 0.15);
    height: 100%;
}

.product-title-single {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.rating-count {
    color: #777;
    font-size: 0.9rem;
}

.product-price-single {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.old-price {
    font-size: 1.2rem;
    color: #bbb;
    text-decoration: line-through;
    display: block;
    margin-bottom: 5px;
}

.discount-badge {
    background: #ff3e3e;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
}

.product-description-single {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1rem;
}

.product-meta {
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #666;
}

.meta-icon {
    width: 30px;
    color: var(--primary-color);
}

.color-options {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.color-option-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.color-option-circle.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.color-option-circle.active:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.size-options {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.size-option {
    padding: 8px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    background: white;
}

.size-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-add-to-cart {
    flex-grow: 1;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-wishlist {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    border: 2px solid #eee;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-wishlist:hover,
.btn-wishlist.active {
    background: #ff3e3e;
    color: white;
    border-color: #ff3e3e;
}

.product-tabs {
    margin-top: 60px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(90, 111, 220, 0.1);
}

.tab-nav {
    display: flex;
    background: var(--primary-light);
    border-bottom: 2px solid #eee;
    position: relative;
}

.tab-link {
    padding: 20px 30px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.tab-link.active {
    color: var(--primary-color);
    background: white;
}

.tab-link.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

/* استایل‌های جدید برای موبایل */
@media (max-width: 768px) {
    .tab-nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 10px 15px;
        background: var(--primary-light);
        border-bottom: 2px solid #eee;
    }

    .tab-nav::-webkit-scrollbar {
        display: none;
    }

    .tab-link {
        padding: 12px 20px;
        font-weight: 600;
        color: #666;
        cursor: pointer;
        transition: all 0.3s;
        position: relative;
        text-decoration: none;
        display: block;
        white-space: nowrap;
        border-radius: 10px;
        margin: 0 5px;
        background: white;
        border: 2px solid transparent;
        flex-shrink: 0;
        font-size: 0.9rem;
    }

    .tab-link:hover {
        color: var(--primary-color);
    }

    .tab-link.active {
        color: var(--primary-color);
        background: white;
        border-color: var(--primary-color);
        box-shadow: 0 3px 10px rgba(90, 111, 220, 0.15);
    }

    .tab-link.active:after {
        display: none;
    }

    .tab-content {
        padding: 20px;
    }

    .product-title-single {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.6rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-wishlist {
        width: 100%;
        height: 50px;
    }

    .tab-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .tab-link {
        padding: 12px 20px;
        border-radius: 10px;
        margin: 0 5px;
        background: white;
        border: 2px solid transparent;
    }

    .tab-link.active {
        border-color: var(--primary-color);
        box-shadow: 0 3px 10px rgba(90, 111, 220, 0.15);
    }

    .delivery-info {
        flex-direction: column;
        text-align: center;
    }

    .quantity-selector {
        justify-content: flex-start;
    }
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table tr {
    border-bottom: 1px solid #eee;
}

.specifications-table td {
    padding: 15px 10px;
}

.specifications-table td:first-child {
    font-weight: 600;
    color: var(--secondary-color);
    width: 30%;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding: 25px 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.review-text {
    color: #555;
    line-height: 1.8;
}

.related-products-section {
    margin-top: 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary-color);
    border-right: 4px solid var(--primary-color);
    padding-right: 15px;
}

.delivery-info {
    background: var(--primary-light);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.delivery-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.delivery-text {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.share-text {
    color: #666;
    font-weight: 600;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.share-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .product-title-single {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.6rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-wishlist {
        width: 100%;
    }

    .tab-nav {
        padding: 10px 15px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .tab-link {
        padding: 12px 20px;
        border-radius: 10px;
        margin: 0 5px;
        background: white;
        border: 2px solid transparent;
        flex-shrink: 0;
        font-size: 0.9rem;
    }

    .tab-link.active {
        border-color: var(--primary-color);
        box-shadow: 0 3px 10px rgba(90, 111, 220, 0.15);
    }

    .tab-link.active:after {
        display: none;
    }

    .delivery-info {
        flex-direction: column;
        text-align: center;
    }

    .social-share {
        justify-content: center;
    }
}




.cart-container {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

/* هدر جدول */
.cart-header {
    background-color: #f8f9fa;
    font-weight: 700;
    color: var(--secondary-color);
    padding: 20px;
}

/* آیتم‌های سبد */
.cart-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
    display: flex;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background-color: #fcfcfc;
}

/* تصویر محصول */
.cart-product-img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #eee;
}

/* نام محصول */
.cart-product-title {
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.05rem;
    margin-bottom: 5px;
    display: block;
}

.cart-product-meta {
    font-size: 0.85rem;
    color: #888;
}

/* کنترل تعداد */
.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 3px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    color: #555;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: bold;
    color: var(--secondary-color);
    background: transparent;
}

/* دکمه حذف */
.remove-btn {
    color: #aaa;
    background: none;
    border: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.remove-btn:hover {
    color: #ff4d4d;
}

/* سایدبار جمع کل */
.cart-summary {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
    border: 1px solid #f0f0f0;
}

.summary-title {
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #eee;
    color: var(--secondary-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
}

.summary-row.total {
    font-weight: 800;
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* کد تخفیف */
.coupon-box {
    position: relative;
    margin-bottom: 25px;
}

.coupon-box input {
    padding-left: 90px;
    /* فضا برای دکمه */
    border-radius: 12px;
}

.coupon-box button {
    position: absolute;
    left: 5px;
    top: 5px;
    bottom: 5px;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 0.9rem;
}

/* دکمه پرداخت */
.checkout-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px;
    border-radius: 15px;
    width: 100%;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 10px 25px rgba(90, 111, 220, 0.3);
    transition: all 0.3s;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(90, 111, 220, 0.4);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .d-none-mobile {
        display: none !important;
    }

    .cart-item {
        flex-wrap: wrap;
        gap: 15px;
        position: relative;
    }

    .product-col {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .qty-col,
    .price-col,
    .subtotal-col {
        width: auto;
    }

    .remove-btn {
        position: absolute;
        top: 20px;
        left: 20px;
    }

    .cart-controls-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px dashed #eee;
    }
}

/* --- extracted from index.html --- */
/* --- استایل‌های مینی‌کارت (سبد خرید کوچک) --- */
.cart-dropdown-wrapper {
    display: inline-block;
    position: relative;
}

.mini-cart-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f0f0;
    cursor: default;
}

/* نمایش با هاور یا کلاس active */
.cart-dropdown-wrapper:hover .mini-cart-dropdown,
.cart-dropdown-wrapper.active .mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

/* فلش بالای باکس */
.mini-cart-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid #f0f0f0;
    border-left: 1px solid #f0f0f0;
}

.mini-cart-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fcfcfc;
    border-radius: 15px 15px 0 0;
}

.btn-close-cart {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 0 5px;
}

.btn-close-cart:hover {
    color: #ff4d4d;
}

.mini-cart-items {
    max-height: 280px;
    overflow-y: auto;
    padding: 10px;
}

/* اسکرول بار زیبا */
.mini-cart-items::-webkit-scrollbar {
    width: 5px;
}

.mini-cart-items::-webkit-scrollbar-thumb {
    background: #eee;
    border-radius: 10px;
}

.mini-cart-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px dashed #eee;
    transition: background 0.2s;
}

.mini-cart-item:last-child {
    border-bottom: none;
}

.mini-cart-item:hover {
    background: #f9f9f9;
    border-radius: 10px;
}

.mini-cart-img {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #eee;
    margin-left: 12px;
}

.mini-cart-info {
    flex-grow: 1;
}

.mini-cart-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
    display: block;
    text-decoration: none;
}

.mini-cart-price {
    font-size: 0.85rem;
    color: #666;
}

.mini-cart-remove {
    color: #ff4d4d;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
    opacity: 0.6;
    transition: 0.2s;
}

.mini-cart-remove:hover {
    opacity: 1;
    transform: scale(1.1);
}

.mini-cart-footer {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    background: white;
    border-radius: 0 0 15px 15px;
}

/* --- استایل‌های بنر و اسلایدر (کدهای قبلی شما) --- */
.banner-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    overflow: hidden;
    border-radius: inherit;
}

.banner-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1px);
    transform: scale(1.1);
    transition: transform 0.8s ease;
}

.banner-card:hover .banner-image-wrapper img {
    transform: scale(1.2);
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 30px;
}

.slow-shine {
    animation: slowShine 8s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes slowShine {

    0%,
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.hero-section {
    overflow: hidden;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: -1px;
}

.slide-content-wrapper {
    position: relative;
    height: 550px;
    width: 100%;
}

.slide-content-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 6s ease;
}

.splide__slide.is-active .slide-content-wrapper img {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.gradient-blue {
    background: linear-gradient(90deg, rgba(45, 55, 110, 0.8) 0%, rgba(90, 111, 220, 0.4) 100%);
}

.gradient-purple {
    background: linear-gradient(90deg, rgba(120, 45, 110, 0.8) 0%, rgba(220, 90, 180, 0.4) 100%);
}

.hero-text-box {
    position: relative;
    z-index: 2;
    padding-right: 20px;
}

.fw-black {
    font-weight: 900;
}

.animate-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.splide__slide.is-active .animate-item {
    opacity: 1;
    transform: translateY(0);
}

.splide__slide.is-active .animate-item:nth-child(1) {
    transition-delay: 0.3s;
}

.splide__slide.is-active .animate-item:nth-child(2) {
    transition-delay: 0.5s;
}

.splide__slide.is-active .animate-item:nth-child(3) {
    transition-delay: 0.7s;
}

.splide__slide.is-active .animate-item:nth-child(4) {
    transition-delay: 0.9s;
}

.splide__arrow {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    width: 3rem;
    height: 3rem;
    opacity: 0;
    transition: all 0.3s;
}

.hero-splide:hover .splide__arrow {
    opacity: 1;
}

.splide__arrow svg {
    fill: white;
}

.splide__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
}

.splide__progress__bar {
    background: var(--primary-color);
    height: 4px;
    transition: width 0.1s linear;
}

@media (max-width: 768px) {
    .slide-content-wrapper {
        height: 400px;
    }

    .display-3 {
        font-size: 2rem;
    }

    /* در موبایل، مینی‌کارت بهتر است با کلیک باز شود نه هاور */
    .cart-dropdown-wrapper:hover .mini-cart-dropdown {
        opacity: 0;
        visibility: hidden;
    }

    .cart-dropdown-wrapper.active .mini-cart-dropdown {
        opacity: 1;
        visibility: visible;
    }
}

/* --- extracted from contact.html --- */
/* --- استایل‌های اختصاصی صفحه تماس با ما --- */

/* پس‌زمینه هدر بزرگ و جذاب */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0 160px;
    /* فضای زیاد پایین برای همپوشانی کارت‌ها */
    text-align: center;
    border-radius: 0 0 50% 50% / 40px;
    /* انحنای ملایم پایین */
    position: relative;
    overflow: hidden;
}

/* دایره‌های تزیینی در پس‌زمینه */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 50px;
    left: 10%;
}

/* کانتینر اصلی که روی هدر قرار می‌گیرد */
.contact-container-wrapper {
    margin-top: -100px;
    /* تکنیک همپوشانی */
    position: relative;
    z-index: 2;
}

/* کارت فرم تماس */
.contact-form-card {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(90, 111, 220, 0.15);
    height: 100%;
}

.form-control {
    background-color: #f9faff;
    border: 2px solid #edf2f9;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s;
}

.form-control:focus {
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(90, 111, 220, 0.1);
}

.form-label {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* باکس‌های اطلاعات تماس */
.info-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(90, 111, 220, 0.15);
    border-color: var(--primary-light);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h5 {
    font-weight: 800;
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.info-content p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* شبکه‌های اجتماعی */
.social-connect {
    text-align: center;
    margin-top: 30px;
}

.social-btn {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin: 0 8px;
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(10deg);
}

/* سوالات متداول */
.faq-section {
    padding: 80px 0;
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.accordion-button {
    background-color: white;
    padding: 20px;
    font-weight: 700;
    color: var(--secondary-color);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

/* --- extracted from checkout.html --- */
/* --- استایل‌های اختصاصی صفحه تسویه حساب --- */

.checkout-section-title {
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-section-title i {
    color: var(--primary-color);
    background: var(--primary-light);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1rem;
}

.form-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

/* استایل فیلدها */
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #eee;
    background-color: #fcfcfc;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(90, 111, 220, 0.1);
}

/* کارت‌های انتخاب روش ارسال/پرداخت */
.selection-card {
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    background: white;
    display: block;
    /* مهم برای کلیک‌پذیری کامل */
}

.selection-card:hover {
    border-color: #ccc;
    background: #fdfdfd;
}

/* وقتی رادیو باتن انتخاب شد (استایل کادر) */
.btn-check:checked+.selection-card {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    box-shadow: 0 5px 15px rgba(90, 111, 220, 0.15);
}

.selection-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.method-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-left: 15px;
    width: 40px;
    text-align: center;
}

.price-tag {
    font-weight: 800;
    color: var(--primary-color);
}

/* سایدبار خلاصه سفارش */
.order-summary-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
    border: 1px solid #f0f0f0;
}

.mini-product-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}

.mini-product-list::-webkit-scrollbar {
    width: 6px;
}

.mini-product-list::-webkit-scrollbar-thumb {
    background-color: #eee;
    border-radius: 10px;
}

.mini-product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f8f8f8;
}

.mini-product-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #eee;
}

.mini-product-info h6 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.mini-product-info span {
    font-size: 0.8rem;
    color: #777;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #666;
    font-size: 0.95rem;
}

.summary-total {
    border-top: 2px dashed #eee;
    margin-top: 20px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.total-amount {
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.place-order-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 18px;
    border-radius: 15px;
    width: 100%;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.3);
    transition: all 0.3s;
    margin-top: 25px;
}

.place-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(46, 204, 113, 0.4);
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

/* مراحل خرید (Stepper) */
.checkout-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.step-item {
    display: flex;
    align-items: center;
    color: #ccc;
    font-weight: 700;
    position: relative;
    padding: 0 20px;
}

.step-item.active {
    color: var(--primary-color);
}

.step-item.completed {
    color: #2ecc71;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    font-size: 0.9rem;
}

.step-item.active .step-number {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.step-item.completed .step-number {
    border-color: #2ecc71;
    background: #2ecc71;
    color: white;
}

/* --- extracted from login-register.html --- */
/* پس‌زمینه کل صفحه */
.auth-page-wrapper {
    background: linear-gradient(135deg, #f0f4ff 0%, #eef1f5 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

/* کارت اصلی */
.auth-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    width: 100%;
    display: flex;
    min-height: 550px;
}

/* بخش تصویر (سمت راست دسکتاپ) */
.auth-image-side {
    width: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px;
    overflow: hidden;
}

.auth-image-side::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.auth-image-side::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.auth-content-side {
    width: 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* فرم‌ها */
.form-title {
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.form-subtitle {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.custom-input-group {
    position: relative;
    margin-bottom: 20px;
}

.custom-input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    z-index: 10;
}

/* دکمه نمایش رمز */
.toggle-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
    z-index: 10;
}

.custom-input-group input {
    padding: 14px 45px 14px 40px;
    /* فضای خالی برای آیکون‌ها */
    border-radius: 12px;
    border: 1px solid #eee;
    background: #fcfcfc;
    width: 100%;
    transition: all 0.3s;
}

.custom-input-group input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(90, 111, 220, 0.1);
    outline: none;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    margin-top: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    transition: 0.3s;
}

.auth-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.switch-auth-link {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #666;
}

.switch-auth-link a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

/* موبایل */
@media (max-width: 768px) {
    .auth-card {
        flex-direction: column;
        max-width: 400px;
    }

    .auth-image-side {
        display: none;
        /* در موبایل تصویر حذف شود تا فرم تمیز بماند */
    }

    .auth-content-side {
        width: 100%;
        padding: 30px;
    }
}

/* کلاس کمکی برای مخفی کردن فرم‌ها */
.d-none-animated {
    display: none;
    opacity: 0;
}

.fade-in {
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- extracted from post-single.html --- */
/* --- هدر رنگی مقاله --- */
.article-header-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0 100px;
    /* فضای پایین بیشتر برای همپوشانی تصویر */
    border-radius: 0 0 50px 50px;
    text-align: center;
    position: relative;
    margin-bottom: 0;
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.article-meta span {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.article-title {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

/* --- تصویر شاخص (Featured Image) --- */
.featured-image-wrapper {
    margin-top: -70px;
    /* کشیدن تصویر به سمت بالا روی هدر */
    margin-bottom: 50px;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.featured-image {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(90, 111, 220, 0.25);
    border: 5px solid white;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.featured-image:hover img {
    transform: scale(1.02);
}

/* --- بدنه مقاله --- */
.article-content {
    font-size: 1.15rem;
    line-height: 2.1;
    color: #444;
    text-align: justify;
}

.article-content h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 45px 0 20px;
    position: relative;
    padding-right: 20px;
}

.article-content h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 35px;
    background: var(--primary-color);
    border-radius: 10px;
}

.article-content p {
    margin-bottom: 25px;
}

/* --- نقل قول گرافیکی --- */
.highlight-box {
    background: #f0f4ff;
    border-right: 5px solid var(--primary-color);
    padding: 35px;
    margin: 40px 0;
    border-radius: 20px 0 0 20px;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--secondary-color);
    position: relative;
}

.highlight-box i {
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 2rem;
    color: var(--primary-color);
    background: white;
    padding: 0 10px;
}

/* --- باکس نویسنده --- */
.author-box {
    background: white;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.author-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
}

/* --- برچسب‌ها و اشتراک --- */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 25px 0;
    margin: 40px 0;
}

.tags a {
    background: #f5f5f5;
    color: #666;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 5px;
    transition: all 0.3s;
}

.tags a:hover {
    background: var(--primary-color);
    color: white;
}

.share-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #eee;
    border-radius: 50%;
    color: #555;
    margin-right: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.share-links a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* --- نظرات --- */
.comment-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    border: 1px solid #f8f8f8;
}

/* --- سایدبار چسبان --- */
.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.widget-box {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.widget-title {
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #eee;
    color: var(--secondary-color);
}

.mini-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.mini-post img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

.mini-post h6 {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 5px;
}

.mini-post h6 a {
    color: #444;
    text-decoration: none;
    transition: 0.3s;
}

.mini-post h6 a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.6rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .featured-image-wrapper {
        margin-top: -50px;
    }
}

/* --- extracted from search-results.html --- */
/* --- استایل‌های اختصاصی صفحه نتایج جستجو --- */

/* هدر جستجو */
.search-hero {
    background: #f8f9fa;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 50px;
}

.search-hero-input {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-hero-input input {
    padding: 15px 50px 15px 20px;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
}

.search-hero-input input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 5px 25px rgba(90, 111, 220, 0.15);
}

.search-hero-input button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.search-hero-input button:hover {
    background: var(--secondary-color);
}

/* تیتر بخش‌ها */
.result-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.result-section-title::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background: #f0f0f0;
}

.result-count {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* --- کارت‌های محصول (عمودی) --- */
/* از استایل‌های shop.html استفاده می‌کند اما کمی تمیزتر */
.search-product-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.search-product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

/* --- کارت‌های بلاگ (افقی) --- */
.search-blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: stretch;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.search-blog-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transform: translateX(-5px);
}

.blog-card-img {
    width: 250px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.search-blog-card:hover .blog-card-img img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.blog-title:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* موبایل */
@media (max-width: 768px) {
    .search-blog-card {
        flex-direction: column;
    }

    .blog-card-img {
        width: 100%;
        height: 200px;
    }
}

/* --- extracted from shop-single.html --- */
/* استایل‌های اختصاصی این صفحه */
.product-single-header {
    background: linear-gradient(135deg, #f8faff 0%, #eef0fb 100%);
    padding: 40px 0;
    margin-bottom: 40px;
    border-radius: 0 0 30px 30px;
}

.product-main-image {
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(90, 111, 220, 0.15);
    cursor: zoom-in;
    position: relative;
}

.product-main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-main-image:hover img {
    transform: scale(1.05);
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}

.product-thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(90, 111, 220, 0.15);
    height: 100%;
}

.product-title-single {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.rating-count {
    color: #777;
    font-size: 0.9rem;
}

.product-price-single {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.old-price {
    font-size: 1.2rem;
    color: #bbb;
    text-decoration: line-through;
    display: block;
    margin-bottom: 5px;
}

.discount-badge {
    background: #ff3e3e;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
}

.product-description-single {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1rem;
}

.product-meta {
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #666;
}

.meta-icon {
    width: 30px;
    color: var(--primary-color);
}

.color-options {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.color-option-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.color-option-circle.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.color-option-circle.active:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.size-options {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.size-option {
    padding: 8px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    background: white;
}

.size-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-add-to-cart {
    flex-grow: 1;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-wishlist {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    border: 2px solid #eee;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-wishlist:hover,
.btn-wishlist.active {
    background: #ff3e3e;
    color: white;
    border-color: #ff3e3e;
}

.product-tabs {
    margin-top: 60px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(90, 111, 220, 0.1);
}

.tab-nav {
    display: flex;
    background: var(--primary-light);
    border-bottom: 2px solid #eee;
}

.tab-link {
    padding: 20px 30px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    text-decoration: none;
    display: block;
}

.tab-link.active {
    color: var(--primary-color);
    background: white;
}

.tab-link.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table tr {
    border-bottom: 1px solid #eee;
}

.specifications-table td {
    padding: 15px 10px;
}

.specifications-table td:first-child {
    font-weight: 600;
    color: var(--secondary-color);
    width: 30%;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding: 25px 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.review-text {
    color: #555;
    line-height: 1.8;
}

.related-products-section {
    margin-top: 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary-color);
    border-right: 4px solid var(--primary-color);
    padding-right: 15px;
}

.delivery-info {
    background: var(--primary-light);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.delivery-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.delivery-text {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.share-text {
    color: #666;
    font-weight: 600;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.share-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .product-title-single {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.6rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-wishlist {
        width: 100%;
    }

    /* استایل تب‌ها در موبایل */
    .tab-nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 10px 15px;
        background: var(--primary-light);
        border-bottom: 2px solid #eee;
    }

    .tab-nav::-webkit-scrollbar {
        display: none;
    }

    .tab-link {
        padding: 12px 20px;
        font-weight: 600;
        color: #666;
        cursor: pointer;
        transition: all 0.3s;
        position: relative;
        text-decoration: none;
        display: block;
        white-space: nowrap;
        border-radius: 10px;
        margin: 0 5px;
        background: white;
        border: 2px solid transparent;
        flex-shrink: 0;
    }

    .tab-link:hover {
        color: var(--primary-color);
    }

    .tab-link.active {
        color: var(--primary-color);
        background: white;
        border-color: var(--primary-color);
        box-shadow: 0 3px 10px rgba(90, 111, 220, 0.15);
    }

    .tab-link.active:after {
        display: none;
    }

    .tab-content {
        padding: 20px;
    }
}

/* --- extracted from 404.html --- */
/* --- استایل‌های اختصاصی صفحه 404 --- */
.error-page-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #fff 0%, #f0f4ff 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

/* حباب‌های تزیینی پس‌زمینه */
.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: floatUp 15s infinite linear;
    z-index: 1;
}

.b1 {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    left: 10%;
    bottom: -100px;
}

.b2 {
    width: 150px;
    height: 150px;
    background: #ffe5e5;
    right: 5%;
    bottom: -150px;
    animation-duration: 20s;
}

.b3 {
    width: 50px;
    height: 50px;
    background: #e0f7fa;
    left: 20%;
    bottom: -60px;
    animation-duration: 12s;
}

.error-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 600px;
}

/* عدد 404 بزرگ */
.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0px var(--primary-light);
    animation: floating 3s ease-in-out infinite;
}

/* تصویر خرس */
.error-image {
    width: 280px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 30px;
    box-shadow: 0 20px 50px rgba(90, 111, 220, 0.2);
    border: 8px solid white;
    animation: floating 4s ease-in-out infinite reverse;
    /* حرکت برعکس عدد */
}

.error-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.error-desc {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* انیمیشن شناور شدن */
@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

.btn-home {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(90, 111, 220, 0.3);
    transition: all 0.3s;
}

.btn-home:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(90, 111, 220, 0.4);
}

/* جستجو در 404 */
.error-search {
    max-width: 400px;
    margin: 0 auto 30px;
    position: relative;
}

.error-search input {
    border-radius: 50px;
    padding: 12px 20px;
    padding-left: 50px;
    background: white;
    border: 2px solid #eee;
}

.error-search button {
    position: absolute;
    left: 5px;
    top: 5px;
    bottom: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- extracted from forgot-password.html --- */
/* استایل‌های اختصاصی صفحه فراموشی رمز */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.forgot-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
}

.custom-input {
    padding: 15px;
    border-radius: 12px;
    background: #fcfcfc;
    border: 1px solid #eee;
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.custom-input:focus {
    border-color: var(--primary-color);
    outline: none;
    background: white;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 700;
    margin-bottom: 15px;
    transition: 0.3s;
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* استایل تایمر */
.timer-box {
    font-size: 0.9rem;
    color: #666;
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
}

/* --- extracted from order-complete.html --- */
/* --- استایل‌های اختصاصی صفحه وضعیت سفارش --- */
.status-card {
    background: white;
    border-radius: 25px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

/* آیکون وضعیت */
.status-icon-box {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 3rem;
    position: relative;
    z-index: 2;
}

.status-success {
    background-color: #e6f9ed;
    color: #2ecc71;
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.2);
    animation: bounceIn 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.status-failed {
    background-color: #fde8e8;
    color: #e74c3c;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.2);
    animation: shake 0.5s;
}

/* جزئیات سفارش */
.order-details-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    border: 1px dashed #ddd;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 0.95rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span:last-child {
    font-weight: 700;
    color: var(--secondary-color);
}

/* دکمه‌ها */
.action-btn {
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s;
}

/* انیمیشن‌ها */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* دکمه‌های تست (فقط برای حالت استاتیک) */
.dev-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 10px;
    z-index: 9999;
}

.img-fluid {
    max-width: 95px;
}

/* ======================================================== */
/* --- Premium Add to Cart Button Styles --- */
/* ======================================================== */

.woocommerce button.button.alt,
.woocommerce a.button.add_to_cart_button,
.single_add_to_cart_button,
.woocommerce button.button.single_add_to_cart_button,
#quickViewContent button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    /* شکل قرصی لوکس */
    padding: 12px 35px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    box-shadow: 0 8px 20px rgba(90, 111, 220, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 160px;
}

/* آیکون برای دکمه‌های متنی (Pseudo-element) */
.single_add_to_cart_button::before,
#quickViewContent button[type="submit"]::before {
    content: '\f07a';
    /* FontAwesome Cart Icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.1rem;
    transition: transform 0.4s ease;
}

/* Hover Effect */
.woocommerce button.button.alt:hover,
.woocommerce a.button.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.woocommerce button.button.single_add_to_cart_button:hover,
#quickViewContent button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--secondary-color)) !important;
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 15px 30px rgba(90, 111, 220, 0.4) !important;
}

.woocommerce button.button.alt:hover::before,
.single_add_to_cart_button:hover::before,
#quickViewContent button[type="submit"]:hover::before {
    transform: translateX(5px) rotate(-10deg);
}

/* Active/Click Effect */
.woocommerce button.button.alt:active,
.single_add_to_cart_button:active,
#quickViewContent button[type="submit"]:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 10px rgba(90, 111, 220, 0.2) !important;
}

/* Loading State (WooCommerce adds 'loading' class) */
.woocommerce button.button.alt.loading {
    opacity: 0.8;
    cursor: wait;
}

.woocommerce button.button.alt.loading::after {
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
}

/* اصلاح دکمه‌های کوچک در کاروسل‌ها یا لیست‌ها اگر متنی هستند */
.woocommerce ul.products li.product .button {
    margin-top: 10px;
    border-radius: 12px !important;
    /* گردی کمتر برای دکمه‌های کوچک */
    padding: 8px 20px !important;
    font-size: 0.9rem !important;
}

/* ======================================================== */
/* --- Premium Product Variations & Quantity Styles --- */
/* ======================================================== */

/* کانتینر فرم متغیرها */
.woocommerce div.product form.cart .variations {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: separate;
    border-spacing: 0 15px;
    /* فاصله بین ردیف‌ها */
}

.woocommerce div.product form.cart .variations th {
    text-align: right;
    vertical-align: middle;
    padding-left: 15px;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.95rem;
    width: 80px;
    /* عرض ثابت برای لیبل‌ها */
}

@media (max-width: 576px) {
    .woocommerce div.product form.cart .variations th {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }

    .woocommerce div.product form.cart .variations td {
        display: block;
        width: 100%;
    }
}

/* استایل دراپ‌داون‌ها (Select Box) */
.woocommerce div.product form.cart .variations select {
    width: 100%;
    padding: 10px 15px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: white;
    border: 2px solid #eef0fb;
    border-radius: 12px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);

    /* مخفی کردن فلش پیش‌فرض و استفاده از فلش سفارشی */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6fdc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 16px;
}

.woocommerce div.product form.cart .variations select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(90, 111, 220, 0.1);
}

.woocommerce div.product form.cart .variations select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(90, 111, 220, 0.1);
}

/* استایل فیلد تعداد (Quantity) */
/* استایل فیلد تعداد (Quantity) - یکپارچه با دکمه‌ها */
.woocommerce div.product form.cart .quantity,
#quickViewContent .quantity {
    display: inline-flex;
    align-items: center;
    background: white;
    border: 2px solid #eef0fb;
    border-radius: 50px;
    /* شکل قرصی */
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    margin-left: 15px;
    height: 50px;
    /* ارتفاع فیکس */
    min-width: 140px;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.woocommerce div.product form.cart .quantity:hover,
#quickViewContent .quantity:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(90, 111, 220, 0.1);
}

/* اینپوت عدد وسط */
.woocommerce div.product form.cart .quantity input.qty,
#quickViewContent .quantity input.qty {
    width: 50px;
    height: 100%;
    padding: 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
    -moz-appearance: textfield;
}

.woocommerce div.product form.cart .quantity input.qty:focus,
#quickViewContent .quantity input.qty:focus {
    outline: none;
}

/* دکمه‌های کناری */
.qty-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: #f8f9fa;
    color: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.qty-btn i {
    pointer-events: none;
    /* جلوگیری از کلیک روی آیکون */
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-plus {
    order: 3;
    /* سمت راست */
}

.qty-minus {
    order: 1;
    /* سمت چپ */
}

.woocommerce div.product form.cart .quantity input.qty,
#quickViewContent .quantity input.qty {
    order: 2;
    /* وسط */
}

/* فاصله‌دهی کانتینر دکمه و تعداد */
.woocommerce div.product form.cart,
#quickViewContent form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

/* استایل متغیرها در مودال */
#quickViewContent .variations {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: separate;
    border-spacing: 0 10px;
}

/* Custom View Cart Button in Single Product */
.btn-view-cart {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(90, 111, 220, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px !important;
}

.btn-view-cart:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(90, 111, 220, 0.25);
}

.btn-view-cart:active {
    transform: translateY(0);
}

.btn-view-cart i {
    font-size: 1.1em;
}


.woocommerce div.product .variations td.label,
#quickViewContent .variations td.label {
    text-align: right;
    vertical-align: middle;
    padding-left: 15px;
    padding-bottom: 10px;
    font-weight: 700;
    color: var(--secondary-color);
}

.woocommerce div.product .variations td.value,
#quickViewContent .variations td.value {
    padding-bottom: 10px;
    position: relative;
}

.woocommerce div.product .variations select,
#quickViewContent .variations select {
    width: 100%;
    padding: 10px 15px;
    border-radius: 12px;
    border: 2px solid #eef0fb;
    outline: none;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6FDC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 16px;
    padding-left: 40px;
    /* Space for the custom arrow */
}

.woocommerce div.product .variations select:hover,
#quickViewContent .variations select:hover {
    border-color: #dbe0fd;
    background-color: #ffffff;
}

.woocommerce div.product .variations select:focus,
#quickViewContent .variations select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(90, 111, 220, 0.1);
    background-color: #ffffff;
}

/* Style the "Clear" (Reset) variations link */
.woocommerce div.product .variations .reset_variations,
#quickViewContent .variations .reset_variations {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #ef4444;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 12px;
    background: #fef2f2;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.woocommerce div.product .variations .reset_variations:hover,
#quickViewContent .variations .reset_variations:hover {
    background: #fee2e2;
    color: #dc2626;
}

@media (max-width: 576px) {

    .woocommerce div.product form.cart,
    #quickViewContent form.cart {
        flex-direction: column;
        align-items: stretch;
    }

    .woocommerce div.product form.cart .quantity,
    #quickViewContent .quantity {
        margin-left: 0;
        width: 100%;
        margin-bottom: 10px;
    }

    .woocommerce div.product form.cart .quantity input.qty,
    #quickViewContent .quantity input.qty {
        width: 100%;
        border-radius: 15px;
        /* در موبایل کمی مستطیلی‌تر برای همخوانی با عرض */
    }

    .single_add_to_cart_button,
    #quickViewContent .single_add_to_cart_button {
        width: 100%;
    }

}

/* ======================================================== */
/* --- GRID FIXES (CRITICAL OVERRIDE) --- */
/* ======================================================== */

/* Force Flex Row behavior on the container */
.products-grid .row {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    margin-right: -15px;
    margin-left: -15px;
}

/* Ensure columns respect their percentage widths */
/* Desktop (Large): 4 items per row */
@media (min-width: 992px) {

    .products-grid .product,
    .products-grid .product.col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }
}

/* Tablet (Medium): 3 items per row */
@media (min-width: 768px) and (max-width: 991px) {

    .products-grid .product,
    .products-grid .product.col-md-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }
}

/* Mobile: 2 items per row */
@media (max-width: 767px) {

    .products-grid .product,
    .products-grid .product.col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}

/* Fix Card inner styling to fill height but not force width */
.product-card {
    width: 100%;
    background: #fff;
    border: 1px solid #eef0fb;
    border-radius: 15px;
    transition: all 0.3s ease;
}

/* --- Price Slider Fixes --- */
.price-slider-wrapper {
    height: 40px;
    direction: rtl;
    /* RTL: right=min, left=max */
    margin-bottom: 20px;
    padding: 0 10px;
}

/* Slider Track */
.slider-track {
    background: #e9ecef !important;
    top: 50%;
    transform: translateY(-50%);
}

.slider-range {
    background: var(--primary-color) !important;
    top: 50%;
    transform: translateY(-50%);
}

/* Base input styling */
input[type="range"].form-range {
    background: transparent;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    height: 40px;
    pointer-events: none;
    /* Disable input clicks, only thumbs are clickable */
}

/* Min slider on top for right-side interaction */
.price-range-min {
    z-index: 100;
}

/* Max slider below */
.price-range-max {
    z-index: 95;
}

/* Handles - WebKit */
input[type="range"].form-range::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    pointer-events: auto;
    /* Enable thumb clicks */
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff !important;
    border: 3px solid var(--primary-color) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    cursor: grab;
    margin-top: -9px;
    position: relative;
}

/* Handles - Firefox */
input[type="range"].form-range::-moz-range-thumb {
    -moz-appearance: none !important;
    appearance: none !important;
    pointer-events: auto;
    /* Enable thumb clicks */
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff !important;
    border: 3px solid var(--primary-color) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    cursor: grab;
}

/* Remove default track styling */
input[type="range"].form-range::-webkit-slider-runnable-track {
    background: transparent;
    height: 6px;
}

input[type="range"].form-range::-moz-range-track {
    background: transparent;
    height: 6px;
}

/* ======================================== */
/* WooCommerce Single Product Page Styling */
/* ======================================== */

/* Product Gallery Enhancement */
.woocommerce-product-gallery {
    padding: 0;
    margin: 0;
}

.woocommerce-product-gallery__wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.woocommerce-product-gallery__image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(90, 111, 220, 0.15);
    transition: transform 0.3s ease;
}

.woocommerce-product-gallery__image:hover {
    transform: scale(1.02);
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding: 0;
    list-style: none;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 calc(25% - 8px);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.woocommerce-product-gallery .flex-control-thumbs li:hover,
.woocommerce-product-gallery .flex-control-thumbs li.flex-active {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(90, 111, 220, 0.3);
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

/* WooCommerce Tabs Override */
.woocommerce-tabs {
    margin-top: 60px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(90, 111, 220, 0.1);
}

.woocommerce-tabs .wc-tabs {
    display: flex;
    background: var(--primary-light);
    border-bottom: 2px solid #eee;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
}

.woocommerce-tabs .wc-tabs li {
    margin: 0;
}

.woocommerce-tabs .wc-tabs li a {
    padding: 20px 30px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.woocommerce-tabs .wc-tabs li a:hover {
    color: var(--primary-color);
}

.woocommerce-tabs .wc-tabs li.active a {
    color: var(--primary-color);
    background: white;
}

.woocommerce-tabs .wc-tabs li.active a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.woocommerce-tabs .wc-tab {
    padding: 30px;
}

.woocommerce-tabs .wc-tab h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    border-right: 4px solid var(--primary-color);
    padding-right: 15px;
}

.woocommerce-tabs .wc-tab p {
    color: #555;
    line-height: 2;
    margin-bottom: 15px;
}

/* WooCommerce Reviews Section */
#reviews {
    padding: 30px;
}

#reviews h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    border-right: 4px solid var(--primary-color);
    padding-right: 15px;
}

#reviews .commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

#reviews .commentlist li {
    border-bottom: 1px solid #eee;
    padding: 25px 0;
}

#reviews .commentlist li:last-child {
    border-bottom: none;
}

#reviews .comment_container {
    display: flex;
    gap: 20px;
}

#reviews .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--primary-light);
}

#reviews .comment-text {
    flex-grow: 1;
}

#reviews .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#reviews .meta .woocommerce-review__author {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

#reviews .meta .woocommerce-review__dash {
    display: none;
}

#reviews .meta .woocommerce-review__published-date {
    color: #999;
    font-size: 0.9rem;
}

#reviews .star-rating {
    font-size: 14px;
    color: #ffc107;
    margin-bottom: 10px;
}

#reviews .description p {
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* Review Form */
#review_form_wrapper {
    margin-top: 40px;
    padding: 30px;
    background: var(--primary-light);
    border-radius: 15px;
}

#review_form_wrapper h3 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

#review_form_wrapper .comment-form-rating {
    margin-bottom: 20px;
}

#review_form_wrapper .comment-form-rating label {
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

#review_form_wrapper .stars {
    display: flex;
    gap: 5px;
}

#review_form_wrapper .stars a {
    font-size: 24px;
    color: #ddd;
    text-decoration: none;
}

#review_form_wrapper .stars a.active,
#review_form_wrapper .stars a:hover {
    color: #ffc107;
}

#review_form_wrapper .comment-form-comment textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s;
}

#review_form_wrapper .comment-form-comment textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

#review_form_wrapper .form-submit button,
#review_form_wrapper .form-submit input[type="submit"] {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#review_form_wrapper .form-submit button:hover,
#review_form_wrapper .form-submit input[type="submit"]:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Additional Information Table (Specifications) */
.woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-product-attributes tr {
    border-bottom: 1px solid #eee;
}

.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
    padding: 15px 10px;
    text-align: right;
}

.woocommerce-product-attributes th {
    font-weight: 600;
    color: var(--secondary-color);
    width: 35%;
    background: var(--primary-light);
}

.woocommerce-product-attributes td {
    color: #555;
}

/* Level Up Badge - Move Lower */
.nimvajabi-level-badge,
.level-up-badge {
    margin-top: 20px !important;
}

/* Mobile Responsive for Single Product */
@media (max-width: 768px) {
    .woocommerce-tabs .wc-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .woocommerce-tabs .wc-tabs li a {
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    .woocommerce-tabs .wc-tab {
        padding: 20px;
    }

    #reviews .comment_container {
        flex-direction: column;
        gap: 15px;
    }

    #reviews .avatar {
        width: 50px;
        height: 50px;
    }

    .woocommerce-product-gallery .flex-control-thumbs li {
        flex: 0 0 calc(25% - 8px);
    }

    .woocommerce-product-gallery .flex-control-thumbs li img {
        height: 60px;
    }
}

/* ======================================== */
/* WooCommerce Breadcrumb Styling */
/* ======================================== */
.product-single-header {
    background: linear-gradient(135deg, #f8faff 0%, #eef0fb 100%);
    padding: 15px 0;
    margin-bottom: 25px;
    border-radius: 0 0 20px 20px;
}

.woocommerce-breadcrumb {
    font-size: 0.9rem;
    color: #666;
    padding: 0;
    margin: 0;
}

.woocommerce-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.woocommerce-breadcrumb a:hover {
    color: var(--secondary-color);
}

.woocommerce-breadcrumb a::before {
    content: '\f015';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 5px;
    display: none;
}

.woocommerce-breadcrumb a:first-child::before {
    display: inline-block;
}

/* WooCommerce Gallery Fix - Ensure thumbnails work */
.woocommerce-product-gallery {
    max-width: 100% !important;
}

.woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    display: block !important;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image {
    display: block !important;
}

.woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important;
    gap: 10px;
    margin-top: 15px;
    padding: 0;
    list-style: none;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 calc(25% - 8px);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.woocommerce-product-gallery .flex-control-thumbs li:hover,
.woocommerce-product-gallery .flex-control-thumbs li.flex-active {
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 5px 15px rgba(90, 111, 220, 0.3);
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

/* FlexSlider Fixes */
.woocommerce-product-gallery .flex-viewport {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(90, 111, 220, 0.15);
}

.woocommerce-product-gallery .flex-direction-nav {
    display: none;
}

/* Ensure Photoswipe trigger works */
.woocommerce-product-gallery__trigger {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.woocommerce-product-gallery__trigger:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Fix WooCommerce Tabs horizontal scroll */
.woocommerce-tabs .wc-tabs {
    overflow-x: hidden !important;
    flex-wrap: wrap !important;
}

.woocommerce-tabs .wc-tabs li a {
    white-space: normal !important;
}

@media (max-width: 576px) {
    .woocommerce-tabs .wc-tabs li a {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
}

/* Force Hide Star Ratings */
.star-rating,
.comment-form-rating,
.woocommerce-product-rating,
.rating-count {
    display: none !important;
}

/* ======================================== */
/* Cart & Checkout Page Styling */
/* ======================================== */

/* Cart Page Buttons */
.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.woocommerce-cart .button[name="update_cart"],
.woocommerce-cart .coupon .button {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce-cart .button[name="update_cart"]:hover,
.woocommerce-cart .coupon .button:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-2px) !important;
}

/* Cart Remove Button - More Visible */
.woocommerce-cart .product-remove a.remove {
    background: transparent !important;
    color: #dc3545 !important;
    border: 2px solid #dc3545 !important;
    border-radius: 8px !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    transition: all 0.3s !important;
}

.woocommerce-cart .product-remove a.remove:hover {
    background: #dc3545 !important;
    color: white !important;
}

/* Checkout Page Place Order Button */
.woocommerce-checkout #place_order {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 15px 40px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    width: 100% !important;
    transition: all 0.3s !important;
}

.woocommerce-checkout #place_order:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(90, 111, 220, 0.3) !important;
}

/* ======================================== */
/* Blog Archive & Single Post Styling */
/* ======================================== */

/* Blog Post Cards */
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(90, 111, 220, 0.2);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-card .entry-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.blog-card .entry-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card .entry-title a:hover {
    color: var(--primary-color);
}

.blog-card .entry-summary {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Single Post Content - Image Containment */
.single-post-card {
    overflow: hidden;
}

.content-wrapper .entry-content img,
.single-post-card .entry-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 20px auto !important;
    border-radius: 10px;
}

.content-wrapper .entry-content figure,
.single-post-card .entry-content figure {
    max-width: 100% !important;
    margin: 20px 0 !important;
}

.content-wrapper .entry-content figure img,
.single-post-card .entry-content figure img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Better Typography for Blog */
.single-post-card .entry-content p {
    margin-bottom: 1.5rem;
    line-height: 2;
}

.single-post-card .entry-content h2,
.single-post-card .entry-content h3,
.single-post-card .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Archive Page Header */
.page-header {
    background: linear-gradient(135deg, #f8faff 0%, #eef0fb 100%);
    padding: 40px 0;
    border-radius: 0 0 20px 20px;
}

.page-title {
    color: var(--secondary-color);
    font-weight: 800;
}

.page-subtitle {
    color: #666;
    margin-top: 10px;
}

/* Archive Page Container Width Control */
.blog .container,
.archive .container {
    max-width: 1400px;
}

/* Ensure 3 columns on desktop */
.blog .row.g-4>div,
.archive .row.g-4>div {
    flex: 0 0 auto;
}

@media (min-width: 992px) {

    .blog .col-lg-4,
    .archive .col-lg-4 {
        width: 33.333333% !important;
    }
}

/* ============================================
   CHECKOUT PAGE - SUBMIT BUTTON STYLING
   ============================================ */

/* Place Order Button - WooCommerce Default */
#place_order,
#place_order_desktop,
.woocommerce-checkout #payment button#place_order,
button[name="woocommerce_checkout_place_order"] {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    background: var(--bs-primary) !important;
    border: none !important;
    color: white !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3) !important;
    cursor: pointer !important;
    margin-top: 1.5rem !important;
    position: relative !important;
    overflow: hidden !important;
}

#place_order:hover,
#place_order_desktop:hover,
.woocommerce-checkout #payment button#place_order:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5) !important;
    filter: brightness(1.1) !important;
}

#place_order:active,
#place_order_desktop:active,
.woocommerce-checkout #payment button#place_order:active {
    transform: translateY(-1px) !important;
}



/* Payment Box Styling */
.woocommerce-checkout #payment {
    background: #f8f9fa !important;
    border-radius: 15px !important;
    padding: 2rem !important;
    margin-top: 2rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    border: none !important;
    padding: 1rem 0 !important;
}

.woocommerce-checkout #payment div.payment_box {
    background: white !important;
    border-radius: 10px !important;
    padding: 1.5rem !important;
    margin: 1rem 0 !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    #place_order,
    .wc-block-components-checkout-place-order-button {
        padding: 1rem 1.5rem !important;
        font-size: 1.1rem !important;
        position: sticky !important;
        bottom: 0 !important;
        z-index: 999 !important;
        margin: 1rem -15px 0 -15px !important;
        width: calc(100% + 30px) !important;
        border-radius: 0 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
    }

    .woocommerce-checkout #payment {
        padding: 1rem !important;
        margin-bottom: 80px !important;
    }
}



/* Desktop - Button positioning and layout */
/* Desktop - Button positioning and layout */
@media (min-width: 769px) {

    /* Show original button in payment section */
    .woocommerce-checkout #payment #place_order {
        /* display: none !important; Removed to prevent hiding */
    }

    /* ACTIONS CONTAINER */
    .nimvajabi-place-order-desktop {
        width: 100%;
        margin-top: 2rem;
        clear: both;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    /* Place Order Button - Desktop Clone */
    #place_order_desktop {
        display: block !important;
        width: 100% !important;
        /* No margin-bottom needed because container has gap */
    }

    /* Back to cart/shop button if present */
    .woocommerce-checkout a.button.wc-backward,
    .woocommerce-checkout .return-to-cart-btn {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        background: transparent !important;
        color: #666 !important;
        border: 2px solid #ddd !important;
        border-radius: 50px !important;
        padding: 0.8rem 2rem !important;
    }

    .woocommerce-checkout a.button.wc-backward:hover,
    .woocommerce-checkout .return-to-cart-btn:hover {
        background: #f8f9fa !important;
        border-color: #999 !important;
        color: #333 !important;
        transform: none !important;
        box-shadow: none !important;
    }
}



/* Loading State */
#place_order.loading,
.wc-block-components-checkout-place-order-button.is-busy {
    opacity: 0.7 !important;
    cursor: wait !important;
}

#place_order.loading::after {
    content: "" !important;
    position: absolute !important;
    width: 20px !important;
    height: 20px !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    border-top-color: white !important;
    animation: spin 1s linear infinite !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* ============================================
   SINGLE PRODUCT PAGE STYLING
   ============================================ */
/* Modern Sale Badge */
.woocommerce span.onsale {
    min-height: auto !important;
    min-width: auto !important;
    padding: 6px 16px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #FF5252 0%, #ff0000 100%) !important;
    color: white !important;
    border-radius: 8px !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    line-height: 1.5 !important;
    box-shadow: 0 4px 10px rgba(255, 82, 82, 0.4) !important;
    z-index: 10 !important;
}

/* Variable Products Form Styling */
.woocommerce div.product form.cart.variations_form {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 25px;
}

.woocommerce div.product table.variations {
    width: 100%;
    margin-bottom: 20px;
}

.woocommerce div.product table.variations tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.woocommerce div.product table.variations th {
    text-align: right;
    padding: 0 0 8px 0;
    color: #444;
    font-weight: 600;
    font-size: 0.95rem;
}

.woocommerce div.product table.variations td {
    padding: 0;
}

.woocommerce div.product table.variations select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 50px;
    background-color: #fff;
    color: #555;
    font-size: 0.95rem;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23888" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: left 15px center;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s;
}

.woocommerce div.product table.variations select:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.woocommerce div.product table.variations .reset_variations {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--bs-danger);
    text-decoration: none;
}

/* Bottom wrap styling */
.woocommerce div.product .single_variation_wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.woocommerce div.product .woocommerce-variation-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 10px;
}

.woocommerce div.product .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Reset quantity input look inside variations to match simple products */
.woocommerce div.product .woocommerce-variation-add-to-cart .quantity {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 5px;
    width: auto;
    margin: 0;
}

.woocommerce div.product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    flex: 1;
    min-width: 200px;
    padding: 12px 25px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #8a2be2 100%);
    border: none;
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.woocommerce div.product .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

/* ============================================
   GLOBAL NUMBER DIRECTION FIX (RTL OVERRIDE)
   ============================================ */
/* Ensure prices and numbers always render LTR to prevent comma/digit flipping, 
   but display as inline-flex to keep the currency symbol on the correct side */
.woocommerce-Price-amount,
bdi,
.price amount {
    display: inline-flex !important;
    flex-direction: row-reverse !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    align-items: center;
    gap: 4px;
    /* Space between number and currency */
}

/* Keep the currency symbol styled correctly */
.woocommerce-Price-currencySymbol {
    direction: rtl !important;
    margin-right: 4px;
}

/* ============================================
   CUSTOM TOAST NOTIFICATION STYLES
   ============================================ */
#nimvajabi-toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}

.nimvajabi-toast {
    background: #ffffff;
    color: #333;
    padding: 12px 20px 12px 15px;
    border-radius: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    /* Increased shadow */
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 90vw;
    text-align: right;
    direction: rtl;
    border-right: 4px solid #ff4757;
}

/* Mobile specific styling: to force a taller, narrower shape */
@media (max-width: 768px) {
    .nimvajabi-toast {
        max-width: 80vw;
        border-radius: 25px;
        /* Adjust radius for multiline */
        padding: 15px 20px;
    }
}

.nimvajabi-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.nimvajabi-toast .toast-icon {
    color: #ff4757;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nimvajabi-toast .toast-content {
    line-height: 1.5;
}

/* ============================================
   WOOCOMMERCE PRODUCT GALLERY REDESIGN
   ============================================ */
/* Main Gallery Wrapper */
.woocommerce-product-gallery {
    position: relative;
    margin-bottom: 2rem;
}

/* Main Image Styling */
.woocommerce-product-gallery__image:first-child {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    margin-bottom: 1rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    background: #fff;
}

/* This applies to the first child which is usually the main image div */

.woocommerce-product-gallery__image:first-child a img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Subtle zoom on hover for main image */
.woocommerce-product-gallery__image:first-child:hover a img {
    transform: scale(1.03);
}

/* Thumbnails Wrapper (Flexbox Horizontal Scroll) */
.woocommerce-product-gallery .flex-control-thumbs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex !important;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    scrollbar-width: none;
    /* Firefox */
}

.woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

/* Individual Thumbnail Items */
.woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 calc(25% - 9px);
    /* Show exactly 4 items by default with gap calculation (3 gaps of 12px / 4) */
    max-width: 100px;
    /* Prevent them from getting too huge on large screens */
    cursor: pointer;
}

/* Thumbnail Images */
.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0.5;
    /* Dim inactive thumbnails */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    /* Placeholder for active border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Hover & Active States for Thumbnails */
.woocommerce-product-gallery .flex-control-thumbs li img:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    opacity: 1;
    border-color: var(--bs-primary, #a855f7);
    /* Purple primary color */
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(168, 85, 247, 0.2);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .woocommerce-product-gallery__image:first-child {
        border-radius: 16px;
        /* Slightly smaller radius on mobile */
    }

    .woocommerce-product-gallery .flex-control-thumbs li {
        flex: 0 0 calc(33.333% - 8px);
        /* Try to show ~3 thumbnails comfortably */
        max-width: 80px;
    }
}