:root {
    --gold: #E4B100;
    --gold-dark: #B58A00;
    --gold-light: #F7E7A0;
    --text-dark: #2B2B2B;
    --bg-light: #FAFAFA;
    --danger: #c0392b;
}

body {
    margin: 0;
    font-family: IRANSans, sans-serif;
    direction: rtl;
    background: var(--bg-light);
    color: var(--text-dark);
}

/* هدر */
.hero {
    height: 70vh;
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 4px solid var(--gold);
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--gold-light);
    text-shadow: 0 0 12px rgba(0,0,0,0.6);
}

/* دکمه‌ها */
.btn-primary {
    background: var(--gold);
    color: #111;
    padding: 12px 26px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(228,177,0,0.4);
}

.btn-primary:hover {
    background: var(--gold-dark);
    box-shadow: 0 0 18px rgba(228,177,0,0.7);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #eee;
    color: #333;
    padding: 8px 18px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

/* نوار بالا */
.navbar {
    background: #fff;
    border-bottom: 3px solid var(--gold);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    align-items: center;
}

.logo {
    font-weight: bold;
    color: var(--gold-dark);
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    margin-left: 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: 0.3s;
    font-size: 0.95rem;
    padding-bottom: 3px;
}

.nav-links a:hover {
    color: var(--gold-dark);
    border-bottom: 2px solid var(--gold);
}

/* فرم سرچ */
.search-form {
    display: inline-block;
    margin-right: 10px;
}

.search-form input {
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 0.85rem;
}

/* بخش‌ها */
.section {
    padding: 50px 20px;
    max-width: 1100px;
    margin: auto;
}

.section h2 {
    text-align: center;
    color: var(--gold-dark);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.alt {
    background: #fffdf5;
}

/* کارت‌ها */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border: 1px solid var(--gold-light);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    border-color: var(--gold);
}

.product-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
    object-fit: cover;
    max-height: 180px;
}

/* قیمت */
.price {
    display: block;
    color: var(--gold-dark);
    font-weight: bold;
    margin: 8px 0;
    font-size: 1.1rem;
}

/* ناموجود */
.badge-out {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--danger);
    color: #fff;
    font-size: 0.8rem;
}

/* دکمه افزودن */
.btn-add-cart {
    display: inline-block;
    margin-top: 8px;
    background: var(--gold);
    color: #111;
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-add-cart:hover {
    background: var(--gold-dark);
    box-shadow: 0 0 10px rgba(228,177,0,0.6);
}

/* زیرعنوان دسته محصولات */
.sub-title {
    margin: 25px 0 15px;
    font-size: 1.4rem;
    color: var(--gold-dark);
    border-right: 4px solid var(--gold);
    padding-right: 10px;
}

/* ارتباط با ما */
.contact-full {
    max-width: 100%;
    padding: 15px 0 30px;
    background: var(--gold);
    color: #fff;
}

.contact-box {
    width: 1100px;
    max-width: 95%;
    margin: 0 auto;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 22px;
    transition: 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* سبد خرید */
.cart-body {
    background: #fffdf5;
}

.cart-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.cart-table th,
.cart-table td {
    border: 1px solid #eee;
    padding: 8px;
    text-align: center;
}

.cart-table th {
    background: var(--gold-light);
}

.qty-btn {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold);
    color: #111;
    text-decoration: none;
    line-height: 24px;
    font-size: 14px;
    margin: 0 4px;
}

.qty {
    min-width: 20px;
    display: inline-block;
}

/* پاپ‌آپ انتخاب تعداد */
.qty-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000;
}

.qty-modal.show {
    display: block;
}

.qty-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.qty-modal-content {
    position: relative;
    max-width: 320px;
    margin: 120px auto;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    z-index: 1001;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.qty-modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--gold-dark);
}

.qty-input {
    width: 100%;
    padding: 8px 10px;
    margin: 8px 0 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-family: inherit;
}

.qty-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* درباره ما */
.about-section {
    padding: 50px 20px;
    max-width: 900px;
    margin: auto;
}

.about-container {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    border-right: 4px solid var(--gold);
}

.about-container h1 {
    color: var(--gold-dark);
    margin-bottom: 15px;
}

.about-container p {
    line-height: 2;
    font-size: 1rem;
    color: var(--text-dark);
}

.about-image {
    width: 100%;
    margin-top: 20px;
    border-radius: 12px;
}

/* فوتر */
.footer {
    text-align: center;
    padding: 15px;
    border-top: 2px solid var(--gold-light);
    color: #777;
    font-size: 0.9rem;
    background: #fff;
}

/* ورودی‌های عمومی */
.input-text, textarea {
    width: 100%;
    padding: 10px 12px;
    margin: 8px 0 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    font-family: inherit;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {

    .hero {
        height: 45vh;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .navbar {
        flex-direction: column;
        padding: 10px;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

    .nav-links a {
        margin: 5px;
        font-size: 0.85rem;
    }

    .search-form input {
        width: 140px;
        font-size: 0.8rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 15px;
    }

    .product-image {
        max-height: 150px;
    }

    .cart-wrapper {
        width: 95%;
        padding: 10px;
    }

    .cart-table th,
    .cart-table td {
        font-size: 0.8rem;
        padding: 5px;
    }

    .qty-btn {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .qty-modal-content {
        width: 90%;
        margin-top: 100px;
    }

    .about-container {
        padding: 15px;
    }

    .about-container h1 {
        font-size: 1.4rem;
    }

    .footer {
        font-size: 0.8rem;
    }
}

/* ریسپانسیو تبلت */
@media (max-width: 992px) {

    .navbar {
        padding: 10px 15px;
    }

    .nav-links a {
        margin-left: 10px;
        font-size: 0.9rem;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .product-image {
        max-height: 160px;
    }

    .cart-wrapper {
        width: 90%;
    }
}

