body {
    font-family: "IRANSans", sans-serif;
    background: #fafafa;
    margin: 0;
    direction: rtl;
}

.top-header {
    background: #d4af37;
    padding: 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: bold;
}

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

.menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

.hero {
    background: url('../images/hero-gold.jpg') center/cover no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    background: rgba(0,0,0,0.5);
    padding: 20px 40px;
    border-radius: 10px;
    color: #fff;
    text-align: center;
}

.section-title {
    text-align: center;
    margin-top: 40px;
    font-size: 24px;
    color: #444;
}

.products {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 20px;
    justify-content: center;
}

.product-card {
    background: #fff;
    width: 230px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 0 10px #ccc;
    text-align: center;
    position: relative;
}

.product-card img {
    width: 100%;
    border-radius: 10px;
}

.price, .new-price {
    color: #d4af37;
    font-size: 18px;
    font-weight: bold;
}

.old-price {
    text-decoration: line-through;
    color: red;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
}

.btn {
    display: inline-block;
    margin-top: 10px;
    background: #d4af37;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
}
.product-container {
    display: flex;
    gap: 40px;
    padding: 30px;
    justify-content: center;
}

.gallery {
    width: 45%;
}

.main-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 10px #ccc;
}

.thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}

.thumbs img:hover {
    border-color: #d4af37;
}

.product-info {
    width: 40%;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 10px #ccc;
}

.product-info h2 {
    margin-bottom: 15px;
}

.price {
    font-size: 22px;
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 20px;
}

.desc {
    margin-top: 20px;
    line-height: 1.8;
}

.buy-btn {
    display: inline-block;
    margin-top: 25px;
    background: #d4af37;
    color: #fff;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
}
.cart-box {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    box-shadow: 0 0 5px #ccc;
}
/* هدر طلایی حرفه‌ای */
.top-header {
    background: linear-gradient(90deg, #d4af37, #b8860b);
    padding: 15px 0;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* لوگو */
.logo {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px #000;
}

/* منو */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
}

.nav-menu ul li a:hover {
    background: rgba(255,255,255,0.2);
    color: #000;
}

/* سبد خرید */
.cart-box a {
    background: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.cart-box a:hover {
    background: #f7e7b7;
}

.cart-count {
    background: #d4af37;
    color: #fff;
    padding: 3px 8px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}
/* هدر طلایی حرفه‌ای */
.top-header {
    background: linear-gradient(90deg, #d4af37, #b8860b);
    padding: 15px 0;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* لوگو */
.logo {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px #000;
}

/* منو */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
}

.nav-menu ul li a:hover {
    background: rgba(255,255,255,0.2);
    color: #000;
}

/* سبد خرید */
.cart-box a {
    background: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.cart-box a:hover {
    background: #f7e7b7;
}

.cart-count {
    background: #d4af37;
    color: #fff;
    padding: 3px 8px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}




/* هدر طلایی */
.top-header {
    background: linear-gradient(90deg, #d4af37, #b8860b);
    padding: 15px 0;
    box-shadow: 0 0 15px rgba(0,0,0,0.25);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* سه ستون: لوگو – منو – سبد */
.top-header .header-container {
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* لوگو سمت راست */
.top-header .logo {
    font-size: 26px;
    font-weight: bold;
    color: #fff;
    justify-self: start;
}

/* دکمه موبایل */
.top-header .mobile-menu-btn {
    display: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    justify-self: center;
}

/* منو وسط */
.top-header .nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.top-header .nav-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 14px;
    border-radius: 6px;
    transition: 0.3s;
}

/* سبد خرید سمت چپ */
.top-header .cart-box {
    justify-self: end;
}

/* ------------------------- */
/* نسخه موبایل */
/* ------------------------- */

@media (max-width: 768px) {

    /* دکمه موبایل فعال */
    .top-header .mobile-menu-btn {
        display: block;
    }

    /* منو مخفی می‌شود */
    .top-header .nav-menu {
        display: none;
        grid-column: 1 / 4;
        background: #b8860b;
        padding: 15px 0;
        margin-top: 10px;
        border-radius: 10px;
    }

    /* منو عمودی */
    .top-header .nav-menu ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .top-header .nav-menu ul li a {
        font-size: 20px;
        padding: 10px;
        display: block;
    }
}

/* وقتی منو باز شد */
.top-header .nav-menu.show {
    display: block !important;
}

.cart-container {
    width: 90%;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px #ccc;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.cart-table th, .cart-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.cart-table th {
    background: #d4af37;
    color: #fff;
}

.success-box {
    background: #d4af37;
    color: #fff;
    padding: 10px;
    margin: 15px 0;
    border-radius: 8px;
    text-align: center;
}

.total-price {
    margin-top: 20px;
    font-size: 20px;
    color: #d4af37;
    font-weight: bold;
}

.checkout-btn {
    display: inline-block;
    background: #d4af37;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 20px;
    font-size: 18px;
}


.register-box {
    width: 400px;
    margin: 40px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 10px #ccc;
}

.register-box h2 {
    text-align: center;
    margin-bottom: 20px;
}

.register-box label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.register-box input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.btn {
    width: 100%;
    background: #d4af37;
    color: #fff;
    padding: 12px;
    border: none;
    margin-top: 20px;
    border-radius: 8px;
    cursor: pointer;
}

.error-box {
    background: #ff4d4d;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* --- صفحه وبلاگ حرفه‌ای --- */

.blog-container {
    width: 90%;
    max-width: 1100px;
    margin: 50px auto;
    padding-bottom: 50px;
}

.blog-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(212,175,55,0.3);
}

/* --- باکس هر پست --- */
.blog-post {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 45px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    border: 1px solid #eee;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* --- عنوان پست --- */
.post-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    border-right: 4px solid #d4af37;
    padding-right: 10px;
}

/* --- عکس پست --- */
.post-image {
    width: 100%;
    border-radius: 14px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: 0.3s ease;
}

.post-image:hover {
    transform: scale(1.03);
}

/* --- متن پست --- */
.post-text {
    font-size: 18px;
    line-height: 2.2;
    color: #444;
    margin-top: 10px;
    text-align: justify;
}

/* --- ریسپانسیو موبایل --- */
@media (max-width: 768px) {
    .blog-title {
        font-size: 28px;
    }

    .post-title {
        font-size: 22px;
    }

    .blog-post {
        padding: 20px;
    }
}
.hero {
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 25px 25px;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
}

.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero-text h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 20px;
}