@font-face {
    font-family: 'iranyekan';
    src: url('../fonts/iranyekanr.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'iranyekan';
    src: url('../fonts/iranyekanb.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

body {

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

}

.woocommerce,
.woocommerce * {
    font-family: 'iranyekan' !important;
}

/*
start homepage
*/

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


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    background: #ffffff !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: 40px 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;
}

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

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: 240px;
    max-width: 240px;
    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;
}

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

.offer-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #777;
    opacity: 0.5;
}

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

.product-offer {
    overflow: hidden;
}

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

/********************* تازه ترین محصولات *****************/

.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: 260px;
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    position: relative;
    scroll-snap-align: start;
    box-shadow: 0 0 0 1px #eee;
    text-align: center;
}

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

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

.price {
    color: #0b57d0;
    font-weight: bold;
}

.price del {
    color: #aaa;
    font-size: 12px;
    margin-left: 5px;
}

.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;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
}

.slider-dots .dot.active {
    background: #000;
}

.products-slider {
    scroll-behavior: smooth;
}

/********************* تازه ترین محصولات *****************/
/*********************   محصولات هایک ویژن *****************/

.hikvision-wrapper {
    display: flex;
    gap: 30px;
}

.hikvision-cats {
    width: 220px;
}

.hikvision-cats ul {
    list-style: none;
    padding: 0;
}

.hikvision-cats li {
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.hikvision-cats li.active {
    color: #0066ff;
    font-weight: bold;
}

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

.product-card {
    border: 1px solid #eee;
    padding: 10px;
    text-align: center;
}

/*********************   محصولات هایک ویژن *****************/





/* استایل بنرهای بالا */
/* .banner-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
}

.banner-card {
    flex: 1;
    height: 180px;
    border-radius: 10px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: white;
    font-weight: bold;
    background-size: cover;
    background-position: center;
}
.banner-btn {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);

    padding: 0.6em 1.4em;
    font-size: clamp(12px, 1.1vw, 16px);

    background: #1e88e5;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
} */

/* رنگ‌بندی پیشنهادات ویژه */
/* .special-offers {
    background-color: #d32f2f;
    padding: 40px 0;
    margin: 50px 0;
}

.offer-wrapper {
    display: flex;
    gap: 20px;
}

.offer-sidebar {
    width: 25%;
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 75%;
}

.product-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    position: relative;
    text-align: center;
}

.discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #1e88e5;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
} */



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

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

.header h1 {
    font-size: 36px;
    color: #333;
}

.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;

}

.bg-content h3 {
    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;
}

.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;
}

/* موبایل */
@media (max-width: 768px) {
    .companies2 {
        grid-template-columns: 1fr;
    }
}

/* <!------------------ افتخار همکاری با شرکت های -----------------> */



/***************** بخش درباره ما *******************/
.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;
}

html,
body {
    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         */
@media (max-width: 768px) {

    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

}