/*
Theme Name: My Theme
Author: You
Version: 1.0
*/
@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;
}




/*
start header
*/
header {
    color: white;
}



/*
end header
*/









/*
start homepage
*/

/* تنظیمات پایه */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* استایل بنرهای بالا */
.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;
}

/* رنگ‌بندی پیشنهادات ویژه */
.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;
}

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

/*
end homepage
*/

















/*
start footer
*/


.footer {
    background-color: #222;
    color: #fff;
    padding: 40px 0 20px;
    font-family: sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 90%;
    margin: auto;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-column p,
.footer-column a {
    font-size: 14px;
    color: #ccc;
    line-height: 1.8;
    text-decoration: none;
}

.footer-column a:hover {
    color: #fff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #aaa;
    border-top: 1px solid #444;
    padding-top: 15px;
}

/* ریسپانسیو */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 500px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

img.image-footer {
    width: 170px;
    height: auto;
    margin: 0px 10%;
}

/*
end footer
*/

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

body {
background: #f5f5f5;
}

/* نوار بالا */
.header-top {
background: #fff;
display: flex;
align-items: center;
padding: 20px 40px;
gap: 30px;
}

.logo {
height: 60px;
}

.search-box {
position: relative;
width: 100%;
}

.search-box input {
width: 100%;
padding: 12px 15px 12px 45px; /* جا برای آیکن سمت چپ */
border-radius: 25px;
border: 1px solid #ddd;
outline: none;
font-size: 14px;
max-width:815px;
}

.search-btn {
position: absolute;
left: 15px; /* سمت چپ */
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
cursor: pointer;
color: #777;
font-size: 16px;
}

.contact-box {
display: flex;
align-items: center;
gap: 10px;
font-size: 13px;
}

.contact-box i {
color: #2ecc71;
font-size: 18px;
}

.numbers {
display: flex;
flex-direction: column;
color: #000;
}

.cart-icon {
font-size: 20px;
cursor: pointer;
}

/* نوار پایین */
.navbar {
background: #333;
color: #fff;
display: flex;
justify-content: space-between;
padding: 12px 40px;
align-items: center;
}

.menu {
list-style: none;
display: flex;
gap: 25px;
align-items: center;
}

.menu li {
font-size: 12px;
cursor: pointer;
}

.category {
    background-color: white;
    color: #333;
    border: 1px;
    border-radius: 33px;
    min-width: 195px;
padding: 8px 14px;
}

.nav-left {
display: flex;
align-items: center;
gap: 20px;
}

.icon-text {
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
cursor: pointer;
}

.price-btn {
background: rgba(0, 68, 176, 1);
border: none;
padding: 10px 18px;
border-radius: 6px;
color: #fff;
cursor: pointer;
}
/* *********************finish header ***************************8*/
/* *********************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 {

position: relative;
border-radius: 12px;
overflow: hidden;
}

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

.category-card button {
position: absolute;
bottom: 15px;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 68, 176, 1);
color: #fff;
border: none;
padding: 8px 18px;
border-radius: 6px;
font-size: 13px;
cursor: pointer;
}
.category-section{
    margin: 40px 20px 0px;
}
/* *********************finish cards ****************************/
.special-offer {
background: #2f2f2f;
padding: 40px;
display: flex;
gap: 30px;
align-items: center;
margin-top: 40px;
}

/* باکس پیشنهاد */
.offer-box {
width: 220px;
color: #fff;
text-align: center;
}

.offer-box h2 {
font-size: 22px;
line-height: 1.6;
margin-bottom: 20px;
}

.offer-box button {
background: transparent;
border: 2px solid #1e88e5;
color: #1e88e5;
padding: 8px 16px;
border-radius: 6px;
cursor: pointer;
}

/* اسلایدر */
.product-slider {
display: flex;
gap: 20px;
overflow-x: auto;
padding-bottom: 10px;
}

.product-card {
background: #fff;
width: 200px;
border-radius: 10px;
padding: 15px;
text-align: center;
flex-shrink: 0;
}

.product-card img {
width: 100%;
height: 120px;
object-fit: contain;
}

.product-card h4 {
font-size: 13px;
margin: 10px 0;
}

.price {
color: #1e88e5;
font-weight: bold;
font-size: 14px;
}

/* part2 body */
.header {
text-align: center;
padding: 50px 0;
}

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

.companies {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 20px;
flex-wrap: wrap;
justify-content: space-evenly;
max-width: 100%;
}

.companies img {
width: 120px;
height: auto;
transition: transform 0.3s ease;
}

.companies img:hover {
transform: scale(1.1);
}

.main-image {
position: relative;
width: 100%;
}

.background-img {
width: 100%;
height: auto;
}

.text-overlay {
position: absolute;
top: 40%;
right: 55%;
transform: translateY(-50%);
color: #fff;
padding: 20px;
font-size: 13px;
margin-left: 30px;
}
.text-overlay p{
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
    justify-content: center;
}



/*     start body         */
.offer-home-product{
        display: flex;
    background-color: #2F2F2F !important;
        padding: 5% 5%;
}


.offer-button {
    color: white;
    flex: 10%;
        margin: 7% 0px;
}


button.button-offer-all {
    padding: 15px 35px;
    border-radius: 10px;
    font-size: 20px;
}

h2.title-offer {
    font-size: 30px;
    margin-bottom: 20px;
}

.product-offer {
    flex: 80%;
}


li.product.type-product.post-370.status-publish.first.instock.product_cat-furniture.has-post-thumbnail.shipping-taxable.purchasable.product-type-simple, li.product.type-product.post-53.status-publish.instock.product_cat-furniture.has-post-thumbnail.shipping-taxable.purchasable.product-type-variable, li.product.type-product.post-51.status-publish.instock.product_cat-furniture.has-post-thumbnail.shipping-taxable.purchasable.product-type-simple, li.product.type-product.post-50.status-publish.last.instock.product_cat-toys.has-post-thumbnail.shipping-taxable.purchasable.product-type-simple {
    background-color: white;
    padding: 10px;
    border-radius: 10px;
}




.woocommerce ul.products li.product a img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 1em;
    box-shadow: none;
    border-radius: 10px;
}


.woocommerce .products ul, .woocommerce ul.products {
    margin: 0 0 1em;
    padding: 0;
    list-style: none outside;
    clear: both;
    text-align: center;
}
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         */