@font-face {
    font-family: 'iranyekan';
    src: url('../fonts/iranyekanr.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-feature-settings: "ss02";
    font-display: swap;

}

@font-face {
    font-family: 'iranyekan';
    src: url('../fonts/iranyekanb.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-feature-settings: "ss02";
    font-display: swap;

}

@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap !important;
    src: url('../webfonts/fa-solid-900.woff2') format('woff2');
}

body {

    font-family: 'iranyekan' !important;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    direction: rtl;
    /* برای فارسی‌سازی */
    text-align: right;

}
.ss02 {
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}
.woocommerce,
.woocommerce * {
    font-family: 'iranyekan' !important;
}
body {

    font-family: 'iranyekan' !important;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    direction: rtl;
background: #ffffff !important ;
}
/*
start homepage
*/

/* تنظیمات پایه */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2px;
    background-color: #fff !important;
}





/* *********************start cards ***************************8*/

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

/* سه عکس بالا */
.category-card:nth-child(1),
.category-card:nth-child(2),
.category-card:nth-child(3) {
    grid-column: span 2;
}

/* دو عکس پایین – وسط‌چین */
.category-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.category-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.category-card:nth-child(1) {
    overflow: visible;
}


/* کارت‌ها */
.category-card {

    position: relative;
    border-radius: 12px;

}

.category-card img {
    width: 100%;
    display: block;
    border-radius: 20px;

}

.category-card .banner-btn {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.6em 1.4em;
    font-size: clamp(12px, 1.1vw, 16px);
    background: rgba(0, 68, 176, 1);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;

}

.category-section {
    margin: 40px 20px 0px;

}

/* *********************finish cards ****************************/
/*  ********************    start offer    ********************     */

.backgroundoffer {
    background-color: #d32f2f;
    padding: 15px 0;
    margin-top: 40px;
}


.offer-home-product {
    display: flex;
    background: #2f2f2f;
    border-radius: 30px;
    padding: 60px 10px;
    gap: 20px;
    align-items: center;

    box-sizing: border-box;
}




.offer-button {
    flex: 0 0 220px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

p.title-offer {
    font-size: 26px;
    line-height: 1.5;
    color: #fff;
    margin: 0 0 20px;
    font-weight: bold;
}

a.button-offer-all {
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 18px;
    border: 2px solid rgba(0, 68, 176, 1);
    ;
    background: transparent;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.product-offer ul.products {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;

    box-sizing: border-box;
}




.product-offer ul.products::-webkit-scrollbar {
    height: 6px;
}

.product-offer ul.products::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 10px;
}

.product-offer ul.products li.product {
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    min-width: 270px;
    max-width: 270px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    margin: 0 !important;
}


.product-offer li.product img {
    border-radius: 12px;
    background: #fff;
}

.product-offer .woocommerce-loop-product__title {
    font-size: 14px;
    line-height: 1.6;
    color: #111;
    margin: 10px 0 6px;
}

.product-offer .price {
    color: rgba(0, 68, 176, 1);
    ;
    font-weight: bold;
    margin-bottom: 8px;
}

.product-offer .add_to_cart_button {
    display: none !important;
}

.product-offer ul.products {
    scrollbar-width: none;
}

.product-offer ul.products::-webkit-scrollbar {
    display: none;
}

.product-offer ul.products {
    scroll-snap-type: x mandatory;
}

.product-offer ul.products li.product {
    scroll-snap-align: start;
}
.product-offer li.product {
    position: relative;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffcc00;
    color: #000;
    font-size: 13px;
    font-weight: bold;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.offer-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #666;
    opacity: 0.4;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block; /* مهم */
}

.offer-dots span.active {
    background: #fff;
    opacity: 1;
}

.product-offer {
    overflow-y: hidden;
}
.product-offer ul.products {
    -webkit-overflow-scrolling: touch;
}

/*  ********************   finish offer    ********************     */

/********************* تازه ترین محصولات *****************/
.latest-products p{
    font-size: 26px;
     line-height: 1.5;
    color: #000000;
    margin: 20px 0;
     font-weight: bold;
}
.latest-products {
    direction: rtl;
    padding: 20px;
}

.latest-products h2 {
    text-align: right;
    margin-bottom: 15px;
}

.products-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
}

.products-slider::-webkit-scrollbar {
    display: none;
}

.product-card {
    min-width: 289px;
    max-width: 289px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

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

.product-card h3 {
    font-size: 14px;
    margin: 10px 0;
}

.price-wrapper {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

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

.sale-price {
    color: #e53935;
    font-weight: bold;
    font-size: 18px;
}

.normal-price {
    color: #0b57d0;
    font-weight: bold;
    font-size: 18px;
}
.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #0b57d0;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-dots .dot.active {
    background: #000;
}
/********************* تازه ترین محصولات *****************/
/*********************   محصولات هایک ویژن *****************/

/*************** companies ***********/

.header {
    text-align: center;
    padding: 50px 0;
}

.header p {
    font-size: 36px;
    color: #333;
    font-weight: bold;
}

.companies {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.company-item {
    min-width: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.company-item:hover {
    border: 2px solid rgba(0, 68, 176, 1);
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.15);
}

/* خود لوگو */
.company-item img {
    max-height: 150px;
    width: auto;
    transition: transform 0.3s ease;
}

.company-item img:hover {
    transform: scale(1.08);
}

/*************** companies ***********/


/* عکس وسط صفحه **************8******************/
.bg-section {
    position: relative;
    background-image: url('https://www.armandidehpardaz.com/wp-content/uploads/2025/08/Hikvision-in-Iran.jpg');
    /* عکس بک گراند */
    background-size: cover;
    /* مهم */
    background-position: center;
    /* مهم */
    background-repeat: no-repeat;

    min-height: 400px;
    /* ارتفاع بخش */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 10px;
    margin-bottom: 40px;
}


/* لایه تیره برای خوانایی */
.bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

/* محتوای روی عکس */
.bg-content {
    position: relative;
    color: #fff;
    text-align: right;
    max-width: 580px;
    padding: 20px;
    line-height: 1.6;
    margin-top: 15px;

}
.bg-content p {
    margin-bottom: 20px;
    text-align: justify;
}
.bg-content h2{
    font-size: 25px;
    margin-bottom: 15px;
}

.bg-content p {
    font-size: 14px;
    margin-bottom: 20px;
    margin-left: 0px;
}


/* *******************عکس وسط صفحه ********************************/

/* **********************88باکس های صفحه *****************/

.feature-box {
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    gap: 40px;
}

.feature-text {
    width: 50%;
}

.feature-text h2 {
    color: #3b6df6;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-text p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 15px;
    font-size: 15px;
        text-align: justify;

}

.feature-image {
    width: 50%;
    text-align: center;
}

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

/********************* باکس های صفحه *****************/
/* ********************* افتخار همکاری با شرکت های************* */


.companies2 {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    align-items: center;
    margin-top: 20px;
}

.partner-company {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-company img {
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
}


/* <!------------------ باکس تماس با ما-----------------> */
.call-box {
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    gap: 40px;
}

.call-text {
    width: 50%;
}



.call-text p {
    color: #3b6df6;
    line-height: 1.9;
    margin-bottom: 15px;
    font-size: 25px;
    font-weight: bold;
    text-align: justify;

}
.call-text p:nth-child(2),
.call-text p:nth-child(3) {
    color: #050606;;
    font-size: 24px;
    margin-bottom: 30px;

}

.call-image {
    width: 40%;
    text-align: center;
}

.call-image img {
    max-width: 100%;
    height: auto;
}
.call-text .call-btn{

    transform: translateX(-50%);
    background: rgba(0, 68, 176, 1);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    margin-top: 10px;
}
/***************** بخش درباره ما *******************/
.about-section {
    display: flex;
    align-items: center;
    background: #001f3f;
    color: white;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 50px;
}

.about-text {
    padding: 40px;
    flex: 1;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    display: block;
}

.container {
    overflow-x: hidden;
}
html,
body,
div,
span,
p,
a,
li,
ul,
ol,
h1,
h2,
h3,
h4,
h5,
h6,
input,
textarea,
button,
label {
    font-family: 'iranyekan' !important;
}

/*     end body         */
/* ============================= */
/* ======= TABLET (1024↓) ===== */
/* ============================= */

@media (max-width: 1024px) {

    /* گرید دسته بندی */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card {
        grid-column: auto !important;
    }

    /* پیشنهاد ویژه */
    .offer-home-product {
        flex-direction: column;
        padding: 40px 20px;
    }

    .offer-button {
        flex: unset;
        margin-bottom: 20px;
    }

    /* جدیدترین محصولات */
    .product-card {
        min-width: 260px;
        max-width: 260px;
    }

    /* محصولات هایک ویژن */
    .hikvision-wrapper {
        flex-direction: column;
    }

    .hikvision-cats {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* باکس ویژگی */
    .feature-box {
        flex-direction: column;
        text-align: center;
    }

    .feature-text,
    .feature-image {
        width: 100%;
    }

    /* لوگو شرکت‌ها */
    .companies2 {
        grid-template-columns: repeat(4, 1fr);
    }

}


/* ============================= */
/* ======= MOBILE (768↓) ====== */
/* ============================= */

@media (max-width: 768px) {

    /* فاصله کلی */
    .latest-products,
    .category-section {
        padding: 15px;
        margin: 30px 10px;
    }

    /* دسته بندی */
    .category-grid {
        grid-template-columns: 1fr;
    }

    /* پیشنهاد ویژه */
    .offer-home-product {
        border-radius: 20px;
        padding: 30px 15px;
    }
 .offer-home-product {
        flex-direction: column;
        align-items: stretch;
    }
    .offer-button {
        flex: unset;
        width: 100%;
        margin-bottom: 20px;
    }

    .product-offer {
        width: 100%;
    }

    h6.title-offer {
        font-size: 20px;
    }

    a.button-offer-all {
        font-size: 14px;
        padding: 10px 20px;
    }

    .product-offer ul.products li.product {
        min-width: 220px;
        max-width: 220px;
    }

    /* اسلایدر جدیدترین */
    .product-card {
        min-width: 220px;
        max-width: 220px;
        padding: 15px;
    }

    .product-card h3 {
        font-size: 13px;
    }

    .sale-price,
    .normal-price {
        font-size: 16px;
    }

    /* هایک ویژن */
    .products-grid {
        grid-template-columns: 1fr;
    }

    /* بک گراند وسط صفحه */
    .bg-section {
        min-height: 300px;
        justify-content: center;
        text-align: center;
    }

    .bg-content {
        max-width: 100%;
        text-align: center;
        text-align: justify;

    }
    .feature-text p{
                text-align: justify;

    }
    .call-box {
    flex-direction: column;
    text-align: center;
    }
    
    .call-text,
    .call-image {
    width: 100%;
    }
    .call-text p{
    text-align: center;

    }

    /* شرکت‌ها */
    .companies {
        gap: 15px;
    }

    .company-item {
        min-width: 120px;
    }

    .company-item img {
        max-height: 90px;
    }

    .companies2 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* درباره ما */
    .about-section {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        padding: 25px;
    }

}


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

@media (max-width: 480px) {

    .product-card {
        min-width: 200px;
        max-width: 200px;
    }

    .product-offer ul.products li.product {
        min-width: 200px;
        max-width: 200px;
    }

    h6.title-offer {
        font-size: 18px;
    }

    .bg-content h3 {
        font-size: 18px;
    }

}