body {
    direction: rtl;
}

.top-header-1 {
    position: relative;
    height: 100vh;
}

.top-header-2 {
    position: relative;
    height: 12vh;
    align-content: center;
    background-color: #000;
}

.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;

}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* .background-container::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0px 100px 100px -50px #563400;
    ;
} */
/* =================== Layout: Header & Footer =================== */
.grid-based {
    display: grid;
    grid-template-columns: 10% 1fr 10%;
    grid-template-rows: 70px;

    align-items: center;
}

.second-column {
    grid-column: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-a div {
    letter-spacing: 5px;
    font-size: x-large;
}

.left-a div:hover {
    border-bottom: 1px solid var(--w-global-color-bg-98-white);
    transition: 0.5s ease 0s all;
}

/* footer */

.grid-based-footer {
    display: grid;
    grid-template-columns: 10% 1fr 10%;
    grid-template-rows: 150px;
    align-items: center;
}

.grid-based-footer .footer-p-style {
    font-size: 12px;
    margin: 10px 0;
    color: var(--w-global-color-bg-98-white);
}

.bottom {
    bottom: 0;
    background: #000;
}

.social {
    font-size: xx-large;
    text-align: center;
    padding: 10px;
    width: 50px;
}


/* =================== Menu =================== */
.menu {
    grid-column: 2;
    text-align: end;
    align-items: center;
}

.menu-item-four {
    display: inline-block;
    cursor: pointer;
    width: 6vw;
    text-align: center;
}

.menu-item-front {
    color: #fff;
    text-decoration: none;
}

/* ========================== Posts (Single) ========================== */

.article-single {
    width: 800px;
    margin: 0 auto;
}

.featured-image {
    text-align: center;
}


.toc-wrapper {
    border: 1px solid #ddd;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.toc-toggle {
    width: auto;
    font-family: "Vazir";
    background: var(--w-global-color-bg-98-white);
    color: var(--w-global-color-primary);
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    /* margin-bottom: 10px; */
    font-size: 0.95em;
    border: 0;
}

.toc-toggle:hover {
    background: var(--w-global-color-secondary-90-glass);
    color: var(--w-global-color-bg-98-white);
}

.table-of-contents {
    display: none;
}

.table-of-contents ul {
    padding-left: 20px;
    margin: 0;
}

.table-of-contents li {
    padding: 6px;
}

.table-of-contents a {
    text-decoration: none;
    color: #0073aa;
}

.table-of-contents a:hover {
    text-decoration: underline;
}

/* sr-only کلاس مخفی برای ابزار کمکی */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =================================== Products (Archive & Single) ============================== */
.products-parent {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.almas-product {
    max-width: 90%;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.product-thumbnail {
    text-align: center;
    margin-bottom: 20px;
}

.product-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --------- */


.single-product-two {
    display: flex;
    grid-column: 2;
    justify-content: space-around;
    padding: 10px;
    margin: 10px;
}

.single-product-three {
    width: 45%;
}

.single-product-four {
    width: 45%;
}

.product-featured-image {
    object-fit: cover;
    aspect-ratio: 1/1;
}



/* archive product css */
.archive-product-almas {
    display: flex;
    flex-wrap: wrap;
}

.archive-product-item {
    width: 20%;
    border: 1px solid gray;
    padding: 20px;
    margin: 10px;
}

/*category post blog */
.main-archive-list-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5px;
}

/* ====================================== TEST ====================================== */




/* ====================================== Responsive ====================================== */
@media (max-width: 768px) {
    .home-background {
        height: calc(100vh - 300px);
    }

    .home-background-img {
        object-fit: cover;
        object-position: center;
    }



    /* single post */
    .article-single {
        width: 100%;

    }

    /* single product */
    .products-parent {
        display: block;
    }

    /* archive product css */
    .archive-product-almas {
        display: block;
    }

    .archive-product-item {
        width: 90%;
        padding: 10px;
        margin: 20px auto;
    }

}