:root {
    --primary: #0F3D6E;
    --secondary: #082340;
    --accent: #F47A20;
    --bg-light: #F8FAFC;
    --text-muted: #475569;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==================== هدر صفحه موجودی انبار ==================== */
.mojoodi_header {
    position: relative;
    width: 100%;
    min-height: 85vh;
    background-image: url('../images/header_services.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    padding: 140px 0 80px;
    overflow: hidden;
}
.mojoodi_header_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 35, 64, 0.88), rgba(8, 35, 64, 0.78));
    z-index: 1;
}
.content_mojoodi_header {
    position: relative;
    z-index: 2;
}
.badge_mojoodi {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    background: rgba(244, 122, 32, 0.18);
    border: 1px solid #F47A20;
    color: #F47A20;
    font-size: 13px;
    font-weight: 600;
}
.content_mojoodi_header h1 {
    font-size: 40px;
    color: #ffffff;
    direction: rtl;
    line-height: 1.5;
}
.mojoodi_header_desc {
    max-width: 900px;
    font-size: 15px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
    direction: rtl;
}
.btn_mojoodi_primary {
    background: #F47A20;
    color: white;
    padding: 14px 36px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    transition: 0.4s;
}
.btn_mojoodi_primary:hover {
    background: #e06a18;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(244, 122, 32, 0.4);
}
.btn_mojoodi_outline {
    background: transparent;
    color: white;
    padding: 13px 36px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    transition: 0.4s;
}
.btn_mojoodi_outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}
.features_mojoodi .col-lg-4 span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}
.icon_feature_mojoodi {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(244, 122, 32, 0.15);
    border: 1px solid rgba(244, 122, 32, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F47A20;
    font-size: 18px;
}

/* ==================== کارت‌های آمار ==================== */
.stat_card_mojoodi {
    background: white;
    border-radius: 20px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(8, 35, 64, 0.06);
    border: 1px solid #E2E8F0;
    transition: 0.4s;
    height: 100%;
}
.stat_card_mojoodi:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(8, 35, 64, 0.12);
    border-color: rgba(244, 122, 32, 0.25);
}
.stat_icon_mojoodi {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.stat_text_mojoodi {
    display: flex;
    flex-direction: column;
    text-align: right;
}
.stat_label_mojoodi {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 2px;
    font-weight: 500;
}
.stat_value_mojoodi {
    color: #082340;
    font-size: 22px;
    font-weight: 700;
    direction: rtl;
    line-height: 1.3;
}
.stat_sub_mojoodi {
    color: #94a3b8;
    font-size: 11px;
    margin-top: 3px;
}

/* ==================== فیلتر دسته‌بندی ==================== */
.btn_filter_mojoodi {
    background: white;
    border: 1px solid #E2E8F0;
    color: #475569;
    padding: 10px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}
.btn_filter_mojoodi:hover,
.btn_filter_mojoodi.active {
    background: #F47A20;
    color: white;
    border-color: #F47A20;
    box-shadow: 0 6px 20px rgba(244, 122, 32, 0.3);
}

/* ==================== جستجوی سریع موجودی ==================== */
.search_box_mojoodi {
    background: #082340;
    border-radius: 24px;
    padding: 40px;
    direction: rtl;
    box-shadow: 0 25px 60px rgba(8, 35, 64, 0.15);
}
.search_box_mojoodi h4 {
    color: white;
    font-weight: 700;
    font-size: 18px;
}
.search_main_input_wrapper {
    position: relative;
}
.search_main_icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    z-index: 2;
}
.search_main_input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    padding: 16px 52px 16px 20px;
    border-radius: 12px;
    width: 100%;
    direction: rtl;
    font-size: 14px;
    transition: 0.3s;
}
.search_main_input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.search_main_input:focus {
    outline: none;
    border-color: #F47A20;
    background: rgba(255, 255, 255, 0.08);
}
.search_field_group label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}
.search_field_group select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    padding: 12px 16px 12px 40px;
    border-radius: 10px;
    width: 100%;
    font-size: 13px;
    direction: rtl;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");
    background-repeat: no-repeat;
    background-position: left 14px center;
    transition: 0.3s;
    cursor: pointer;
}
.search_field_group select:focus {
    outline: none;
    border-color: #F47A20;
}
.search_field_group select option {
    background: #082340;
    color: white;
    padding: 10px;
}
.btn_search_mojoodi {
    background: #F47A20;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}
.btn_search_mojoodi:hover {
    background: #e06a18;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(244, 122, 32, 0.35);
}

/* ==================== جدول موجودی ==================== */
.mojoodi_table_wrapper {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 40px rgba(8, 35, 64, 0.06);
}
.mojoodi_table_wrapper table {
    margin-bottom: 0;
    direction: rtl;
}
.mojoodi_table_wrapper thead th {
    background: #F1F5F9;
    color: #475569;
    font-weight: 600;
    font-size: 13px;
    padding: 18px 20px;
    border: none;
    white-space: nowrap;
    text-align: right;
}
.mojoodi_table_wrapper tbody td,
.mojoodi_table_wrapper tbody th {
    padding: 18px 20px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
    white-space: nowrap;
    font-weight: 500;
    text-align: right;
}
.mojoodi_table_wrapper tbody th {
    color: #082340;
    font-weight: 600;
}
.mojoodi_table_wrapper tbody tr:last-child td,
.mojoodi_table_wrapper tbody tr:last-child th {
    border-bottom: none;
}
.mojoodi_table_wrapper tbody tr {
    transition: 0.3s;
}
.mojoodi_table_wrapper tbody tr:hover {
    background: #F8FAFC;
}
.status_available {
    background: #dcfce7;
    color: #16a34a;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}
.status_low {
    background: #fef3c7;
    color: #d97706;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* ==================== دسته‌بندی محصولات موجود ==================== */
.cat_card_mojoodi {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.5s;
    height: 100%;
}
.cat_card_mojoodi:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(8, 35, 64, 0.12);
    border-color: rgba(244, 122, 32, 0.3);
}
.cat_img_mojoodi {
    position: relative;
    height: 190px;
    overflow: hidden;
}
.cat_img_mojoodi img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}
.cat_card_mojoodi:hover .cat_img_mojoodi img {
    transform: scale(1.08);
}
.cat_badge_mojoodi {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #F47A20;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}
.cat_body_mojoodi {
    padding: 22px 20px;
}
.cat_body_mojoodi h5 {
    color: #082340;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 17px;
}
.cat_body_mojoodi p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 16px;
}
.cat_link_mojoodi {
    color: #F47A20;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}
.cat_link_mojoodi:hover {
    color: #0F3D6E;
    gap: 6px;
}

/* ==================== گالری تصاویر ==================== */
.gallery_item_mojoodi {
    cursor: pointer;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(8, 35, 64, 0.08);
    transition: 0.4s;
}
.gallery_item_mojoodi:hover {
    box-shadow: 0 15px 35px rgba(8, 35, 64, 0.15);
}
.gallery_item_top {
    height: 380px; /* ارتفاع تصاویر ردیف اول */
}
.gallery_item_bottom {
    height: 280px; /* ارتفاع تصاویر ردیف دوم */
}
.gallery_item_mojoodi img {
    transition: 0.6s;
}
.gallery_item_mojoodi:hover img {
    transform: scale(1.08);
}
.gallery_caption_mojoodi {
    background: linear-gradient(to top, rgba(8, 35, 64, 0.95), rgba(8, 35, 64, 0.4), transparent);
    font-size: 14px;
    z-index: 2;
    padding-top: 30px !important;
}

/* ==================== ریسپانسیو گالری ==================== */
@media (max-width: 991px) {
    .gallery_item_top { height: 280px; }
    .gallery_item_bottom { height: 240px; }
}
@media (max-width: 768px) {
    .gallery_item_top { height: 220px; }
    .gallery_item_bottom { height: 200px; }
    .gallery_caption_mojoodi { font-size: 12px; }
}

/* ==================== چرا خرید از پولاد پارس ==================== */
.why_card_mojoodi {
    background: white;
    border-radius: 20px;
    padding: 28px 26px;
    display: flex;
    gap: 20px;
    height: 100%;
    transition: 0.4s;
    align-items: flex-start;
}
.why_card_mojoodi:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}
.why_icon_mojoodi {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: rgba(244, 122, 32, 0.1);
    color: #F47A20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.why_card_mojoodi h5 {
    color: #082340;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 16px;
}
.why_card_mojoodi p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 0;
}

/* ==================== بخش CTA ==================== */
.mojoodi_cta_section {
    padding: 90px 0;
    text-align: center;
    direction: rtl;
}
.mojoodi_cta_section h2 {
    font-size: 28px;
    direction: rtl;
}
.mojoodi_cta_desc {
    color: rgba(255, 255, 255, 0.72);
    max-width: 720px;
    line-height: 2;
    font-size: 14px;
}

/* ==================== ریسپانسیو ==================== */
@media (max-width: 991px) {
    .content_mojoodi_header h1 { font-size: 28px; }
    .mojoodi_header_desc { font-size: 14px; }
    .gallery_grid_mojoodi {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 240px);
        height: auto;
    }
    .gallery_item_large {
        grid-column: 1 / 3;
        grid-row: 1;
    }
    .gallery_item_large ~ .gallery_item_mojoodi:nth-child(3) { grid-column: 1; grid-row: 2; }
    .gallery_item_large ~ .gallery_item_mojoodi:nth-child(4) { grid-column: 2; grid-row: 2; }
    .gallery_item_large ~ .gallery_item_mojoodi:nth-child(5) { grid-column: 1 / 3; grid-row: 3; }
}

@media (max-width: 768px) {
    .mojoodi_header { padding: 110px 0 60px; min-height: auto; }
    .content_mojoodi_header h1 { font-size: 22px; }
    .mojoodi_header_desc { font-size: 13px; line-height: 1.9; }
    .btn_mojoodi_primary, .btn_mojoodi_outline {
        padding: 12px 22px;
        font-size: 13px;
        margin-bottom: 8px;
    }
    .features_mojoodi span { font-size: 13px; }
    .stat_value_mojoodi { font-size: 18px; }
    .stat_label_mojoodi { font-size: 12px; }
    .stat_icon_mojoodi { width: 50px; height: 50px; font-size: 22px; }
    .search_box_mojoodi { padding: 24px 20px; }
    .search_box_mojoodi h4 { font-size: 16px; }
    .btn_filter_mojoodi { padding: 8px 22px; font-size: 13px; }
    .mojoodi_cta_section h2 { font-size: 20px; }
    .mojoodi_cta_section { padding: 60px 15px; }
    .gallery_grid_mojoodi {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 220px);
    }
    .gallery_item_large { grid-column: 1; grid-row: auto; }
    .gallery_item_large ~ .gallery_item_mojoodi { grid-column: 1 !important; grid-row: auto !important; }
}