/* ==================================================
   تنظیمات پایه
   ================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
    background-color: #f7f3ee;
    color: #292522;
    line-height: 1.8;
}


a {
    text-decoration: none;
}


/* ==================================================
   HEADER
   ================================================== */

header {
    width: 100%;
    height: 80px;
    background-color: #292522;
    color: #ffffff;
    position: relative;
    z-index: 100;
}


.header-container {
    width: 90%;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* لوگو */

.logo {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    white-space: nowrap;
}


/* منو */

header nav {
    display: flex;
    align-items: center;
    gap: 30px;
}


header nav a {
    color: #ffffff;
    font-size: 15px;
    white-space: nowrap;
    transition: 0.3s;
}


header nav a:hover {
    color: #c9a46c;
}


/* ==================================================
   HERO
   ================================================== */

.hero {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}


.hero > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(49, 48, 48, 0.15);
}


.hero-content {
    position: absolute;

    left: 15%;
    right: auto;

    top: 50%;
    transform: translateY(-50%);

    width: 550px;

    color: #ffffff;

    text-align: right;

    z-index: 2;
}


.hero-content h1 {
    font-size: 48px;
    line-height: 1.5;
    margin-bottom: 18px;

    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.55);
}


.hero-content p {
    font-size: 17px;
    line-height: 2;
    margin-bottom: 28px;

    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.5);
}


.hero-button {
    display: inline-block;

    padding: 12px 30px;

    background-color: #c9a46c;
    color: #ffffff;

    border: 1px solid #c9a46c;
    border-radius: 4px;

    font-size: 15px;

    transition: 0.3s;
}


.hero-button:hover {
    background-color: transparent;
}


/* ==================================================
   PRODUCTS
   ================================================== */

.products {
    width: 100%;
    padding: 70px 5% 80px;
    background-color: #f7f3ee;
}


/* عنوان */

.section-title {
    max-width: 850px;
    margin: 0 auto 35px;
    text-align: center;
}


.section-title span {
    display: block;

    color: #a88a5b;

    font-size: 13px;

    letter-spacing: 2px;

    margin-bottom: 8px;
}


.section-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
}


.section-title p {
    color: #666;
    font-size: 15px;
}


/* ==================================================
   FILTER
   ================================================== */

.product-filters {
    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 35px;
}


.filter-btn {
    padding: 8px 18px;

    border: 1px solid #d5c2a3;

    border-radius: 4px;

    background-color: transparent;

    color: #5c4b36;

    font-family: inherit;
    font-size: 13px;

    cursor: pointer;

    transition: 0.3s;
}


.filter-btn:hover,
.filter-btn.active {
    background-color: #c9a46c;
    color: #ffffff;
    border-color: #c9a46c;
}


/* ==================================================
   PRODUCT GRID
   ================================================== */

.product-grid {
    width: 100%;
    max-width: 1250px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* ==================================================
   PRODUCT CARD
   ================================================== */

.product {
    display: block;

    background-color: #ffffff;

    border-radius: 7px;

    overflow: hidden;

    border: 1px solid #eee5da;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.06);

    color: #292522;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.product:hover {
    transform: translateY(-5px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.11);
}


/* تصویر */

.product-image {
    width: 100%;
    height: 300px;

    overflow: hidden;

    background-color: #eeeeee;
}


.product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}


.product:hover
.product-image img {
    transform: scale(1.03);
}


/* اطلاعات */

.product-info {
    padding: 18px 20px 22px;

    text-align: right;
}


.product-category {
    display: inline-block;

    padding: 3px 10px;

    margin-bottom: 8px;

    border-radius: 20px;

    background-color: #f2e9db;

    color: #8c7046;

    font-size: 11px;
}


.product-info h3 {
    font-size: 19px;

    margin-bottom: 7px;

    color: #292522;
}


.product-info p {
    font-size: 13px;

    color: #777;

    min-height: 50px;

    margin-bottom: 12px;
}


.product-link {
    color: #a27d43;

    font-size: 13px;

    font-weight: bold;
}


/* ==================================================
   PAGINATION
   ================================================== */

.pagination {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 40px;
}


.pagination button {
    min-width: 34px;
    height: 34px;

    padding: 0 8px;

    border: 1px solid #d8c7ae;

    border-radius: 3px;

    background-color: #ffffff;

    color: #5c4b36;

    font-family: inherit;

    cursor: pointer;

    transition: 0.3s;
}


.pagination button.active,
.pagination button:hover {
    background-color: #c9a46c;

    color: #ffffff;

    border-color: #c9a46c;
}


/* ==================================================
   CUSTOM ORDER
   ================================================== */

.custom {
    width: 100%;

    min-height: 320px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 70px 20px;

    background-color: #292522;

    color: #ffffff;
}


.custom > div {
    max-width: 750px;
}


.custom h2 {
    font-size: 30px;
    margin-bottom: 15px;
}


.custom p {
    color: #dddddd;

    font-size: 15px;

    margin-bottom: 25px;
}


.custom-button {
    display: inline-block;

    padding: 12px 30px;

    background-color: #c9a46c;

    color: #ffffff;

    border-radius: 4px;

    border: 1px solid #c9a46c;

    transition: 0.3s;
}


.custom-button:hover {
    background-color: transparent;
}


/* ==================================================
   ABOUT
   ================================================== */

.about {
    width: 100%;

    padding: 80px 6%;

    background-color: #ffffff;
}


.about-container {
    max-width: 1100px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        0.8fr 1.2fr;

    gap: 60px;

    align-items: center;
}


.about-title span {
    color: #a88a5b;

    font-size: 13px;

    letter-spacing: 2px;
}


.about-title h2 {
    font-size: 34px;

    margin-top: 8px;
}


.about-text p {
    color: #666;

    font-size: 15px;

    line-height: 2.2;

    margin-bottom: 15px;
}


/* ==================================================
   FOOTER
   ================================================== */

footer {
    width: 100%;

    background-color: #292522;

    color: #ffffff;

    padding: 55px 6% 30px;
}


.footer-container {
    max-width: 1250px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 40px;
}


.footer-column {
    text-align: right;
}


.footer-column h2 {
    font-size: 25px;

    margin-bottom: 12px;
}


.footer-column h3 {
    font-size: 18px;

    margin-bottom: 15px;
}


.footer-column p {
    color: #cccccc;

    font-size: 13px;

    line-height: 2;

    margin-bottom: 7px;
}


.footer-column a {
    display: block;

    color: #cccccc;

    font-size: 13px;

    margin-bottom: 8px;

    transition: 0.3s;
}


.footer-column a:hover {
    color: #c9a46c;
}


.rubika-number {
    color: #c9a46c !important;

    font-size: 16px !important;

    font-weight: bold;
}


.footer-button {
    display: inline-block !important;

    margin-top: 10px;

    padding: 8px 18px;

    background-color: #c9a46c;

    color: #ffffff !important;

    border-radius: 4px;
}


.footer-bottom {
    max-width: 1250px;

    margin: 40px auto 0;

    padding-top: 25px;

    border-top:
        1px solid rgba(255,255,255,0.12);

    text-align: center;

    color: #aaaaaa;

    font-size: 12px;
}


/* ==================================================
   PRODUCT PAGE
   ================================================== */
.product-page {
    min-height: calc(100vh - 80px);

    padding: 40px 5%;

    background-color: #f7f3ee;

    display: flex;
    align-items: center;
    justify-content: center;
}
.product-detail {
    width: 100%;

    max-width: 1100px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 40px;

    align-items: center;

    background-color: #ffffff;

    padding: 30px;

    border-radius: 10px;

    box-shadow:
        0 8px 35px rgba(0,0,0,0.07);
}
/* تصویر محصول */

.product-detail-image {
    width: 100%;

    min-height: 500px;

    background-color: #eeeeee;

    border-radius: 10px;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;
}


.product-detail-image img {
    width: 100%;

    height: 660px;

    object-fit: cover;

    display: block;
}


/* اطلاعات */

.product-detail-info {
    text-align: right;
}


.product-detail-info
.product-category {
    margin-bottom: 10px;
}


.product-code {
    display: block;

    color: #999;

    font-size: 12px;

    margin-bottom: 15px;
}


.product-detail-info h1 {
    font-size: 34px;

    margin-bottom: 20px;

    color: #292522;
}


.product-description {
    color: #666;

    font-size: 15px;

    line-height: 2.2;

    margin-bottom: 25px;
}


/* مشخصات */

.product-specs {
    border-top:
        1px solid #eee5da;

    border-bottom:
        1px solid #eee5da;

    padding: 15px 0;

    margin-bottom: 25px;
}


.spec-item {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 7px 0;

    font-size: 14px;
}


.spec-item strong {
    color: #292522;
}


.spec-item span {
    color: #777;
}


/* قیمت */

.product-price {
    font-size: 20px;

    color: #a27d43;

    margin-bottom: 25px;
}


/* سفارش */

.product-order {
    padding: 20px;

    background-color: #f7f3ee;

    border-radius: 7px;

    margin-bottom: 25px;
}


.product-order p {
    color: #666;

    font-size: 13px;

    margin-bottom: 15px;
}


.order-button {
    display: inline-block;

    padding: 11px 22px;

    background-color: #c9a46c;

    color: #ffffff;

    border-radius: 4px;

    font-family: inherit;

    font-size: 14px;
}


.order-number {
    display: block;

    margin-top: 10px;

    color: #8c7046;

    font-size: 14px;

    font-weight: bold;
}


/* بازگشت */

.back-products {
    display: inline-block;

    color: #8c7046;

    font-size: 13px;

    font-weight: bold;

    margin-top: 5px;
}


.back-products:hover {
    color: #292522;
}


/* محصول پیدا نشد */

.product-not-found {
    width: 100%;

    text-align: center;

    padding: 80px 20px;
}


.product-not-found h1 {
    margin-bottom: 15px;
}


.product-not-found p {
    color: #777;

    margin-bottom: 25px;
}


/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 1000px) {

    .header-container {
        width: 94%;
    }


    header nav {
        gap: 18px;
    }


    .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .footer-container {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .product-detail {
        grid-template-columns: 1fr;
    }


    .product-detail-image {
        min-height: auto;
    }


    .product-detail-image img {
        height: 500px;
    }

}


@media (max-width: 700px) {

    header {
        height: auto;

        padding: 18px 0;
    }


    .header-container {
        flex-direction: column;

        gap: 15px;
    }


    header nav {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;

        gap: 12px 18px;
    }


    .logo {
        font-size: 25px;
    }


    .hero {
        height: 500px;
    }


    .hero-content {
        left: 5%;

        width: 90%;

        text-align: center;
    }


    .hero-content h1 {
        font-size: 35px;
    }


    .hero-content p {
        font-size: 15px;
    }


    .products {
        padding:
            55px 4% 65px;
    }


    .section-title h2 {
        font-size: 27px;
    }


    .product-grid {
        grid-template-columns: 1fr;
    }


    .product-image {
        height: 300px;
    }


    .about-container {
        grid-template-columns: 1fr;

        gap: 25px;

        text-align: center;
    }


    .footer-container {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    .footer-column {
        text-align: center;
    }


    .product-page {
        padding:
            40px 4%;
    }


    .product-detail {
        padding: 20px;

        gap: 30px;
    }


    .product-detail-image img {
        height: 400px;
    }


    .product-detail-info h1 {
        font-size: 28px;
    }

}


@media (max-width: 450px) {

    .hero {
        height: 450px;
    }


    .hero-content h1 {
        font-size: 29px;
    }


    .filter-btn {
        padding: 7px 13px;

        font-size: 12px;
    }


    .product-image {
        height: 260px;
    }


    .product-detail-image img {
        height: 320px;
    }

}