/* Hero Section */

.hero{
    height: 500px;

    background-image: url("../images/hero.jpg");
    background-size: cover;
    background-position: center;

    border-radius: 16px;

    overflow: hidden;

    margin-top: 16px;
}


.hero-overlay {

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.60);

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    color: white;
}


.hero-content h1 {

    font-size: 42px;

    font-weight: bold;

    color: #ffffff;

    text-shadow:
        0 0 10px #6f42c1,
        0 0 20px #6f42c1;
}


.hero-content h2 {

    font-size: 24px;

    margin-top: 20px;
}


.hero-content p {

    font-size: 16px;

    margin-top: 25px;

    margin-bottom: 35px;
}


.hero-buttons {

    display: flex;

    gap: 12px;

    justify-content: center;
}
/* Categories */

.categories {
    margin-top: 35px;
    margin-bottom: 35px;
}


.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #222;
}


.category-card{

    background:#ffffff;

    color:#222;

    text-align:center;

    padding:24px 18px;

    border-radius:18px;

    height:100%;

    transition:.35s;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

}
.category-card .icon{

    font-size:42px;

    margin-bottom:14px;

}

.category-card h3{

    font-size:19px;

    margin-bottom:12px;

}


.category-card:hover {

    transform: translateY(-15px);

    box-shadow: 
        0 0 20px #6f42c1;

}

/* Featured Products */

.featured-products {

     margin-top:auto;

    margin-bottom: 80px;

}


.product-card{

    background:#fff;

    border-radius:16px;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

    padding:14px;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    height:100%;

    transition:.3s;

}
.product-card img {
    width: 100%;
    max-width: 100%;
    height: 90px;
    object-fit: contain;
    margin-bottom: 10px;
}
.product-card h4{

    font-size:15px;

    min-height:42px;

    margin-bottom:8px;

}
.price{

    font-size:18px;

    font-weight:700;

    color:#2563eb;

    margin-bottom:12px;

}
/* حرکت کارت محصول */

.product-card {

    position: relative;
    transition: 0.4s;
}


.product-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 15px 30px rgba(0,0,0,0.3);

}

.product-description{
    direction: rtl;
    text-align: right;
    line-height: 2;
    font-size: 18px;
}

/* برچسب تخفیف */

.discount-badge {

    position: absolute;

    top: 15px;

    left: 15px;

    background: #ff2e63;

    color: white;

    padding: 5px 12px;

    border-radius: 20px;

    font-size: 14px;

    font-weight: bold;

}


/* وضعیت موجودی */

.stock {

    color: green;

    font-weight: bold;

    margin-top: 10px;

}
/* ==========================
    Features Section
========================== */

.features {

    padding: 70px 0;
    background: #f5f7fa;

}


.features-box {

    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;

}


.feature-card {

    background: #07152f;
    color: white;

    width: 200px;
    padding: 16px 12px;

    text-align: center;

    border-radius: 20px;

    transition: 0.4s;

    cursor: pointer;

    box-shadow: 0 10px 25px rgba(0,0,0,0.2);

}


.feature-card:hover {


    transform: translateY(-15px);

    background: linear-gradient(135deg,#0d6efd,#6610f2);

    box-shadow: 0 20px 40px rgba(0,0,0,0.4);

}


.feature-icon {

    font-size: 55px;

    margin-bottom: 15px;

}


.feature-card h3 {

    margin-bottom: 15px;

    font-size: 24px;

}


.feature-card p {

    font-size: 15px;

    line-height: 1.8;

    color: #dddddd;

}
.features {
    padding: 80px 0 100px;
}
/* =========================
       Brands Section
========================= */

.brands {

    padding: 45px 0;
    background: white;
}


.brands-box {

    width: 82%;
    margin: auto;
    padding: 35px 45px;

    background: linear-gradient(135deg,#07152f,#0b224d);

    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

    display: flex;

    justify-content: center;

    gap: 25px;

    flex-wrap: wrap;
}


.brand-card {

    width: 180px;

    height: 140px;

    background: rgba(255,255,255,0.1);

    border: 1px solid rgba(255,255,255,0.2);

    border-radius: 20px;

    text-align: center;

    padding-top: 35px;

    color: white;

    backdrop-filter: blur(10px);

    transition: 0.4s;

    cursor: pointer;

    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}


.brand-card:hover {

    transform: translateY(-15px) scale(1.05);

    background: linear-gradient(135deg,#0d6efd,#6610f2);

    box-shadow: 0 20px 40px rgba(0,0,0,0.6);

}


.brand-card h3 {

    font-size: 26px;

    margin-bottom: 10px;

}


.brand-card p {

    font-size: 14px;

    color: #dddddd;

}
.brands .section-title {

    color: white;

    margin-bottom: 50px;

}
/* ==========================
    Special Offer
========================== */

.special-offer {

    padding: 45px 0;

    background: white;

    color: white;
}


.offer-content {

    width: 82%;

    margin: auto;

    padding: 35px 45px;

    background: linear-gradient(
        135deg,
        #07152f,
        #0d6efd
    );

    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

}


.offer-text {

    flex: 1;

    min-width: 300px;
}


.offer-badge {

    background: #ff3d57;

    padding: 10px 20px;

    border-radius: 30px;

    display: inline-block;

    margin-bottom: 20px;

    font-weight: bold;
}


.offer-text h2 {

    font-size: 42px;

    margin-bottom: 20px;
}


.offer-text p {

    font-size: 18px;

    margin-bottom: 25px;
}


.old-price {

    text-decoration: line-through;

    color: #cccccc;

    display: block;

    margin-bottom: 10px;
}


.new-price {

    font-size: 35px;

    font-weight: bold;

    color: #ffd700;

    display: block;

    margin-bottom: 25px;
}


.offer-btn {

    background: white;

    color: #0d6efd;

    padding: 14px 35px;

    border-radius: 10px;

    text-decoration: none;

    font-weight: bold;

    transition: 0.3s;
}


.offer-btn:hover {

    background: #ffd700;

    color: black;
}


.offer-image img {

    width: 400px;

    max-width: 100%;
}
/* ==========================
   Statistics Section
========================== */

.stats-section{
    padding:45px 0;
    background:white;
}

.stats-grid{
    width:82%;
    margin:auto;
    padding:30px 40px;

    background:#0f172a;

    border-radius:20px;

    box-shadow:0 10px 30px rgba(0,0,0,.12);

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.stat-box{
    text-align:center;
    color:white;
    background:#1e293b;
    padding:22px;
    border-radius:16px;
    transition:.4s;
}

.stat-box:hover{
    transform:translateY(-10px);
    background:linear-gradient(
        135deg,
        #2563eb,
        #7c3aed
    );
}

.stat-box h2{
    font-size:42px;
    font-weight:700;
    margin-bottom:10px;
}

.stat-box p{
    font-size:18px;
    color:#cbd5e1;
}
/* ======================
   Testimonials
====================== */

.testimonials-section{
    padding:45px 0;
    background:white;
}

.section-subtitle{
    text-align:center;
    color:#94a3b8;
    margin-bottom:50px;
}

.testimonials-grid{
    width:82%;
    margin:auto;
    padding:35px 45px;

    background:#0f172a;

    border-radius:20px;

    box-shadow:0 10px 30px rgba(0,0,0,.12);

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.testimonial-card{

    background:rgba(255,255,255,0.08);

    backdrop-filter:blur(15px);

    border:1px solid rgba(255,255,255,0.15);

    border-radius:18px;

    padding:20px;

    text-align:center;

    color:white;

    transition:.4s;
}

.testimonial-card:hover{

    transform:translateY(-12px);

    box-shadow:
    0 15px 40px rgba(37,99,235,.4);
}

.stars{

    font-size:24px;

    margin-bottom:20px;
}

.testimonial-card p{

    line-height:2;

    margin-bottom:25px;

    color:#e2e8f0;
}

.testimonial-card h4{

    color:white;

    margin-bottom:5px;
}

.testimonial-card span{

    color:#60a5fa;
}
.section-title{
    color:white;
    text-align:center;
    margin-bottom:15px;
}
/* =====================
   FAQ
===================== */

.faq-section{
    padding:100px 0;
    background:#f8fafc;
}

.faq-box{

    background:white;

    padding:25px;

    margin-bottom:20px;

    border-radius:15px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    transition:.3s;
}

.faq-box:hover{

    transform:translateY(-5px);
}

.faq-box h4{

    color:#1e293b;

    margin-bottom:10px;
}

.faq-box p{

    color:#64748b;

    line-height:1.9;
}
.customer-avatar{
    width:80px;
    height:80px;
    margin:0 auto 20px;
}

.customer-avatar img{
    width:100%;
    height:100%;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #4f8cff;
}
body{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

main{
    flex:1;
}
/* =====================================
        PRODUCT DETAIL PAGE
===================================== */

.product-image{
    width:100%;
    height:300px;
    object-fit:contain;
    transition:.4s;
}

.product-image:hover{
    transform:scale(1.03);
}

.product-title{
    font-size:24px;
    font-weight:700;
    line-height:1.8;
    margin-bottom:16px;
}

.product-price{
    font-size:26px;
    font-weight:bold;
    color:#6f42c1;
}

.old-price{
    color:#999;
    text-decoration:line-through;
    font-size:16px;
}

.product-short{
    color:#666;
    font-size:15px;
    line-height:1.9;
}

.product-info{
    font-size:15px;
    line-height:2;
}

.related-products{
    margin-top:50px;
}

.related-products .card{

    transition:.4s;
}

.related-products .card:hover{

    transform:translateY(-10px);

    box-shadow:0 15px 35px rgba(0,0,0,.2);
}

.badge{

    font-size:15px;
}

/* =========================================================
   SPINORSYSTEM - MEGA MENU
   نسخه نهایی
========================================================= */


/* =========================================================
   MEGA PARENT
========================================================= */

.mega-parent {
    position: relative;
}


/* =========================================================
   MEGA MENU
   فقط ظرف است؛ خودش شیشه‌ای نیست
========================================================= */

.mega-parent > .mega-menu {

    position: absolute;

    top: calc(100% + 6px);
    right: 0;
    left: auto;

    width: 760px;

    display: none;

    direction: rtl;

    background: transparent !important;

    border: none !important;

    box-shadow: none !important;

    padding: 0;

    margin: 0;

    overflow: visible;

    z-index: 9999;
}


/* باز شدن */

.mega-parent:hover > .mega-menu {
    display: flex;
}


/* =========================================================
   HOVER BRIDGE
   جلوگیری از محو شدن هنگام حرکت آرام موس
========================================================= */

.mega-parent::after {

    content: "";

    position: absolute;

    top: 100%;
    right: -5px;

    width: 770px;
    height: 22px;

    background: transparent;

    z-index: 9998;

    pointer-events: auto;
}


/* =========================================================
   MAIN CATEGORY GLASS PANEL
========================================================= */

.mega-categories {

    position: relative;

    width: 235px;

    display: flex;

    flex-direction: column;

    gap: 4px;

    padding: 10px;

    direction: rtl;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.76),
            rgba(255,255,255,.60)
        );

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    border: 1px solid rgba(255,255,255,.78);

    border-radius: 18px;

    box-shadow:
        0 20px 55px rgba(15,23,42,.18),
        inset 0 1px 0 rgba(255,255,255,.90);

    z-index: 10000;
}


/* =========================================================
   CATEGORY ITEM
========================================================= */

.mega-category-item {

    position: relative;

    width: 100%;
}


/* =========================================================
   CATEGORY LINK
========================================================= */

.mega-category-item > a {

    position: relative;

    min-height: 55px;

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 0 14px;

    border-radius: 12px;

    color: #1e293b;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    transition:
        background .22s ease,
        color .22s ease,
        transform .22s ease;
}


/* =========================================================
   CATEGORY ICON
========================================================= */

.mega-category-item > a > i:first-child {

    width: 25px;

    text-align: center;

    font-size: 19px;

    color: #2563eb;

    flex-shrink: 0;
}


/* =========================================================
   LEFT ARROW
========================================================= */

.mega-category-item > a > i:last-child {

    margin-right: auto;

    font-size: 11px;

    color: #64748b;

    transition:
        transform .2s ease,
        color .2s ease;
}


/* =========================================================
   CATEGORY HOVER
========================================================= */

.mega-category-item:hover > a {

    background:
        linear-gradient(
            90deg,
            rgba(37,99,235,.14),
            rgba(37,99,235,.04)
        );

    color: #2563eb;

    transform: translateX(-3px);
}


.mega-category-item:hover > a > i:last-child {

    color: #2563eb;

    transform: translateX(-5px);
}


/* =========================================================
   SUBMENU HOVER BRIDGE
   بین پنل دسته‌بندی و پنل برند
========================================================= */

.mega-category-item::after {

    content: "";

    position: absolute;

    top: 0;

    right: -18px;

    width: 20px;

    height: 100%;

    background: transparent;

    z-index: 10001;

    pointer-events: auto;
}


/* =========================================================
   SUBMENU / FLYOUT
========================================================= */

.mega-submenu {

    position: absolute;

    top: 0;

    /*
       RTL:
       زیرمنو در سمت چپ پنل دسته‌بندی قرار می‌گیرد
    */

    right: calc(100% - 1px);

    width: 510px;

    min-height: 0;

    height: auto;

    max-height: 430px;

    overflow-y: auto;

    padding: 22px;

    display: none;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    align-content: start;

    gap: 8px;

    direction: rtl;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.78),
            rgba(255,255,255,.58)
        );

    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);

    border:
        1px solid rgba(255,255,255,.80);

    border-radius: 20px;

    box-shadow:
        -20px 20px 65px rgba(15,23,42,.20),
        inset 0 1px 0 rgba(255,255,255,.92);

    z-index: 10000;
}


/* باز شدن زیرمنوی همان دسته */

.mega-category-item:hover > .mega-submenu {

    display: grid;
}


/* =========================================================
   SUBMENU TITLE
========================================================= */

.mega-submenu-title {

    grid-column: 1 / -1;

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 19px;

    font-weight: 900;

    color: #111827;

    padding-bottom: 14px;

    margin-bottom: 8px;

    border-bottom:
        1px solid rgba(15,23,42,.08);
}


.mega-submenu-title::before {

    content: "";

    width: 4px;

    height: 25px;

    border-radius: 10px;

    background: #2563eb;

    flex-shrink: 0;
}


/* =========================================================
   SUBMENU LINKS
========================================================= */

.mega-submenu a {

    min-height: 48px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 8px 10px;

    border-radius: 11px;

    color: #334155;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}


.mega-submenu a:hover {

    background:
        rgba(37,99,235,.10);

    color: #2563eb;

    transform: translateX(-4px);
}


/* =========================================================
   BRAND / CATEGORY IMAGE
========================================================= */

.mega-submenu img {

    width: 30px;

    height: 30px;

    object-fit: contain;

    flex-shrink: 0;

    background:
        rgba(255,255,255,.70);

    border-radius: 7px;

    padding: 3px;
}


/* =========================================================
   SCROLLBAR
========================================================= */

.mega-submenu::-webkit-scrollbar {
    width: 5px;
}

.mega-submenu::-webkit-scrollbar-track {
    background: transparent;
}

.mega-submenu::-webkit-scrollbar-thumb {

    background:
        rgba(37,99,235,.30);

    border-radius: 20px;
}


/* =========================================================
   MAIN NAVBAR
   نباید شیشه‌ای شود
========================================================= */

.main-navbar {

    background: #ffffff !important;

    backdrop-filter: none !important;

    -webkit-backdrop-filter: none !important;
}


/* لینک‌های منوی اصلی */

.main-navbar .nav-link {

    backdrop-filter: none !important;

    -webkit-backdrop-filter: none !important;
}


/* =========================================================
   حذف هر BACKDROP قدیمی
========================================================= */

.mega-backdrop {

    display: none !important;

    opacity: 0 !important;

    visibility: hidden !important;

    pointer-events: none !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991.98px) {

    .mega-parent::after {

        display: none !important;
    }


    .mega-category-item::after {

        display: none !important;
    }


    .mega-parent > .mega-menu {

        position: relative;

        top: auto;

        right: auto;

        left: auto;

        width: 100%;

        min-height: auto;

        display: none;

        flex-direction: column;

        padding: 5px 0;

        background: transparent !important;

        box-shadow: none !important;
    }


    .mega-parent:hover > .mega-menu {

        display: flex;
    }


    .mega-categories {

        width: 100%;

        min-height: auto;

        padding: 8px;

        border-radius: 14px;

        box-shadow: none;
    }


    .mega-category-item > a {

        min-height: 50px;
    }


    .mega-submenu {

        position: relative;

        top: auto;

        right: auto;

        left: auto;

        width: 100%;

        min-height: auto;

        max-height: none;

        margin-top: 5px;

        padding: 15px;

        grid-template-columns: 1fr;

        border-radius: 14px;

        box-shadow: none;

        overflow: visible;
    }


    .mega-category-item:hover > .mega-submenu {

        display: grid;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 576px) {

    .mega-category-item > a {

        min-height: 48px;

        font-size: 13px;
    }


    .mega-submenu {

        padding: 14px;
    }


    .mega-submenu-title {

        font-size: 16px;
    }


    .mega-submenu a {

        font-size: 12px;
    }
}
/* =========================================================
   FINAL FIX - REMOVE SECOND GLASS WINDOW
   SpinorSystem
========================================================= */

/*
   mega-menu فقط ظرف است.
   هیچ پس‌زمینه، blur، border یا shadow نباید داشته باشد.
*/

.mega-parent > .mega-menu,
.mega-parent > .mega-menu::before,
.mega-parent > .mega-menu::after {

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;

}


/*
   پنل اصلی دسته‌بندی
*/

.mega-parent > .mega-menu > .mega-categories {

    background:
        rgba(255, 255, 255, 0.72) !important;

    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;

}


/*
   فقط زیرمنوی انتخاب‌شده شیشه‌ای باشد
*/

.mega-parent
.mega-category-item:hover
> .mega-submenu {

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .76),
            rgba(255, 255, 255, .58)
        ) !important;

    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;

}


/*
   حذف هر نوع پنجره شیشه‌ای احتمالی
   که مستقیماً داخل mega-menu ایجاد شده باشد
   به جز mega-categories و mega-submenu
*/

.mega-parent > .mega-menu > *:not(.mega-categories) {

    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    box-shadow: none !important;
}


/*
   پل موس باقی می‌ماند،
   اما خودش کاملاً نامرئی است.
*/

.mega-parent::after {

    content: "";

    position: absolute;

    top: 100%;
    right: 0;

    width: 760px;
    height: 18px;

    background: transparent !important;

    border: none !important;
    box-shadow: none !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    z-index: 9998;

}


/*
   پل بین دسته‌بندی و زیرمنو
*/

.mega-category-item::after {

    content: "";

    position: absolute;

    top: 0;
    right: -10px;

    width: 10px;
    height: 100%;

    background: transparent !important;

    border: none !important;
    box-shadow: none !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    z-index: 10001;

}


/*
   منوی اصلی سایت کاملاً عادی
*/

.main-navbar,
.main-navbar .nav-link {

    background: transparent !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

}


/*
   بک‌دراپ قدیمی اگر هنوز جایی وجود دارد
*/

.mega-backdrop {

    display: none !important;

    background: transparent !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991.98px) {

    .mega-parent::after,
    .mega-category-item::after {

        display: none !important;

    }

}

/* FIX: brand links must not have white rectangles */
.mega-submenu > a {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

.mega-submenu > a:hover {
    background: rgba(37, 99, 235, .10) !important;
    border: none !important;
    box-shadow: none !important;
}

.mega-submenu > a img {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* =========================================================
   BRAND PRODUCTS - COMPACT PRODUCT CARDS
========================================================= */

.brand-products-page .product-card {
    padding: 8px !important;
    min-height: 0 !important;
    height: auto !important;
}

.brand-products-page .product-image {
    height: 105px !important;
    max-height: 105px !important;
    object-fit: contain !important;
}

.brand-products-page .product-body {
    padding: 6px 4px !important;
}

.brand-products-page .product-title {
    font-size: 11px !important;
    line-height: 1.5 !important;
    height: 34px !important;
    margin: 5px 0 !important;
}

.brand-products-page .product-price {
    font-size: 12px !important;
    margin: 4px 0 !important;
}

.brand-products-page .product-btn {
    font-size: 10px !important;
    padding: 5px 3px !important;
    min-height: 30px !important;
}

@media (max-width: 767.98px) {

    .brand-products-page .product-card {
        padding: 6px !important;
    }

    .brand-products-page .product-image {
        height: 90px !important;
        max-height: 90px !important;
    }

    .brand-products-page .product-title {
        font-size: 10px !important;
        height: 31px !important;
    }

    .brand-products-page .product-price {
        font-size: 11px !important;
    }

    .brand-products-page .product-btn {
        font-size: 9px !important;
        padding: 4px 2px !important;
    }
}

/* =========================================================
   BRAND PRODUCTS - FINAL COMPACT OVERRIDE
========================================================= */

.brand-products-page .product-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.brand-products-page .product-image {
    height: 105px !important;
    max-height: 105px !important;
    object-fit: contain !important;
}

.brand-products-page .product-title {
    font-size: 11px !important;
    line-height: 1.5 !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 5px 0 !important;
}

.brand-products-page .product-price {
    font-size: 12px !important;
    margin: 4px 0 !important;
}

.brand-products-page .product-btn {
    font-size: 10px !important;
    min-height: 30px !important;
    height: 30px !important;
    padding: 5px 3px !important;
}
/* =========================================
   BRAND PRODUCTS PAGE - COMPACT CARDS
   فقط مخصوص صفحه برند
========================================= */

@media (min-width: 577px) {

    .brand-products-page .product-card {
        height: auto !important;
        min-height: 0 !important;
        padding: 7px !important;

        display: flex !important;
        flex-direction: column !important;

        overflow: hidden !important;
    }

    /* IMAGE */

    .brand-products-page .product-card .product-image {
        width: 100% !important;
        height: 115px !important;
        max-height: 115px !important;

        flex: 0 0 115px !important;

        object-fit: contain !important;
        padding: 5px !important;
    }

    /* TITLE */

    .brand-products-page .product-card .product-title,
    .brand-products-page .product-card h4 {

        font-size: 12px !important;
        line-height: 1.5 !important;

        height: 36px !important;
        min-height: 36px !important;

        margin: 4px 0 !important;

        overflow: hidden !important;

        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    /* PRICE */

    .brand-products-page .product-card .product-price,
    .brand-products-page .product-card .price {

        font-size: 12px !important;
        line-height: 1.4 !important;

        height: 20px !important;
        min-height: 20px !important;

        margin: 3px 0 !important;

        white-space: nowrap !important;
    }

    /* BUTTON */

    .brand-products-page .product-card .product-btn {

        width: 100% !important;

        height: 28px !important;
        min-height: 28px !important;

        flex: 0 0 28px !important;

        padding: 3px 6px !important;

        margin-top: auto !important;

        font-size: 10px !important;
        line-height: 20px !important;

        display: block !important;

        visibility: visible !important;
        opacity: 1 !important;

        border-radius: 6px !important;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 576.98px) {

    .brand-products-page .product-card {

        height: auto !important;
        min-height: 0 !important;

        padding: 5px !important;
    }

    .brand-products-page .product-card .product-image {

        height: 90px !important;
        max-height: 90px !important;

        flex: 0 0 90px !important;

        padding: 3px !important;
    }

    .brand-products-page .product-card .product-title,
    .brand-products-page .product-card h4 {

        font-size: 10px !important;

        height: 30px !important;
        min-height: 30px !important;

        margin: 3px 0 !important;
    }

    .brand-products-page .product-card .product-price {

        font-size: 10px !important;

        height: 18px !important;
        min-height: 18px !important;

        margin: 2px 0 !important;
    }

    .brand-products-page .product-card .product-btn {

        height: 25px !important;
        min-height: 25px !important;

        flex: 0 0 25px !important;

        padding: 2px 4px !important;

        font-size: 9px !important;
    }
}
/* =========================================================
   BRAND PRODUCTS PAGE - FINAL OVERRIDE
   ========================================================= */

.brand-products-page .product-card {
    height: 240px !important;
    min-height: 240px !important;
    padding: 6px !important;
    margin: 0 !important;
}

.brand-products-page .product-image-link {
    display: block !important;
    height: 90px !important;
    min-height: 90px !important;
    overflow: hidden !important;
}

.brand-products-page .product-image-link .product-image {
    width: 100% !important;
    height: 90px !important;
    max-height: 90px !important;
    object-fit: contain !important;
    padding: 2px !important;
}

.brand-products-page .product-title {
    height: 34px !important;
    min-height: 34px !important;
    margin: 4px 0 !important;
    padding: 0 2px !important;

    font-size: 11px !important;
    line-height: 1.5 !important;

    overflow: hidden !important;
    text-align: center !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

.brand-products-page .product-price {
    height: 20px !important;
    min-height: 20px !important;

    margin: 3px 0 !important;

    font-size: 11px !important;
    line-height: 20px !important;

    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.brand-products-page .product-btn {
    width: 100% !important;
    height: 28px !important;
    min-height: 28px !important;

    margin-top: auto !important;
    padding: 3px 5px !important;

    font-size: 9px !important;
    line-height: 22px !important;

    display: block !important;
    text-align: center !important;

    border-radius: 6px !important;
}
/* =========================================
   FINAL PRODUCT DETAIL - COMPACT SIZE
   فقط صفحه جزئیات محصول
========================================= */

main .row > .col-lg-5 .card .card-body {
    padding: 20px;
}

main .row > .col-lg-5 .product-image {
    width: 100%;
    height: 230px;
    object-fit: contain;
}

main .row > .col-lg-7 .card-body {
    padding: 24px;
}

main .row > .col-lg-7 h2.fw-bold {
    font-size: 24px;
    line-height: 1.7;
    margin-bottom: 12px !important;
}

main .row > .col-lg-7 .text-muted {
    font-size: 14px;
    line-height: 1.9;
}

main .row > .col-lg-7 h5 {
    font-size: 15px;
}

main .row > .col-lg-7 h2.text-success {
    font-size: 25px;
}

main .row > .col-lg-7 > .card {
    height: auto !important;
}

main .row > .col-lg-7 .btn-lg {
    font-size: 14px;
    padding: 9px 16px;
}

main .row > .col-lg-7 p {
    font-size: 14px;
}

main > .card.mt-5 {
    margin-top: 30px !important;
}

main > .card.mt-5 .card-body {
    font-size: 15px;
    line-height: 2;
}

main > .mt-5 {
    margin-top: 35px !important;
}

main > .mt-5 .card-img-top {
    height: 130px !important;
}

@media (max-width: 768px) {

    main .row > .col-lg-5 .product-image {
        height: 200px;
    }

    main .row > .col-lg-7 h2.fw-bold {
        font-size: 20px;
    }

    main .row > .col-lg-7 h2.text-success {
        font-size: 22px;
    }

}

