@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/iransansx/IRANSansX-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/iransansx/IRANSansX-Regular.woff2') format('woff2'),
         url('../fonts/iransansx/IRANSansX-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/iransansx/IRANSansX-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Base */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body,
button,
input,
textarea,
select {
    font-family: 'IRANSansX', 'Vazirmatn', sans-serif;
}

body {
    direction: rtl;
    margin: 0;
    background: #f5f6f8;
    color: #222;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: #d1001f;
    color: #fff;
}

/* کنترل بهتر عرض در مانیتورهای بزرگ */
.container {
    width: min(92%, 1120px);
    margin-inline: auto;
    position: relative;
}

/* Header */
.site-header {
    background: #3F3F41;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 84px;
    gap: 24px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    flex-shrink: 0;
}

.site-logo {
    width: 110px;
    height: auto;
    object-fit: contain;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    text-align: right;
}

.site-brand-text strong {
    font-size: 24px;
    color: #fff;
    font-weight: 800;
}

.site-brand-text span {
    font-size: 13px;
    color: #c8c8c8;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #f2f2f2;
    font-size: 15px;
    font-weight: 700;
    transition: 0.25s ease;
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #ff3654;
    transition: 0.25s ease;
}

.main-nav a:hover {
    color: #ff3654;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    min-height: 590px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(63,63,65,0.70), rgba(63,63,65,0.92)),
        url('/assets/images/hero-cover.jpg') center center / cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 25%, rgba(209, 0, 31, 0.28), transparent 32%),
        linear-gradient(to bottom, rgba(0,0,0,0.08), rgba(0,0,0,0.25));
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(209, 0, 31, 0.16), transparent 35%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 88px 0;
    width: 100%;
}

.hero-content {
    max-width: 760px;
    text-align: right;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.14);
    color: #f5f5f5;
    font-size: 13px;
    font-weight: 700;
}

.hero-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3654;
    box-shadow: 0 0 0 6px rgba(255,54,84,0.14);
}

.hero-title {
    margin: 0 0 22px;
    line-height: 1.35;
}

.hero-title-main {
    display: block;
    font-weight: 900;
    font-size: clamp(42px, 4.2vw, 64px);
    margin-bottom: 14px;
    color: #fff;
    letter-spacing: -1px;
    text-shadow: 0 12px 35px rgba(0,0,0,0.28);
}

.hero-title-line {
    display: block;
    font-weight: 800;
    font-size: clamp(19px, 1.7vw, 27px);
    color: #f1f1f1;
    margin-bottom: 7px;
}

.hero-description {
    margin-top: 22px;
    line-height: 2.1;
    font-size: 18px;
    color: #ededed;
    max-width: 680px;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    transition: 0.28s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    min-height: 48px;
    line-height: 1.4;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: #d1001f;
    color: #fff;
    box-shadow: 0 12px 26px rgba(209, 0, 31, 0.28);
}

.btn-primary:hover {
    background: #e11231;
    box-shadow: 0 16px 34px rgba(209, 0, 31, 0.34);
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.32);
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.btn-outline-light:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
}

/* Sections */
.main-content {
    overflow: hidden;
}

.categories-section,
.why-coverplus,
.cars-section,
.about-brand,
.final-cta {
    padding: 82px 0;
}

.categories-section {
    background: #f5f6f8;
}

.why-coverplus {
    background:
        radial-gradient(circle at top left, rgba(209,0,31,0.05), transparent 30%),
        #f5f6f8;
}

.cars-section {
    background: #f1f2f4;
}

.about-brand {
    background: #f5f6f8;
}

.section-heading {
    text-align: center;
    margin-bottom: 44px;
}

.section-heading h2 {
    font-size: clamp(26px, 2.2vw, 36px);
    font-weight: 900;
    margin: 0 0 14px;
    color: #171717;
}

.section-heading p {
    margin: 0;
    color: #686868;
    font-size: 15px;
    line-height: 1.9;
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.category-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: 0.35s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.035);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 44px rgba(0,0,0,0.10);
}

.category-card img {
    width: 100%;
    height: 235px;
    object-fit: cover;
    transition: 0.45s ease;
}

.category-card:hover img {
    transform: scale(1.04);
}

.category-card-body {
    padding: 22px 20px 24px;
    text-align: center;
}

.category-card-body h3 {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 900;
    color: #202020;
}

.category-card-body p {
    margin: 0;
    color: #666;
    line-height: 1.9;
    font-size: 14px;
}

/* Why Cover Plus */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.why-card {
    position: relative;
    background:
        linear-gradient(145deg, #3f3f41, #323234);
    padding: 42px 26px;
    border-radius: 22px;
    text-align: center;
    color: #fff;
    overflow: hidden;
    transition: 0.35s ease;
    box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

.why-card::before {
    content: "";
    position: absolute;
    inset: auto -30px -70px auto;
    width: 160px;
    height: 160px;
    background: rgba(209,0,31,0.18);
    border-radius: 50%;
    transition: 0.35s ease;
}

.why-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: inherit;
    pointer-events: none;
}

.why-card:hover {
    transform: translateY(-9px) scale(1.015);
    box-shadow: 0 24px 48px rgba(0,0,0,0.16);
}

.why-card:hover::before {
    transform: scale(1.25);
    background: rgba(209,0,31,0.25);
}

.why-card .icon {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    color: #ff3654;
    font-size: 25px;
    margin-bottom: 10px;
    transition: 0.35s ease;
}

.why-card:hover .icon {
    background: #d1001f;
    color: #fff;
    transform: rotate(-4deg) scale(1.08);
}

.why-card h3 {
    position: relative;
    z-index: 1;
    color: #ff3654;
    margin: 15px 0 12px;
    font-size: 18px;
    font-weight: 900;
}

.why-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ececec;
    line-height: 1.9;
    font-size: 14px;
}

/* Cars */
.cars-box {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 26px;
    padding: 36px 30px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.045);
}

.car-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    justify-content: center;
}

.car-tags span {
    background: #f8f8f8;
    padding: 11px 25px;
    border-radius: 50px;
    border: 1px solid #e2e2e2;
    font-weight: 800;
    font-size: 14px;
    color: #333;
    transition: 0.28s ease;
}

.car-tags span:hover {
    background: #d1001f;
    color: #fff;
    border-color: #d1001f;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(209,0,31,0.22);
}

.cars-note {
    max-width: 720px;
    margin: 24px auto 0;
    text-align: center;
    color: #666;
    line-height: 1.9;
    font-size: 14px;
}

/* About */
.about-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 38px 42px;
    background: #fff;
    border-radius: 26px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 14px 36px rgba(0,0,0,0.045);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(209,0,31,0.07);
}

.about-text {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    line-height: 2.15;
    font-size: 16px;
    color: #454545;
}

/* Final CTA */
.final-cta {
    background:
        linear-gradient(135deg, rgba(63,63,65,0.96), rgba(45,45,47,0.98));
    color: #fff;
    text-align: center;
    padding: 76px 0;
}

.final-cta h2 {
    margin: 0;
    font-size: clamp(22px, 2vw, 32px);
    font-weight: 900;
    line-height: 1.7;
    color: #fff;
}

.final-cta .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-actions {
    width: 100%;
    justify-content: center !important;
    align-items: center;
    text-align: center;
    margin-top: 28px;
}

.final-cta .btn-outline-light {
    border-color: rgba(255,255,255,0.45);
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.final-cta .btn-outline-light:hover {
    background: #fff;
    color: #111;
}

/* Footer */
.site-footer {
    background: #3F3F41;
    color: #d8d8d8;
    padding: 68px 0 24px;
    border-top: 4px solid #d1001f;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1fr;
    gap: 34px;
    align-items: start;
    margin-bottom: 42px;
}

.footer-col {
    min-width: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.footer-logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    padding: 6px;
}

.footer-brand strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}

.footer-brand p {
    margin: 0;
    color: #cfcfcf;
    font-size: 13px;
}

.footer-about {
    margin: 0;
    color: #d5d5d5;
    line-height: 2;
    font-size: 14px;
    max-width: 360px;
}

.footer-col h3 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    position: relative;
    padding-right: 14px;
}

.footer-col h3::before {
    content: "";
    position: absolute;
    right: 0;
    top: 5px;
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: #d1001f;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.8;
    transition: 0.25s ease;
}

.footer-links a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.30);
    transition: 0.25s ease;
}

.footer-links a:hover {
    color: #ff3654;
    transform: translateX(-4px);
}

.footer-links a:hover::before {
    background: #ff3654;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 22px;
    text-align: center;
}

.footer-copy {
    margin: 0;
    color: #bdbdbd;
    font-size: 13px;
}
/* Products Page */
.products-page {
    padding: 42px 0 82px;
}

.products-title {
    margin: 0 0 22px;
    font-size: clamp(28px, 2.3vw, 38px);
    font-weight: 900;
    color: #181818;
    text-align: center;
}

.products-filter-form {
    margin-bottom: 30px;
}

.products-filter-simple {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.9fr) auto;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.04);
}

.products-filter-simple input,
.products-filter-simple select {
    width: 100%;
    height: 50px;
    border: 1px solid #d9dee5;
    border-radius: 14px;
    background: #fff;
    padding: 0 16px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: 0.25s ease;
}

.products-filter-simple input:focus,
.products-filter-simple select:focus {
    border-color: #d1001f;
    box-shadow: 0 0 0 4px rgba(209,0,31,0.08);
}

.products-filter-simple button {
    height: 50px;
    border: none;
    border-radius: 14px;
    padding: 0 22px;
    background: #d1001f;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
    white-space: nowrap;
}

.products-filter-simple button:hover {
    background: #eb1737;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(209,0,31,0.20);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.product-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;

    display: flex;
    flex-direction: column;
    min-height: 100%;
}


.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 44px rgba(0,0,0,0.10);
    border-color: rgba(209,0,31,0.16);
}

.product-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1 1 auto;
    min-height: 0;
}

.product-image-wrap {
    background: linear-gradient(180deg, #fbfbfb, #f2f3f5);
    padding: 20px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.45s ease;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.06);
}

.product-card-body {
    padding: 18px 18px 16px;
    text-align: center;
    flex: 1 1 auto;
}

.product-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 900;
    color: #202020;
    line-height: 1.8;
    transition: color 0.25s ease;
}

.product-card:hover .product-card-title {
    color: #d1001f;
}

.product-category {
    margin: 0;
    color: #707070;
    font-size: 13px;
    line-height: 1.8;
}

.product-admin-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    width: 100%;
    margin-top: auto;
    padding: 10px 12px 14px;

    border-top: 1px solid #eee;
    background: #fff;

    position: static;
    z-index: auto;

    visibility: visible;
    opacity: 1;
    flex-shrink: 0;
}

.product-admin-actions form {
    margin: 0;
    padding: 0;
    display: inline-flex;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 58px;
    height: 30px;
    padding: 0 10px;

    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
}


.admin-btn-edit {
    background: #2563eb;
    color: #fff ;
}

.admin-btn-delete {
    background: #dc2626;
    color: #fff ;
}
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    padding: 24px;
    color: #666;
    font-size: 15px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.04);
}

/* Product Single Page */
.product-single-page {
    padding: 36px 0 82px;
}

.breadcrumbs {
    margin-bottom: 20px;
}

.breadcrumbs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li:not(:last-child)::before {
    content: "/";
    color: #b5b5b5;
}

.breadcrumbs a {
    color: #444;
    transition: 0.25s ease;
}

.breadcrumbs a:hover {
    color: #d1001f;
}

.breadcrumbs .current {
    color: #999;
}

.product-single-card {
    display: grid;
    grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0,0,0,0.05);
}

.product-single-image {
    background: linear-gradient(180deg, #fafafa, #f2f3f5);
    padding: 26px;
    border-left: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.product-single-image > img {
    width: 100%;
    max-width: 360px;
    max-height: 360px;
    object-fit: contain;
    margin: 0 auto 18px;
}

.product-color-thumbs {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.product-color-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid transparent;
    background: #fff;
    border-radius: 14px;
    padding: 4px;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.product-color-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.product-color-thumb:hover {
    transform: translateY(-2px);
    border-color: #d1001f;
}

.product-color-thumb.active {
    border-color: #d1001f;
    box-shadow: 0 8px 20px rgba(209,0,31,0.18);
}

.selected-color-label {
    margin-top: 14px;
    font-size: 14px;
    color: #555;
    text-align: center;
}

.selected-color-label strong {
    color: #d1001f;
    font-weight: 800;
}

.product-single-content {
    padding: 34px;
}

.product-single-content h1 {
    margin: 0 0 12px;
    font-size: clamp(26px, 2.4vw, 38px);
    font-weight: 900;
    color: #181818;
    line-height: 1.6;
}

.product-single-category {
    margin: 0 0 22px;
    color: #666;
    font-size: 14px;
    line-height: 1.9;
}

.product-options {
    margin-bottom: 24px;
    padding: 22px;
    background: #f8f9fb;
    border: 1px solid #eceff3;
    border-radius: 18px;
}

.option-group + .option-group {
    margin-top: 22px;
}

.option-group label {
    display: block;
    margin-bottom: 12px;
    color: #222;
    font-size: 15px;
    font-weight: 800;
}

.car-option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.car-option-btn {
    border: 1px solid #d8dce2;
    background: #fff;
    color: #333;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.car-option-btn:hover {
    border-color: #d1001f;
    color: #d1001f;
}

.car-option-btn.active {
    background: #d1001f;
    color: #fff;
    border-color: #d1001f;
    box-shadow: 0 10px 22px rgba(209,0,31,0.22);
}

.selected-size-box {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e7eaf0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.selected-size-label {
    color: #444;
    font-size: 14px;
    font-weight: 700;
}

.selected-size-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selected-size-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(209,0,31,0.08);
    color: #b3001b;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
}

.color-option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.color-option-card {
    border: 1px solid #dde1e7;
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    transition: 0.25s ease;
}

.color-option-card:hover {
    transform: translateY(-3px);
    border-color: #d1001f;
}

.color-option-card.active {
    border-color: #d1001f;
    box-shadow: 0 10px 22px rgba(209,0,31,0.18);
}

.color-option-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f3f3;
}

.color-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-option-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-align: center;
    line-height: 1.7;
}

.color-empty-message {
    margin-top: 12px;
    color: #888;
    font-size: 14px;
}

.variant-result {
    margin-bottom: 24px;
    padding: 18px 20px;
    background: #fff5f6;
    border: 1px solid #ffd8de;
    border-radius: 16px;
}

#variant-title {
    color: #222;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.9;
}

#variant-status {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 800;
}

.stock.available {
    color: #0b8b45;
}

.stock.unavailable {
    color: #d1001f;
}

.product-single-short-description {
    margin: 0 0 24px;
    color: #555;
    font-size: 15px;
    line-height: 2.05;
}

.product-single-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.product-single-section h3 {
    margin: 0 0 14px;
    color: #202020;
    font-size: 20px;
    font-weight: 900;
}

.product-single-section p {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 2.05;
}

.product-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.product-features-list li {
    position: relative;
    padding: 14px 14px 14px 44px;
    background: #f7f8fa;
    border: 1px solid #eceef2;
    border-radius: 14px;
    color: #3c3c3c;
    font-size: 14px;
    line-height: 1.95;
}

.product-features-list li::before {
    content: "✓";
    position: absolute;
    right: 14px;
    top: 14px;
    color: #d1001f;
    font-size: 14px;
    font-weight: 900;
}

/* Product Single Page */
.product-single-page {
    padding: 36px 0 82px;
}

.breadcrumbs {
    margin-bottom: 20px;
}

.breadcrumbs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li:not(:last-child)::before {
    content: "/";
    color: #b5b5b5;
}

.breadcrumbs a {
    color: #444;
    transition: 0.25s ease;
}

.breadcrumbs a:hover {
    color: #d1001f;
}

.breadcrumbs .current {
    color: #999;
}

.product-single-card {
    display: grid;
    grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0,0,0,0.05);
}

.product-single-image {
    background: linear-gradient(180deg, #fafafa, #f2f3f5);
    padding: 26px;
    border-left: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.product-single-image > img {
    width: 100%;
    max-width: 360px;
    max-height: 360px;
    object-fit: contain;
    margin: 0 auto 18px;
}

.product-color-thumbs {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.product-color-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid transparent;
    background: #fff;
    border-radius: 14px;
    padding: 4px;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.product-color-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.product-color-thumb:hover {
    transform: translateY(-2px);
    border-color: #d1001f;
}

.product-color-thumb.active {
    border-color: #d1001f;
    box-shadow: 0 8px 20px rgba(209,0,31,0.18);
}

.selected-color-label {
    margin-top: 14px;
    font-size: 14px;
    color: #555;
    text-align: center;
}

.selected-color-label strong {
    color: #d1001f;
    font-weight: 800;
}

.product-single-content {
    padding: 34px;
}

.product-single-content h1 {
    margin: 0 0 12px;
    font-size: clamp(26px, 2.4vw, 38px);
    font-weight: 900;
    color: #181818;
    line-height: 1.6;
}

.product-single-category {
    margin: 0 0 22px;
    color: #666;
    font-size: 14px;
    line-height: 1.9;
}

.product-options {
    margin-bottom: 24px;
    padding: 22px;
    background: #f8f9fb;
    border: 1px solid #eceff3;
    border-radius: 18px;
}

.option-group + .option-group {
    margin-top: 22px;
}

.option-group label {
    display: block;
    margin-bottom: 12px;
    color: #222;
    font-size: 15px;
    font-weight: 800;
}

.car-option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.car-option-btn {
    border: 1px solid #d8dce2;
    background: #fff;
    color: #333;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.car-option-btn:hover {
    border-color: #d1001f;
    color: #d1001f;
}

.car-option-btn.active {
    background: #d1001f;
    color: #fff;
    border-color: #d1001f;
    box-shadow: 0 10px 22px rgba(209,0,31,0.22);
}

.selected-size-box {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e7eaf0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.selected-size-label {
    color: #444;
    font-size: 14px;
    font-weight: 700;
}

.selected-size-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selected-size-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(209,0,31,0.08);
    color: #b3001b;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
}

.color-option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.color-option-card {
    border: 1px solid #dde1e7;
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    transition: 0.25s ease;
}

.color-option-card:hover {
    transform: translateY(-3px);
    border-color: #d1001f;
}

.color-option-card.active {
    border-color: #d1001f;
    box-shadow: 0 10px 22px rgba(209,0,31,0.18);
}

.color-option-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f3f3;
}

.color-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-option-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-align: center;
    line-height: 1.7;
}

.color-empty-message {
    margin-top: 12px;
    color: #888;
    font-size: 14px;
}

.variant-result {
    margin-bottom: 24px;
    padding: 18px 20px;
    background: #fff5f6;
    border: 1px solid #ffd8de;
    border-radius: 16px;
}

#variant-title {
    color: #222;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.9;
}

#variant-status {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 800;
}

.stock.available {
    color: #0b8b45;
}

.stock.unavailable {
    color: #d1001f;
}

.product-single-short-description {
    margin: 0 0 24px;
    color: #555;
    font-size: 15px;
    line-height: 2.05;
}

.product-single-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.product-single-section h3 {
    margin: 0 0 14px;
    color: #202020;
    font-size: 20px;
    font-weight: 900;
}

.product-single-section p {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 2.05;
}

.product-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.product-features-list li {
    position: relative;
    padding: 14px 14px 14px 44px;
    background: #f7f8fa;
    border: 1px solid #eceef2;
    border-radius: 14px;
    color: #3c3c3c;
    font-size: 14px;
    line-height: 1.95;
}

.product-features-list li::before {
    content: "✓";
    position: absolute;
    right: 14px;
    top: 14px;
    color: #d1001f;
    font-size: 14px;
    font-weight: 900;
}

.future-order-box {
    margin-top: 26px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #f4f7fb;
    border: 1px solid #e3e8ef;
}

.future-order-box p {
    margin: 0;
    color: #5b6470;
    font-size: 14px;
    line-height: 1.95;
}

/* Product Single Responsive */
@media (max-width: 992px) {
    .product-single-card {
        grid-template-columns: 1fr;
    }

    .product-single-image {
        border-left: none;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
}

@media (max-width: 768px) {
    .product-single-page {
        padding: 28px 0 64px;
    }

    .product-single-card {
        border-radius: 22px;
    }

    .product-single-image {
        padding: 20px;
    }

    .product-single-content {
        padding: 24px 20px;
    }

    .product-single-content h1 {
        font-size: 24px;
    }

    .product-options {
        padding: 16px;
    }

    .color-option-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 0.75s ease;
}

.reveal-fade.is-visible {
    opacity: 1;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

.delay-1 {
    transition-delay: 0.08s;
}

.delay-2 {
    transition-delay: 0.16s;
}

.delay-3 {
    transition-delay: 0.24s;
}

.delay-4 {
    transition-delay: 0.32s;
}

.delay-5 {
    transition-delay: 0.40s;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-fade,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .container {
        width: min(92%, 860px);
    }

    .header-inner {
        flex-direction: column-reverse;
        padding: 18px 0;
        gap: 16px;
    }

    .main-nav {
        justify-content: center;
        gap: 18px;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        text-align: center;
        margin-inline: auto;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .category-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 34px 28px;
    }

    .footer-about {
        max-width: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        width: min(92%, 560px);
    }

    .site-brand-text strong {
        font-size: 20px;
    }

    .site-logo {
        width: 88px;
    }

    .main-nav {
        gap: 12px 16px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .hero {
        min-height: 610px;
        background-position: center;
    }

    .hero-inner {
        padding: 70px 0;
    }

    .hero-title-main {
        font-size: 40px;
    }

    .hero-title-line {
        font-size: 18px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 2;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 320px;
    }

    .categories-section,
    .why-coverplus,
    .cars-section,
    .about-brand,
    .final-cta {
        padding: 64px 0;
    }

    .category-grid,
    .why-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-card img {
        height: 220px;
    }

    .cars-box,
    .about-card {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .footer-grid {
        text-align: right;
    }

    .footer-brand {
        align-items: center;
    }
}

/* Small Mobile */
@media (max-width: 420px) {
    .hero-title-main {
        font-size: 36px;
    }

    .footer-logo {
        width: 72px;
        height: 72px;
    }
}
/* Product Features - Improved Layout */
.product-features-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.product-features-list li {
    position: relative;
    min-height: 52px;
    padding: 13px 42px 13px 14px;
    background: linear-gradient(180deg, #ffffff, #f8f9fb);
    border: 1px solid #eceef2;
    border-radius: 14px;
    color: #363636;
    font-size: 13.5px;
    line-height: 1.9;
    display: flex;
    align-items: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.025);
}

.product-features-list li::before {
    content: "✓";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(209,0,31,0.09);
    color: #d1001f;
    font-size: 13px;
    font-weight: 900;
    line-height: 20px;
    text-align: center;
}

.product-features-list li:hover {
    border-color: rgba(209,0,31,0.18);
    background: #fff;
    box-shadow: 0 10px 24px rgba(209,0,31,0.06);
}

/* Product Features Responsive */
@media (max-width: 768px) {
    .product-features-list {
        grid-template-columns: 1fr;
    }

    .product-features-list li {
        padding: 12px 40px 12px 12px;
        font-size: 13px;
    }
}
/* Home category cards clickable */
.category-grid a.category-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-grid a.category-card:hover h3 {
    color: #d1001f;
}

/* Home car tags clickable */
.car-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.car-tags .car-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(209, 0, 31, 0.12);
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.car-tags .car-tag:hover {
    background: #d1001f;
    color: #fff;
    border-color: #d1001f;
    transform: translateY(-2px);
}
/* =========================================
   Admin Product Edit Form
========================================= */
.admin-product-page {
    padding: 42px 0 80px;
}

.admin-product-form-wrap {
    max-width: 1180px;
    margin: 0 auto;
}

.admin-product-form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.05);
    padding: 28px;
}

.admin-product-form-title {
    margin: 0 0 24px;
    text-align: center;
    font-size: clamp(28px, 2.4vw, 42px);
    font-weight: 900;
    color: #111827;
}

.admin-product-form {
    display: block;
    width: 100%;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.admin-form-group.full-width {
    grid-column: 1 / -1;
}

.admin-form-group label {
    font-size: 14px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.8;
}

.admin-product-form input[type="text"],
.admin-product-form input[type="number"],
.admin-product-form input[type="file"],
.admin-product-form input[type="url"],
.admin-product-form textarea,
.admin-product-form select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    padding: 10px 14px;
    font-size: 14px;
    color: #222;
    outline: none;
    transition: 0.2s ease;
}

.admin-product-form textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.9;
}

.admin-product-form input:focus,
.admin-product-form textarea:focus,
.admin-product-form select:focus {
    border-color: #d1001f;
    box-shadow: 0 0 0 4px rgba(209,0,31,0.08);
}

.admin-current-image {
    margin-top: 10px;
}

.admin-current-image img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
}

.admin-help-text {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.9;
}

.admin-form-divider {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

/* =========================================
   Variants Admin
========================================= */
/* =========================================
   Variants Admin
========================================= */
.variants-admin {
    margin: 30px 0;
    padding: 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
}

.variants-admin h2 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 900;
    color: #111827;
}

.variants-admin h3 {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 800;
    color: #1f2937;
}

.variants-admin-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.variants-admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1500px;
    background: #fff;
}

.variants-admin-table th,
.variants-admin-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 8px;
    vertical-align: top;
    text-align: right;
    background: #fff;
}

.variants-admin-table tr:last-child td {
    border-bottom: none;
}

.variants-admin-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f9fafb;
    font-weight: 800;
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
    vertical-align: middle;
}

.variants-admin-table td {
    min-width: 110px;
}

.variants-admin-table td input[type="text"],
.variants-admin-table td input[type="number"],
.variants-admin-table td input[type="file"],
.variants-admin-table td select,
.variants-admin-table td textarea {
    width: 100%;
    min-width: 100px;
    max-width: 100%;
    font-size: 13px;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
    line-height: 1.7;
}

.variants-admin-table td textarea {
    min-height: 74px;
    resize: vertical;
    white-space: normal;
}

.variants-admin-table td input[type="file"] {
    min-width: 160px;
    padding: 6px;
}

.variants-admin-table td input:focus,
.variants-admin-table td textarea:focus,
.variants-admin-table td select:focus {
    border-color: #d1001f;
    box-shadow: 0 0 0 3px rgba(209,0,31,0.08);
    outline: none;
}

.variant-admin-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    margin-inline: auto;
}

.no-image-text {
    color: #6b7280;
    font-size: 13px;
    display: inline-block;
    white-space: nowrap;
}

.variant-active-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    min-width: 64px;
}

.variant-active-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #d1001f;
    margin: 0;
}

.delete-variant-btn,
.remove-new-variant-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    background: #dc2626;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    transition: 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.delete-variant-btn:hover,
.remove-new-variant-row:hover {
    background: #b91c1c;
}

.variants-admin-add-new {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px dashed #d1d5db;
}

#new-variants-table {
    margin-top: 10px;
}

#add-new-variant-row {
    margin-top: 14px;
}

.variants-admin-table td:nth-child(1) { min-width: 130px; } /* خودرو */
.variants-admin-table td:nth-child(2) { min-width: 110px; } /* سایز */
.variants-admin-table td:nth-child(3) { min-width: 130px; } /* مدل */
.variants-admin-table td:nth-child(4) { min-width: 120px; } /* رنگ */
.variants-admin-table td:nth-child(5) { min-width: 120px; } /* کد رنگ */
.variants-admin-table td:nth-child(6) { min-width: 150px; } /* نام واریانت */
.variants-admin-table td:nth-child(7) { min-width: 260px; } /* توضیح کوتاه */
.variants-admin-table td:nth-child(8) { min-width: 95px; }  /* عکس فعلی */
.variants-admin-table td:nth-child(9) { min-width: 170px; } /* تعویض عکس */
.variants-admin-table td:nth-child(10) { min-width: 80px; } /* فعال */
.variants-admin-table td:nth-child(11) { min-width: 90px; } /* حذف */

@media (max-width: 992px) {
    .variants-admin {
        padding: 18px;
    }

    .variants-admin-table {
        min-width: 1350px;
    }

    .variants-admin-table th,
    .variants-admin-table td {
        padding: 9px 7px;
    }

    .variants-admin-table td textarea {
        min-height: 68px;
    }
}

@media (max-width: 768px) {
    .variants-admin {
        padding: 14px;
        border-radius: 14px;
    }

    .variants-admin h2 {
        font-size: 18px;
    }

    .variants-admin h3 {
        font-size: 15px;
    }

    .variants-admin-table {
        min-width: 1250px;
    }

    .variant-admin-thumb {
        width: 58px;
        height: 58px;
    }

    .delete-variant-btn,
    .remove-new-variant-row {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 11px;
    }
}
/* =========================================
   Color Images Admin
========================================= */
.color-images-admin {
    margin: 30px 0 0;
    padding: 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
}

.color-images-admin h2,
.color-images-admin h3 {
    margin: 0 0 12px;
    color: #111827;
    font-weight: 900;
}

.color-image-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.color-image-row {
    display: grid;
    grid-template-columns: 90px minmax(160px, 1fr) 120px minmax(220px, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
}

.color-image-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #fff;
}

.color-image-row input[type="text"],
.color-image-row input[type="number"],
.color-image-row input[type="file"] {
    width: 100%;
}

.color-image-default {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.color-image-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s ease;
}

.color-image-delete-btn:hover {
    background: #dc2626;
}

.add-color-image-box {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed #d1d5db;
}

.add-color-image-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(140px, 160px) minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

/* =========================================
   Form Actions
========================================= */
.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.admin-save-btn,
.admin-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.admin-save-btn {
    background: #d1001f;
    color: #fff;
}

.admin-save-btn:hover {
    background: #e11231;
    transform: translateY(-2px);
}

.admin-cancel-btn {
    background: #eef2f7;
    color: #374151;
}

.admin-cancel-btn:hover {
    background: #e5e7eb;
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 992px) {
    .admin-product-form-card {
        padding: 22px;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .color-image-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .add-color-image-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-product-page {
        padding: 24px 0 56px;
    }

    .admin-product-form-card {
        padding: 18px;
        border-radius: 18px;
    }

    .admin-product-form-title {
        font-size: 28px;
    }

    .variants-admin,
    .color-images-admin {
        padding: 16px;
        border-radius: 14px;
    }
}
.admin-product-page {
    padding: 30px 0 60px;
}

.admin-product-form-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-product-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
}

.admin-product-form-title {
    margin: 0 0 24px;
    font-size: 34px;
    font-weight: 800;
    text-align: center;
    color: #111827;
}

.admin-product-form {
    width: 100%;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.admin-form-group.full-width {
    grid-column: 1 / -1;
}

.admin-form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.admin-form-group input[type="text"],
.admin-form-group input[type="file"],
.admin-form-group select,
.admin-form-group textarea,
.variant-form-group input[type="text"],
.variant-form-group input[type="file"],
.variant-form-group textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
}

.admin-form-group textarea,
.variant-form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.admin-help-text {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.8;
}

.admin-current-image img,
.variant-admin-thumb {
    width: 100%;
    max-width: 140px;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    object-fit: cover;
    display: block;
}

.admin-current-image {
    margin-bottom: 12px;
}

.admin-form-divider {
    margin: 32px 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

.variants-admin {
    margin-top: 10px;
}

.variants-admin-head {
    margin-bottom: 20px;
}

.variants-admin-head h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 800;
    color: #111827;
}

.variant-group {
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #f9fafb;
}

.variant-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.variant-group-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.variant-group-title span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 700;
}

.variant-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.variant-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,.04);
}

.variant-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.variant-card-top h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.8;
    color: #111827;
}

.variant-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.variant-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.variant-form-group.full-width {
    grid-column: 1 / -1;
}

.variant-form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.color-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-preview {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #fff;
    flex-shrink: 0;
}

.variant-active-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    cursor: pointer;
}

.variant-active-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.no-image-text {
    display: inline-block;
    color: #6b7280;
    font-size: 13px;
}

.delete-variant-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.delete-variant-btn:hover {
    background: #fecaca;
}

.variants-admin-add-new {
    margin-top: 30px;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
}

.add-variant-btn {
    margin-top: 16px;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
    flex-wrap: wrap;
}

.admin-save-btn,
.admin-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.admin-save-btn {
    background: #111827;
    color: #fff;
}

.admin-cancel-btn {
    background: #e5e7eb;
    color: #111827;
}

@media (max-width: 992px) {
    .variant-cards-grid,
    .variant-form-grid,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-product-form-title {
        font-size: 28px;
    }

    .variants-admin-head h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .admin-product-page {
        padding: 16px 0 40px;
    }

    .admin-product-form-card {
        padding: 16px;
        border-radius: 16px;
    }

    .admin-product-form-title {
        font-size: 22px;
        line-height: 1.6;
    }

    .variant-group,
    .variant-card,
    .variants-admin-add-new {
        padding: 14px;
        border-radius: 14px;
    }

    .variant-card-top {
        flex-direction: column;
        align-items: stretch;
    }

    .delete-variant-btn,
    .admin-save-btn,
    .admin-cancel-btn {
        width: 100%;
    }

    .admin-form-actions {
        flex-direction: column;
    }

    .color-input-wrap {
        align-items: stretch;
    }

    .color-preview {
        width: 100%;
        min-width: 100%;
        height: 44px;
    }
}
/* ===== Admin Edit Product Responsive Fix ===== */

.admin-product-page {
    padding: 24px 0;
}

.admin-product-form-wrap {
    width: 100%;
}

.admin-product-form-card {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
}

.admin-product-form-title {
    margin-bottom: 24px;
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    color: #222;
}

.admin-product-form {
    width: 100%;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.admin-form-group,
.variant-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.admin-form-group.full-width,
.variant-form-group.full-width {
    grid-column: 1 / -1;
}

.admin-form-group label,
.variant-form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea,
.variant-form-group input,
.variant-form-group select,
.variant-form-group textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.6;
    background: #fff;
    color: #222;
}

.admin-form-group textarea,
.variant-form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.admin-help-text {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.admin-current-image img {
    display: block;
    width: 140px;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    margin-bottom: 12px;
}

.admin-form-divider {
    margin: 32px 0;
    border: 0;
    border-top: 1px solid #e8e8e8;
}

/* ===== Variants ===== */

.variants-admin {
    margin-top: 12px;
}

.variants-admin-head {
    margin-bottom: 20px;
}

.variants-admin-head h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    color: #222;
}

.variant-group,
.variants-admin-add-new {
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    background: #fafafa;
}

.variant-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.variant-group-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #222;
}

.variant-group-title span {
    font-size: 13px;
    color: #777;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 999px;
    padding: 6px 12px;
}

.variant-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.variant-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    min-width: 0;
}

.variant-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.variant-card-top h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #222;
    line-height: 1.8;
}

.variant-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.color-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-preview {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #d7d7d7;
    background: #fff;
}

.variant-admin-thumb {
    display: block;
    width: 100%;
    max-width: 140px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.no-image-text {
    font-size: 13px;
    color: #888;
}

.variant-active-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    cursor: pointer;
}

.variant-active-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #b3003c;
}

.delete-variant-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: #d93025;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.add-variant-btn,
.admin-save-btn,
.admin-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.add-variant-btn,
.admin-save-btn {
    border: 0;
    background: #b3003c;
    color: #fff;
}

.admin-cancel-btn {
    border: 1px solid #d7d7d7;
    background: #fff;
    color: #333;
}

.variants-admin-add-new .add-variant-btn {
    margin-top: 14px;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* ===== Tablet ===== */
@media (max-width: 992px) {
    .admin-product-form-card {
        padding: 20px;
    }

    .variant-cards-grid,
    .variant-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
    .admin-product-page {
        padding: 14px 0;
    }

    .admin-product-form-card {
        padding: 14px;
        border-radius: 12px;
    }

    .admin-product-form-title {
        font-size: 26px;
        margin-bottom: 18px;
    }

    .admin-form-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .variant-group,
    .variants-admin-add-new {
        padding: 12px;
        border-radius: 12px;
    }

    .variant-card {
        padding: 12px;
        border-radius: 12px;
    }

    .variant-card-top {
        flex-direction: column;
        align-items: stretch;
    }

    .variant-group-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-form-group input,
    .admin-form-group select,
    .admin-form-group textarea,
    .variant-form-group input,
    .variant-form-group select,
    .variant-form-group textarea {
        font-size: 16px;
    }

    .color-input-wrap {
        align-items: center;
    }

    .color-preview {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

    .admin-form-actions {
        flex-direction: column;
    }

    .admin-save-btn,
    .admin-cancel-btn,
    .add-variant-btn,
    .delete-variant-btn {
        width: 100%;
    }
}
.page-section-light {
    padding: 56px 0;
}

.page-intro {
    text-align: center;
    margin-bottom: 32px;
}

.section-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(209, 0, 31, 0.08);
    color: #d1001f;
    font-size: 13px;
    font-weight: 700;
}

.page-intro h1 {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 800;
    color: #222;
}

.page-lead {
    max-width: 760px;
    margin: 0 auto;
    color: #666;
    line-height: 2;
    font-size: 15px;
}

.info-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.info-card h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 22px;
    color: #222;
}

.prose-content p {
    margin: 0 0 18px;
    color: #555;
    line-height: 2.2;
    font-size: 15px;
    text-align: justify;
}

.about-highlight {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff5f6, #fff);
    border-right: 4px solid #d1001f;
    color: #222;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.contact-list {
    display: grid;
    gap: 14px;
}

.contact-item {
    padding: 14px 16px;
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fafafa;
}

.contact-item strong {
    display: block;
    margin-bottom: 8px;
    color: #222;
    font-size: 14px;
}

.contact-item a {
    color: #d1001f;
    font-weight: 700;
    text-decoration: none;
    direction: ltr;
    display: inline-block;
}

.contact-address p {
    margin: 0;
    color: #444;
    line-height: 2;
    font-size: 15px;
}

.contact-form-card {
    margin-top: 8px;
}

.form-note {
    margin-bottom: 18px;
    color: #666;
    line-height: 2;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #d1001f;
    outline: none;
    box-shadow: 0 0 0 4px rgba(209, 0, 31, 0.08);
}

.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .page-section-light {
        padding: 36px 0;
    }

    .page-intro h1 {
        font-size: 28px;
    }

    .contact-layout,
    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 18px;
        border-radius: 16px;
    }

    .prose-content p {
        text-align: right;
    }
}
.sales-agents-page {
    padding: 40px 0 80px;
}

.agents-hero {
    text-align: center;
    margin-bottom: 32px;
}

.agents-hero h1 {
    margin-bottom: 12px;
}

.agents-hero p {
    color: #555;
    margin: 0 auto;
    max-width: 720px;
    line-height: 1.9;
}

.agents-map-card,
.agent-request-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.agents-map-card {
    margin-bottom: 28px;
}

.iran-map-wrap {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    aspect-ratio: 800 / 620;
}

.iran-map {
    width: 100%;
    height: 100%;
    display: block;
}

.city-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.pin {
    width: 16px;
    height: 16px;
    background: #d70000;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: relative;
    box-shadow: 0 4px 10px rgba(215, 0, 0, 0.25);
}

.pin::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    top: 4px;
    left: 4px;
}

.city-name {
    margin-top: 8px;
    color: #d70000;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.city-popup {
    position: absolute;
    top: 42px;
    right: 50%;
    transform: translateX(50%);
    min-width: 190px;
    background: #fff;
    color: #222;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    display: none;
    z-index: 5;
    text-align: right;
}

.city-popup strong,
.city-popup span {
    display: block;
    line-height: 1.8;
    font-size: 13px;
}

.city-marker:hover .city-popup {
    display: block;
}

.tehran {
    top: 28%;
    left: 34%;
}

.mashhad {
    top: 24%;
    left: 66%;
}

.isfahan {
    top: 43%;
    left: 38%;
}

.shiraz {
    top: 60%;
    left: 30%;
}

.kerman {
    top: 56%;
    left: 54%;
}

.agent-request-card h2 {
    margin-bottom: 20px;
    text-align: center;
}

.agent-request-form .btn {
    min-width: 160px;
}

.agent-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.field {
    display: flex;
    flex-direction: column;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #222;
}

.field input {
    height: 48px;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    padding: 0 14px;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
    border-color: #d70000;
    box-shadow: 0 0 0 4px rgba(215, 0, 0, 0.08);
}

.agent-success-message {
    margin-bottom: 16px;
    background: #eaf8ea;
    color: #167a2f;
    border: 1px solid #b9e2c1;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .agents-map-card,
    .agent-request-card {
        padding: 18px;
    }

    .city-name {
        font-size: 13px;
    }

    .city-popup {
        min-width: 160px;
        font-size: 12px;
    }

    .agent-form-grid {
        grid-template-columns: 1fr;
    }

    .field-full {
        grid-column: auto;
    }
}
    .sales-agents-page {
        background:
            radial-gradient(circle at top right, rgba(198, 40, 40, 0.05), transparent 22%),
            radial-gradient(circle at top left, rgba(0, 0, 0, 0.03), transparent 18%),
            #f6f8fb;
        padding: 36px 0 64px;
    }

    .agents-hero {
        text-align: center;
        margin-bottom: 20px;
    }

    .agents-hero h1 {
        margin: 0 0 8px;
        font-size: 36px;
        font-weight: 800;
        color: #1f2937;
    }

    .agents-hero p {
        margin: 0 auto;
        max-width: 720px;
        color: #6b7280;
        font-size: 14px;
        line-height: 2;
    }

    .agents-map-section,
    .agent-request-section {
        margin-top: 18px;
    }

    .agents-map-card,
    .agent-request-card {
        background: #fff;
        border-radius: 22px;
        box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.04);
    }

    .agents-map-card {
        padding: 20px;
        overflow: hidden;
    }

    .agent-request-card {
        padding: 22px 22px 18px;
    }

    .iran-map-wrap {
        position: relative;
        max-width: 700px;
        margin: 0 auto;
        padding: 8px;
    }

    .iran-map-img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 620px;
        object-fit: contain;
        user-select: none;
        -webkit-user-drag: none;
        filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.06));
    }

    .city-marker {
        position: absolute;
        transform: translate(-50%, -100%);
        z-index: 3;
        cursor: pointer;
    }

    .city-marker .pin {
        width: 18px;
        height: 18px;
        border-radius: 50% 50% 50% 0;
        background: linear-gradient(135deg, #ef4444, #c62828);
        transform: rotate(-45deg);
        display: block;
        position: relative;
        box-shadow: 0 8px 18px rgba(198, 40, 40, 0.28);
        border: 2px solid #fff;
    }

    .city-marker .pin::after {
        content: '';
        width: 7px;
        height: 7px;
        background: #fff;
        border-radius: 50%;
        position: absolute;
        top: 4px;
        left: 4px;
    }

    .city-name {
        position: absolute;
        top: 1px;
        right: -40px;
        color: #c62828;
        font-size: 13px;
        font-weight: 800;
        white-space: nowrap;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.96);
    }

    .city-popup {
        position: absolute;
        bottom: 30px;
        right: 50%;
        transform: translateX(50%) translateY(8px);
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
        padding: 12px 14px;
        min-width: 200px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.22s ease;
        z-index: 5;
        text-align: right;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .city-popup strong {
        display: block;
        margin-bottom: 6px;
        font-size: 14px;
        color: #1f2937;
    }

    .city-popup span {
        display: block;
        font-size: 12px;
        color: #6b7280;
        line-height: 1.8;
    }

    .city-popup::after {
        content: '';
        position: absolute;
        top: 100%;
        right: 50%;
        transform: translateX(50%);
        border-width: 8px;
        border-style: solid;
        border-color: #fff transparent transparent transparent;
    }

    .city-marker:hover .city-popup {
        opacity: 1;
        visibility: visible;
        transform: translateX(50%) translateY(0);
    }

    .city-marker.tehran {
        top: 25.5%;
        left: 35.5%;
    }

    .city-marker.mashhad {
        top: 28.5%;
        left: 73.5%;
    }

    .city-marker.isfahan {
        top: 41.5%;
        left: 39.5%;
    }

    .city-marker.shiraz {
        top: 66%;
        left: 31%;
    }

    .city-marker.kerman {
        top: 62%;
        left: 57.5%;
    }

    .agent-request-card h2 {
        text-align: center;
        margin: 0 0 18px;
        font-size: 28px;
        color: #1f2937;
        font-weight: 800;
    }

    .agent-success-message {
        background: #ecfdf3;
        color: #166534;
        border: 1px solid #bbf7d0;
        padding: 12px 14px;
        border-radius: 12px;
        margin-bottom: 16px;
        text-align: center;
        font-size: 13px;
        font-weight: 600;
    }

    .agent-request-form {
        background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
        border: 1px solid #edf0f4;
        border-radius: 18px;
        padding: 14px;
    }

    .agent-request-form .agent-form-grid {
        display: grid;
        grid-template-columns: 1.2fr 0.9fr 1fr auto;
        gap: 10px;
        align-items: end;
    }

    .agent-request-form .field {
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    .agent-request-form .field-full {
        grid-column: auto;
    }

    .agent-request-form label {
        margin-bottom: 6px;
        color: #374151;
        font-size: 12px;
        font-weight: 700;
    }

    .agent-request-form input {
        width: 100%;
        height: 42px;
        border: 1px solid #dbe1ea;
        border-radius: 12px;
        padding: 0 12px;
        font-size: 13px;
        color: #333;
        background: #fff;
        outline: none;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .agent-request-form input:focus {
        border-color: #c62828;
        box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.08);
        background: #fff;
    }

    .agent-request-form .btn {
        margin-top: 0;
        min-width: 120px;
        height: 42px;
        border: none;
        border-radius: 12px;
        background: linear-gradient(135deg, #d32f2f, #b71c1c);
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
        box-shadow: 0 10px 20px rgba(183, 28, 28, 0.18);
    }

    .agent-request-form .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 24px rgba(183, 28, 28, 0.24);
    }

    .agent-request-submit {
        display: flex;
        align-items: end;
    }

    @media (max-width: 992px) {
        .agents-hero h1 {
            font-size: 32px;
        }

        .agent-request-card h2 {
            font-size: 26px;
        }

        .agent-request-form .agent-form-grid {
            grid-template-columns: 1fr 1fr;
        }

        .agent-request-submit {
            grid-column: 1 / -1;
        }

        .agent-request-form .btn {
            width: 100%;
        }
    }

    @media (max-width: 768px) {
        .sales-agents-page {
            padding: 26px 0 48px;
        }

        .agents-map-card,
        .agent-request-card {
            border-radius: 16px;
        }

        .agents-map-card {
            padding: 14px;
        }

        .agent-request-card {
            padding: 16px;
        }

        .iran-map-wrap {
            padding: 0;
        }

        .agent-request-form {
            padding: 12px;
            border-radius: 14px;
        }

        .agent-request-form .agent-form-grid {
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .agent-request-submit {
            grid-column: auto;
        }

        .agent-request-form .btn {
            width: 100%;
        }

        .city-marker .pin {
            width: 15px;
            height: 15px;
        }

        .city-marker .pin::after {
            width: 6px;
            height: 6px;
            top: 3px;
            left: 3px;
        }

        .city-name {
            font-size: 11px;
            right: -30px;
        }

        .city-popup {
            min-width: 150px;
            padding: 10px 12px;
        }

        .city-popup strong {
            font-size: 13px;
        }

        .city-popup span {
            font-size: 11px;
            line-height: 1.7;
        }
    }

    @media (max-width: 480px) {
        .agents-hero h1 {
            font-size: 28px;
        }

        .agent-request-card h2 {
            font-size: 24px;
        }

        .agents-hero p {
            font-size: 13px;
        }
    }
.agent-request-desc {
    text-align: center;
    color: #6b7280;
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.9;
}
.agent-request-card {
    padding: 20px 24px 18px;
}

.agent-request-card h2 {
    margin-bottom: 8px;
}

.agent-request-form {
    padding: 12px;
}

.agent-request-form .agent-form-grid {
    gap: 8px;
}

.agent-request-form input,
.agent-request-form .btn {
    height: 40px;
}

.agent-request-form label {
    margin-bottom: 5px;
}
.agents-map-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 1)),
        radial-gradient(circle at center, rgba(198, 40, 40, 0.04), transparent 55%);
}
