@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;
}

header {
    background: #c8a96e;
    color: #1a4a2e;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #c8a96e;
}

header img.logo {
    height: 75px;
}

header .brand-text {
    margin-right: 12px;
}

header .brand-text h2 {
    color: #1a4a2e;
    font-size: 22px;
    margin-bottom: 3px;
}

header .brand-text p {
    color: #1a4a2e;
    font-size: 13px;
}

nav a {
    color: #1a4a2e;
    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; }

.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; }
.btn-telegram { background: #0088cc; color: white; flex:1; text-align:center; padding:13px; }
.btn-bale     { background: #7B5EA7; color: white; flex:1; text-align:center; padding:13px; }

.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;