/* ===== سفارشی‌سازی‌های فروشگاه قطعات خودرو (روی قالب اصلی) ===== */
.site-logo-text{font-weight:700;font-size:1.1rem;line-height:1.5;display:inline-block;color:#333}
.site-logo-text i{font-size:1.5rem;vertical-align:middle}
.side-menu .site-logo-text{padding:10px 0}

/* پیام‌های فلش */
.flash-wrap{position:fixed;top:150px;left:50%;transform:translateX(-50%);z-index:1050;width:92%;max-width:640px}
.flash-wrap .alert{box-shadow:0 4px 18px rgba(0,0,0,.15);margin-bottom:8px}
@media(max-width:767px){.flash-wrap{top:90px}}

/* بخش جستجوی خودرو و قطعه در صفحه اصلی */
.hero-finder{border-radius:12px;padding:34px 28px;color:#fff;margin-bottom:24px;background:linear-gradient(135deg,#1f2937 0%,#374151 55%,#4b5563 100%);position:relative;overflow:hidden}
.hero-finder:after{content:"\F0D6A";font-family:"Material Design Icons";position:absolute;left:-10px;bottom:-40px;font-size:230px;opacity:.07;line-height:1}
.hero-finder h2{font-size:1.5rem;font-weight:700;margin-bottom:6px;color:#fff}
.hero-finder p{opacity:.85;margin-bottom:18px}
.hero-finder .form-control,.hero-finder select{height:46px;border-radius:8px;border:0}
.hero-finder .btn{height:46px;border-radius:8px;font-weight:700}

/* کاشی دسته‌ها */
.cat-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid #eee;border-radius:10px;padding:18px 8px;background:#fff;transition:all .2s;height:100%;color:#444}
.cat-tile:hover{box-shadow:0 6px 18px rgba(0,0,0,.09);transform:translateY(-3px);color:#000}
.cat-tile i{font-size:38px;margin-bottom:8px;color:#6b7280}
.cat-tile span{font-weight:600;font-size:.9rem;line-height:1.6}
.cat-tile small{color:#9ca3af}

/* چیپ خودروها */
.vehicle-chip{display:inline-block;padding:9px 18px;margin:4px;border:1px solid #e5e7eb;border-radius:30px;background:#fff;color:#374151;font-weight:600;transition:all .2s}
.vehicle-chip small{color:#9ca3af;margin-right:4px}
.vehicle-chip:hover,.vehicle-chip.active{background:#374151;color:#fff;border-color:#374151}
.vehicle-chip:hover small,.vehicle-chip.active small{color:#d1d5db}

/* کارت محصول */
.product-card .product-thumb img{object-fit:contain;aspect-ratio:1/1;width:100%;background:#fff}
.product-card .product-title{min-height:3.2em;line-height:1.6;font-size:.9rem}
.product-card .product-code{display:block;color:#9ca3af;font-size:.75rem;margin-bottom:4px;direction:ltr;text-align:right}
.product-card .price-old{display:block;color:#9ca3af;text-decoration:line-through;font-size:.8rem;min-height:1.2em}
.product-card .product-price{display:block}
.product-card .out-of-stock{color:#ef4444;font-weight:600;font-size:.85rem}
.product-card .card-add{margin-top:8px}
.product-card .card-add .btn{width:100%;font-size:.85rem}
.product-card.is-unavailable .product-thumb img{opacity:.45}
.product-card .badge-unavailable{position:absolute;top:10px;right:10px;background:#ef4444;color:#fff;border-radius:4px;padding:2px 8px;font-size:.75rem;z-index:2}

/* لیست فیلتر */
.cat-filter-list{list-style:none;padding:0;margin:0}
.cat-filter-list li a{display:flex;justify-content:space-between;padding:6px 4px;color:#444;border-radius:6px}
.cat-filter-list li a:hover,.cat-filter-list li a.active{background:#f3f4f6;font-weight:700}
.cat-filter-list li a small{color:#9ca3af}
.cat-filter-list ul{list-style:none;padding:0 14px 0 0;margin:0 0 6px}
.filter-box-title{font-weight:700;margin:14px 0 6px;font-size:.95rem}
.sort-bar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:14px}
.sort-bar a{padding:6px 14px;border-radius:20px;background:#f3f4f6;color:#555;font-size:.85rem}
.sort-bar a.active{background:#374151;color:#fff}
.active-filters a{display:inline-block;background:#eef2ff;color:#3730a3;border-radius:20px;padding:3px 12px;margin:0 0 6px 6px;font-size:.8rem}

/* صفحه محصول */
.product-price-box .price-old{color:#9ca3af;text-decoration:line-through;font-size:1rem}
.product-price-box .price-now{font-size:1.6rem;font-weight:700}
.product-price-box .off-badge{background:#ef4444;color:#fff;border-radius:20px;padding:2px 10px;font-size:.85rem;margin-right:6px}
.spec-table td{padding:10px 14px;border-bottom:1px solid #f0f0f0}
.spec-table td:first-child{color:#6b7280;width:200px}
.compat-list a{display:inline-block;margin:3px;padding:5px 14px;border-radius:20px;background:#f3f4f6;color:#374151}
.compat-list a:hover{background:#374151;color:#fff}
.stock-ok{color:#16a34a;font-weight:600}
.stock-low{color:#d97706;font-weight:600}
.stock-no{color:#ef4444;font-weight:600}
.cart-qty-form .num-block{display:inline-block}
.btn-fav{background:none;border:0;cursor:pointer}
.btn-fav.is-fav i{color:#ef4444}

/* خلاصه سبد */
.cart-total-row{display:flex;justify-content:space-between;padding:6px 0}
.cart-total-row.big{font-weight:700;font-size:1.1rem;border-top:1px dashed #ddd;margin-top:6px;padding-top:12px}

/* فرم‌ها */
.form-ui .input-ui{width:100%}
textarea.input-ui{height:auto;min-height:90px;padding:10px}
.pay-method{display:block;border:1px solid #e5e7eb;border-radius:10px;padding:14px 16px;margin-bottom:10px;cursor:pointer}
.pay-method.active,.pay-method:has(input:checked){border-color:#374151;background:#f9fafb}
.pay-method input{margin-left:8px}

/* جدول ساده برای حساب کاربری */
.table-order td,.table-order th{vertical-align:middle}
.status-badge{display:inline-block;padding:2px 10px;border-radius:12px;font-size:.8rem;background:#f3f4f6}
.status-pending{background:#fef3c7;color:#92400e}
.status-processing{background:#dbeafe;color:#1e40af}
.status-shipped{background:#e0e7ff;color:#3730a3}
.status-delivered{background:#dcfce7;color:#166534}
.status-canceled{background:#fee2e2;color:#991b1b}

/* ===== اسلایدشو صفحه اصلی ===== */
.main-slider.card{border:0;border-radius:14px;overflow:hidden;box-shadow:0 4px 18px rgba(0,0,0,.08)}
.main-slider .shop-slide{display:block;position:relative;height:380px;background-size:cover;background-position:center;background-repeat:no-repeat}
@media(max-width:991px){.main-slider .shop-slide{height:260px}}
@media(max-width:575px){.main-slider .shop-slide{height:180px}}
.shop-slide.g1{background-image:linear-gradient(120deg,#1f2937,#4b5563)}
.shop-slide.g2{background-image:linear-gradient(120deg,#b91c1c,#f97316)}
.shop-slide.g3{background-image:linear-gradient(120deg,#0f766e,#2563eb)}
.slide-caption{position:absolute;right:6%;top:50%;transform:translateY(-50%);max-width:60%;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.45)}
.slide-caption strong{display:block;font-size:2rem;line-height:1.6;font-weight:700}
.slide-caption em{display:block;font-style:normal;font-size:1.05rem;opacity:.92}
@media(max-width:767px){.slide-caption strong{font-size:1.1rem}.slide-caption em{font-size:.8rem}.slide-caption{max-width:85%}}
.main-slider .carousel-control-prev,.main-slider .carousel-control-next{width:46px;height:46px;top:50%;margin-top:-23px;border-radius:50%;background:rgba(255,255,255,.85);color:#333;opacity:0;transition:.2s;font-size:26px;align-items:center;justify-content:center}
.main-slider .carousel-control-prev{right:14px;left:auto}
.main-slider .carousel-control-next{left:14px;right:auto}
.main-slider:hover .carousel-control-prev,.main-slider:hover .carousel-control-next{opacity:1}
.main-slider .carousel-indicators li{width:10px;height:10px;border-radius:50%;margin:0 4px}

/* ===== دکمه افزودن به سبد (صفحه قطعه) ===== */
.btn-cart-pro{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;border:0;cursor:pointer;color:#fff;font-weight:700;font-size:1.05rem;padding:14px 20px;border-radius:12px;background:linear-gradient(135deg,#16a34a,#22c55e);box-shadow:0 8px 20px rgba(34,197,94,.35);transition:transform .15s,box-shadow .15s,filter .15s}
.btn-cart-pro i{font-size:1.5rem;line-height:1}
.btn-cart-pro:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(34,197,94,.45);filter:brightness(1.05)}
.btn-cart-pro:active{transform:translateY(0);box-shadow:0 4px 10px rgba(34,197,94,.35)}
.product-price-box .num-block{border:1px solid #e5e7eb;border-radius:10px;padding:2px 6px;background:#fafafa}
.product-price-box .qty-label{font-weight:600;color:#4b5563}
.btn-cart-mini{width:100%;border:1px solid #d1d5db;background:#fff;color:#374151;border-radius:8px;padding:7px 10px;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .15s}
.btn-cart-mini:hover{background:#16a34a;border-color:#16a34a;color:#fff}


/* Homepage layout inspired by the supplied index.html template */
.home-hero-row{align-items:stretch}
.home-hero-row>.col-xl-10,.home-hero-row>.col-lg-9{min-width:0}
.home-sidebar{padding-top:1rem;padding-bottom:1rem}
.home-promo-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:20px 16px;margin-bottom:12px;min-height:105px;background:#fff;border:1px solid #edf0f3;border-radius:12px;color:#273444;text-decoration:none;box-shadow:0 3px 14px rgba(20,35,50,.035);transition:transform .2s,box-shadow .2s}
.home-promo-card:hover{color:#273444;text-decoration:none;transform:translateY(-2px);box-shadow:0 8px 22px rgba(20,35,50,.08)}
.home-promo-card>.mdi{font-size:27px;color:#e05252}
.home-promo-card strong{font-size:14px;font-weight:700}
.home-promo-card small{color:#788493;font-size:12px}
.home-promo-card b{margin-top:auto;color:#d74444;font-size:12px}
.home-promo-discount{background:linear-gradient(145deg,#fff8f5,#fff)}
.home-hero-row .main-slider{margin-top:1rem!important;overflow:hidden;border:0;border-radius:13px}
.home-hero-row .main-slider-slide{border-radius:13px}
.hero-finder{position:relative;border:1px solid #f0e1e1;border-radius:14px;background:linear-gradient(110deg,#fff 0%,#fff7f6 100%);padding:24px 26px;margin:18px 0 34px;box-shadow:0 7px 25px rgba(45,35,35,.035)}
.hero-finder h2{font-size:20px;font-weight:700;margin-bottom:8px;color:#273444}
.hero-finder p{color:#788493;margin-bottom:18px}
.hero-finder .form-control{min-height:44px;border-color:#e7e9ed;border-radius:8px}
.hero-finder .btn{border-radius:8px;min-height:44px}
.cat-tile{height:100%;min-height:120px}
@media(max-width:767px){.hero-finder{padding:18px 14px;margin-top:12px}.hero-finder h2{font-size:17px}.home-hero-row .main-slider{margin-top:0!important}.home-hero-row{margin-top:10px}}


/* ================================================================
   Modern storefront refresh — shared across every storefront page
   ================================================================ */
:root{--shop-ink:#172b4d;--shop-muted:#66758a;--shop-primary:#1769aa;--shop-primary-dark:#10558d;--shop-accent:#19a7a0;--shop-border:#e4eaf1;--shop-surface:#fff;--shop-soft:#f5f8fc;--shop-radius:16px;--shop-shadow:0 8px 28px rgba(25,45,75,.07)}
html{scroll-behavior:smooth}
body{background:#f6f8fb;color:var(--shop-ink);font-family:inherit;line-height:1.8}
.wrapper{min-height:100vh;background:#f6f8fb}
header.main-header{box-shadow:0 5px 24px rgba(21,42,70,.08);border-bottom:1px solid rgba(225,232,241,.8)}
header.main-header .topbar{padding-top:13px;padding-bottom:13px}
header.main-header .logo-area img{max-height:58px;max-width:100%;object-fit:contain}
.site-logo-text{color:var(--shop-ink);font-size:1.12rem;font-weight:800;letter-spacing:-.3px}
header.main-header .search-area form.search input{height:46px;border:1px solid var(--shop-border);border-radius:13px;background:#f7f9fc;padding-right:18px;padding-left:48px;transition:border-color .2s,box-shadow .2s}
header.main-header .search-area form.search input:focus{border-color:#80b9e4;box-shadow:0 0 0 4px rgba(23,105,170,.09);background:#fff}
header.main-header .search-area form.search .search-icon{left:17px;right:auto;color:var(--shop-primary)}
header.main-header .nav-link{border-radius:12px;transition:background .2s,color .2s}
header.main-header .nav-link:hover{background:#eef6fd;color:var(--shop-primary)}
header.main-header .bottom-header{padding-top:4px;padding-bottom:4px;margin-bottom:0;border-top:1px solid #f0f3f7;box-shadow:none}
header.main-header .main-menu .list>.list-item>a,header.main-header .main-menu .list>.list-item>span{font-weight:600;transition:color .2s}
header.main-header .main-menu .list>.list-item:hover>a{color:var(--shop-primary)}
header.main-header .main-menu .list .list-item.category-list>a{border-radius:10px;background:#eef6fd;color:var(--shop-primary);padding:9px 14px}
header.main-header .main-menu .list .list-item.category-list>a:before{display:none}
.main-content{min-height:48vh}
main.main-content>.container.main-container{padding-top:12px;padding-bottom:28px}
.dt-sn,.dt-sn--box,.checkout-content,.profile-sidebar .dt-sn,.product-card,.cat-tile,.main-footer .widget.card{border:1px solid var(--shop-border)!important;border-radius:var(--shop-radius)!important;background:var(--shop-surface);box-shadow:var(--shop-shadow);overflow:hidden}
.dt-sn.p-4,.dt-sn--box.p-3{padding:clamp(16px,2.3vw,28px)!important}
.section-title h2{color:var(--shop-ink);font-weight:800;letter-spacing:-.25px}
.section-title:after{background:var(--shop-primary)}
.product-card{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.product-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(25,45,75,.12);border-color:#cbdced!important}
.product-card .product-thumb{background:#fff}
.product-card .product-title a{color:var(--shop-ink)}
.product-card .product-title a:hover{color:var(--shop-primary)}
.btn,.btn-primary-cm,.btn-cart-pro,.btn-cart-mini{border-radius:11px;font-weight:700;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.btn-info,.btn-primary-cm{background:linear-gradient(135deg,var(--shop-primary),#2587c8);border-color:transparent;color:#fff}
.btn-info:hover,.btn-primary-cm:hover{background:linear-gradient(135deg,var(--shop-primary-dark),var(--shop-primary));color:#fff;box-shadow:0 8px 18px rgba(23,105,170,.2);transform:translateY(-1px)}
.btn-cart-pro{background:linear-gradient(135deg,#078c82,#20b2a7);box-shadow:0 8px 18px rgba(25,167,160,.22)}
.btn-cart-pro:hover{box-shadow:0 12px 24px rgba(25,167,160,.28)}
/* All input controls, including standalone inputs not wrapped in .form-row */
.form-ui input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]),
.form-ui select,.form-ui textarea,.input-ui,
input.input-ui,textarea.input-ui,select.input-ui,
.profile-sidebar input,.checkout-page input,.checkout-page textarea{max-width:100%;min-height:46px;width:100%;padding:10px 14px;background:#fff;border:1px solid #dce4ee;border-radius:11px;color:var(--shop-ink);font:inherit;font-size:14px;line-height:1.6;outline:0;box-shadow:0 1px 2px rgba(20,40,70,.025);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.form-ui textarea,.input-ui textarea,textarea.input-ui,.form-ui textarea.input-ui{min-height:110px;resize:vertical;padding-top:12px}
.form-ui input:focus,.form-ui select:focus,.form-ui textarea:focus,.input-ui:focus{border-color:#69a9d8;box-shadow:0 0 0 4px rgba(23,105,170,.10);background:#fff}
.form-ui input:disabled,.input-ui:disabled{background:#f0f3f7;color:#7c8999;cursor:not-allowed}
.form-ui input::placeholder,.form-ui textarea::placeholder,.input-ui::placeholder{color:#9aa7b7;opacity:1}
.form-row-title h4{font-size:13px;font-weight:700;color:#34445b;margin-bottom:8px}
.form-ui .row>[class*=col-]{margin-bottom:13px}
.form-ui .custom-control-label{cursor:pointer;color:#45546a}
.form-ui .alert{border-radius:12px}
.pay-method{border:1px solid var(--shop-border);background:#fff;border-radius:13px;transition:border-color .2s,background .2s}
.pay-method:has(input:checked){border-color:var(--shop-primary);background:#f2f8fd;box-shadow:0 0 0 3px rgba(23,105,170,.06)}
/* Product quantity controls: clear, accessible +/- buttons */
.num-block{display:inline-flex;vertical-align:middle}
.num-block .num-in{display:inline-flex;align-items:center;gap:5px;direction:ltr;padding:4px;border:1px solid #dbe4ee;border-radius:12px;background:#fff;min-height:46px}
.num-in .qty-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex:0 0 34px;padding:0;border:0;border-radius:9px;background:#edf5fc;color:var(--shop-primary);font-size:18px;cursor:pointer;transition:background .15s,color .15s,transform .15s}
.num-in .qty-btn:hover:not(:disabled){background:var(--shop-primary);color:#fff;transform:scale(1.04)}
.num-in .qty-btn:focus-visible{outline:3px solid rgba(23,105,170,.25);outline-offset:2px}
.num-in .qty-btn:disabled,.num-in .qty-btn.dis{background:#f1f3f6;color:#b5bfca;cursor:not-allowed;opacity:.75}
.num-in input.in-num{width:40px!important;min-width:40px;height:34px!important;min-height:34px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:center;font-weight:800;font-size:15px;color:var(--shop-ink)}
.product-price-box{border-color:var(--shop-border)!important;border-radius:16px!important;background:linear-gradient(180deg,#fff,#fbfdff)}
.product-title h1{font-size:clamp(1.25rem,2vw,1.8rem);font-weight:800;line-height:1.7;color:var(--shop-ink)}
.product-title h3{font-size:.9rem;color:var(--shop-muted)}
.spec-table{border-collapse:separate;border-spacing:0;overflow:hidden;border:1px solid var(--shop-border);border-radius:12px}
.spec-table td{padding:12px 16px;border-bottom:1px solid #edf1f6}
.spec-table tr:last-child td{border-bottom:0}
.spec-table tr:nth-child(even){background:#f8fafc}
.spec-table td:first-child{font-weight:700;color:#53647a}
.cart-item{border-bottom:1px solid #edf1f6;gap:18px}
.cart-item:last-child{border-bottom:0}
.cart-item .item-thumbnail img{border-radius:12px;object-fit:contain;background:#fff}
.cart-total-row{gap:12px;color:#526176}
.cart-total-row.big{color:var(--shop-ink)}
.profile-sidebar .dt-sn{padding:14px}
.profile-menu ul{padding:0;margin:0;list-style:none}
.profile-menu li a{display:flex;align-items:center;gap:10px;border-radius:10px;padding:11px 13px;color:#536176;transition:all .18s}
.profile-menu li a:hover,.profile-menu li a.active{background:#eef6fd;color:var(--shop-primary);font-weight:700}
.profile-menu li a i{font-size:19px}
.status-badge{font-weight:700}
.table-responsive{border-radius:12px}
.table-order{width:100%;border-collapse:separate;border-spacing:0}
.table-order th{background:#f4f7fb;color:#536176;font-weight:700}
.table-order td,.table-order th{padding:12px;border-bottom:1px solid #edf1f6}
.alert{border-radius:12px}
.flash-wrap{top:160px}
.main-footer{margin-top:30px;background:#fff;border-top:1px solid var(--shop-border)}
.main-footer .widget.card{box-shadow:none}
.main-footer .widget .card-header{background:#f8fafc;border-bottom:1px solid #edf1f6}
.main-footer .footer-menu a{transition:color .15s}
.main-footer .footer-menu a:hover{color:var(--shop-primary)}
@media(min-width:768px){main.main-content>.container.main-container{padding-top:18px}}
@media(max-width:767px){
 header.main-header .topbar{padding:8px 0}
 header.main-header .logo-area img{max-height:42px}
 header.main-header .search-area form.search input{height:42px;font-size:13px}
 main.main-content>.container.main-container{padding:8px 12px 22px}
 .dt-sn.p-4,.dt-sn--box.p-3{padding:16px!important}
 .product-price-box .price-now{font-size:1.35rem}
 .product-title h1{font-size:1.2rem}
 .cart-item{padding:18px 12px!important}
 .profile-sidebar{margin-bottom:16px}
 .num-in .qty-btn{width:32px;height:32px;flex-basis:32px}
 .flash-wrap{top:105px}
}

/* Header offset correction: fixed header must reserve its real height on every storefront page. */
:root{--store-header-height:140px}
body:not(.storefront-profile) main.main-content{
  margin-top:calc(var(--store-header-height) + 6px)!important;
}
body:not(.storefront-profile) main.main-content>.container.main-container{
  padding-top:8px!important;
}
/* Breadcrumb pages should sit close to the navigation without a large blank band. */
body.storefront-breadcrumb main.main-content{
  margin-top:calc(var(--store-header-height) + 2px)!important;
}
body.storefront-breadcrumb main.main-content>.container.main-container{
  padding-top:0!important;
}
@media(max-width:767px){
  body:not(.storefront-profile) main.main-content{margin-top:calc(var(--store-header-height) + 4px)!important}
  body.storefront-breadcrumb main.main-content{margin-top:calc(var(--store-header-height) + 1px)!important}
  body:not(.storefront-profile) main.main-content>.container.main-container{padding-top:5px!important}
  body.storefront-breadcrumb main.main-content>.container.main-container{padding-top:0!important}
}
