.ast-container, .ast-container-fluid {
    padding-right: 0px;
    padding-left: 0px;
    margin: 0;
}
/* ریشه: رنگ‌ها و فضاها */
:root {
  --brand-overlay: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.15));
  --brand-text-on-dark: #fff;
}

/* سکشن پارالاکس */
.brand-parallax {
  position: relative;
  color: var(--brand-text-on-dark);
  display: block;

  /* پس‌زمینه‌ی ثابت دسکتاپ */
  background-image:
    var(--brand-overlay),
    url('/wp-content/themes/astra-child/assets/img/factory-process.webp'); /* مسیر تصویر مراحل تولیدت */
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;  /* پارالاکس ساده */
}
.contain{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding:50px 20px;
    
}
/* فیلتر خوانایی روی بک‌گراند (اگر خواستی کم/زیادش کن) */
.brand-parallax__overlay {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(80% 60% at 50% 60%, rgba(0,0,0,.25), transparent 70%);
}

/* فاصله‌بندی محتوا */
.brand-parallax .ast-container {
  position: relative;
  z-index: 1;
  padding-top: clamp(48px, 8vh, 96px);
  padding-bottom: clamp(64px, 16vh, 160px);
}

/* تیتر و لید */
.brand-parallax__header h1 {
  font-size: clamp(22px, 3.5vw, 40px);
  line-height: 1.3;
  margin: 0 0 12px 0;
  color:white;
}
.brand-parallax__header p {
  margin: 0 0 24px 0;
  opacity: .95;
}

/* بخش متن‌ها */
.brand-parallax__content {
  display: grid;
  gap: 24px;
  max-width: 900px;
  p{
        margin: 0 12px 0 0;
  }
}
.brand-parallax__content .step {
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 16px 18px;
}
.brand-parallax__content .step h2 {
  font-size: clamp(18px, 2.2vw, 24px);
  margin: 0 0 8px;
  color:#f6d916;
}
.brand-parallax__ctas{
    display:flex;
    gap:20px;
}
/* دکمه‌ها */
.btn { display:inline-block; padding:10px 16px; border-radius:10px; text-decoration:none; font-weight:700; }
.btn--primary { background:#111; color:#fff; }
.btn--primary:hover { opacity:.9; }
.btn--ghost { border:1px solid rgba(255,255,255,.6); color:#fff; }
.btn--ghost:hover { border-color:#fff; }

@media (max-width: 600px) {
.brand-parallax {
  position: relative;
  color: var(--brand-text-on-dark);
  display: block;

  /* پس‌زمینه‌ی ثابت دسکتاپ */
  background-image:
    var(--brand-overlay),
    url('/wp-content/themes/astra-child/assets/img/factory.webp'); /* مسیر تصویر مراحل تولیدت */
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;  /* پارالاکس ساده */
}
.brand-parallax__ctas{
    display: flex;
    gap: 10px;
    }
}


@media (min-width: 922px) {
    .ast-container {
        max-width: 100%;
    }
}
.s-title{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: iran;
    padding: 30px 0 50px 0;
    background: linear-gradient(180deg, #d2d2d2, #FAF8F6);
    h1{
        margin-bottom: 20px;
    }
    h2{
        font-size: 50px;
        margin-bottom: 0.3em;
    }
    h3{
        font-size: 35px;
        color: #88352E;
    }
    .btnkard{
        margin-bottom: 0px;
        margin-top: 20px;
        a{
            color: white;
            background-color: #88352E;
            &:hover{
                color: white;
                background-color: #88352E;
                transform: scale(1.1);
            }
        }
    }

}
/*قسمت مخصوص به جدید ترین محصولات */
.new-product{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
    padding-right:2%;
    padding-left: 2%;
    background-color: rgb(240,240,240);
    h2{
        font-size: xx-large;
        margin-bottom: 40px;
    }
}
.btnkard{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    a{
        color: white;
        background-color: black;
        font-size: x-large;
        font-weight: bold;
        padding:15px 30px;
        border-radius: 50px;
        transition: all ease 0.25s;
        box-shadow: black 0 0 5px 1px;

        &:hover{
            color: #FEDE00;
            background-color: black;
            transform: scale(1.1);
        }
    }
}
@media (max-width: 700px) {
    .btnkard{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 25px;
        a{
            font-size: x-large;
            font-family: iran;
            font-weight: bold;
            padding:15px 30px;
            transition: all ease 0.25s;
            box-shadow: black 0 0 5px 1px;

            &:hover{
                color: #FEDE00;
                background-color: black;
                transform: scale(1.1);
            }
        }
    }

}
.woocommerce ul.products li.product {
    border-radius: 42px;
    padding: 10px 10px 20px 10px;
    background-color: #c8c8c8;
    transition: all  0.25s;
    .astra-shop-thumbnail-wrap{
        border-radius: 42px;
        img{
            border-radius: 32px;
        }
    }
    .astra-shop-summary-wrap{
        padding: 10px;
    }
}
.woocommerce ul.products li.product:hover{
    transform: scale(1.05);
}
.woocommerce-js ul.products li.product .woocommerce-loop-product__title{
    color: white;!important;
    font-size: 24px;
    font-family: iran;
    margin-right: 5px;
    transition: linear;
}
.woocommerce ul.products li.product .price{
    font-size: 18px;
    text-align: end;
    margin-bottom: 0;
}
.woocommerce-js ul.products li.product .ast-woo-product-category{
    font-size: 18px;
    margin-bottom: 0;
    font-family: iran;
}
@media (max-width: 544px) {
    .new-product {
        padding-top: 25px;
        h2 {
            font-size: x-large;
            margin-bottom:20px;
        }
    }
    .ast-container .woocommerce ul.products:not(.elementor-grid), .woocommerce-page ul.products:not(.elementor-grid), .woocommerce.mobile-columns-1 ul.products:not(.elementor-grid), .woocommerce-page.mobile-columns-1 ul.products:not(.elementor-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .woocommerce ul.products, .woocommerce-page ul.products {
        column-gap: 10px;
    }
    .woocommerce-js ul.products li.product .woocommerce-loop-product__title{
        font-size: 16px;
        margin-right: 0px;
    }
    .woocommerce ul.products li.product .price{
        font-size: 10px;

    }
    .woocommerce-js ul.products li.product .ast-woo-product-category{
        font-size: 12px;
    }
    .ast-on-card-button.ast-onsale-card {
        visibility: hidden;

    }
    .woocommerce ul.products li.product {
        border-radius: 16px;
        padding: 5px 5px 10px 5px;
        .astra-shop-thumbnail-wrap{
            border-radius: 16px;
            img{
                border-radius: 12px;
            }
        }
        .astra-shop-summary-wrap{
            padding: 0px;
        }
    }
}

.products{
    margin: 50px 0;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 3%;
    img{
        border-radius: 25px;
    }
}
.and{
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px;

}
.knife{
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}
.surv{
    width: 40%;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 20px;
}
.survival{
    position: absolute;
    right: 7%;
    bottom: 15%;
    color: #ffeccc;
    h2{
        color: white;
    }
}
.hunt{
    position: relative;
    display: flex;
    flex-direction: column;
    width: 48%;
    border-radius: 20px;

}
.hunting{
        position: absolute;
        right: 10%;
        top: 2%;
        text-align: right;
    color: #4b4b4b;
    h2{
        color: black;
    }
}
.excess{
    position: absolute;
    right: 5%;
    top: 2%;
    text-align: right;
    color: #cfcfcf;
    h2{
        color: white;
    }
}
.kitchen{
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
}
.kitchen-knife{
    position: absolute;
    right: 4%;
    top: 12%;
    color: white;
    h2{
        color: black;
    }
}
.shop-btn a {
    border: 1px solid #FFFFFF; /* یا هر ضخامت و رنگی که بخوای */
    border-radius: 6px;
    padding: 16px 36px;
    text-decoration: none;
    color: #FFFFFF;
    transition: all 0.2s;
    background-color: rgba(250,250,250,0.3);
    &:hover{
        box-shadow: 0px 0px 20px 5px #909090;
    }
    transition: all 0.2s;
}
.shop-btn{
    margin: 24px 0px;
    a{
        color: white;
    }
}
@media (max-width: 425px) {
    .category{
       display: flex;
    }
    .products{
        display: none;
    }
}
@media (min-width: 426px) {
    .category{
        display: none;
    }
}
@media (max-width: 1023px) {
    .survival {
    right: 7%;
    bottom: 2%;
    }
    .hunting {
    position: absolute;
    right: 18%;
    top: 4%;
      p{
        font-size:12px;
      }
    }
    .hunting {
    h2 {
        color: black;
        margin-bottom: 0.1em;
    }
}

    .kitchen-knife {
    left: 28%;
    right: 1%;
    top: 8%;
    .shop-btn {
            margin: 10px 15px;
        }
     p{
            margin-bottom: 0;
      }
      
    }
    .excess {
    h2 {
        color: white;
        margin-bottom: 10px;
        }
    }
    .shop-btn a {
    padding: 7px 14px;
    text-decoration: none;
    color: #FFFFFF;
    transition: all 0.2s;
    background-color: rgba(250, 250, 250, 0.3);
    }
}
.category{

    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 1.5%;
}
.knifes{
    border-radius: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    img{
        border-radius: 30px;
    }
}
.sunt{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.eki{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.k-btn a{
    border: 1px solid #FFFFFF; /* یا هر ضخامت و رنگی که بخوای */
    border-radius: 10px;
    padding: 5px 15px;
    text-decoration: none;
    transition: all 0.2s;
    background-color: rgba(250,250,250,0.3);
    color: white;
    &:hover{
        box-shadow: 0px 0px 20px 5px #909090;
    }
}
.k4{
    position: absolute;
    right: 10px;
    bottom: 25px;
    color: #FEF6EC;
    p{
        margin-bottom: 1em;
    }
    h2{
        color: #FEF6EC;
        margin-bottom: 5px;
    }
}
.k1{
    position: absolute;
    right: 10px;
    top: 25px;
    h2{
        color: #FEF6EC;
        margin-bottom: 5px;
    }
}
.k2{
    position: absolute;
    top: 10px;
    right: 20px;
}
.k5{
    position: absolute;
    bottom: 10px;
    right: 15px;
}
.k3{
    position: absolute;
    left: 5px;
    top: 15px;
}
.k6{
    position: absolute;
    bottom: 15px;
    right: 15px;
    a{
        border: 1px solid #FFFFFF; /* یا هر ضخامت و رنگی که بخوای */
        border-radius: 10px;
        padding: 5px 15px;
        text-decoration: none;
        transition: all 0.2s;
        background-color: rgba(50,50,50,0.3);
        color: white;
        &:hover{
            box-shadow: 0px 0px 20px 5px #909090;
        }
    }
}
/* === آخرینن  پست  === */
.post-section{
 background-color: #c8c8c8;
 padding: 1px 0;
}
.latest-post-section {
  max-width: 1200px;            /* کمی عریض‌تر برای دسکتاپ */
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
  text-align:center;

}

body .latest-post-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 1em;!importent;
}

.latest-post-card {
  background: #F2F3F7;
  border-radius: 20px;
  overflow: hidden;
  transition: transform .3s ease;
}

.latest-post-card:hover { transform: translateY(-4px); }

.latest-post-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.latest-post-content {
  padding: 22px;
}

.latest-post-content h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.latest-post-content p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 18px;
}

.latest-post-content .read-more {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 12px 18px;
  background: #c62828;          /* قرمز دکمه */
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}
.latest-post-content .read-more::after { content: "›"; font-size: 20px; line-height: 1; }
.latest-post-content .read-more:hover { background: #a51f1f; transform: translateY(-1px); }

/* === دسکتاپ: تبدیل به دو ستون مثل نمونه (متن چپ / تصویر راست) === */
@media (min-width: 1024px) {
  .latest-post-section { text-align: center; }

  .latest-post-card {
    display: grid;
    grid-template-columns: 1.05fr 1.35fr;   /* ستون چپ متن / ستون راست تصویر */
    align-items: center;
    min-height: 355px;                      /* ارتفاع کارت شبیه نمونه */
    border-radius: 25px;
  }

  /* تصویر بره ستون راست و کل ارتفاع رو بگیره */
  .latest-post-thumb {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    height: 100%;
  }
  .latest-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* متن در ستون چپ با فاصله داخلی مناسب */
  .latest-post-content {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    padding: 48px 56px;
  }

  .latest-post-content h3 {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .latest-post-content p {
    font-size: 16px;
    max-width: 56ch;                        /* خوانایی بهتر پاراگراف */
  }

  /* اگر سایتت RTL است و می‌خواهی متن همچنان در ستون چپ بماند: */
  html[dir="rtl"] .latest-post-card { direction: ltr; }
  html[dir="rtl"] .latest-post-content,
  html[dir="rtl"] .latest-post-title { direction: rtl; } /* فقط متن RTL بماند */
}

