@font-face { font-family: 'YekanBakh'; src: url('/font/yekanbakh/Yekan Bakh FA 03 Light.woff'); font-weight: 300; }
@font-face { font-family: 'YekanBakh'; src: url('/font/yekanbakh/Yekan Bakh FA 04 Regular.woff'); font-weight: 400; }
@font-face { font-family: 'YekanBakh'; src: url('/font/yekanbakh/Yekan Bakh FA 05 Medium.woff'); font-weight: 500; }
@font-face { font-family: 'YekanBakh'; src: url('/font/yekanbakh/Yekan Bakh FA 06 Bold.woff'); font-weight: 600; }
@font-face { font-family: 'YekanBakh'; src: url('/font/yekanbakh/Yekan Bakh FA 07 Heavy.woff'); font-weight: 700; }
@font-face { font-family: 'YekanBakh'; src: url('/font/yekanbakh/Yekan Bakh FA 08 Fat.woff'); font-weight: 800; }

* { font-family: 'YekanBakh', sans-serif; direction: rtl; box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #1a3a5c;
    --primary-dark: #0f2440;
    --primary-light: #2a5a8c;
    --secondary: #e8b830;
    --secondary-dark: #c99a20;
    --accent: #d94f2e;
    --accent-light: #e8775a;
    --surface: #f8f6f2;
    --surface-alt: #efebe4;
    --text: #1e1e1e;
    --text-light: #5a5a5a;
    --text-muted: #8a8a8a;
    --white: #ffffff;
    --success: #2a9d6e;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --max-width: 1280px;
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }
body { background: var(--surface); color: var(--text); line-height: 1.8; font-weight: 400; font-size: 16px; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-title { font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 12px; text-align: center; }
.section-subtitle { font-size: 16px; color: var(--text-light); text-align: center; max-width: 700px; margin: 0 auto 40px; font-weight: 300; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 32px; border-radius: var(--radius-sm); font-weight: 600; font-size: 16px; border: none; cursor: pointer; transition: var(--transition); text-align: center; line-height: 1.4; }
.btn-primary { background: var(--secondary); color: var(--primary-dark); }
.btn-primary:hover { background: var(--secondary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,184,48,0.35); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(217,79,46,0.35); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--surface-alt); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; transition: var(--transition); }

/* ===== HEADER ===== */
.header { background: rgba(255,255,255,0.96); box-shadow: 0 2px 16px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; max-width: var(--max-width); margin: 0 auto; }
.logo { font-size: 26px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo span { color: var(--secondary); }
.nav { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav a { font-weight: 500; color: var(--text); transition: var(--transition); position: relative; font-size: 15px; white-space: nowrap; }
.nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--secondary); transition: var(--transition); }
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { position: relative; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--primary); padding: 6px; }
.icon-btn .badge-count { position: absolute; top: -2px; left: -4px; background: var(--accent); color: var(--white); font-size: 11px; font-weight: 700; border-radius: 50px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.hamburger span { width: 26px; height: 3px; background: var(--primary); border-radius: 3px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px,6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }
.nav-overlay { display: none; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 18px 0; font-size: 14px; color: var(--text-muted); }
.breadcrumb a { color: var(--primary-light); }
.breadcrumb span { margin: 0 6px; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%); color: var(--white); padding: 40px 0; }
.page-hero h1 { font-size: 30px; font-weight: 800; }
.page-hero p { opacity: .85; margin-top: 6px; font-size: 15px; }

/* ===== HERO (home) ===== */
.hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%); color: var(--white); padding: 72px 0 90px; position: relative; overflow: visible; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-content h1 { font-size: 50px; font-weight: 900; line-height: 1.2; margin-bottom: 18px; color: var(--white); }
.hero-content h1 .highlight { color: var(--secondary); }
.hero-content p { font-size: 19px; font-weight: 300; line-height: 1.9; margin-bottom: 28px; opacity: .9; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-top: 14px; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; opacity: .85; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { padding: 8px 20px; border-radius: 50px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); font-size: 13px; font-weight: 500; color: var(--white); cursor: pointer; transition: var(--transition); }
.chip:hover, .chip.active { background: var(--secondary); color: var(--primary-dark); border-color: var(--secondary); }
.hero-search { margin-top: 26px; display: flex; gap: 12px; max-width: 480px; }
.hero-search input { flex: 1; padding: 14px 20px; border-radius: var(--radius-sm); border: none; font-size: 16px; background: rgba(255,255,255,0.15); color: var(--white); outline: none; }
.hero-search input::placeholder { color: rgba(255,255,255,0.6); }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-visual-placeholder { width: 100%; max-width: 480px; aspect-ratio: 4/3; background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); font-size: 18px; gap: 10px; position: relative; }
.hero-visual-placeholder .car-icon { font-size: 76px; opacity: .3; }
.hero-visual-placeholder .badge { position: absolute; top: 18px; right: 18px; background: var(--secondary); color: var(--primary-dark); padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; }

/* ===== GRIDS reused from landing ===== */
.problem-grid, .category-grid, .size-guide, .price-band-grid, .seasonal-grid, .antitheft-grid, .testimonial-grid, .local-grid, .brand-matrix { display: grid; gap: 20px; margin-top: 36px; }
.problem-grid { grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); }
.category-grid { grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.problem-item, .season-card, .size-card { background: var(--white); border-radius: var(--radius-sm); padding: 26px 18px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.problem-item:hover, .season-card:hover, .size-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.problem-item .icon, .season-card .icon, .size-card .icon { font-size: 38px; margin-bottom: 10px; }
.problem-item h4, .season-card h4, .size-card h4 { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.problem-item p, .season-card p, .size-card p { font-size: 13px; color: var(--text-light); }

/* ===== PRODUCT GRID / CARD ===== */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.filters-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.filters-bar select, .filters-bar input { padding: 10px 16px; border-radius: var(--radius-sm); border: 2px solid var(--surface-alt); background: var(--white); font-size: 14px; outline: none; }
.results-count { font-size: 14px; color: var(--text-muted); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.product-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); position: relative; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-thumb { aspect-ratio: 4/3; background: linear-gradient(145deg, var(--surface-alt), var(--surface)); display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--primary-light); opacity: .5; position: relative; }
.product-card .stock-badge { position: absolute; top: 12px; right: 12px; background: var(--accent); color: var(--white); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 50px; }
.product-card .stock-badge.in { background: var(--success); }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-size: 12px; color: var(--text-muted); }
.product-title { font-size: 16px; font-weight: 700; color: var(--primary); }
.product-price { font-size: 17px; font-weight: 800; color: var(--accent); margin-top: auto; }
.product-price .old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; font-weight: 400; margin-right: 8px; }
.product-actions { display: flex; gap: 8px; margin-top: 6px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination button { width: 40px; height: 40px; border-radius: var(--radius-xs); border: 2px solid var(--surface-alt); background: var(--white); cursor: pointer; font-weight: 600; color: var(--primary); }
.pagination button.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== PRODUCT DETAIL ===== */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pd-gallery-main { aspect-ratio: 4/3; background: linear-gradient(145deg, var(--surface-alt), var(--surface)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 90px; color: var(--primary-light); opacity: .4; }
.pd-title { font-size: 26px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.pd-cat { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.pd-price { font-size: 28px; font-weight: 800; color: var(--accent); margin: 14px 0; }
.pd-desc { color: var(--text-light); font-size: 15px; line-height: 2; margin-bottom: 20px; }
.pd-options { margin-bottom: 20px; }
.pd-options label { display: block; font-weight: 600; color: var(--primary); margin-bottom: 8px; font-size: 14px; }
.option-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.option-pill { padding: 8px 18px; border-radius: 50px; border: 2px solid var(--surface-alt); background: var(--white); font-size: 13px; cursor: pointer; transition: var(--transition); }
.option-pill.active { border-color: var(--secondary); background: var(--secondary); color: var(--primary-dark); font-weight: 600; }
.qty-stepper { display: inline-flex; align-items: center; border: 2px solid var(--surface-alt); border-radius: var(--radius-sm); overflow: hidden; }
.qty-stepper button { width: 42px; height: 42px; border: none; background: var(--surface); font-size: 18px; cursor: pointer; color: var(--primary); }
.qty-stepper input { width: 48px; text-align: center; border: none; font-size: 16px; background: var(--white); height: 42px; }
.pd-add-row { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.pd-meta-list { margin-top: 28px; border-top: 1px solid var(--surface-alt); padding-top: 20px; }
.pd-meta-list div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--surface-alt); }
.pd-meta-list div span:first-child { color: var(--text-muted); }

/* ===== TABLE (reused) ===== */
.table-wrapper { overflow-x: auto; margin-top: 36px; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
.comparison-table, .cart-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.comparison-table { min-width: 800px; }
.comparison-table th, .cart-table th { background: var(--primary); color: var(--white); padding: 14px 18px; font-weight: 600; text-align: center; white-space: nowrap; }
.comparison-table th:first-child, .cart-table th:first-child { text-align: right; }
.comparison-table td, .cart-table td { padding: 14px 18px; border-bottom: 1px solid var(--surface-alt); text-align: center; }
.comparison-table td:first-child, .cart-table td:first-child { text-align: right; font-weight: 600; color: var(--primary); }
.comparison-table .yes { color: var(--success); font-weight: 600; }
.comparison-table .no { color: var(--text-muted); }
.comparison-table .partial { color: var(--secondary-dark); }
.recommended-badge { background: var(--secondary); color: var(--primary-dark); padding: 2px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; display: inline-block; }

/* ===== CART PAGE ===== */
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.cart-item-row { display: flex; align-items: center; gap: 8px; }
.cart-item-thumb { width: 56px; height: 56px; border-radius: var(--radius-xs); background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--primary-light); flex-shrink: 0; }
.cart-item-name { font-weight: 600; color: var(--primary); font-size: 14px; }
.cart-item-variant { font-size: 12px; color: var(--text-muted); }
.remove-btn { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 13px; font-weight: 600; }
.summary-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; color: var(--text-light); }
.summary-row.total { border-top: 2px solid var(--surface-alt); margin-top: 10px; padding-top: 16px; font-size: 18px; font-weight: 800; color: var(--primary); }
.coupon-row { display: flex; gap: 8px; margin: 16px 0; }
.coupon-row input { flex: 1; padding: 10px 14px; border-radius: var(--radius-sm); border: 2px solid var(--surface-alt); outline: none; }

/* ===== CHECKOUT ===== */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.checkout-steps { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.checkout-step { padding: 8px 18px; border-radius: 50px; background: var(--surface-alt); font-size: 13px; font-weight: 600; color: var(--text-muted); }
.checkout-step.active { background: var(--primary); color: var(--white); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; color: var(--primary); margin-bottom: 6px; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 2px solid var(--surface-alt); font-size: 15px; background: var(--surface); outline: none; transition: var(--transition); font-family: 'YekanBakh', sans-serif; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary-light); background: var(--white); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.payment-options { display: grid; gap: 12px; }
.payment-option { display: flex; align-items: center; gap: 12px; border: 2px solid var(--surface-alt); border-radius: var(--radius-sm); padding: 14px 18px; cursor: pointer; transition: var(--transition); }
.payment-option.active { border-color: var(--secondary); background: rgba(232,184,48,0.06); }
.payment-option input { width: 18px; height: 18px; accent-color: var(--secondary); }

/* ===== FORMS shared ===== */
.contact-form, .auth-form { background: var(--white); border-radius: var(--radius); padding: 36px 30px; box-shadow: var(--shadow); max-width: 560px; margin: 0 auto; }

/* ===== ACCORDION ===== */
.accordion { margin-top: 28px; }
.accordion-item { background: var(--white); border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); }
.accordion-header { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--primary); user-select: none; }
.accordion-header .arrow { transition: var(--transition); font-size: 13px; color: var(--text-muted); }
.accordion-item.active .accordion-header .arrow { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; padding: 0 22px; }
.accordion-item.active .accordion-body { max-height: 400px; padding: 0 22px 22px; }
.accordion-body p { font-size: 14px; color: var(--text-light); line-height: 1.9; }

/* ===== TOAST / MODAL ===== */
.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--primary-dark); color: var(--white); padding: 16px 32px; border-radius: var(--radius-sm); box-shadow: 0 8px 40px rgba(0,0,0,0.2); font-size: 15px; font-weight: 500; z-index: 9999; opacity: 0; transition: all .4s ease; pointer-events: none; text-align: center; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast.success { background: var(--success); }
.toast.error { background: var(--accent); }
.toast .close-toast { margin-right: 16px; cursor: pointer; font-size: 18px; opacity: .7; background: none; border: none; color: var(--white); }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); z-index: 2000; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--white); border-radius: var(--radius); padding: 36px 30px; max-width: 480px; width: 100%; box-shadow: 0 24px 80px rgba(0,0,0,0.25); position: relative; max-height: 90vh; overflow-y: auto; }
.modal .close-modal { position: absolute; top: 14px; left: 14px; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--text-muted); line-height: 1; }

/* ===== TRUST BAR / FOOTER ===== */
.trust-bar { background: var(--primary); color: var(--white); padding: 28px 0; }
.trust-bar .inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 44px; }
.trust-bar .item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.footer { background: var(--primary-dark); color: var(--white); padding: 44px 0 22px; }
.footer .inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 30px; }
.footer h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--secondary); }
.footer p, .footer li { font-size: 14px; opacity: .8; line-height: 2; list-style: none; }
.footer a:hover { opacity: 1; color: var(--secondary); }
.footer .copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; font-size: 13px; opacity: .6; }

.sticky-mobile { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); box-shadow: 0 -4px 20px rgba(0,0,0,0.08); padding: 10px 14px; z-index: 999; gap: 8px; justify-content: space-around; border-top: 1px solid var(--surface-alt); }
.sticky-mobile .btn { flex: 1; padding: 12px; font-size: 13px; border-radius: var(--radius-xs); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-content h1 { font-size: 38px; }
    .hero-visual { order: -1; }
    .hero-visual-placeholder { max-width: 100%; aspect-ratio: 16/9; }
    .section-title { font-size: 26px; }
    .product-detail-grid, .cart-layout, .checkout-grid { grid-template-columns: 1fr; }
    .summary-box { position: static; }
}
@media (max-width: 768px) {
    .nav { display: none; position: fixed; top: 0; right: 0; width: 280px; height: 100vh; background: var(--white); flex-direction: column; padding: 80px 32px 40px; gap: 18px; box-shadow: -8px 0 40px rgba(0,0,0,0.1); z-index: 1001; overflow-y: auto; }
    .nav.active { display: flex; }
    .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 1000; }
    .nav-overlay.active { display: block; }
    .hamburger { display: flex; }
    .hero-content h1 { font-size: 30px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-search { flex-direction: column; }
    .section { padding: 40px 0; }
    .form-row-2 { grid-template-columns: 1fr; }
    .sticky-mobile { display: flex; }
    body { padding-bottom: 68px; }
    .toolbar { flex-direction: column; align-items: stretch; }
}

/* ===== CATEGORY CARDS (انواع چادر) ===== */
.category-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
  color: inherit;
  border-top: 4px solid var(--primary);
  transition: var(--transition);
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.category-card .cat-icon {
  font-size: 40px;
  margin-bottom: 14px;
}
.category-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.category-card .cat-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 18px;
  min-height: 84px;
}
.category-card .cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.category-card .cat-tags span {
  background: var(--surface-alt);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}
.category-card .cat-cta {
  width: 100%;
  pointer-events: none; /* کل کارت کلیک‌پذیره، دکمه فقط نمایشیه */
}
.hero-chips { display: none; }

/* ===== CONTACT LINKS (راه‌های ارتباطی) ===== */
.contact-links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 16px 8px;
  text-align: center;
  color: inherit;
  border-top: 3px solid var(--primary);
  transition: var(--transition);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.contact-card .contact-icon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.contact-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}
@media (max-width: 1024px) {
  .contact-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .contact-links { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .contact-card { padding: 14px 6px; }
}

.hero-visual-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* ===== START: REVIEWS MARQUEE CSS ===== */
.reviews-marquee {
  overflow: hidden;
  margin-top: 32px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.reviews-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}
.reviews-marquee:hover .reviews-track {
  animation-play-state: paused;
}
.review-card {
  flex: 0 0 auto;
  width: 280px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  border-top: 3px solid var(--secondary);
}
.review-stars {
  color: var(--secondary);
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.review-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 14px;
  min-height: 76px;
}
.review-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}


@media (max-width: 768px) {
  .review-card { width: 240px; }
}

.reviews-marquee{
    direction:ltr;
}

.review-card{
    direction:rtl;
}
/* ===== END: REVIEWS MARQUEE CSS ===== */


/* ===== Reviews Section ===== */

#reviews{

    background:linear-gradient(135deg,#203547,#2f4e67);

    position:relative;

    overflow:hidden;

    padding:90px 0;

}

#reviews .section-title{

    color:#fff;

}

#reviews .section-subtitle{

    color:rgba(255,255,255,.75);

}

.car-selector select,
select {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background: #fff;
    color: #333;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    outline: none;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    transition: .25s;
}

.car-selector select:focus,
select:focus{
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(255,193,7,.18);
}

.select-wrapper{
    position:relative;
}

#carBrand,
#carModel{
    width:100%;
    height:52px;
    padding:0 16px;
    border:1px solid #ddd;
    border-radius:12px;
    background:#fff;
    color:#333;
    font-size:15px;
    font-family:inherit;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    cursor:pointer;
    transition:.2s;
}

#carBrand:focus,
#carModel:focus{
    outline:none;
    border-color:var(--secondary);
    box-shadow:0 0 0 3px rgba(255,193,7,.18);
}


/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  opacity: .7;
  margin-bottom: 14px;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); opacity: 1; }
.bc-sep { opacity: .4; }

/* ── Quick Chips ── */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.chip {
  padding: 5px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  transition: background .18s, color .18s;
  font-family: inherit;
}
.chip:hover, .chip.active {
  background: var(--primary);
  color: var(--white);
}

/* ── Toolbar / Filters ── */
.toolbar {
  background: var(--white);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  margin-bottom: 12px;
}
.filters-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.6fr;
  gap: 14px;
  align-items: end;
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.filter-field label {
  font-size: 11px;
  color: var(--text);
  opacity: .6;
  font-weight: 600;
}
.filter-field select,
.filter-field input {
  padding: 9px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .18s;
  outline: none;
}
.filter-field select:focus,
.filter-field input:focus {
  border-color: var(--primary);
}

/* ── Results Bar ── */
.results-bar {
  font-size: 13px;
  color: var(--text);
  opacity: .65;
  margin-bottom: 20px;
  padding: 0 2px;
}

/* ── Product Card ── */
.product-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,.13);
}
.product-thumb {
  position: relative;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  padding: 24px 16px;
  min-height: 160px;
}
.stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: #e8f5e9;
  color: #2e7d32;
}
.stock-badge:not(.in) {
  background: #fdecea;
  color: #c62828;
}
.product-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.product-cat {
  font-size: 11px;
  color: var(--text);
  opacity: .5;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.product-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}
/* Rating (visual only) */
.product-rating {
  display: flex;
  gap: 2px;
  font-size: 13px;
  color: var(--secondary);
}
/* Compatible vehicles */
.product-cars {
  font-size: 11px;
  color: var(--text);
  opacity: .55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-cars::before { content: '🚗 '; }
/* Sizes */
.product-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.size-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
  color: var(--text);
  opacity: .7;
}
.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.product-price .old {
  font-size: 12px;
  color: #aaa;
  text-decoration: line-through;
}
.product-price .price-now {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}
.product-actions {
  margin-top: 10px;
}
.product-actions .btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  background: var(--primary);
  color: var(--white);
  border: none;
  text-decoration: none;
  transition: background .18s;
  box-sizing: border-box;
}
.product-actions .btn:hover {
  background: var(--secondary);
  color: var(--white);
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .filters-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-field--search { grid-column: 1 / -1; }
}
@media (max-width: 576px) {
  .filters-bar { grid-template-columns: 1fr; }
  .quick-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .toolbar { padding: 14px; }
}

/* ============ 404 Page ============ */

.error-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(232,184,48,0.15), transparent 60%);
    pointer-events: none;
}

.error-hero-inner {
    position: relative;
    z-index: 1;
}

.error-icon {
    font-size: 56px;
    margin-bottom: 8px;
}

.error-code {
    font-size: clamp(64px, 14vw, 140px);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin: 0 0 12px;
}

.error-title {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.error-desc {
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.error-search-section {
    padding-top: 50px;
    padding-bottom: 20px;
}

.error-search-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.error-search-card h3 {
    color: var(--primary);
    margin-bottom: 18px;
}

.error-search-box {
    display: flex;
    gap: 10px;
}

.error-search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--surface-alt);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    transition: var(--transition);
}

.error-search-box input:focus {
    outline: none;
    border-color: var(--primary-light);
}

.error-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.error-link-card {
    text-align: center;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.error-link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.error-link-icon {
    font-size: 34px;
}

.error-link-text {
    font-weight: 600;
    color: var(--primary);
}

.error-popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.error-placeholder-body {
    padding: 16px;
    text-align: center;
}

.error-placeholder-body h4 {
    color: var(--text);
    margin-bottom: 6px;
    font-size: 15px;
}

.error-placeholder-price {
    color: var(--text-muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .error-links-grid {
        grid-template-columns: 1fr;
    }
    .error-popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .error-search-box {
        flex-direction: column;
    }
}

/* ============ Footer Upgrade ============ */

.footer-logo { font-size: 22px; display: inline-block; margin-bottom: 12px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p { font-size: 14px; opacity: .8; line-height: 1.9; margin-bottom: 16px; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
}
.footer-social a:hover { color: var(--secondary); transform: translateY(-2px); }

.footer-contact-list { display: flex; flex-direction: column; gap: 8px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; opacity: .85; }
.footer-contact-list a { color: inherit; }
.footer-contact-list a:hover { color: var(--secondary); opacity: 1; }

.footer-map { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-map h4 { margin-bottom: 12px; }
.footer-map-box {
  height: 160px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 15px;
  border: 1px dashed rgba(255,255,255,0.1);
}
.footer-map-box iframe { width: 100%; height: 100%; border: none; border-radius: var(--radius-sm); }

.footer-newsletter {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.footer-newsletter h4 { margin-bottom: 6px; }
.footer-newsletter p { font-size: 14px; opacity: .7; margin-bottom: 14px; }
.footer-newsletter-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.footer-newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter-form input:focus { outline: none; border-color: var(--secondary); }

.footer-trust {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.footer-trust-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--white);
  font-size: 13px;
  min-width: 100px;
  box-shadow: none;
}
.footer-trust-card:hover { border-color: var(--secondary); transform: translateY(-3px); }
.footer-trust-card img { width: 60px; height: auto; }
.trust-icon { font-size: 28px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  font-size: 13px;
  opacity: .65;
}
.footer-bottom nav { display: flex; gap: 16px; }
.footer-bottom nav a { color: inherit; }
.footer-bottom nav a:hover { color: var(--secondary); opacity: 1; }
.footer-version { font-size: 12px; opacity: .5; }

/* Modal Actions */
.modal-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom nav { justify-content: center; }
}

