/*
 * Nova Theme — Main CSS
 * Version: 39.0.0
 * Clean & Optimized
 * - هدر یکپارچه: لوگو + جستجو کنار هم (موبایل و دسکتاپ)
 * - منو فقط دسکتاپ
 * - محصولات مرتبط با کلاس‌های جدید nrp-*
 * - گرید موازی محصولات (فروشگاه + صفحه اصلی + جستجو)
 * - صفحه‌بندی گرافیکی یکپارچه
 * - breadcrumb گرافیکی (افقی با فاصله از هدر)
 * - حذف کامل تداخل‌های تکراری
 */

/* =========================================================
   ROOT
========================================================= */

:root {
    --nova-primary: #dc2626;
    --nova-primary-dark: #b91c1c;
    --nova-primary-soft: #fff1f2;
    --nova-dark: #171717;
    --nova-text: #303030;
    --nova-muted: #777;
    --nova-light: #f6f6f6;
    --nova-white: #fff;
    --nova-border: #e7e7e7;
    --nova-border-soft: #eeeeee;
    --nova-success: #16a34a;
    --nova-warning: #f59e0b;
    --nova-radius-sm: 6px;
    --nova-radius: 10px;
    --nova-radius-lg: 14px;
    --nova-shadow-sm: 0 2px 8px rgba(0, 0, 0, .04);
    --nova-shadow: 0 5px 20px rgba(0, 0, 0, .06);
    --nova-transition: all .2s ease;
}

/* =========================================================
   GENERAL
========================================================= */

html { scroll-behavior: smooth; }

body {
    background: #f7f7f7;
    color: var(--nova-text);
    font-size: 14px;
    line-height: 2;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

button, input, select, textarea { font-family: inherit; }

a {
    transition: var(--nova-transition);
    color: inherit;
    text-decoration: none;
}

a:hover { color: var(--nova-primary); }

button { cursor: pointer; }

ul, ol { list-style: none; margin: 0; padding: 0; }

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e7e7e7 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

.site-header .container {
    max-width: 1300px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
}

.header-main {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    min-height: 68px !important;
    height: auto !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    flex-wrap: nowrap !important;
}

.site-branding {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: 200px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.site-branding img,
.site-branding .custom-logo {
    display: block !important;
    max-height: 48px !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.site-title-text {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #dc2626 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: color 0.2s ease !important;
}

.site-title-text:hover { color: #b91c1c !important; }

.header-search {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    max-width: 550px !important;
    min-width: 0 !important;
    margin: 0 auto 0 0 !important;
    padding: 0 !important;
    height: auto !important;
}

.header-search form,
.header-search .search-form {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.header-search .input-group {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 42px !important;
    background: #f6f6f6 !important;
    border: 1px solid #e7e7e7 !important;
    border-radius: 50px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.25s ease !important;
}

.header-search .input-group:focus-within {
    background: #ffffff !important;
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08) !important;
}

.header-search input[type="search"],
.header-search input[type="text"],
.header-search .search-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 0 18px !important;
    border: 0 !important;
    background: transparent !important;
    font-family: inherit !important;
    font-size: 13px !important;
    color: #1f2937 !important;
    outline: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.header-search input[type="search"]::placeholder { color: #999 !important; }

.header-search .search-submit,
.header-search button[type="submit"] {
    flex: 0 0 auto !important;
    height: 100% !important;
    padding: 0 16px !important;
    border: 0 !important;
    background: transparent !important;
    color: #777 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    transition: color 0.2s ease !important;
}

.header-search .search-submit:hover,
.header-search button[type="submit"]:hover { color: #dc2626 !important; }

.main-nav-desktop {
    flex: 0 0 auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.main-nav-desktop .nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-nav-desktop .nav-menu li a {
    display: block !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

.main-nav-desktop .nav-menu li a:hover {
    color: #dc2626 !important;
    background: #fef2f2 !important;
}

@media (max-width: 991px) {
    .header-main {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 10px !important;
        min-height: 60px !important;
        padding: 10px 0 !important;
    }

    .site-branding {
        flex: 0 0 auto !important;
        max-width: 40% !important;
        width: auto !important;
    }

    .site-branding img,
    .site-branding .custom-logo { max-height: 42px !important; }

    .site-title-text { font-size: 1.1rem !important; }

    .header-search {
        flex: 1 1 auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .header-search .input-group { height: 40px !important; }

    .header-search input[type="search"],
    .header-search input[type="text"] {
        padding: 0 14px !important;
        font-size: 12.5px !important;
    }

    .header-search .search-submit,
    .header-search button[type="submit"] { padding: 0 12px !important; }

    .main-nav-desktop { display: none !important; }
}

@media (max-width: 767px) {
    .site-header .container { padding: 0 12px !important; }

    .header-main {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 10px !important;
        min-height: 56px !important;
        padding: 8px 0 !important;
    }

    .site-branding {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 38% !important;
    }

    .site-branding img,
    .site-branding .custom-logo { max-height: 38px !important; }

    .site-title-text {
        font-size: 1rem !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .header-search {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        justify-content: flex-start !important;
    }

    .header-search .input-group {
        height: 38px !important;
        border-radius: 50px !important;
    }

    .header-search input[type="search"],
    .header-search input[type="text"] {
        padding: 0 12px !important;
        font-size: 12px !important;
    }

    .header-search .search-submit,
    .header-search button[type="submit"] { padding: 0 10px !important; }

    .main-nav-desktop { display: none !important; }
}

@media (max-width: 480px) {
    .site-header .container { padding: 0 8px !important; }

    .header-main {
        gap: 8px !important;
        padding: 8px 0 !important;
    }

    .site-branding { max-width: 35% !important; }

    .site-branding img,
    .site-branding .custom-logo { max-height: 32px !important; }

    .site-title-text { font-size: 0.9rem !important; }

    .header-search .input-group { height: 36px !important; }

    .header-search input[type="search"],
    .header-search input[type="text"] {
        padding: 0 10px !important;
        font-size: 11.5px !important;
    }

    .header-search .search-submit,
    .header-search button[type="submit"] { padding: 0 8px !important; }
}

/* =========================================================
   BREADCRUMB — v4.0.0 (گرافیکی، افقی، با فاصله از هدر)
========================================================= */

.nova-breadcrumb {
    display: block;
    width: 100%;
    padding: 14px 0 12px;
    margin: 0 0 0;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-bottom: 1px solid #e7e7e7;
    position: relative;
    overflow: hidden;
}

.nova-breadcrumb::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, #ef4444, #dc2626);
    opacity: 0.8;
}

.nova-breadcrumb .container {
    display: block;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px;
}

.nova-breadcrumb-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px;
    line-height: 1.6;
    direction: rtl;
}

.nova-breadcrumb-item {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    color: #666;
    font-weight: 500;
    list-style: none !important;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nova-breadcrumb-item::before,
.nova-breadcrumb-item::after {
    display: none !important;
    content: none !important;
}

.nova-breadcrumb-item i {
    font-size: 12px;
    color: #dc2626;
    opacity: 1;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.nova-breadcrumb-item a {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px;
    padding: 6px 12px;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.nova-breadcrumb-item a:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
    transform: translateY(-1px);
}

.nova-breadcrumb-item a:hover i { color: #dc2626; }

.nova-breadcrumb-current {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px;
    padding: 6px 14px;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    max-width: 340px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

.nova-breadcrumb-current i {
    font-size: 12px;
    color: #dc2626;
    flex-shrink: 0;
}

.nova-breadcrumb-current span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}

.nova-breadcrumb-sep {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px;
    color: #dc2626;
    opacity: 0.5;
    margin: 0 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nova-breadcrumb-item:hover + .nova-breadcrumb-sep,
.nova-breadcrumb-item:hover ~ .nova-breadcrumb-sep { opacity: 1; }

.nova-breadcrumb-home a {
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    color: #171717;
}

.nova-breadcrumb-home a:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
}

.nova-breadcrumb-home a i { font-size: 13px; }

/* ═══ فاصله از هدر ═══ */
.site-header + .nova-breadcrumb {
    margin-top: 12px;
    border-top: 0;
}

/* ═══ فاصله بین breadcrumb و محتوا ═══ */
.nova-breadcrumb + *,
.nova-breadcrumb + main,
.nova-breadcrumb + .site-content,
.nova-breadcrumb + .nova-product-page,
.nova-breadcrumb + .nova-shop-hero,
.nova-breadcrumb + .nova-shop-content-wrapper {
    margin-top: 0 !important;
    padding-top: 16px !important;
}

/* ═══ موبایل ═══ */
@media (max-width: 991px) {
    .nova-breadcrumb {
        padding: 12px 0 10px;
    }

    .nova-breadcrumb .container { padding: 0 12px; }

    .nova-breadcrumb-list {
        gap: 4px !important;
        font-size: 12px;
    }

    .nova-breadcrumb-item a {
        padding: 5px 10px;
        font-size: 12px;
    }

    .nova-breadcrumb-current {
        padding: 5px 12px;
        font-size: 12px;
        max-width: 240px;
    }

    .nova-breadcrumb-current span { max-width: 180px; }
}

@media (max-width: 767px) {
    .site-header + .nova-breadcrumb {
        margin-top: 8px;
    }

    .nova-breadcrumb {
        padding: 10px 0 8px;
    }

    .nova-breadcrumb .container { padding: 0 10px; }

    .nova-breadcrumb-list {
        font-size: 11.5px;
        gap: 3px !important;
    }

    .nova-breadcrumb-item a {
        padding: 4px 8px;
        font-size: 11.5px;
        gap: 4px;
    }

    .nova-breadcrumb-item i { font-size: 10px; }

    .nova-breadcrumb-current {
        padding: 4px 10px;
        font-size: 11.5px;
        max-width: 200px;
    }

    .nova-breadcrumb-current span { max-width: 140px; }

    .nova-breadcrumb-sep {
        font-size: 8px;
        margin: 0 2px;
    }

    .nova-breadcrumb + *,
    .nova-breadcrumb + main,
    .nova-breadcrumb + .site-content,
    .nova-breadcrumb + .nova-product-page {
        padding-top: 12px !important;
    }
}

@media (max-width: 480px) {
    .site-header + .nova-breadcrumb {
        margin-top: 6px;
    }

    .nova-breadcrumb {
        padding: 8px 0 6px;
    }

    .nova-breadcrumb-list { font-size: 11px; }

    .nova-breadcrumb-item a {
        padding: 3px 7px;
        font-size: 11px;
    }

    .nova-breadcrumb-current {
        padding: 3px 8px;
        font-size: 11px;
        max-width: 160px;
    }

    .nova-breadcrumb-current span { max-width: 110px; }

    .nova-breadcrumb-home a span { display: none; }
}

/* =========================================================
   PRODUCT PAGE
========================================================= */

.nova-product-page { width: 100%; padding: 24px 0 60px; }
.nova-product-page > .container { max-width: 1320px; padding: 0 16px; }

.nova-product-main {
    background: var(--nova-white);
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius-lg);
    box-shadow: var(--nova-shadow);
    overflow: hidden;
}

.nova-product-row {
    display: grid;
    grid-template-columns: 1fr 390px 270px;
    direction: rtl;
    align-items: stretch;
}

.nova-info-col { min-width: 0; order: 1; border-left: 1px solid var(--nova-border); background: #fff; }
.nova-info-inner { padding: 32px 34px 40px; }

.nova-product-title {
    margin: 0 0 32px;
    padding: 0 0 24px;
    color: var(--nova-dark);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.75;
    letter-spacing: -0.3px;
    border-bottom: 2px solid var(--nova-border-soft);
}

.nova-section-title {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 0 20px;
    padding: 0 0 12px;
    color: var(--nova-dark);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.6;
    border-bottom: 1px solid var(--nova-border-soft);
}

.nova-section-title::before {
    content: "";
    width: 4px;
    height: 22px;
    margin-left: 10px;
    background: var(--nova-primary);
    border-radius: 10px;
}

.nova-attributes-section { margin-bottom: 36px; }
.nova-attributes-section:last-child { margin-bottom: 0; }

.nova-attr-list { overflow: hidden; border: 1px solid var(--nova-border); border-radius: var(--nova-radius); background: #fff; }
.nova-attr-row { display: grid; grid-template-columns: 190px 1fr; min-height: 54px; border-bottom: 1px solid var(--nova-border-soft); }
.nova-attr-row:last-child { border-bottom: 0; }
.nova-attr-row:nth-child(even) { background: #fafafa; }

.attr-label, .attr-value { display: flex; align-items: center; padding: 14px 18px; font-size: 13.5px; line-height: 1.9; }
.attr-label { color: #555; font-weight: 700; background: #f7f7f7; border-left: 1px solid var(--nova-border-soft); }
.attr-value { color: #333; font-weight: 500; }

.nova-desc-content { color: #555; font-size: 14.5px; line-height: 2.15; }
.nova-desc-content p { margin: 0 0 18px; }
.nova-desc-content p:last-child { margin-bottom: 0; }

.nova-gallery-col {
    position: relative;
    min-width: 0;
    order: 2;
    padding: 24px;
    background: #fff;
    border-left: 1px solid var(--nova-border);
    border-right: 1px solid var(--nova-border);
}

.nova-gallery-col .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.nova-gallery-col .woocommerce-product-gallery__wrapper { margin: 0 !important; }
.nova-gallery-col .woocommerce-product-gallery__image { margin: 0; }

.nova-gallery-col .woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: contain;
    border: 1px solid var(--nova-border);
    border-radius: var(--nova-radius);
    background: #fff;
    transition: transform .25s ease;
}

.nova-gallery-col .flex-control-thumbs {
    display: flex !important;
    gap: 10px;
    margin: 18px 0 0 !important;
    padding: 0 !important;
    list-style: none;
    overflow-x: auto;
}

.nova-gallery-col .flex-control-thumbs li { flex: 0 0 auto; width: 62px !important; margin: 0 !important; }

.nova-gallery-col .flex-control-thumbs img {
    display: block;
    width: 62px !important;
    height: 62px !important;
    object-fit: contain;
    padding: 3px;
    border: 1px solid var(--nova-border);
    border-radius: 7px;
    background: #fff;
    opacity: .65;
}

.nova-gallery-col .flex-control-thumbs .flex-active {
    opacity: 1;
    border-color: var(--nova-primary);
    box-shadow: 0 0 0 2px var(--nova-primary-soft);
}

.nova-share-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #555;
    background: rgba(255, 255, 255, .95);
    border: 1px solid var(--nova-border);
    border-radius: 50%;
    box-shadow: var(--nova-shadow-sm);
    transition: var(--nova-transition);
}

.nova-share-btn:hover { color: var(--nova-primary); border-color: var(--nova-primary); transform: translateY(-2px); }

.nova-purchase-col { position: relative; min-width: 0; order: 3; padding: 26px 22px; background: #fff; }

.nova-purchase-features { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--nova-border); }

.nova-feature-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #555;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.9;
}

.nova-feature-line:last-child { margin-bottom: 0; }
.nova-feature-line i { flex: 0 0 auto; margin-top: 4px; color: var(--nova-success); font-size: 14px; }

.nova-price-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--nova-border-soft);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nova-price-old-row { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }

.nova-discount-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 12px;
    color: #fff;
    background: var(--nova-primary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.nova-price-old { color: #999 !important; font-size: 13px !important; font-weight: 500; text-decoration: line-through; display: inline-block !important; }

.nova-price-final {
    display: flex !important;
    align-items: baseline;
    justify-content: flex-start;
    direction: rtl;
    gap: 8px;
    color: var(--nova-dark) !important;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.nova-price-final span:first-child { color: var(--nova-dark) !important; font-size: 24px !important; font-weight: 900 !important; }
.nova-price-final .price-currency { color: #777 !important; font-size: 12px !important; font-weight: 500 !important; }

.nova-buy-btn-wrap { width: 100%; display: block !important; }
.nova-buy-btn-wrap .cart { width: 100% !important; display: block !important; }
.nova-buy-btn-wrap .quantity { display: none !important; }

.nova-buy-btn-wrap .single_add_to_cart_button,
.nova-buy-btn-wrap button[type="submit"],
.nova-buy-btn-wrap .button.alt {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 52px;
    margin: 0 !important;
    padding: 14px 18px !important;
    color: #fff !important;
    background: var(--nova-primary) !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 14px rgba(220, 38, 38, 0.2) !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.nova-buy-btn-wrap .single_add_to_cart_button:hover,
.nova-buy-btn-wrap button[type="submit"]:hover {
    background: var(--nova-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.3) !important;
}

.nova-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--nova-border-soft);
    font-size: 13px;
}

.brand-label { color: #888; font-weight: 500; }
.brand-value { color: var(--nova-dark); font-weight: 800; }

/* =========================================================
   NOVA CUSTOM TABS
========================================================= */

.nova-tabs-wrapper { margin-top: 28px; background: #fff; border: 1px solid var(--nova-border); border-radius: var(--nova-radius-lg); box-shadow: var(--nova-shadow-sm); overflow: hidden; }

.nova-tabs-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 20px; background: #fafafa; border-bottom: 1px solid var(--nova-border); }

.nova-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    margin: 0;
    color: #666;
    background: #fff;
    border: 1px solid var(--nova-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--nova-transition);
}

.nova-tab-btn i { font-size: 13px; color: #888; }

.nova-tab-btn:hover { color: var(--nova-dark); border-color: var(--nova-primary); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08); }
.nova-tab-btn:hover i { color: var(--nova-primary); }

.nova-tab-btn.active { color: #fff; background: var(--nova-primary); border-color: var(--nova-primary); font-weight: 700; box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25); }
.nova-tab-btn.active i { color: #fff; }

.nova-tabs-panels { padding: 28px 30px 32px; }

.nova-tab-panel { display: none; animation: novaFadeIn 0.3s ease; }
.nova-tab-panel.active { display: block; }

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

.nova-panel-title {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 0 24px;
    padding: 0 0 18px;
    color: var(--nova-dark);
    font-size: 19px;
    font-weight: 800;
    border-bottom: 1px solid var(--nova-border-soft);
}

.nova-panel-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 22px;
    margin-left: 12px;
    background: var(--nova-primary);
    border-radius: 10px;
    flex-shrink: 0;
}

.nova-panel-content { font-size: 14.5px; line-height: 2.15; color: #555; text-align: justify; }
.nova-panel-content p { margin: 0 0 16px; }
.nova-panel-content p:last-child { margin-bottom: 0; }

.nova-specs-table {
    width: 100%;
    margin: 0;
    border: 1px solid var(--nova-border);
    border-radius: 10px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    table-layout: fixed;
}

.nova-specs-table tbody tr { background: #fff; }
.nova-specs-table tbody tr:nth-child(even) { background: #fafafa; }

.nova-specs-table th {
    width: 30%;
    padding: 16px 22px;
    text-align: right;
    vertical-align: middle;
    color: #1a1a1a;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    border-left: 1px solid #eee;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.9;
}

.nova-specs-table td {
    width: 70%;
    padding: 16px 22px;
    text-align: right;
    vertical-align: middle;
    color: #333;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    line-height: 2;
}

.nova-specs-table tbody tr:last-child th,
.nova-specs-table tbody tr:last-child td { border-bottom: 0; }

/* =========================================================
   RELATED PRODUCTS (nrp-*)
========================================================= */

.nrp-box {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 40px 0 0;
    padding: 24px 20px 28px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.nrp-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0 0 14px;
    color: #171717;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    border-bottom: 1px solid #eeeeee;
    box-sizing: border-box;
}

.nrp-title::before {
    content: "";
    display: block;
    width: 4px;
    height: 20px;
    background: #dc2626;
    border-radius: 10px;
    flex-shrink: 0;
}

.nrp-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.nrp-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px;
    margin: 0;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 12px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    overflow: hidden;
}

.nrp-item:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.1);
}

.nrp-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 180px;
    margin: 0 0 12px;
    background: #fafafa;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
}

.nrp-img img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 8px;
    margin: 0;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.nrp-item:hover .nrp-img img { transform: scale(1.05); }

.nrp-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 10px;
    padding: 0;
    min-height: 44px;
    max-height: 44px;
    color: #171717;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
    text-align: right;
    box-sizing: border-box;
    transition: color 0.2s ease;
}

.nrp-item:hover .nrp-name { color: #dc2626; }

.nrp-price {
    display: block;
    margin-top: auto;
    padding: 10px 0 0;
    border-top: 1px solid #f0f0f0;
    color: #dc2626;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    min-height: 36px;
    box-sizing: border-box;
    text-align: right;
}

@media (max-width: 1199px) {
    .nrp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .nrp-img { height: 160px; }
}

@media (max-width: 991px) {
    .nrp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .nrp-img { height: 150px; }
    .nrp-name { font-size: 12.5px; min-height: 42px; max-height: 42px; }
}

@media (max-width: 767px) {
    .nrp-box { padding: 16px 12px 20px; margin-top: 24px; border-radius: 12px; }
    .nrp-title { font-size: 15px; }
    .nrp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .nrp-item { padding: 10px; }
    .nrp-img { height: 130px; margin-bottom: 10px; }
    .nrp-name { font-size: 12px; min-height: 40px; max-height: 40px; }
    .nrp-price { font-size: 12.5px; min-height: 32px; }
}

@media (max-width: 480px) {
    .nrp-grid { gap: 8px; }
    .nrp-img { height: 120px; }
    .nrp-name { font-size: 11.5px; min-height: 38px; max-height: 38px; }
    .nrp-price { font-size: 11.5px; }
}

/* =========================================================
   SHOP HERO
========================================================= */

.nova-shop-hero {
    position: relative;
    padding: 56px 0 60px;
    margin-bottom: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #fff;
}

.nova-shop-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,.06) 0%, transparent 50%);
    pointer-events: none;
}

.nova-shop-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.15) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: .5;
}

.nova-shop-hero-inner { position: relative; z-index: 2; padding-top: 4px; }

.nova-shop-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.nova-shop-hero-text {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 auto;
    min-width: 0;
}

.nova-shop-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.nova-shop-hero-text > div { min-width: 0; padding-top: 4px; }

.nova-shop-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.nova-shop-hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    padding: 8px 16px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.nova-shop-hero-subtitle i { font-size: 13px; opacity: 0.9; }

.nova-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 14px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.nova-filter-toggle:hover {
    background: rgba(255,255,255,.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

@media (max-width: 991px) {
    .nova-shop-hero { padding: 44px 0 48px; }
    .nova-shop-hero-icon { width: 60px; height: 60px; font-size: 26px; border-radius: 16px; }
    .nova-shop-hero-title { font-size: 26px; }
    .nova-shop-hero-text { gap: 16px; }
}

@media (max-width: 767px) {
    .nova-shop-hero { padding: 32px 0 36px; margin-bottom: 24px; }
    .nova-shop-hero-content { flex-direction: column; align-items: stretch; gap: 16px; }
    .nova-shop-hero-text { gap: 12px; padding-top: 4px; }
    .nova-shop-hero-icon { width: 52px; height: 52px; font-size: 22px; border-radius: 14px; }
    .nova-shop-hero-title { font-size: 20px; margin-bottom: 8px; }
    .nova-shop-hero-subtitle { font-size: 12px; padding: 6px 12px; gap: 6px; }
    .nova-filter-toggle { width: 100%; justify-content: center; padding: 12px 20px; }
}

@media (max-width: 480px) {
    .nova-shop-hero { padding: 26px 0 30px; }
    .nova-shop-hero-icon { width: 46px; height: 46px; font-size: 18px; }
    .nova-shop-hero-title { font-size: 17px; }
    .nova-shop-hero-subtitle { font-size: 11.5px; padding: 5px 10px; }
}

/* =========================================================
   SHOP LAYOUT (sidebar + main)
========================================================= */

.nova-shop-content-wrapper { margin-bottom: 60px; padding-top: 4px; }
.nova-shop-layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.nova-shop-layout.has-sidebar { grid-template-columns: 280px 1fr; }

.nova-shop-sidebar { position: sticky; top: 90px; max-height: calc(100vh - 120px); overflow-y: auto; padding-left: 4px; }

.nova-shop-sidebar-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--nova-border);
    font-weight: 700;
    font-size: 15px;
}

.nova-sidebar-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--nova-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}

.nova-sidebar-close:hover { background: #f0f0f0; color: var(--nova-primary); }

.nova-shop-sidebar .nova-widget,
.nova-shop-sidebar .widget {
    background: #fff;
    border: 1px solid var(--nova-border);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
}

.nova-shop-sidebar .nova-widget-title,
.nova-shop-sidebar .widget-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--nova-dark);
    margin: 0 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--nova-border-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nova-shop-sidebar .nova-widget-title::before,
.nova-shop-sidebar .widget-title::before {
    content: "";
    width: 3px;
    height: 14px;
    background: var(--nova-primary);
    border-radius: 10px;
    display: inline-block;
    flex-shrink: 0;
}

.nova-shop-main { min-width: 0; }

.nova-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid var(--nova-border);
    border-radius: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nova-shop-toolbar-start,
.nova-shop-toolbar-end { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--nova-muted); }

.nova-shop-toolbar .woocommerce-result-count { margin: 0; font-size: 13px; color: var(--nova-muted); }

.nova-shop-toolbar .woocommerce-ordering { margin: 0; }

.nova-shop-toolbar .woocommerce-ordering select {
    padding: 8px 14px;
    border: 1px solid var(--nova-border);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    color: var(--nova-dark);
    cursor: pointer;
    outline: none;
    transition: all .2s ease;
}

.nova-shop-toolbar .woocommerce-ordering select:focus {
    border-color: var(--nova-primary);
    box-shadow: 0 0 0 3px var(--nova-primary-soft);
}

/* =========================================================
   PRODUCTS GRID — موازی
========================================================= */

.nova-products-wrapper {
    position: relative;
    padding: 28px 24px 32px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    min-height: 200px;
}

.nova-products-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #ef4444, #dc2626);
    border-radius: 18px 18px 0 0;
}

.woocommerce ul.products,
.nova-products-wrapper ul.products,
.nova-shop-main ul.products,
.nova-shop-full ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    float: none !important;
    clear: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

.woocommerce ul.products li.product,
.nova-products-wrapper ul.products li.product,
.nova-shop-main ul.products li.product,
.nova-shop-full ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 16px !important;
    float: none !important;
    clear: none !important;
    background: #ffffff !important;
    border: 1px solid #ececec !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products li.product::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    z-index: 3;
}

.woocommerce ul.products li.product:hover::before { transform: scaleX(1); }

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px) !important;
    border-color: transparent !important;
    box-shadow: 0 16px 40px rgba(220, 38, 38, 0.15) !important;
}

.woocommerce ul.products li.product a img,
.nova-products-wrapper ul.products li.product a img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    background: #fafafa !important;
    border-radius: 12px !important;
    padding: 12px !important;
    margin: 0 0 14px !important;
    transition: transform 0.4s ease !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products li.product:hover a img { transform: scale(1.06) !important; }

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: #171717 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.65 !important;
    text-align: right !important;
    min-height: 46px !important;
    max-height: 46px !important;
    border: 0 !important;
    transition: color 0.2s ease !important;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title { color: #dc2626 !important; }

.woocommerce ul.products li.product .price {
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    margin-top: auto !important;
    padding-top: 12px !important;
    border-top: 1px solid #f0f0f0 !important;
    color: #dc2626 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    min-height: 32px !important;
}

.woocommerce ul.products li.product .price del {
    color: #999 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: line-through !important;
    order: -1;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
    color: #dc2626 !important;
    font-weight: 800 !important;
}

.woocommerce ul.products li.product .onsale {
    position: absolute !important;
    top: 24px !important;
    right: 24px !important;
    z-index: 3 !important;
    padding: 5px 12px !important;
    background: linear-gradient(135deg, #dc2626, #991b1b) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    min-height: auto !important;
    min-width: auto !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35) !important;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    bottom: 16px !important;
    left: 16px !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    color: #dc2626 !important;
    border: 2px solid #dc2626 !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.2) !important;
    z-index: 5 !important;
}

.woocommerce ul.products li.product:hover .button {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.woocommerce ul.products li.product .button:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.35) !important;
}

/* ═══ ریسپانسیو محصولات ═══ */
@media (min-width: 1200px) {
    .woocommerce ul.products,
    .nova-products-wrapper ul.products,
    .nova-shop-main ul.products,
    .nova-shop-full ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 22px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .woocommerce ul.products,
    .nova-products-wrapper ul.products,
    .nova-shop-main ul.products,
    .nova-shop-full ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    .woocommerce ul.products li.product { padding: 14px !important; }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
        min-height: 42px !important;
        max-height: 42px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .woocommerce ul.products,
    .nova-products-wrapper ul.products,
    .nova-shop-main ul.products,
    .nova-shop-full ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .woocommerce ul.products li.product { padding: 14px !important; }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
        min-height: 42px !important;
        max-height: 42px !important;
    }

    .woocommerce ul.products li.product .button {
        opacity: 1 !important;
        transform: translateY(0) !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
    }
}

@media (max-width: 767px) {
    .woocommerce ul.products,
    .nova-products-wrapper ul.products,
    .nova-shop-main ul.products,
    .nova-shop-full ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .woocommerce ul.products li.product {
        padding: 12px !important;
        border-radius: 14px !important;
    }

    .woocommerce ul.products li.product a img {
        padding: 10px !important;
        margin-bottom: 10px !important;
        border-radius: 10px !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 12.5px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        margin-bottom: 10px !important;
    }

    .woocommerce ul.products li.product .price {
        font-size: 13.5px !important;
        padding-top: 10px !important;
    }

    .woocommerce ul.products li.product .button {
        opacity: 1 !important;
        transform: translateY(0) !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 16px !important;
        bottom: 12px !important;
        left: 12px !important;
    }

    .woocommerce ul.products li.product .onsale {
        top: 18px !important;
        right: 18px !important;
        font-size: 10px !important;
        padding: 4px 10px !important;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products,
    .nova-products-wrapper ul.products,
    .nova-shop-main ul.products,
    .nova-shop-full ul.products {
        gap: 10px !important;
    }

    .woocommerce ul.products li.product {
        padding: 10px !important;
        border-radius: 12px !important;
    }

    .woocommerce ul.products li.product a img {
        padding: 8px !important;
        margin-bottom: 8px !important;
        border-radius: 8px !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        line-height: 1.55 !important;
    }

    .woocommerce ul.products li.product .price { font-size: 12.5px !important; }

    .woocommerce ul.products li.product .button {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
        bottom: 10px !important;
        left: 10px !important;
    }

    .woocommerce ul.products li.product .onsale {
        top: 14px !important;
        right: 14px !important;
        font-size: 9px !important;
        padding: 3px 8px !important;
    }
}

/* =========================================================
   PAGINATION — نسخه آزاد بدون کادر
========================================================= */

.nova-shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

/* بدون نوار قرمز بالا */
.nova-shop-pagination::before {
    display: none;
    content: none;
}

.nova-shop-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    background: transparent;
    border: 0;
}

.nova-shop-pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nova-shop-pagination ul.page-numbers a,
.nova-shop-pagination ul.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 52px;
    height: 52px;
    padding: 0 18px;
    background: #ffffff;
    color: #374151;
    border: 2px solid #e7e7e7;
    border-radius: 16px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    box-sizing: border-box;
}

.nova-shop-pagination ul.page-numbers a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: 0;
}

.nova-shop-pagination ul.page-numbers a:hover::before {
    width: 150px;
    height: 150px;
}

.nova-shop-pagination ul.page-numbers a:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.25);
}

.nova-shop-pagination ul.page-numbers span.current {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #dc2626;
    color: #ffffff;
    font-weight: 900;
    transform: translateY(-4px) scale(1.08);
    box-shadow:
        0 12px 28px rgba(220, 38, 38, 0.45),
        0 0 0 6px rgba(220, 38, 38, 0.12);
    cursor: default;
}

.nova-shop-pagination ul.page-numbers span.current::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.9);
}

.nova-shop-pagination ul.page-numbers .dots {
    background: transparent;
    border-color: transparent;
    color: #999;
    font-weight: 700;
    cursor: default;
    box-shadow: none;
    pointer-events: none;
    min-width: 30px;
    padding: 0;
}

.nova-shop-pagination ul.page-numbers .prev,
.nova-shop-pagination ul.page-numbers .next {
    color: #dc2626;
    font-size: 18px;
    font-weight: 900;
    background: #fef2f2;
    border-color: #fecaca;
    padding: 0 22px;
    min-width: 56px;
}

.nova-shop-pagination ul.page-numbers .prev:hover,
.nova-shop-pagination ul.page-numbers .next:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.4);
}

/* ═══ ریسپانسیو ═══ */
@media (max-width: 767px) {
    .nova-shop-pagination {
        margin-top: 40px;
    }

    .nova-shop-pagination ul.page-numbers {
        gap: 6px;
    }

    .nova-shop-pagination ul.page-numbers a,
    .nova-shop-pagination ul.page-numbers span {
        min-width: 42px;
        height: 42px;
        font-size: 14px;
        padding: 0 14px;
        border-radius: 12px;
        border-width: 1.5px;
    }

    .nova-shop-pagination ul.page-numbers .prev,
    .nova-shop-pagination ul.page-numbers .next {
        padding: 0 16px;
        min-width: 46px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .nova-shop-pagination {
        margin-top: 35px;
    }

    .nova-shop-pagination ul.page-numbers {
        gap: 5px;
    }

    .nova-shop-pagination ul.page-numbers a,
    .nova-shop-pagination ul.page-numbers span {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
        padding: 0 12px;
        border-radius: 10px;
    }

    .nova-shop-pagination ul.page-numbers .prev,
    .nova-shop-pagination ul.page-numbers .next {
        padding: 0 14px;
        min-width: 42px;
    }
}
/* =========================================================
   EMPTY STATE / BUTTONS / MESSAGES
========================================================= */

.nova-empty-shop { text-align: center; padding: 80px 24px; background: #fff; border: 1px solid var(--nova-border); border-radius: 14px; }

.nova-empty-shop-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--nova-primary-soft);
    color: var(--nova-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
}

.nova-empty-shop-title { font-size: 22px; font-weight: 800; color: var(--nova-dark); margin: 0 0 12px; }
.nova-empty-shop-text { font-size: 14px; color: var(--nova-muted); margin: 0 auto 28px; max-width: 480px; line-height: 1.9; }

.nova-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    transition: all .2s ease;
}

.nova-btn-primary { background: var(--nova-primary); color: #fff; box-shadow: 0 4px 14px rgba(220, 38, 38, .2); }

.nova-btn-primary:hover {
    background: var(--nova-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, .3);
}

.nova-btn-ghost {
    background: #ffffff;
    color: #dc2626;
    border: 2px solid #fecaca;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.06);
}

.nova-btn-ghost:hover {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #dc2626;
    transform: translateY(-2px);
}

.nova-btn-outline {
    background: #ffffff;
    color: #dc2626;
    border: 2px solid #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.nova-btn-outline:hover {
    background: #dc2626;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    margin: 20px auto !important;
    padding: 18px 22px !important;
    border-radius: var(--nova-radius) !important;
    font-size: 14px !important;
}

/* =========================================================
   HIDE UNNECESSARY
========================================================= */

.nova-tabs-wrapper .woocommerce-tabs,
.nova-tabs-wrapper ul.wc-tabs,
.woocommerce-Reviews,
#reviews,
#comments,
.woocommerce-tabs ul.tabs li.reviews_tab,
.woocommerce-product-rating,
.star-rating,
.woocommerce-review-link,
.nova-gallery-col .woocommerce-product-gallery__trigger,
.nova-gallery-col .woocommerce-product-gallery .zoomImg,
.nova-gallery-col .flex-direction-nav { display: none !important; }

button.goup,
button.goup.is-visible,
.goup,
.goup.is-visible,
button[class*="goup"],
button[aria-label*="رفتن به بالا"],
button[aria-label*="بازگشت به بالا"],
button[aria-label*="رفتن به بالای صفحه"],
button[aria-label*="بازگشت به بالای صفحه"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: -1 !important;
    transform: none !important;
    clip: rect(0, 0, 0, 0) !important;
    overflow: hidden !important;
}

.nova-back-to-top,
.nova-back-to-top.is-visible,
.nova-go-top,
.nova-go-top.is-visible,
#backToTop,
.back-to-top,
.backToTop,
.scroll-top,
.scroll-to-top,
.scrolltop,
#scrollTop,
.top-btn,
.go-top,
.goto-top,
.to-top,
.toTop,
[class*="back-to-top"],
[class*="scroll-to-top"],
[class*="go-to-top"],
[id*="backToTop"],
[id*="scrollTop"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}

/* =========================================================
   RESPONSIVE — PRODUCT PAGE
========================================================= */

@media (max-width: 1199px) {
    .nova-product-row { grid-template-columns: 1fr 340px 250px; }
    .nova-info-inner { padding: 26px; }
    .nova-shop-layout.has-sidebar { grid-template-columns: 260px 1fr; }
    .nova-shop-hero-title { font-size: 26px; }
}

@media (max-width: 991px) {
    .nova-product-row { grid-template-columns: minmax(0, 1fr) minmax(300px, 42%); }
    .nova-info-col { order: 2; border-left: 0; }
    .nova-gallery-col { order: 1; border-right: 0; border-left: 1px solid var(--nova-border); }
    .nova-purchase-col { order: 3; grid-column: 1 / -1; border-top: 1px solid var(--nova-border); }
    .nova-purchase-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
    .nova-feature-line { margin-bottom: 0; }
    .nova-price-section { display: flex; align-items: center; justify-content: space-between; }
    .nova-buy-btn-wrap { max-width: 420px; margin-right: auto; }

    .nova-shop-layout.has-sidebar { grid-template-columns: 1fr; }

    .nova-shop-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 320px;
        max-width: 85%;
        z-index: 9998;
        background: #f7f7f7;
        padding: 16px;
        max-height: 100vh;
        transform: translateX(100%);
        transition: transform .3s ease;
        box-shadow: -4px 0 24px rgba(0,0,0,.15);
        overflow-y: auto;
        visibility: hidden;
    }

    .nova-shop-sidebar.is-open { transform: translateX(0); visibility: visible; }
    .nova-shop-sidebar-header { display: flex; }
}

@media (max-width: 767px) {
    body { font-size: 13.5px; }

    .nova-product-page { padding: 12px 0 40px; }
    .nova-product-page > .container { padding: 0 10px; }
    .nova-product-main { border-radius: 10px; }
    .nova-product-row { display: flex; flex-direction: column; }

    .nova-gallery-col { order: 1; padding: 16px; border: 0; border-bottom: 1px solid var(--nova-border); }
    .nova-gallery-col .woocommerce-product-gallery__image img { height: 330px; }
    .nova-share-btn { top: 22px; right: 22px; }

    .nova-info-col { order: 2; }
    .nova-info-inner { padding: 24px 18px; }
    .nova-product-title { margin-bottom: 24px; padding-bottom: 18px; font-size: 18px; }
    .nova-section-title { margin-bottom: 16px; padding-bottom: 10px; font-size: 15px; }
    .nova-attr-row { grid-template-columns: 40% 60%; min-height: 48px; }
    .attr-label, .attr-value { padding: 12px; font-size: 12.5px; }

    .nova-purchase-col { order: 3; padding: 22px 18px; }
    .nova-purchase-features { display: block; }
    .nova-feature-line { margin-bottom: 12px; }
    .nova-price-section { display: block; }
    .nova-price-final { font-size: 22px; }
    .nova-buy-btn-wrap { max-width: none; }

    .nova-tabs-wrapper { margin-top: 14px; }
    .nova-tabs-header { padding: 10px 12px; gap: 6px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .nova-tabs-header::-webkit-scrollbar { display: none; }
    .nova-tab-btn { min-height: 40px; padding: 8px 14px; font-size: 13px; border-radius: 8px; flex-shrink: 0; }
    .nova-tabs-panels { padding: 20px 16px 24px; }

    .nova-shop-toolbar { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }

    .nova-products-wrapper { padding: 16px 12px 20px !important; border-radius: 14px !important; }
}

@media (max-width: 480px) {
    .nova-gallery-col .woocommerce-product-gallery__image img { height: 285px; }
    .nova-product-title { font-size: 16.5px; }
    .nova-shop-hero-title { font-size: 17px; }
    .nova-shop-hero-icon { width: 42px; height: 42px; font-size: 18px; }
    .nova-products-wrapper { padding: 14px 10px 18px !important; }
}

/* =========================================================
   ACCESSIBILITY & PRINT
========================================================= */

.nova-share-btn:focus-visible,
.nova-buy-btn-wrap button:focus-visible,
.nova-tab-btn:focus-visible { outline: 2px solid var(--nova-primary); outline-offset: 2px; }

@media print {
    .goup, button.goup, .nova-back-to-top, .nova-go-top,
    #backToTop, .back-to-top, .scroll-top,
    .nova-share-btn, .nova-tabs-header, .nova-breadcrumb { display: none !important; }
    body { background: #fff; }
}

/* =========================================================
   SEARCH RESULTS
========================================================= */

.nova-search-hero .nova-shop-hero-title { font-size: 28px; }

.nova-search-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    text-align: center;
}

.nova-search-count-num { font-size: 26px; font-weight: 900; color: #fff; line-height: 1.2; }
.nova-search-count-label { font-size: 12px; color: rgba(255, 255, 255, 0.85); margin-top: 2px; }
.nova-search-result-text { font-size: 13.5px; color: #777; }
.nova-search-result-text strong { color: #dc2626; font-weight: 800; }

.nova-search-wrapper {
    position: relative;
    padding: 24px 20px 28px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.nova-search-wrapper::before {
    content: "";
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #ef4444, #dc2626);
    border-radius: 18px 18px 0 0;
}

.nova-search-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch;
}

.nova-search-grid::before, .nova-search-grid::after { display: none !important; }

.nova-search-grid > li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    height: 100%;
}

.nova-search-item {
    position: relative;
    display: flex !important;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    height: 100%;
    width: 100%;
}

.nova-search-item:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 12px 32px rgba(220, 38, 38, 0.15); }

.nova-search-item .product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    gap: 8px;
}

.nova-search-item .product-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
}

.nova-search-item .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.4s ease;
    margin: 0 !important;
}

.nova-search-item:hover .product-thumb img { transform: scale(1.05); }

.nova-search-item .onsale {
    position: absolute;
    top: 8px; right: 8px;
    z-index: 3;
    padding: 4px 10px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #ffffff;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
}

.nova-search-item h2,
.nova-search-item .woocommerce-loop-product__title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #171717;
    font-size: 13px !important;
    font-weight: 700;
    line-height: 1.55 !important;
    text-align: right;
    min-height: 40px !important;
    max-height: 40px !important;
    border: 0 !important;
    transition: color 0.2s ease;
}

.nova-search-item:hover h2 { color: #dc2626; }

.nova-search-item .price {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin-top: auto !important;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    color: #dc2626;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.4;
    min-height: 28px;
}

@media (max-width: 1199px) {
    .nova-search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 991px) {
    .nova-search-hero .nova-shop-hero-title { font-size: 22px; }
    .nova-search-count { padding: 10px 20px; }
    .nova-search-count-num { font-size: 22px; }
    .nova-search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; }
}

@media (max-width: 767px) {
    .nova-search-hero .nova-shop-hero-title { font-size: 19px; }
    .nova-search-wrapper { padding: 14px 10px 18px; border-radius: 14px; }
    .nova-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    .nova-search-item h2 { font-size: 12px !important; min-height: 36px !important; max-height: 36px !important; }
    .nova-search-count { width: 100%; padding: 8px 16px; }
    .nova-search-count-num { font-size: 20px; }
}

@media (max-width: 480px) {
    .nova-search-grid { gap: 8px !important; }
    .nova-search-item h2 { font-size: 11.5px !important; min-height: 34px !important; max-height: 34px !important; }
}

/* =========================================================
   HOME PAGE
========================================================= */

.nova-home-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 55%, #fff5f5 100%);
    border-bottom: 1px solid #fee2e2;
}

.nova-home-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 85% 20%, rgba(220, 38, 38, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(220, 38, 38, 0.06) 0%, transparent 45%);
}

.nova-home-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(220, 38, 38, 0.12) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.4;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
}

.nova-home-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    padding-top: 4px;
}

.nova-home-hero-text { min-width: 0; padding-top: 8px; }

.nova-home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 24px;
    background: #ffffff;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.08);
}

.nova-home-hero-title {
    margin: 0 0 20px;
    color: #171717;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.8px;
}

.nova-home-hero-title span {
    color: #dc2626;
    position: relative;
    display: inline-block;
}

.nova-home-hero-title span::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: 4px;
    height: 8px;
    background: rgba(220, 38, 38, 0.12);
    border-radius: 4px;
    z-index: -1;
}

.nova-home-hero-desc {
    margin: 0 0 32px;
    color: #555;
    font-size: 15px;
    line-height: 2.15;
    max-width: 540px;
    padding-top: 4px;
}

.nova-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

.nova-home-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.nova-home-hero-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: novaHomePulse 4s ease-in-out infinite;
}

@keyframes novaHomePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.nova-home-hero-img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(220, 38, 38, 0.15));
}

.nova-home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.nova-home-section-head--center {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-bottom: 0;
    margin-bottom: 32px;
}

.nova-home-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #171717;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
}

.nova-home-section-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 12px;
    font-size: 17px;
}

.nova-home-section-title--light { color: #ffffff; }
.nova-home-section-title--light i { background: rgba(255, 255, 255, 0.15); color: #ffffff; }
.nova-home-section-sub { margin: 8px 0 0; color: rgba(255, 255, 255, 0.8); font-size: 14px; }

.nova-home-section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nova-home-section-more:hover {
    background: #dc2626;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.25);
}

.nova-home-section-more i { font-size: 11px; }

.nova-home-categories { padding: 20px 0 40px; }

.nova-home-cats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.nova-home-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 22px 14px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nova-home-cat-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nova-home-cat-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.12);
}

.nova-home-cat-card:hover::before { transform: scaleX(1); }

.nova-home-cat-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #fafafa;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.nova-home-cat-card:hover .nova-home-cat-thumb { transform: scale(1.08); }

.nova-home-cat-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 8px;
}

.nova-home-cat-info { min-width: 0; width: 100%; }

.nova-home-cat-name {
    color: #171717;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.nova-home-cat-card:hover .nova-home-cat-name { color: #dc2626; }
.nova-home-cat-count { color: #999; font-size: 11.5px; font-weight: 500; }

.nova-home-products { padding: 20px 0 50px; }

.nova-home-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
    background: #ffffff;
    border: 1px dashed #e7e7e7;
    border-radius: 14px;
}

.nova-home-featured {
    position: relative;
    overflow: hidden;
    padding: 50px 0;
    margin: 40px 0;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.nova-home-featured-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
}

.nova-home-featured-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
}

.nova-home-featured .container { position: relative; z-index: 2; }

.nova-home-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    width: 100%;
}

.nova-home-grid > *,
.nova-home-grid > li,
.nova-home-grid > article,
.nova-home-grid > .product,
.nova-home-grid > .nova-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    float: none !important;
}

@media (max-width: 1199px) {
    .nova-home-hero-title { font-size: 34px; }
    .nova-home-cats-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
    .nova-home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 991px) {
    .nova-home-hero { padding: 56px 0; }
    .nova-home-hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .nova-home-hero-desc { margin-left: auto; margin-right: auto; }
    .nova-home-hero-actions { justify-content: center; }
    .nova-home-hero-visual { min-height: 240px; order: -1; }
    .nova-home-hero-glow { width: 260px; height: 260px; }
    .nova-home-hero-title { font-size: 32px; }
    .nova-home-section-title { font-size: 19px; }
    .nova-home-section-title i { width: 36px; height: 36px; font-size: 15px; }
    .nova-home-cats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nova-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 767px) {
    .nova-home-hero { padding: 40px 0; margin-bottom: 28px; }
    .nova-home-hero-badge { font-size: 11.5px; padding: 6px 14px; margin-bottom: 18px; }
    .nova-home-hero-title { font-size: 26px; margin-bottom: 16px; }
    .nova-home-hero-desc { font-size: 13.5px; margin-bottom: 24px; line-height: 2; }
    .nova-home-hero-glow { width: 200px; height: 200px; }
    .nova-home-hero-visual { min-height: 180px; }
    .nova-home-hero-actions .nova-btn { flex: 1 1 auto; justify-content: center; }

    .nova-home-section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .nova-home-section-head--center { align-items: center; }
    .nova-home-section-title { font-size: 17px; gap: 10px; }
    .nova-home-section-title i { width: 32px; height: 32px; font-size: 14px; border-radius: 10px; }

    .nova-home-categories { padding: 12px 0 28px; }
    .nova-home-cats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .nova-home-cat-card { padding: 16px 10px; gap: 8px; border-radius: 12px; }
    .nova-home-cat-thumb { width: 60px; height: 60px; }
    .nova-home-cat-name { font-size: 12px; }
    .nova-home-cat-count { font-size: 10.5px; }

    .nova-home-products { padding: 12px 0 32px; }
    .nova-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

    .nova-home-featured { padding: 36px 0; margin: 28px 0; }
}

@media (max-width: 480px) {
    .nova-home-hero-title { font-size: 22px; }
    .nova-home-hero-visual { min-height: 150px; }
    .nova-home-hero-glow { width: 170px; height: 170px; }
    .nova-home-cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .nova-home-cat-card { padding: 14px 8px; }
    .nova-home-cat-thumb { width: 54px; height: 54px; }
    .nova-home-grid { gap: 8px; }
}

/* =========================================================
   PRODUCT CARD (nova-product-card)
========================================================= */

.nova-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nova-product-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.15);
}

.nova-product-card .product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px;
    text-decoration: none;
    color: inherit;
}

.nova-product-card .product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fafafa;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nova-product-card .product-img-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    margin: 0;
    transition: transform 0.4s ease;
}

.nova-product-card:hover .product-img-wrapper img { transform: scale(1.05); }

.nova-product-card .onsale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    padding: 5px 12px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #ffffff;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.3);
}

.nova-product-card .nova-product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 12px;
    padding: 0;
    color: #171717;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.6;
    text-align: right;
    min-height: 44px;
    max-height: 44px;
    transition: color 0.2s ease;
}

.nova-product-card:hover .nova-product-title { color: #dc2626; }

.nova-product-card .nova-product-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    min-height: 30px;
}

.nova-product-card .old-price {
    color: #999;
    font-size: 12px;
    font-weight: 500;
    text-decoration: line-through;
}

.nova-product-card .nova-price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: #dc2626;
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.4;
}

.nova-product-card .nova-price-unit {
    color: #999;
    font-size: 11px;
    font-weight: 500;
}

@media (max-width: 767px) {
    .nova-product-card .product-link { padding: 12px; }
    .nova-product-card .nova-product-title { font-size: 12.5px; min-height: 40px; max-height: 40px; }
    .nova-product-card .nova-price-tag { font-size: 13.5px; }
    .nova-product-card .onsale-badge { font-size: 10px; padding: 4px 10px; }
}

@media (max-width: 480px) {
    .nova-product-card .product-link { padding: 10px; }
    .nova-product-card .nova-product-title { font-size: 12px; min-height: 38px; max-height: 38px; }
    .nova-product-card .nova-price-tag { font-size: 12.5px; }
}

/* =========================================================
   BLOG POST CARD
========================================================= */

.nova-post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nova-post-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.15);
}

.nova-post-thumb {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #fafafa;
    overflow: hidden;
    text-decoration: none;
}

.nova-post-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nova-post-card:hover .nova-post-thumb img { transform: scale(1.05); }

.nova-post-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: #d1d5db;
}

.nova-post-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 18px 18px;
}

.nova-post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 10px;
    padding: 0;
    color: #171717;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.6;
    min-height: 48px;
    max-height: 48px;
    transition: color 0.2s ease;
}

.nova-post-title a { color: inherit; text-decoration: none; }
.nova-post-card:hover .nova-post-title { color: #dc2626; }

.nova-post-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: #999;
    font-size: 12px;
    font-weight: 500;
}

.nova-post-meta i { font-size: 11px; color: #dc2626; }

.nova-post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 14px;
    color: #666;
    font-size: 13px;
    line-height: 1.9;
}

.nova-post-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    color: #dc2626;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.nova-post-more i { font-size: 10px; transition: transform 0.2s ease; }
.nova-post-card:hover .nova-post-more { gap: 10px; color: #b91c1c; }
.nova-post-card:hover .nova-post-more i { transform: translateX(-3px); }

@media (max-width: 767px) {
    .nova-post-body { padding: 14px; }
    .nova-post-title { font-size: 14px; min-height: 44px; max-height: 44px; }
    .nova-post-excerpt { font-size: 12.5px; -webkit-line-clamp: 2; }
    .nova-post-more { font-size: 12px; padding-top: 10px; }
}

@media (max-width: 480px) {
    .nova-post-body { padding: 12px; }
    .nova-post-title { font-size: 13px; min-height: 42px; max-height: 42px; }
    .nova-post-thumb-empty { font-size: 34px; }
}

.nova-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    width: 100%;
}

@media (max-width: 991px) {
    .nova-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 767px) {
    .nova-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (max-width: 480px) {
    .nova-posts-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ============================================================
   HOME HERO — انیمیشن حرفه‌ای
============================================================ */

/* ═══ کانتینر هیرو ═══ */
.nova-home-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 80px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 55%, #fff5f5 100%);
    border-bottom: 1px solid #fee2e2;
}

.nova-home-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 85% 20%, rgba(220, 38, 38, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(220, 38, 38, 0.06) 0%, transparent 45%);
}

.nova-home-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(220, 38, 38, 0.12) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.4;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
}

.nova-home-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.nova-home-hero-text { min-width: 0; }

/* ═══ عنوان ═══ */
.nova-home-hero-title {
    margin: 0 0 20px;
    color: #171717;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.8px;
}

.nova-home-hero-title span {
    color: #dc2626;
    position: relative;
    display: inline-block;
}

.nova-home-hero-title span::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: 4px;
    height: 8px;
    background: rgba(220, 38, 38, 0.12);
    border-radius: 4px;
    z-index: -1;
}

.nova-home-hero-desc {
    margin: 0 0 32px;
    color: #555;
    font-size: 15px;
    line-height: 2.15;
    max-width: 540px;
}

/* ═══ دکمه وسط‌چین ═══ */
.nova-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;   /* ✅ وسط‌چین در همه دستگاه‌ها */
}

/* در دسکتاپ دکمه سمت راست باشه، ولی چون تک دکمه داریم و کنارش چیز دیگه‌ای نیست، وسط‌چین می‌مونه */
@media (min-width: 992px) {
    .nova-home-hero-actions {
        justify-content: flex-start;   /* در دسکتاپ چپ‌چین با متن هم‌راستا */
    }
}

/* ═══════════════════════════════════════════════════════════
   انیمیشن Hero — نسخه حرفه‌ای
   ═══════════════════════════════════════════════════════════ */

.nova-home-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    overflow: visible;
}

.nova-hero-anim {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══ هاله قرمز در پس‌زمینه ═══ */
.nova-hero-anim::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.22) 0%, rgba(220, 38, 38, 0.08) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(20px);
    animation: novaHeroPulse 3s ease-in-out infinite;
}

@keyframes novaHeroPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* ═══ حلقه‌های چرخان ═══ */
.nova-hero-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid rgba(220, 38, 38, 0.15);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.nova-hero-ring-1 {
    width: 100%;
    height: 100%;
    border-color: rgba(220, 38, 38, 0.12);
    animation: novaHeroRotate 20s linear infinite;
    border-style: dashed;
}

.nova-hero-ring-2 {
    width: 78%;
    height: 78%;
    border-color: rgba(220, 38, 38, 0.18);
    animation: novaHeroRotateReverse 14s linear infinite;
}

.nova-hero-ring-3 {
    width: 56%;
    height: 56%;
    border-color: rgba(220, 38, 38, 0.25);
    border-width: 1px;
    animation: novaHeroRotate 10s linear infinite;
}

@keyframes novaHeroRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes novaHeroRotateReverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* ═══ آیکون مرکزی (سبد خرید) ═══ */
.nova-hero-core {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    font-size: 48px;
    box-shadow:
        0 20px 40px rgba(220, 38, 38, 0.35),
        0 0 0 12px rgba(220, 38, 38, 0.08),
        0 0 0 24px rgba(220, 38, 38, 0.04);
    animation: novaHeroBounce 3s ease-in-out infinite;
}

@keyframes novaHeroBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.nova-hero-core i {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* ═══ آیکون‌های شناور دور مرکز ═══ */
.nova-hero-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #ffffff;
    color: #dc2626;
    font-size: 20px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(220, 38, 38, 0.1);
    z-index: 4;
}

.nova-hero-orbit-1 {
    animation: novaHeroOrbit1 8s linear infinite;
}

.nova-hero-orbit-2 {
    animation: novaHeroOrbit2 10s linear infinite;
}

.nova-hero-orbit-3 {
    animation: novaHeroOrbit3 12s linear infinite;
}

.nova-hero-orbit-4 {
    animation: novaHeroOrbit4 9s linear infinite;
}

/* ═══ مسیرهای چرخش آیکون‌ها ═══ */
@keyframes novaHeroOrbit1 {
    0% { transform: translate(calc(-50% + 0px), calc(-50% - 140px)) rotate(0deg); }
    100% { transform: translate(calc(-50% + 0px), calc(-50% - 140px)) rotate(360deg); }
}

@keyframes novaHeroOrbit2 {
    0% { transform: translate(calc(-50% + 130px), calc(-50% + 40px)) rotate(0deg); }
    100% { transform: translate(calc(-50% + 130px), calc(-50% + 40px)) rotate(-360deg); }
}

@keyframes novaHeroOrbit3 {
    0% { transform: translate(calc(-50% - 130px), calc(-50% + 40px)) rotate(0deg); }
    100% { transform: translate(calc(-50% - 130px), calc(-50% + 40px)) rotate(360deg); }
}

@keyframes novaHeroOrbit4 {
    0% { transform: translate(calc(-50% + 0px), calc(-50% + 140px)) rotate(0deg); }
    100% { transform: translate(calc(-50% + 0px), calc(-50% + 140px)) rotate(-360deg); }
}

/* ═══ ذرات درخشان ═══ */
.nova-hero-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.6);
    pointer-events: none;
}

.nova-hero-dot-1 {
    animation: novaHeroDot1 4s ease-in-out infinite;
}
.nova-hero-dot-2 {
    animation: novaHeroDot2 5s ease-in-out infinite;
}
.nova-hero-dot-3 {
    animation: novaHeroDot3 3.5s ease-in-out infinite;
}
.nova-hero-dot-4 {
    animation: novaHeroDot4 4.5s ease-in-out infinite;
}
.nova-hero-dot-5 {
    animation: novaHeroDot5 6s ease-in-out infinite;
}

@keyframes novaHeroDot1 {
    0%, 100% { transform: translate(-50%, -50%) translate(0, -170px); opacity: 0; }
    50% { transform: translate(-50%, -50%) translate(0, -170px); opacity: 1; }
}
@keyframes novaHeroDot2 {
    0%, 100% { transform: translate(-50%, -50%) translate(160px, -60px); opacity: 0; }
    50% { transform: translate(-50%, -50%) translate(160px, -60px); opacity: 1; }
}
@keyframes novaHeroDot3 {
    0%, 100% { transform: translate(-50%, -50%) translate(-160px, -60px); opacity: 0; }
    50% { transform: translate(-50%, -50%) translate(-160px, -60px); opacity: 1; }
}
@keyframes novaHeroDot4 {
    0%, 100% { transform: translate(-50%, -50%) translate(120px, 120px); opacity: 0; }
    50% { transform: translate(-50%, -50%) translate(120px, 120px); opacity: 1; }
}
@keyframes novaHeroDot5 {
    0%, 100% { transform: translate(-50%, -50%) translate(-120px, 120px); opacity: 0; }
    50% { transform: translate(-50%, -50%) translate(-120px, 120px); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   ریسپانسیو Hero
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1199px) {
    .nova-home-hero-title { font-size: 36px; }
    .nova-home-hero-visual { min-height: 340px; }
    .nova-hero-anim { width: 280px; height: 280px; }
    .nova-hero-core { width: 100px; height: 100px; font-size: 40px; }
    .nova-hero-orbit { width: 44px; height: 44px; font-size: 18px; }
}

@media (max-width: 991px) {
    .nova-home-hero { padding: 56px 0 64px; }
    .nova-home-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .nova-home-hero-desc { margin-left: auto; margin-right: auto; }
    .nova-home-hero-actions { justify-content: center; }
    .nova-home-hero-visual { min-height: 340px; order: -1; }
    .nova-home-hero-title { font-size: 32px; }
}

@media (max-width: 767px) {
    .nova-home-hero { padding: 40px 0 48px; margin-bottom: 28px; }
    .nova-home-hero-title { font-size: 26px; margin-bottom: 16px; }
    .nova-home-hero-desc { font-size: 13.5px; margin-bottom: 24px; line-height: 2; }
    .nova-home-hero-actions { justify-content: center; }
    .nova-home-hero-actions .nova-btn { flex: 1 1 auto; justify-content: center; }

    .nova-home-hero-visual { min-height: 280px; }
    .nova-hero-anim { width: 240px; height: 240px; }
    .nova-hero-core { width: 86px; height: 86px; font-size: 34px; }
    .nova-hero-orbit { width: 38px; height: 38px; font-size: 15px; border-radius: 10px; }

    @keyframes novaHeroOrbit1 {
        0% { transform: translate(calc(-50% + 0px), calc(-50% - 110px)) rotate(0deg); }
        100% { transform: translate(calc(-50% + 0px), calc(-50% - 110px)) rotate(360deg); }
    }
    @keyframes novaHeroOrbit2 {
        0% { transform: translate(calc(-50% + 100px), calc(-50% + 30px)) rotate(0deg); }
        100% { transform: translate(calc(-50% + 100px), calc(-50% + 30px)) rotate(-360deg); }
    }
    @keyframes novaHeroOrbit3 {
        0% { transform: translate(calc(-50% - 100px), calc(-50% + 30px)) rotate(0deg); }
        100% { transform: translate(calc(-50% - 100px), calc(-50% + 30px)) rotate(360deg); }
    }
    @keyframes novaHeroOrbit4 {
        0% { transform: translate(calc(-50% + 0px), calc(-50% + 110px)) rotate(0deg); }
        100% { transform: translate(calc(-50% + 0px), calc(-50% + 110px)) rotate(-360deg); }
    }
}

@media (max-width: 480px) {
    .nova-home-hero { padding: 32px 0 40px; }
    .nova-home-hero-title { font-size: 22px; }

    .nova-home-hero-visual { min-height: 240px; }
    .nova-hero-anim { width: 200px; height: 200px; }
    .nova-hero-core { width: 74px; height: 74px; font-size: 28px; }
    .nova-hero-orbit { width: 34px; height: 34px; font-size: 13px; border-radius: 9px; }

    @keyframes novaHeroOrbit1 {
        0% { transform: translate(calc(-50% + 0px), calc(-50% - 92px)) rotate(0deg); }
        100% { transform: translate(calc(-50% + 0px), calc(-50% - 92px)) rotate(360deg); }
    }
    @keyframes novaHeroOrbit2 {
        0% { transform: translate(calc(-50% + 82px), calc(-50% + 26px)) rotate(0deg); }
        100% { transform: translate(calc(-50% + 82px), calc(-50% + 26px)) rotate(-360deg); }
    }
    @keyframes novaHeroOrbit3 {
        0% { transform: translate(calc(-50% - 82px), calc(-50% + 26px)) rotate(0deg); }
        100% { transform: translate(calc(-50% - 82px), calc(-50% + 26px)) rotate(360deg); }
    }
    @keyframes novaHeroOrbit4 {
        0% { transform: translate(calc(-50% + 0px), calc(-50% + 92px)) rotate(0deg); }
        100% { transform: translate(calc(-50% + 0px), calc(-50% + 92px)) rotate(-360deg); }
    }
}

/* ═══ احترام به prefers-reduced-motion ═══ */
@media (prefers-reduced-motion: reduce) {
    .nova-hero-anim::before,
    .nova-hero-ring-1,
    .nova-hero-ring-2,
    .nova-hero-ring-3,
    .nova-hero-core,
    .nova-hero-orbit-1,
    .nova-hero-orbit-2,
    .nova-hero-orbit-3,
    .nova-hero-orbit-4,
    .nova-hero-dot {
        animation: none !important;
    }
}
/* ============================================================
   PRODUCTS GRID — نسخه نهایی (پشتیبانی از هر ساختاری)
============================================================ */

/* ═══ حالت ۱: div.products-grid (ساختار فعلی سایت) ═══ */
.products-grid,
div.products-grid,
.products-grid.row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    float: none !important;
}

/* ═══ حالت ۲: ul.products (ساختار استاندارد WooCommerce) ═══ */
ul.products,
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    float: none !important;
}

/* ═══ حذف clearfix ═══ */
.products-grid::before,
.products-grid::after,
ul.products::before,
ul.products::after {
    display: none !important;
    content: none !important;
}

/* ═══ کارت محصول — هر دو حالت ═══ */
.products-grid > li,
.products-grid > .product,
ul.products > li,
ul.products > li.product {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 16px !important;
    float: none !important;
    clear: none !important;
    background: #ffffff !important;
    border: 1px solid #ececec !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    height: 100% !important;
    box-sizing: border-box !important;
    list-style: none !important;
}

.products-grid > li:hover,
ul.products > li.product:hover {
    transform: translateY(-6px) !important;
    border-color: transparent !important;
    box-shadow: 0 16px 40px rgba(220, 38, 38, 0.15) !important;
}

/* ═══ لینک محصول ═══ */
.products-grid > li > a,
.products-grid > li .woocommerce-LoopProduct-link,
ul.products > li.product > a,
ul.products > li.product .woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
}

/* ═══ تصویر محصول ═══ */
.products-grid > li img,
.products-grid > li a img,
ul.products > li.product img,
ul.products > li.product a img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    background: #fafafa !important;
    border-radius: 12px !important;
    padding: 12px !important;
    margin: 0 0 14px !important;
    transition: transform 0.4s ease !important;
    box-sizing: border-box !important;
}

.products-grid > li:hover img,
ul.products > li.product:hover img {
    transform: scale(1.06) !important;
}

/* ═══ عنوان محصول ═══ */
.products-grid > li .woocommerce-loop-product__title,
.products-grid > li h2,
.products-grid > li h3,
ul.products > li.product .woocommerce-loop-product__title,
ul.products > li.product h2 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: #171717 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.65 !important;
    text-align: right !important;
    min-height: 46px !important;
    max-height: 46px !important;
    border: 0 !important;
}

.products-grid > li:hover .woocommerce-loop-product__title,
ul.products > li.product:hover .woocommerce-loop-product__title {
    color: #dc2626 !important;
}

/* ═══ قیمت ═══ */
.products-grid > li .price,
ul.products > li.product .price {
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    margin-top: auto !important;
    padding-top: 12px !important;
    border-top: 1px solid #f0f0f0 !important;
    color: #dc2626 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    min-height: 32px !important;
}

.products-grid > li .price del,
ul.products > li.product .price del {
    color: #999 !important;
    font-size: 12px !important;
    text-decoration: line-through !important;
    order: -1;
}

.products-grid > li .price ins,
ul.products > li.product .price ins {
    text-decoration: none !important;
    color: #dc2626 !important;
}

/* ═══ برچسب تخفیف ═══ */
.products-grid > li .onsale,
ul.products > li.product .onsale {
    position: absolute !important;
    top: 24px !important;
    right: 24px !important;
    z-index: 3 !important;
    padding: 5px 12px !important;
    background: linear-gradient(135deg, #dc2626, #991b1b) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

/* ═══ دکمه افزودن به سبد ═══ */
.products-grid > li .button,
.products-grid > li .add_to_cart_button,
ul.products > li.product .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    bottom: 16px !important;
    left: 16px !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    color: #dc2626 !important;
    border: 2px solid #dc2626 !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: all 0.3s ease !important;
    z-index: 5 !important;
}

.products-grid > li:hover .button,
ul.products > li.product:hover .button {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.products-grid > li .button:hover,
ul.products > li.product .button:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.05) !important;
}

/* ═══════════════════════════════════════════════════════════
   ریسپانسیو
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1199px) {
    .products-grid,
    ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 991px) {
    .products-grid,
    ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .products-grid > li .button,
    ul.products > li.product .button {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

@media (max-width: 767px) {
    .products-grid,
    ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .products-grid > li,
    ul.products > li.product {
        padding: 12px !important;
        border-radius: 14px !important;
    }

    .products-grid > li img,
    ul.products > li.product img {
        padding: 10px !important;
        margin-bottom: 10px !important;
    }

    .products-grid > li .woocommerce-loop-product__title,
    ul.products > li.product .woocommerce-loop-product__title {
        font-size: 12.5px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }

    .products-grid > li .price,
    ul.products > li.product .price {
        font-size: 13.5px !important;
    }

    .products-grid > li .button,
    ul.products > li.product .button {
        opacity: 1 !important;
        transform: translateY(0) !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 16px !important;
        bottom: 12px !important;
        left: 12px !important;
    }
}

@media (max-width: 480px) {
    .products-grid,
    ul.products {
        gap: 10px !important;
    }

    .products-grid > li,
    ul.products > li.product {
        padding: 10px !important;
    }

    .products-grid > li img,
    ul.products > li.product img {
        padding: 8px !important;
        margin-bottom: 8px !important;
    }

    .products-grid > li .woocommerce-loop-product__title,
    ul.products > li.product .woocommerce-loop-product__title {
        font-size: 12px !important;
        min-height: 38px !important;
        max-height: 38px !important;
    }

    .products-grid > li .button,
    ul.products > li.product .button {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
        bottom: 10px !important;
        left: 10px !important;
    }
}

/* ═══ Bootstrap RTL override — غیرفعال کردن گاتر بوت‌استرپ ═══ */
.products-grid.row {
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 0 !important;
    display: grid !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.products-grid.row > * {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
    width: auto !important;
    max-width: none !important;
    flex: none !important;
}
/* ============================================================
   PAGINATION — گرافیکی آزاد بدون کادر
============================================================ */

/* ═══ کانتینر اصلی — بدون کادر ═══ */
.nova-shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ═══ خود nav ═══ */
.nova-shop-pagination nav.woocommerce-pagination,
.nova-shop-pagination .woocommerce-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

/* ═══ لیست شماره‌ها ═══ */
.nova-shop-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    background: transparent;
    border: 0;
}

.nova-shop-pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ═══ دکمه‌های شماره ═══ */
.nova-shop-pagination ul.page-numbers a,
.nova-shop-pagination ul.page-numbers span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    min-width: 52px !important;
    height: 52px !important;
    padding: 0 18px !important;
    background: #ffffff !important;
    color: #374151 !important;
    border: 2px solid #e7e7e7 !important;
    border-radius: 16px !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* افکت ripple */
.nova-shop-pagination ul.page-numbers a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: 0;
}

.nova-shop-pagination ul.page-numbers a:hover::before {
    width: 150px;
    height: 150px;
}

/* هاور */
.nova-shop-pagination ul.page-numbers a:hover {
    background: #fef2f2 !important;
    border-color: #dc2626 !important;
    color: #dc2626 !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.25) !important;
}

/* ═══ صفحه فعلی — گرادیان قرمز ═══ */
.nova-shop-pagination ul.page-numbers span.current {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    transform: translateY(-4px) scale(1.08) !important;
    box-shadow:
        0 12px 28px rgba(220, 38, 38, 0.45),
        0 0 0 6px rgba(220, 38, 38, 0.12) !important;
    cursor: default !important;
}

/* نقطه قرمز زیر صفحه فعلی */
.nova-shop-pagination ul.page-numbers span.current::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.9);
}

/* ═══ سه‌نقطه (...) ═══ */
.nova-shop-pagination ul.page-numbers .dots {
    background: transparent !important;
    border-color: transparent !important;
    color: #999 !important;
    font-weight: 700 !important;
    cursor: default !important;
    box-shadow: none !important;
    pointer-events: none !important;
    min-width: 30px !important;
    padding: 0 !important;
}

/* ═══ دکمه قبلی / بعدی ═══ */
.nova-shop-pagination ul.page-numbers .prev,
.nova-shop-pagination ul.page-numbers .next {
    color: #dc2626 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    padding: 0 22px !important;
    min-width: 56px !important;
}

.nova-shop-pagination ul.page-numbers .prev:hover,
.nova-shop-pagination ul.page-numbers .next:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.4) !important;
}

/* ═══════════════════════════════════════════════════════════
   ریسپانسیو
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .nova-shop-pagination {
        margin-top: 28px;
    }

    .nova-shop-pagination ul.page-numbers {
        gap: 6px;
    }

    .nova-shop-pagination ul.page-numbers a,
    .nova-shop-pagination ul.page-numbers span {
        min-width: 42px !important;
        height: 42px !important;
        font-size: 14px !important;
        padding: 0 14px !important;
        border-radius: 12px !important;
        border-width: 1.5px !important;
    }

    .nova-shop-pagination ul.page-numbers .prev,
    .nova-shop-pagination ul.page-numbers .next {
        padding: 0 16px !important;
        min-width: 46px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .nova-shop-pagination ul.page-numbers {
        gap: 5px;
    }

    .nova-shop-pagination ul.page-numbers a,
    .nova-shop-pagination ul.page-numbers span {
        min-width: 38px !important;
        height: 38px !important;
        font-size: 13px !important;
        padding: 0 12px !important;
        border-radius: 10px !important;
    }

    .nova-shop-pagination ul.page-numbers .prev,
    .nova-shop-pagination ul.page-numbers .next {
        padding: 0 14px !important;
        min-width: 42px !important;
    }
}
/* ═══ فاصله صفحه‌بندی از بالا ═══ */
.nova-shop-pagination {
    margin-top: 50px !important;
    padding-top: 20px !important;
}

/* اگه بازم چسبیده بود */
.nova-products-wrapper + .nova-shop-pagination,
.nova-products-wrapper + .nova-shop-pagination-wrap {
    margin-top: 50px !important;
    padding-top: 20px !important;
}

/* موبایل */
@media (max-width: 767px) {
    .nova-shop-pagination {
        margin-top: 40px !important;
        padding-top: 16px !important;
    }
    .nova-products-wrapper + .nova-shop-pagination,
    .nova-products-wrapper + .nova-shop-pagination-wrap {
        margin-top: 40px !important;
        padding-top: 16px !important;
    }
}

@media (max-width: 480px) {
    .nova-shop-pagination {
        margin-top: 35px !important;
        padding-top: 12px !important;
    }
    .nova-products-wrapper + .nova-shop-pagination,
    .nova-products-wrapper + .nova-shop-pagination-wrap {
        margin-top: 35px !important;
        padding-top: 12px !important;
    }
}
/* ============================================================
   FIX FINAL — موبایل ۲ ستونه + صفحه‌بندی بدون کادر
   این باید آخرین بخش فایل باشه
============================================================ */

/* ═══════════════════════════════════════════════════════════
   ۱) موبایل: فروشگاه ۲ ستونه
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 767px) {

    /* حالت div.products-grid */
    .products-grid,
    div.products-grid,
    .products-grid.row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
        --bs-gutter-x: 0 !important;
        --bs-gutter-y: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* حالت ul.products */
    ul.products,
    .woocommerce ul.products,
    .nova-products-wrapper ul.products,
    .nova-shop-main ul.products,
    .nova-shop-full ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
    }

    /* کارت محصول */
    .products-grid > li,
    .products-grid > .product,
    ul.products > li.product {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px !important;
        border-radius: 14px !important;
    }

    /* تصویر */
    .products-grid > li img,
    ul.products > li.product img {
        padding: 10px !important;
        margin-bottom: 10px !important;
    }

    /* عنوان */
    .products-grid > li .woocommerce-loop-product__title,
    ul.products > li.product .woocommerce-loop-product__title {
        font-size: 12.5px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }

    /* قیمت */
    .products-grid > li .price,
    ul.products > li.product .price {
        font-size: 13.5px !important;
    }

    /* دکمه سبد */
    .products-grid > li .button,
    ul.products > li.product .button {
        opacity: 1 !important;
        transform: translateY(0) !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 16px !important;
        bottom: 12px !important;
        left: 12px !important;
    }

    /* ⚡ override Bootstrap col-* اگه هست */
    .products-grid > [class*="col-"],
    .products-grid.row > [class*="col-"] {
        width: auto !important;
        max-width: none !important;
        flex: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 480px) {

    .products-grid,
    div.products-grid,
    .products-grid.row,
    ul.products,
    .woocommerce ul.products,
    .nova-products-wrapper ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .products-grid > li,
    ul.products > li.product {
        padding: 10px !important;
    }

    .products-grid > li img,
    ul.products > li.product img {
        padding: 8px !important;
        margin-bottom: 8px !important;
    }

    .products-grid > li .woocommerce-loop-product__title,
    ul.products > li.product .woocommerce-loop-product__title {
        font-size: 12px !important;
        min-height: 38px !important;
        max-height: 38px !important;
    }

    .products-grid > li .button,
    ul.products > li.product .button {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
        bottom: 10px !important;
        left: 10px !important;
    }
}


/* ═══════════════════════════════════════════════════════════
   ۲) صفحه‌بندی: حذف کامل کادر و نوار قرمز
   ═══════════════════════════════════════════════════════════ */

/* کانتینر اصلی — کاملاً آزاد */
.nova-shop-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 50px !important;
    padding: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative !important;
    overflow: visible !important;
}

/* حذف نوار قرمز بالا (::before) */
.nova-shop-pagination::before {
    content: none !important;
    display: none !important;
    background: none !important;
    height: 0 !important;
    width: 0 !important;
}

/* حذف هر ::after اضافی */
.nova-shop-pagination::after {
    content: none !important;
    display: none !important;
}

/* داخل nav */
.nova-shop-pagination nav.woocommerce-pagination,
.nova-shop-pagination .woocommerce-pagination {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* لیست */
.nova-shop-pagination ul.page-numbers {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.nova-shop-pagination ul.page-numbers li {
    background: transparent !important;
    border: 0 !important;
}

/* دکمه‌ها (فقط خودشون کادر داشته باشن) */
.nova-shop-pagination ul.page-numbers a,
.nova-shop-pagination ul.page-numbers span {
    background: #ffffff !important;
    border: 2px solid #e7e7e7 !important;
    border-radius: 16px !important;
    color: #374151 !important;
    min-width: 52px !important;
    height: 52px !important;
    padding: 0 18px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.nova-shop-pagination ul.page-numbers a:hover {
    background: #fef2f2 !important;
    border-color: #dc2626 !important;
    color: #dc2626 !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.25) !important;
}

.nova-shop-pagination ul.page-numbers span.current {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    transform: translateY(-4px) scale(1.08) !important;
    box-shadow:
        0 12px 28px rgba(220, 38, 38, 0.45),
        0 0 0 6px rgba(220, 38, 38, 0.12) !important;
    cursor: default !important;
}

.nova-shop-pagination ul.page-numbers .prev,
.nova-shop-pagination ul.page-numbers .next {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #dc2626 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    padding: 0 22px !important;
    min-width: 56px !important;
}

.nova-shop-pagination ul.page-numbers .prev:hover,
.nova-shop-pagination ul.page-numbers .next:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.4) !important;
}

.nova-shop-pagination ul.page-numbers .dots {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #999 !important;
    min-width: 30px !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* موبایل صفحه‌بندی */
@media (max-width: 767px) {
    .nova-shop-pagination {
        margin-top: 40px !important;
        padding: 0 !important;
    }

    .nova-shop-pagination ul.page-numbers {
        gap: 6px !important;
    }

    .nova-shop-pagination ul.page-numbers a,
    .nova-shop-pagination ul.page-numbers span {
        min-width: 42px !important;
        height: 42px !important;
        font-size: 14px !important;
        padding: 0 14px !important;
        border-radius: 12px !important;
    }

    .nova-shop-pagination ul.page-numbers .prev,
    .nova-shop-pagination ul.page-numbers .next {
        padding: 0 16px !important;
        min-width: 46px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .nova-shop-pagination {
        margin-top: 35px !important;
    }

    .nova-shop-pagination ul.page-numbers {
        gap: 5px !important;
    }

    .nova-shop-pagination ul.page-numbers a,
    .nova-shop-pagination ul.page-numbers span {
        min-width: 38px !important;
        height: 38px !important;
        font-size: 13px !important;
        padding: 0 12px !important;
        border-radius: 10px !important;
    }
}

/* ============================================================
   HOME SECTION HEAD — مشاهده همه کنار عنوان
============================================================ */

/* ═══ حالت کلی (دسکتاپ) ═══ */
.nova-home-section-head {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid #f0f0f0 !important;
}

.nova-home-section-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
}

.nova-home-section-more {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border-radius: 50px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

.nova-home-section-more:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* ═══ موبایل (≤ 767px) — کنار هم بمونن ═══ */
@media (max-width: 767px) {

    .nova-home-section-head {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
        margin-bottom: 16px !important;
        padding-bottom: 12px !important;
    }

    .nova-home-section-title {
        font-size: 15px !important;
        gap: 8px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .nova-home-section-title i {
        width: 30px !important;
        height: 30px !important;
        font-size: 13px !important;
        border-radius: 9px !important;
        flex-shrink: 0 !important;
    }

    .nova-home-section-more {
        flex: 0 0 auto !important;
        padding: 6px 12px !important;
        font-size: 11.5px !important;
        gap: 4px !important;
        white-space: nowrap !important;
    }

    .nova-home-section-more i {
        font-size: 10px !important;
    }
}

/* ═══ موبایل کوچک (≤ 480px) ═══ */
@media (max-width: 480px) {

    .nova-home-section-head {
        gap: 8px !important;
    }

    .nova-home-section-title {
        font-size: 14px !important;
        gap: 6px !important;
    }

    .nova-home-section-title i {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }

    .nova-home-section-more {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }

    .nova-home-section-more i {
        font-size: 9px !important;
    }
}
/* ============================================================
   PRODUCT GALLERY — برچسب تخفیف (Onsale)
============================================================ */

/* ═══ کانتینر گالری — relative ═══ */
.nova-gallery-col {
    position: relative !important;
}

.nova-gallery-col .woocommerce-product-gallery {
    position: relative !important;
}

/* ═══ برچسب تخفیف ═══ */
.nova-gallery-col .onsale,
.nova-gallery-col span.onsale,
.woocommerce span.onsale {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;      /* ← سمت چپ */
    right: auto !important;
    z-index: 10 !important;

    /* رنگ قرمز */
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: #ffffff !important;

    /* ظاهر */
    padding: 6px 14px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    /* ابعاد */
    min-height: auto !important;
    min-width: auto !important;
    width: auto !important;
    height: auto !important;

    /* سایه */
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35) !important;

    /* نمایش */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* فاصله */
    margin: 0 !important;
}

/* ═══ موبایل ═══ */
@media (max-width: 767px) {
    .nova-gallery-col .onsale,
    .nova-gallery-col span.onsale,
    .woocommerce span.onsale {
        top: 14px !important;
        left: 14px !important;
        padding: 5px 12px !important;
        font-size: 11px !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 480px) {
    .nova-gallery-col .onsale,
    .nova-gallery-col span.onsale,
    .woocommerce span.onsale {
        top: 10px !important;
        left: 10px !important;
        padding: 4px 10px !important;
        font-size: 10px !important;
    }
}
/* ═══════════════════════════════════════════════════════════
   ۳) حذف کادر قرمز بالای محصولات (nova-products-wrapper::before)
   اگه هم می‌خوای حذف شه
   ═══════════════════════════════════════════════════════════ */

/* اگه می‌خوای خط قرمز بالای لیست محصولات حذف شه، این رو فعال کن: */
/*
.nova-products-wrapper::before {
    display: none !important;
}
*/
/*
 =========================================================
   ARCHIVE HEADER (دسته، برچسب، بایگانی)
========================================================= */
.nova-archive-header {
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.nova-archive-header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #dc2626, #991b1b);
    border-radius: 0 14px 14px 0;
}

.nova-archive-header h1 {
    color: #171717;
    font-weight: 800;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .nova-archive-header {
        padding: 16px 18px;
        border-radius: 12px;
    }
}
/* =========================================================
   ARCHIVE HEADER
========================================================= */
.nova-archive-header {
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.nova-archive-header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #dc2626, #991b1b);
    border-radius: 0 14px 14px 0;
}

.nova-archive-header h1 {
    color: #171717;
    font-weight: 800;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .nova-archive-header {
        padding: 16px 18px;
        border-radius: 12px;
    }
}

/* =========================================================
   BLOG POSTS GRID & CARD
========================================================= */
.nova-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    width: 100%;
}

.nova-post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    min-width: 0;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nova-post-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.15);
}

.nova-post-thumb {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #fafafa;
    overflow: hidden;
    text-decoration: none;
}

.nova-post-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nova-post-card:hover .nova-post-thumb img {
    transform: scale(1.05);
}

.nova-post-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 44px;
    color: #d1d5db;
    background: #fafafa;
}

.nova-post-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 18px 18px;
}

.nova-post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 10px;
    color: #171717;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.6;
    min-height: 48px;
    max-height: 48px;
}

.nova-post-title a {
    color: inherit;
    text-decoration: none;
}

.nova-post-card:hover .nova-post-title {
    color: #dc2626;
}

.nova-post-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: #999;
    font-size: 12px;
    flex-wrap: wrap;
}

.nova-post-meta i {
    font-size: 11px;
    color: #dc2626;
}

.nova-post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 14px;
    color: #666;
    font-size: 13px;
    line-height: 1.9;
}

.nova-post-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    color: #dc2626;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}

.nova-post-card:hover .nova-post-more {
    color: #b91c1c;
}

/* ریسپانسیو */
@media (max-width: 991px) {
    .nova-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 767px) {
    .nova-posts-grid { gap: 10px; }
    .nova-post-body { padding: 14px; }
    .nova-post-title { font-size: 14px; min-height: 44px; max-height: 44px; }
    .nova-post-excerpt { font-size: 12.5px; -webkit-line-clamp: 2; }
}

@media (max-width: 480px) {
    .nova-posts-grid { grid-template-columns: 1fr; }
    .nova-post-body { padding: 12px; }
}
/* =========================================================
   END OF FILE
========================================================= */