.products-hero{
    background: linear-gradient(rgba(0, 31, 84, 0.85), rgba(0, 31, 84, 0.9)),
    url('https://kralmotoriranian.com/public/images/page/dealerships.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0 120px 0;
    text-align: center;
}
.search-container{
    margin-top: -60px;
    position: relative;
    z-index: 10;
}
.search-box{
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 5px solid var(--rasa-red);
}
.search-box .form-control,
.search-box .form-select{
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}
.search-box .form-control:focus,
.search-box .form-select:focus{
    border-color: var(--rasa-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 31, 84, 0.15);
}
.product-chips{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}
.product-chips .chip{
    border: 1px solid rgba(0,0,0,0.08);
    background: var(--bg-light);
    color: #333;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.product-chips .chip:hover{
    transform: translateY(-1px);
}
.product-chips .chip.active{
    background: var(--rasa-blue);
    color: #fff;
    border-color: var(--rasa-blue);
}
.product-list-card{
    background:#fff;
    border-radius: 12px;
    overflow:hidden;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display:flex;
    flex-direction:column;
}
.product-list-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}
.product-cover{
    height: 190px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.product-cover-overlay{
    position:absolute;
    inset:0;
}
.product-cover-top{
    position:absolute;
    top: 12px;
    right: 12px;
    z-index:2;
}
.product-card-body{
    padding: 18px;
    display:flex;
    flex-direction:column;
    height: 100%;
}
.product-badge{
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
}
.badge-light{ background: rgba(255,255,255,0.9); color: var(--rasa-blue); }
.badge-truck{ background: rgba(234,29,44,0.92); color: #fff; }
.badge-trailer{ background: rgba(0,31,84,0.92); color: #fff; }
.btn-outline-custom{
    color: var(--rasa-blue);
    border: 1px solid var(--rasa-blue);
    border-radius: 8px;
}
.btn-outline-custom:hover{
    background-color: var(--rasa-blue);
    color: #fff;
}
[dir="rtl"] .icon-direction{
    transform: scaleX(-1);
}


/* Hero */
.product-hero{
    
    background-size: cover !important;
    background-position: center;
    color: #fff;
    padding: 80px 0 140px 0;
    text-align: right;
}

/* Breadcrumb */
.breadcrumb-custom .breadcrumb{
    --bs-breadcrumb-divider: "›";
}
.breadcrumb-custom a{
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.breadcrumb-custom a:hover{
    color: #fff;
    text-decoration: underline;
}
.breadcrumb-custom .breadcrumb-item.active{
    color: rgba(255,255,255,0.7);
}

/* Wrapper spacing */
.product-page-wrap{
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding-top: 30px;
}

/* Cards */
.product-media-card,
.product-section-card{
    background:#fff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 26px rgba(0,0,0,0.06);
    overflow: hidden;
}

.product-section-card{
    padding: 22px;
}

.section-title-row{
    display:flex;
    justify-content: space-between;
    align-items: center;
}

/* Featured */
.product-featured{
    height: 360px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.product-featured-overlay{
    position:absolute;
    inset:0;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.05));
}
.product-featured-badges{
    position:absolute;
    right: 14px;
    top: 14px;
    display:flex;
    gap: 8px;
    z-index:2;
}

/* Badges */
.product-badge{
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
}
.badge-light{ background: rgba(255,255,255,0.92); color: var(--rasa-blue); }
.badge-brand{ background: rgba(234,29,44,0.95); color: #fff; }
.badge-truck{ background: rgba(234,29,44,0.92); color: #fff; }
.badge-trailer{ background: rgba(0,31,84,0.92); color: #fff; }

/* Thumbs */
.product-thumbs{
    display:flex;
    gap:10px;
    padding: 14px;
    overflow-x: auto;
    background: #fff;
}
.product-thumbs .thumb{
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0;
    background: transparent;
    flex: 0 0 auto;
    width: 84px;
    height: 64px;
    overflow:hidden;
    transition: all .2s ease;
}
.product-thumbs .thumb img{
    width:100%;
    height:100%;
    object-fit: cover;
}
.product-thumbs .thumb.active{
    border-color: var(--rasa-red);
}
.product-thumbs .thumb:hover{
    transform: translateY(-2px);
}

/* Gallery */
.product-pills .nav-link{
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--rasa-blue) !important;
    background: #f4f6f9;
    border: 1px solid rgba(0,0,0,0.06);
    font-weight: 700;
}
.product-pills .nav-link.active{
    background: var(--rasa-blue);
    color: #fff !important;
    border-color: var(--rasa-blue);
}

.gallery-item{
    display:block;
    border-radius: 12px;
    overflow:hidden;
    border: 1px solid rgba(0,0,0,0.06);
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-item img{
    width:100%;
    height: 140px;
    object-fit: cover;
}
.gallery-item:hover{
    transform: translateY(-4px);
    box-shadow: 0 12px 22px rgba(0,0,0,0.08);
}

/* Meta grid */
.meta-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.meta-item{
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 12px;
    padding: 12px;
}
.meta-label{
    font-size: 0.82rem;
    color: #6c757d;
    font-weight: 700;
    margin-bottom: 3px;
}
.meta-value{
    font-weight: 800;
    color: #222;
}

/* Catalog */
.catalog-card{
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 14px;
}
.pdf-icon{
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(0,31,84,0.08);
    color: var(--rasa-blue);
}
.pdf-viewer{
    border-radius: 12px;
    overflow:hidden;
    border: 1px dashed rgba(0,0,0,0.12);
    background: #f8f9fa;
}
.pdf-placeholder{
    padding: 26px;
    text-align: center;
    color: #6c757d;
    font-weight: 700;
}

/* Buttons */
.btn-outline-custom{
    color: var(--rasa-blue);
    border: 1px solid var(--rasa-blue);
    border-radius: 10px;
}
.btn-outline-custom:hover{
    background-color: var(--rasa-blue);
    color: #fff;
}
.btn-submit{
    background-color: var(--rasa-red);
    color:#fff;
    border-radius: 10px;
    border:none;
    font-weight: 800;
}
.btn-submit:hover{
    background-color:#c01522;
    color:#fff;
}

/* Sticky on desktop */
.product-sticky{
    top: 18px;
}

/* RTL directional icons */
[dir="rtl"] .icon-direction{
    transform: scaleX(-1);
}

/* Responsive tweaks */
@media (max-width: 991px){
    .product-featured{ height: 300px; }
    .product-page-wrap{ margin-top: -80px; }
    .meta-grid{ grid-template-columns: 1fr; }
}


.gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    transition: transform .3s;
}
.gallery-item:hover {
    transform: scale(1.05);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-pills .nav-link {
    border-radius: 20px;
    padding: 8px 20px;
    margin-left: 8px;
}

#modalImage {
    max-height: 70vh;
}

.modal-xl {
    max-width: 1200px;
}