/* هيدر الصفحة */
.equipment-header {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.equipment-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #6c757d;
}

.equipment-breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

.equipment-breadcrumb a:hover {
    color: #007bff;
}

.equipment-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #212529;
}

.equipment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.img-hero-large {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-badge {
    background: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    display: inline-flex;
    align-items: center;
}

.brand-badge img {
    height: 30px;
    max-width: 120px;
    object-fit: contain;
}

.views-count {
    color: #6c757d;
    font-size: 0.9rem;
}

.equipment-short-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 2.5rem;
}

.equipment-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.equipment-main-image {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.equipment-main-image:hover {
    transform: translateY(-5px);
}

/* معرض الصور */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

/* تفاصيل المعدة */
.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    color: #212529;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #007bff;
}

.equipment-full-desc {
    line-height: 1.8;
    color: #495057;
}

.equipment-full-desc p {
    margin-bottom: 1.5rem;
}

/* المواصفات الفنية */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.spec-item {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s;
}

.spec-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.spec-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spec-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.spec-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.spec-content p {
    margin-bottom: 0;
    color: #6c757d;
}

/* الفيديو */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* السايدبار */
.equipment-sidebar {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    top: 20px;
}

.price-item {
    margin-bottom: 1.5rem;
}

.price-item h4 {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.price-value small {
    font-size: 1rem;
    font-weight: 400;
    color: #6c757d;
}

.stock-info {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.file-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: #495057;
    text-decoration: none;
    transition: color 0.3s;
}

.file-link:hover {
    color: #007bff;
}

.file-link i {
    margin-right: 0.5rem;
    color: #dc3545;
}

/* المعدات المشابهة */
.equipment-card {
    border: none;
    border-radius: 0.75rem;
    transition: all 0.3s;
    overflow: hidden;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
}

.card-img-top {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.card-img-top img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.equipment-card:hover .card-img-top img {
    transform: scale(1.05);
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #212529;
}

.card-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* تصميم متجاوب */
@media (max-width: 992px) {
    .equipment-header {
        padding: 3rem 0;
    }
    
    .equipment-title {
        font-size: 2rem;
    }
    
    .equipment-sidebar {
        margin-top: 3rem;
        position: static;
    }
}

.equipment-sidebar.sticky-top {
  position: sticky;
  top: 20px;
  z-index: 100;
}

#lightbox {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* new equipment header */
.equipment-hero-header {
  position: relative;
  background: url('/assets/images/equipmentHeader.png') no-repeat center center;
  background-size: cover;
  background-color: #333;
  overflow: hidden;
}

.equipment-hero-header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* adjust darkness */
  z-index: 1;
  pointer-events: none;
}

.equipment-hero-header .content-wrapper {
  position: relative;
  z-index: 2;
}

.equipment-hero-header .breadcrumb {
    color: #ccc;
    font-size: 0.85rem;
}

.equipment-hero-header .breadcrumb a {
    color: #ddd;
    text-decoration: none;
}

.equipment-hero-header .breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .equipment-actions {
        flex-direction: column;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .related-equipment .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.btn-custom-secondary {
  background-color: #6ab4e3;
  color: #414042;
  border: none;
  border-radius: var(--btn-radius, 8px);
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s, color 0.3s;
}

.btn-custom-secondary iconify-icon,
.btn-custom-secondary .iconify {
  color: #414042;
  transition: color 0.3s;
}

.btn-custom-secondary:hover {
  background-color: #539cc9; /* درجة أغمق من #6ab4e3 */
  color: #ffffff;
}

.btn-custom-secondary:hover iconify-icon,
.btn-custom-secondary:hover .iconify {
  color: #ffffff;
}

.btn-custom-primary {
  background-color: #414042;
  color: #6ab4e3;
  border: none;
  border-radius: var(--btn-radius, 8px);
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s, color 0.3s;
}


.btn-custom-primary iconify-icon,
.btn-custom-primary .iconify {
  color: #6ab4e3;
  transition: color 0.3s;
}

.btn-custom-primary:hover {
  background-color: #5c5c5c; /* درجة أفتح من #414042 */
  color: #ffffff;
}

.btn-custom-primary:hover iconify-icon,
.btn-custom-primary:hover .iconify {
  color: #ffffff;
}

.btn-custom-whatsapp {
  background-color: #47ab4f;
  color: #FFF;
  border: none;
  border-radius: var(--btn-radius, 8px);
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s, color 0.3s;
}

.btn-custom-whatsapp:hover {
  background-color: #66da6e; /* درجة أفتح من #414042 */
  color: #ffffff;
}
.iconify-primary {
  color: var(--color-primary);
}

.iconify-secondary {
  color: var(--color-secondary);
}

.iconify-muted {
  color: var(--color-muted);
}

.iconify-white {
  color: #fff;
}
:dir(rtl), .rtl-layout {
    direction: rtl;
    text-align: right;
}

:dir(rtl) .equipment-meta,
.rtl-layout .equipment-meta {
    flex-direction: row-reverse;
}

:dir(rtl) .equipment-actions,
.rtl-layout .equipment-actions {
    flex-direction: row-reverse;
}

:dir(rtl) .file-link i,
.rtl-layout .file-link i {
    margin-left: 0.5rem;
    margin-right: 0;
}

:dir(rtl) .brand-badge,
.rtl-layout .brand-badge {
    flex-direction: row-reverse;
}

:dir(rtl) .spec-item,
.rtl-layout .spec-item {
    flex-direction: row-reverse;
}

:dir(rtl) .equipment-hero-header .breadcrumb,
.rtl-layout .equipment-hero-header .breadcrumb {
    text-align: right;
}

:dir(rtl) .equipment-hero-header .breadcrumb a,
.rtl-layout .equipment-hero-header .breadcrumb a {
    margin-left: 0.5rem;
    margin-right: 0;
}

:dir(rtl) .equipment-breadcrumb a,
.rtl-layout .equipment-breadcrumb a {
    margin-left: 0.5rem;
    margin-right: 0;
}
/* دعم اتجاه RTL للخط الأزرق تحت العنوان */
:dir(rtl) .section-title::after,
.rtl-layout .section-title::after {
    left: auto;
    right: 0;
}

@media (max-width: 576px) {
    .equipment-title {
        font-size: 1.75rem;
    }
    
    .related-equipment .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}