@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700&display=swap');

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background: #f5f5f5;
    color: #333;
}

.topbar {
    background: #0f2e1c;
    color: #c8a96e;
    padding: 6px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    direction: rtl;
    font-family: 'Vazirmatn', sans-serif;
}
.topbar a {
    color: #c8a96e;
    text-decoration: none;
    margin-left: 15px;
    font-size: 13px;
    transition: color 0.3s;
}
.topbar a:hover { color: white; }

header {
    background: linear-gradient(135deg, #1a4a2e 0%, #2d6b47 60%, #c8a96e 100%);
    color: white;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img.logo { height: 70px; }

header .brand-text { margin-right: 12px; }

header .brand-text h2 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 3px;
}

header .brand-text p {
    color: #f0e6d2;
    font-size: 13px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 15px;
    font-weight: 500;
}

nav a:hover { color: #c8a96e; }

.container {
    max-width: 950px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.card h2 {
    color: #1a4a2e;
    margin-bottom: 25px;
    font-size: 20px;
    border-bottom: 2px solid #c8a96e;
    padding-bottom: 10px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 500;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    direction: rtl;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a4a2e;
}

.materials-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.materials-table th {
    background: #1a4a2e;
    color: white;
    padding: 10px 12px;
    text-align: right;
    font-size: 14px;
}

.materials-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.materials-table input,
.materials-table select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    direction: rtl;
}

.materials-table input:focus,
.materials-table select:focus {
    outline: none;
    border-color: #1a4a2e;
}

.btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: #1a4a2e;
    color: white;
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.btn-primary:hover { background: #c8a96e; color: #1a4a2e; }

.btn-add {
    background: #e8f5e9;
    color: #1a4a2e;
    font-size: 13px;
    padding: 8px 18px;
    border: 1px solid #1a4a2e;
}

.btn-add:hover { background: #c8a96e; color: white; border-color: #c8a96e; }

.btn-remove {
    background: #ffe5e5;
    color: #c00;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.contact-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-whatsapp { background: #25D366; color: white; flex:1; text-align:center; padding:13px; border-radius:8px; text-decoration:none; font-family:'Vazirmatn',sans-serif; font-weight:500; }
.btn-telegram { background: #0088cc; color: white; flex:1; text-align:center; padding:13px; border-radius:8px; text-decoration:none; font-family:'Vazirmatn',sans-serif; font-weight:500; }
.btn-bale     { background: #7B5EA7; color: white; flex:1; text-align:center; padding:13px; border-radius:8px; text-decoration:none; font-family:'Vazirmatn',sans-serif; font-weight:500; }

.upload-area {
    border: 2px dashed #c8a96e;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    color: #888;
    cursor: pointer;
    transition: background 0.3s;
}

.upload-area:hover { background: #f5fff8; }

.catalog-category { margin-bottom: 30px; }

.catalog-category h3 {
    background: #1a4a2e;
    color: white;
    padding: 10px 18px;
    border-radius: 8px 8px 0 0;
    font-size: 16px;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 0 0 8px 8px;
}

.brand-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    font-weight: 500;
    color: #1a4a2e;
    font-size: 14px;
    transition: all 0.3s;
}

.brand-card:hover {
    border-color: #c8a96e;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

footer {
    background: #1a4a2e;
    color: #aaa;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    font-size: 13px;
}

.mobile-col-1 { display: table-cell; }

.hero {
    background: #f5f5f5;
    color: #1a4a2e;
    padding: 50px 30px;
    display: flex;
    justify-content: center;
}

.hero-inner {
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.hero-inner h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-inner p {
    font-size: 15px;
    color: #555;
    line-height: 1.9;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.hero-badge {
    background: #fff;
    color: #1a4a2e;
    border: 1px solid #c8a96e;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 13px;
}

.card-elevated {
    box-shadow: 0 8px 30px rgba(26,74,46,0.1);
    border: 1px solid #f0ece2;
}

.section-label {
    display: inline-block;
    background: #f5fff8;
    color: #1a4a2e;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    border: 1px solid #c8e6cf;
}

@media (max-width: 600px) {
    .topbar { display: none; }
    header {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px 15px;
        gap: 8px;
    }
    header .logo { height: 50px; }
    header .brand-text h2 { font-size: 15px; }
    header .brand-text p { font-size: 11px; }
    header nav {
        width: 100%;
        display: flex;
        justify-content: space-around;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 8px;
    }
    header nav a { margin-left: 0; font-size: 13px; }
    .contact-buttons { flex-direction: column; }
    .mobile-col-1 { display: none; }
    .form-group input,
    .form-group select,
    .form-group textarea { font-size: 16px; }
    .hero { padding: 35px 20px; }
    .hero-inner h1 { font-size: 22px; }
    .hero-inner p { font-size: 13px; }