/* ============================================
   RESET & BASE
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f0f2f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ============================================
   NAVBAR
============================================ */
.navbar {
    background: white;
    padding: 18px 40px;
    width: 100%;
    height: 80px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.leftnav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leftnav img {
    width: 35px;
    height: 35px;
    display: block;
}

.copmanytext h2 {
    font-size: 17px;
    font-weight: 600;
    color: #1a2a4a;
    line-height: 1.2;
}

.copmanytext p {
    font-size: 10px;
    color: #7a8aa0;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rightnav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navlinks {
    display: flex;
    gap: 35px;
}

.navlinks a {
    text-decoration: none;
    color: #1a2a4a;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
    border: 1px solid #f5f5f5;
    padding: 4px 25px;
    border-radius: 10px;
    line-height: 1.2;
}

.navlinks a:hover {
    background: #D92725;
    color: white;
}

.navlinks a.active {
    color: #ffffff;
    background: #D9272E;
    box-shadow: 0 4px 15px rgba(217, 39, 46, 0.25);
}

.navlinks a.active:hover {
    background: #b51e24;
}

.navbutton {
    background: #D9272E;
    color: white;
    border: none;
    padding: 10px 26px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.navbutton:hover {
    background: #b51e24;
}

.navbutton i {
    margin-left: 6px;
}

/* ============================================
   HERO
============================================ */
.hero {
    position: relative;
    background-image: url('../photos/Container.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.hero-subtitle {
    font-size: 12px;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    display: inline-block;
    border-radius: 40px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 48px;
    font-weight: 500;
    font-family: 'DIN', sans-serif;
    color: #000000;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero-description {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.85);
    line-height: 1.7;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   SERVICES CARDS
============================================ */
.services-cards {
    width: 100%;
    max-width: 1100px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.service-card {
    position: relative;
    width: 100%;
    margin-bottom: 42px;
    padding: 30px 35px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.10), 0 5px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.07);
}

.service-card.expanded {
    padding-bottom: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
}

.service-card.expanded:hover {
    transform: translateY(0);
}

/* ============================================
   SERVICE INFO
============================================ */
.service-info {
    width: 58%;
    position: relative;
    z-index: 2;
}

.service-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: #e51d25;
    color: #ffffff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.service-label {
    margin-bottom: 9px;
    color: #777b86;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.service-info h2 {
    margin: 0 0 10px;
    color: #202638;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.service-info p {
    width: 100%;
    max-width: 500px;
    margin: 0 0 13px;
    color: #858891;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.service-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 14px;
    background: #e8f1ff;
    color: #3474d9;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 120px;
    height: 38px;
    padding: 0 20px;
    border: none;
    border-radius: 6px;
    background: #e51d25;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.service-btn i {
    font-size: 13px;
}

.service-btn:hover {
    background: #c9151d;
    transform: translateX(3px);
}

/* ============================================
   SERVICE IMAGE
============================================ */
.service-img {
    width: 39%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-img img {
    display: block;
    width: 100%;
    max-width: 270px;
    max-height: 230px;
    object-fit: contain;
    transition: 0.3s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.04);
}

/* ============================================
   SERVICE DETAILS (Inside Card)
============================================ */
.service-details {
    display: none;
    justify-content:space-around;
    gap: 20px;
    width: 100%;
    margin-top: 25px;
    padding: 25px 30px 20px;
    /* background: #f8faff; */
    border-radius: 12px;
   
    animation: slideDown 0.4s ease forwards;
}

.service-details.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   DETAILS HEADER
============================================ */
.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8edf5;
}

.details-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a4a;
  

}

.details-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #D9272E;
}

.close-details {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    transition: 0.3s;
    padding: 4px 8px;
}

.close-details:hover {
    color: #D9272E;
    transform: rotate(90deg);
}

/* ============================================
   TWO COLUMNS LAYOUT
============================================ */
.details-two-columns {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
  
}

.details-col-left {
     background: white;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      justify-content: center;
    align-items: center;
}

.details-col-right {
    background: white;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      justify-content: center;
    align-items: center;
}

.col-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a4a;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f2f5;
}

/* ============================================
   GRID 3x2
============================================ */
.details-grid-3x2 {
    display: grid;
    grid-template-columns: repeat(3, 0.3fr);
    gap: 8px;
    margin-top: 55px;
}

.detail-card {
    background:#FAF9FF;
    width: 180px;
    height: 120px;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid #eef2f8;
    transition: 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.detail-card:hover {
    border-color: #D9272E;
    box-shadow: 0 4px 14px rgba(217, 39, 46, 0.08);
    transform: translateY(-2px);
}

.detail-card-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: #fef0f0;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D9272E;
    font-size: 14px;
}

.detail-card-content h4 {
    font-size: 12px;
    font-weight: 600;
    color: #1a2a4a;
    margin: 0 0 2px;
    margin-top: 6px;
}

.detail-card-content p {
    font-size: 9px;
    color: #777;
    margin: 0;
    line-height: 1.4;
    margin-left:-30px;
    margin-top: 20px;
    font-weight:500;
}

/* ============================================
   WHY CHOOSE US (Right Column)
============================================ */
.why-choose-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f7fa;
}

.why-choose-item:last-child {
    border-bottom: none;
}

.why-choose-item i {
    color: #D9272E;
    font-size: 15px;
    width: 20px;
    margin-top: 2px;
}

.why-choose-item strong {
    font-size: 12px;
    font-weight: 600;
    color: #1a2a4a;
    display: block;
    margin-bottom: 1px;
}

.why-choose-item p {
    font-size: 11px;
    color: #777;
    margin: 0;
    margin-left: -30px;
    margin-top: 4px;
    line-height: 1.4;
}

/* ============================================
   CTA BAR
============================================ */
.details-cta-bar {
    justify-content: space-between;
    text-align:left;
    padding: 24px 30px;
    background: linear-gradient(100deg, #E8F4FF, #F2DFE4, #FFC5C2);
    border-radius: 12px;
     border-left: 4px solid #D9272E;
    color: rgb(0, 0, 0);
    margin-top: 5px;
}

.details-cta-bar p {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
}

.cta-sub {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.7);
    display: block;
    margin-bottom: 16px;
}

.cta-buttons {
    display: flex;
    justify-content: right;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: -55px;
}

.cta-btn-primary {
    background: #D9272E;
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.cta-btn-primary:hover {
    background: #b51e24;
    transform: scale(1.03);
}

.cta-btn-primary i {
    margin-left: 6px;
}

.cta-btn-secondary {
    background: white;
    color: #E2170C;
    border: 1.5px solid #E2170C;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.cta-btn-secondary i {
    margin-right: 6px;
}
/* ======================================= */
/* 1. شريط المنتجات المتحرك (Auto-Scrolling Marquee) */
/* ======================================= */
.scrolling-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 30px;
    margin-top: 20px;
    /* تأثير شفافية خفيف على أطراف الشريط للجمالية */
    /* mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); */
    /* -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); */
}

.ip-phones-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollTrack 35s linear infinite;
}

/* توقف الحركة عند وقوف الماوس عليها */
.ip-phones-track:hover {
    animation-play-state: paused;
}

.ip-phones-track .ip-phone-card {
    width: 280px; /* تثبيت عرض الكارت */
    flex-shrink: 0;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.3s ease;
}

.ip-phones-track .ip-phone-card:hover {
    border-color: #0076c0; /* لون أزرق عند مرور الماوس */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-3px);
}

.ip-phone-img {
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.ip-phone-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.ip-phones-track h3 {
    color: #0076c0;
    font-size: 16px;
    text-align: left;
}

.ip-phones-track p { font-size: 11px; color: #777;  text-align: left;}
.ip-phones-track .price {
    display: block; /* لتحويله لعنصر يأخذ عرض الكارت بالكامل */
    text-align: left; /* لمحاذاة النص جهة اليسار */
    font-weight: bold; 
    color: #1a1a24; 
    font-size: 15px;
}
/* حركة الشريط */
@keyframes scrollTrack {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); }
}

/* ======================================= */
/* XONTEL-STYLE PRODUCT FILTERS */
/* IP TELEPHONY ONLY */
/* ======================================= */
.ip-products-section {
    width: 100%;
    margin-top: 6px;
}

.ip-products-section .products-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ip-products-section .products-heading-row h2 {
    margin: 0;
    font-size: 14px;
    color: #1a2a4a;
    letter-spacing: .35px;
}

.product-category-nav {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 0;
    scrollbar-width: none;
    white-space: nowrap;
}

.product-category-nav::-webkit-scrollbar { display: none; }

.product-category-tab {
    position: relative;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #8c8c8c;
    padding: 9px 0 11px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color .25s ease;
}

.product-category-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: #1a2a4a;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}

.product-category-tab:hover,
.product-category-tab.active {
    color: #1a2a4a;
}

.product-category-tab.active::after {
    transform: scaleX(1);
}

.selected-category-label {
    display: none;
}

.product-carousel-wrapper {
    margin-top: 12px;
    padding: 12px 0 18px;
}
/* ========================================
   FIX: Product Card Layout — Clean
======================================== */
.ip-phones-track .ip-phone-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 18px 16px !important;
    min-height: 200px !important;
    position: relative !important;
    background: #ffffff !important;
}

/* الأيقونة */
.ip-phones-track .ip-phone-card .ip-product-icon {
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    background: #fef0f0 !important;
    color: #d9272e !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
}

/* العنوان */
.ip-phones-track .ip-phone-card h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0076c0 !important;
    line-height: 1.3 !important;
    width: 100% !important;
}

/* الوصف */
.ip-phones-track .ip-phone-card p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #666 !important;
    line-height: 1.5 !important;
    width: 100% !important;
    flex-grow: 1 !important;
}

/* الـ tag */
.ip-phones-track .ip-phone-card .product-category-mini {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 10px !important;
    color: #9a9da5 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    width: 100% !important;
}

/* السعر */
.ip-phones-track .ip-phone-card .price {
    margin: 0 !important;
    padding: 8px 0 0 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #d9272e !important;
    border-top: 1px solid #f0f2f5 !important;
    width: 100% !important;
    text-align: left !important;
}

.ip-phones-track {
    will-change: transform;
}

.ip-phones-track.is-switching {
    animation: none !important;
    transform: translateX(0) !important;
}

.ip-phones-track .ip-phone-card {
    min-height: 170px;
    position: relative;
    padding: 10px 10px 10px 10px;
    text-align: left;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 6px 10px;
    align-items: start;
    justify-content: start;
}

.ip-product-icon {
    grid-column: 1;
    grid-row: 1;
    width: 40px;
    height: 40px;
    margin-right: 20px;
    margin: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef0f0;
    color: #d9272e;
    font-size: 16px;
    line-height: 1;
}

.ip-phones-track .ip-phone-card h3,
.ip-phones-track .ip-phone-card p,
.ip-phones-track .ip-phone-card .product-category-mini {
    margin: 0;
    width: 100%;
}

.ip-phones-track .ip-phone-card h3 {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
    margin-left: 15px;
    margin-top: 5px;
}

.ip-phones-track .ip-phone-card p {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 6px;
    text-align: left;
    margin-left: -30px;
}

.ip-phones-track .ip-phone-card .product-category-mini {
    grid-column: 2;
    grid-row: 3;
    display: block;
    margin-top: 0;
    font-size: 10px;
    color: #9a9da5;
    text-transform: uppercase;
    letter-spacing: .6px;
    max-width: 200px;
}

@media (max-width: 900px) {
    .product-category-nav { gap: 22px; }
    .product-category-tab { font-size: 13px; }
}

@media (max-width: 600px) {
    .ip-phones-track .ip-phone-card { width: 215px; }
    .product-category-nav { gap: 18px; }
}

/* ======================================= */
/* 2. نافذة المنتج المنبثقة (Dynamic Product Modal) */
/* ======================================= */
.product-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13, 19, 42, 0.8);
    display: none; justify-content: center; align-items: center;
    z-index: 9999; backdrop-filter: blur(5px);
}

.product-modal-box {
    background: #ffffff; width: 95%; max-width: 900px;
    border-radius: 24px; padding: 40px; position: relative;
    animation: fadeIn 0.3s; font-family: 'DM Sans', sans-serif;
}

.product-modal-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* صور المنتج داخل النافذة */
.main-img {
    width: 100%;
    height: 320px;
    object-fit: contain; /* تمنع قص الصورة وتعرضها بالكامل */
    border-radius: 16px;
    margin-bottom: 15px;
    background: #f8f9fa; /* لون خلفية رمادي فاتح أنيق بدلاً من الأسود */
    padding: 10px; /* إضافة مسافة داخلية صغيرة ليتنفس التصميم */
}

.thumbnail-list { display: flex; gap: 10px; }

.thumb-img {
    width: 70px; height: 70px; object-fit: cover;
    border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: 0.3s;
}

.thumb-img.active { border-color: #d32f2f; }

/* تفاصيل المنتج داخل النافذة */
.product-tags { display: flex; gap: 10px; margin-bottom: 15px; align-items: center; }
.tag-light { color: #d32f2f; font-size: 12px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase;}
.tag-solid { background: #d32f2f; color: #ffffff; font-size: 11px; padding: 3px 8px; border-radius: 12px; font-weight: bold; }

.product-info-side h2 { font-family: 'DM Serif Display', serif; font-size: 32px; margin: 0 0 10px 0; color: #1a1a24; }
.product-subtitle { color: #777; font-size: 15px; margin-bottom: 25px; }

/* بلوك السعر */
.price-block {
    background: linear-gradient(135deg, #fef2f2 0%, #f0f4ff 100%);
    padding: 25px; border-radius: 16px;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px;
}

.price-label { font-size: 11px; color: #888; font-weight: bold; letter-spacing: 1px; display: block; margin-bottom: 5px; }
.price-value { color: #d32f2f; font-family: 'DM Serif Display', serif; font-size: 32px; line-height: 1; }
.price-notes { text-align: right; font-size: 12px; color: #888; display: flex; flex-direction: column; gap: 4px; }

/* المواصفات */
.specs-label { font-size: 12px; color: #888; font-weight: bold; letter-spacing: 1px; display: block; margin-bottom: 15px; }
.specs-list { list-style: none; padding: 0; margin: 0; }
.specs-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #444; margin-bottom: 12px; }

/* تصميم علامة الصح الحمراء الدائرية للمواصفات */
.specs-list li::before {
    content: '✓'; color: #d32f2f; border: 1px solid #ffcccc;
    border-radius: 50%; width: 18px; height: 18px;
    display: flex; justify-content: center; align-items: center; font-size: 10px;
}

/* التجاوب مع شاشات الموبايل */
@media (max-width: 850px) {
    .product-modal-content { grid-template-columns: 1fr; gap: 20px; }
    .main-img { height: 250px; }
}

/* تحويل شريط الهاردوير فقط إلى شبكة Grid مريحة */
#hardwareProductsTrack.hardware-grid-mode,
#marketingProductsTrack.hardware-grid-mode {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    animation: none !important;
    transform: none !important;
}

/* تنسيق كارت الهاردوير داخل الـ Grid */
#hardwareProductsTrack.hardware-grid-mode .ip-phone-card,
#marketingProductsTrack.hardware-grid-mode .ip-phone-card {
    width: 100% !important;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #eef0f4;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#hardwareProductsTrack.hardware-grid-mode .ip-phone-card:hover,
#marketingProductsTrack.hardware-grid-mode .ip-phone-card:hover {
    border-color: #d9272e;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* تصغير خط عنوان البطاقة */
#hardwareProductsTrack .ip-phone-card h3,
#marketingProductsTrack .ip-phone-card h3 {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 4px 0 !important;
}

/* تصغير خط الوصف */
#hardwareProductsTrack .ip-phone-card p,
#marketingProductsTrack .ip-phone-card p {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #666 !important;
    line-height: 1.4 !important;
    margin: 4px 0 8px !important;
}

/* تصغير خط الفئة بالأسفل */
#hardwareProductsTrack .ip-phone-card .product-category-mini,
#marketingProductsTrack .ip-phone-card .product-category-mini {
    font-size: 9px !important;
    letter-spacing: 0.4px !important;
}
/* شبكة عرض كروت الهاردوير */
#hardwareProductsTrack.hardware-grid-mode {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    animation: none !important;
}

#hardwareProductsTrack.hardware-grid-mode .ip-phone-card {
    width: 100% !important;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #eef0f4;
    transition: all 0.25s ease;
    cursor: pointer;
}

#hardwareProductsTrack.hardware-grid-mode .ip-phone-card:hover {
    border-color: #d9272e;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}


/* Hardware product photos */
#hardwareProductsTrack .hardware-card-image-wrap {
    width: 100%;
    height: 145px;
    border-radius: 10px;
    background: #f7f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}
#hardwareProductsTrack .hardware-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 8px;
}
#hardwareProductsTrack .hardware-card-title-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

#hardwareProductsTrack.hardware-grid-mode .ip-phone-card:nth-child(even) .hardware-card-title-row {
    flex-direction: row-reverse;
}

#hardwareProductsTrack.hardware-grid-mode .ip-phone-card:nth-child(even) .hardware-card-title-row h3 {
    text-align: right;
}

#hardwareProductsTrack .hardware-card-title-row .ip-product-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
}
/* Pagination controls for hardware products */
.hardware-pagination {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.hardware-grid-wrap {
    width: 100%;
    min-width: 0;
}

.hardware-page-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #d9272e;
    background: #ffffff;
    color: #d9272e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 5px 14px rgba(217, 39, 46, 0.08);
}

.hardware-page-btn:hover:not(:disabled) {
    background: #d9272e;
    color: #ffffff;
    transform: translateY(-2px);
}

.hardware-page-btn.disabled,
.hardware-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.hardware-page-dots {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
}

.hardware-page-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: #d9dde5;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hardware-page-dot.active {
    width: 28px;
    border-radius: 999px;
    background: #d9272e;
}
/* ============================================
   FOOTER
============================================ */
.site-footer {
    margin-top: 50px;
    background: var(--footer-bg);
    color: #ffffff;
}

.footer-main {
    padding: 40px 0 38px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.footer-main .footer-container {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1.25fr 1.15fr 1.15fr;
    gap: 42px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
}

.logo-circle {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: bold;
    font-size: 17px;
}

.footer-logo h3 {
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 700;
}

.footer-logo span {
    color: var(--text-secondary);
    font-size: 9px;
    line-height: 1.35;
}

.footer-about>p {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.65;
    margin: 0;
    max-width: 205px;
}

.footer-line {
    width: 23px;
    height: 2px;
    background: var(--accent);
    margin: 15px 0 17px;
}

.footer-about h4 {
    font-size: 11px;
    margin: 0 0 10px;
}

.social-links {
    display: flex;
    gap: 9px;
}

.social-links a {
    width: 24px;
    height: 24px;
    background: var(--circle-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    text-decoration: none;
    transition: 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-title {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 23px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 11px;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-links a span {
    color: var(--accent);
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.5;
}

.contact-list i {
    color: var(--accent);
    font-size: 9px;
    width: 11px;
    margin-top: 3px;
}

.contact-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.3s;
}

.contact-list a:hover {
    color: #fff;
}

.map-box {
    width: 100%;
    height: 105px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(170deg, #142a66 0%, #142a66 55%, #e9d1ca 56%, #e9d1ca 62%, #172d6d 63%);
    margin-bottom: 10px;
}

.map-content {
    width: 100%;
    height: 100%;
    position: relative;
    background:
        linear-gradient(87deg, transparent 45%, rgba(242, 218, 211, 0.9) 46%, rgba(242, 218, 211, 0.9) 50%, transparent 51%),
        linear-gradient(170deg, transparent 42%, rgba(237, 211, 204, 0.95) 43%, rgba(237, 211, 204, 0.95) 51%, transparent 52%);
}

.map-road {
    position: absolute;
    background: rgba(240, 218, 211, 0.9);
}

.road-one {
    width: 150%;
    height: 5px;
    top: 48px;
    left: -20px;
    transform: rotate(7deg);
}

.road-two {
    width: 5px;
    height: 140px;
    left: 49px;
    top: -20px;
    transform: rotate(-7deg);
}

.map-text {
    position: absolute;
    color: #1f3267;
    font-size: 5px;
    z-index: 2;
}

.nile {
    top: 17px;
    left: 18px;
}
.maadi {
    top: 17px;
    right: 17px;
}
.road {
    bottom: 25px;
    right: 13px;
}

.map-pin {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 7px;
    z-index: 3;
}

.directions-btn {
    width: 100%;
    height: 32px;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 9px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.directions-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.newsletter-section {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.newsletter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.newsletter-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.newsletter-icon {
    width: 32px;
    height: 32px;
    background: var(--circle-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 14px;
}

.newsletter-info h3 {
    font-size: 13px;
    margin: 0 0 2px;
}

.newsletter-info p {
    color: var(--text-secondary);
    font-size: 9px;
    margin: 0;
}

.newsletter-form {
    display: flex;
    width: 265px;
    height: 33px;
}

.newsletter-form input {
    flex: 1;
    border: none;
    outline: none;
    background: #11204a;
    color: #fff;
    padding: 0 12px;
    font-size: 10px;
    border-radius: 6px 0 0 6px;
}

.newsletter-form input::placeholder {
    color: #7181a9;
}

.newsletter-form button {
    width: 107px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: #c9212b;
}

.newsletter-form button i {
    margin-left: 7px;
}

.footer-bottom {
    padding: 11px 0;
    background: rgba(0, 0, 0, 0.08);
}

.bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    margin: 0;
    color: #7181a0;
    font-size: 9px;
}

.footer-bottom strong {
    color: #dce3f4;
}

.bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bottom-links a {
    color: #7181a0;
    font-size: 9px;
    text-decoration: none;
    transition: 0.3s;
}

.bottom-links a:hover {
    color: #fff;
}

.bottom-links span {
    color: #405071;
    font-size: 9px;
}
/* ============================================
   ============================================
   FULL RESPONSIVE — SERVICES PAGE
   (Navbar & Footer NOT touched)
   ============================================
============================================ */

/* ---------- إصلاحات أساسية ---------- */
img { max-width: 100%; height: auto; }
button { font-family: inherit; }

.details-grid-3x2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-card-content p,
.why-choose-item p {
    margin-left: 0 !important;
    margin-top: 6px !important;
}


/* ============================================
   LARGE DESKTOP (>= 1400px)
============================================ */
@media (min-width: 1400px) {
    .services-cards { max-width: 1240px; }
    .hero-title { font-size: 56px; }
}


/* ============================================
   DESKTOP / LAPTOP (max-width: 1200px)
============================================ */
@media (max-width: 1200px) {
    .services-cards { max-width: 1000px; padding: 0 24px; }

    .service-info { width: 56%; }
    .service-img  { width: 41%; }

    .details-grid-3x2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-card {
        width: 100%;
        height: auto;
        min-height: 110px;
    }
}


/* ============================================
   TABLET LANDSCAPE (max-width: 1024px)
============================================ */
@media (max-width: 1024px) {

    /* Hero */
    .hero { min-height: 320px; padding: 60px 20px; }
    .hero-title { font-size: 40px; }
    .hero-description { font-size: 16px; }

    /* Service Cards */
    .service-card { padding: 26px 26px; }
    .service-info { width: 55%; }
    .service-img  { width: 42%; height: 180px; }
    .service-img img { max-width: 230px; max-height: 180px; }

    /* Details */
    .details-two-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .details-grid-3x2 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 20px;
    }

    /* CTA */
    .details-cta-bar { padding: 20px 22px; text-align: center; }
    .cta-buttons {
        justify-content: center !important;
        margin-top: 12px !important;
    }

    /* Carousel */
    .ip-phones-track .ip-phone-card { width: 240px; }

    /* Product Modal */
    .product-modal-box { padding: 28px; }
}


/* ============================================
   TABLET PORTRAIT (max-width: 900px)
============================================ */
@media (max-width: 900px) {

    /* Hero */
    .hero { min-height: 280px; }
    .hero-title { font-size: 34px; letter-spacing: -0.5px; }
    .hero-subtitle { font-size: 11px; letter-spacing: 2px; }

    /* Service Card */
    .service-card {
        flex-direction: column;
        padding: 22px 20px;
    }
    .service-info,
    .service-img { width: 100%; }

    .service-img {
        order: -1;
        height: auto;
        margin-bottom: 16px;
    }
    .service-img img { max-width: 220px; max-height: 180px; }

    /* Details Grid */
    .details-grid-3x2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    /* Hardware Grid */
    #hardwareProductsTrack.hardware-grid-mode,
    #marketingProductsTrack.hardware-grid-mode {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    /* Product Modal */
    .product-modal-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .main-img { height: 240px; }
}


/* ============================================
   MOBILE LARGE (max-width: 700px)
============================================ */
@media (max-width: 700px) {

    /* ---------- Hero ---------- */
    .hero {
        min-height: 240px;
        padding: 100px 20px 40px;
    }
    .hero-title { font-size: 30px; margin-bottom: 10px; }
    .hero-description { font-size: 14px; line-height: 1.6; }

    /* ---------- Services Cards ---------- */
    .services-cards { padding: 0 16px; margin-top: 32px; }
    .service-card {
        padding: 20px 16px;
        margin-bottom: 22px;
        border-radius: 12px;
    }

    .service-number { width: 26px; height: 26px; font-size: 9px; }
    .service-label  { font-size: 12px; }
    .service-info h2 { font-size: 20px; }
    .service-info p  { font-size: 13px; line-height: 1.55; }

    .service-tags { gap: 5px; flex-wrap: wrap; }
    .service-tags span {
        font-size: 10px;
        padding: 4px 10px;
        min-height: 22px;
    }

    .service-btn {
        width: 100%;
        height: 40px;
        font-size: 13px;
    }

    /* ---------- Details Section ---------- */
    .service-details { padding: 18px 12px 10px; margin-top: 10px; }
    .details-title { font-size: 15px; }
    .col-title { font-size: 15px; }

    /* ====== Our ...... Solutions — كلام تحت بعض بدون كروت ====== */
    .details-col-left {
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    .details-header {
        border-bottom: 2px solid #e8edf5;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .details-grid-3x2 {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 0 !important;
    }

    .detail-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        display: flex !important;
        align-items: flex-start !important;
        gap: 8px !important;
        transform: none !important;
    }

    .detail-card:hover {
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .detail-card-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        font-size: 12px !important;
        margin-top: 2px;
    }

    .detail-card-content h4 {
        font-size: 13px !important;
        margin: 0 !important;
    }

    .detail-card-content p {
        font-size: 11px !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        color: #888 !important;
    }

    /* ====== شيل الكارت بين Solutions و Why Choose Us ====== */
    .details-two-columns {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        margin-bottom: 8px !important;
    }

    .details-col-right {
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        margin-top: 4px !important;
        padding-top: 4px !important;
        border-top: 2px solid #e8edf5 !important;
    }

.details-grid-3x2{
    gap: 4px;
}
.hardware-page-btn{
    font-size: 7px;
    padding: 4px;
}
    .col-title {
        border-bottom: none !important;
        padding-bottom: 0 !important;
        margin-bottom: 12px !important;
    }

    .why-choose-item strong { font-size: 13px; }
    .why-choose-item p      { font-size: 11px; }

    /* ---------- CTA Bar ---------- */
    .details-cta-bar { padding: 18px 16px; }
    .details-cta-bar p { font-size: 16px; }
    .cta-sub { font-size: 11px; }
    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        padding: 11px 18px;
        font-size: 12px;
    }

    /* ---------- Category Tabs ---------- */
    .product-category-nav { gap: 16px; }
    .product-category-tab { font-size: 12px; }

    /* ---------- Carousel ---------- */
    .scrolling-wrapper { padding: 14px 12px; }
    .ip-phones-track { gap: 14px; }
    .ip-phones-track .ip-phone-card { width: 220px; }

    /* ====== تقليل المسافات الجانبية للمنتجات ====== */
    .products,
    .ip-products-section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .scrolling-wrapper,
    .product-carousel-wrapper {
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .ip-phones-track {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    /* ====== Hardware: عمودين × صفين + أزرار يمين وشمال ====== */
    #hardwareProductsTrack.hardware-grid-mode {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #hardwareProductsTrack.hardware-grid-mode .ip-phone-card {
        width: 100% !important;
        min-height: 132px !important;
        padding: 7px !important;
        gap: 4px !important;
        border-radius: 10px !important;
    }

    #hardwareProductsTrack .hardware-card-image-wrap {
        height: 78px !important;
        margin-bottom: 5px !important;
        border-radius: 8px !important;
    }

    #hardwareProductsTrack .hardware-card-image {
        padding: 4px !important;
    }

    #hardwareProductsTrack .hardware-card-title-row {
        gap: 6px !important;
        align-items: center !important;
        flex-direction: row !important;
    }

    #hardwareProductsTrack.hardware-grid-mode .ip-phone-card:nth-child(even) .hardware-card-title-row {
        flex-direction: row !important;
    }

    #hardwareProductsTrack.hardware-grid-mode .ip-phone-card:nth-child(even) .hardware-card-title-row h3 {
        text-align: left !important;
    }

    #hardwareProductsTrack .hardware-card-title-row .ip-product-icon {
        flex: 0 0 24px !important;
        width: 24px !important;
        height: 24px !important;
        font-size: 11px !important;
    }

    #hardwareProductsTrack .ip-phone-card h3 {
        font-size: 10px !important;
        line-height: 1.25 !important;
        margin: 0 !important;
    }

    #hardwareProductsTrack .ip-phone-card p {
        font-size: 9px !important;
        line-height: 1.25 !important;
        margin: 3px 0 3px !important;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #hardwareProductsTrack .ip-phone-card .product-category-mini {
        font-size: 7.5px !important;
        letter-spacing: 0.2px !important;
    }

    /* ====== أزرار التقليب يمين وشمال ====== */
    .hardware-pagination {
        display: grid !important;
        grid-template-columns: 20px 1fr 20px !important;
        gap: 0 !important;
        align-items: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hardware-page-btn {
        width: 20px !important;
        height: 20px !important;
        font-size: 9px !important;
        padding: 0 !important;
        border-radius: 6px !important;
    }

    .hardware-page-btn#hardwarePrevBtn {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        margin-left: 0 !important;
    }

    .hardware-page-btn#hardwareNextBtn {
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        margin-right: 0 !important;
    }

    .hardware-grid-wrap {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    .hardware-page-dots {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        margin-top: 8px !important;
    }

    /* ---------- Product Modal ---------- */
    .product-modal-box {
        width: 92% !important;
        max-width: 420px !important;
        max-height: 88vh !important;
        padding: 16px !important;
        border-radius: 16px !important;
        overflow-y: auto !important;
    }

    .close-modal {
        top: 10px !important;
        right: 12px !important;
        font-size: 20px !important;
        width: 28px !important;
        height: 28px !important;
        line-height: 1 !important;
        z-index: 5 !important;
    }

    .product-modal-content {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding-top: 30px !important;
    }

    .main-img {
        height: 160px !important;
        border-radius: 12px !important;
        padding: 6px !important;
        margin-bottom: 10px !important;
    }

    .thumbnail-list {
        gap: 6px !important;
        justify-content: center;
    }

    .thumb-img {
        width: 50px !important;
        height: 50px !important;
        border-radius: 6px !important;
    }

    .product-info-side h2 {
        font-size: 18px !important;
        margin-bottom: 6px !important;
    }

    .product-subtitle {
        font-size: 12px !important;
        margin-bottom: 14px !important;
    }

    .price-block {
        padding: 14px !important;
        border-radius: 12px !important;
        margin-bottom: 14px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .price-label { font-size: 10px !important; }
    .price-value { font-size: 22px !important; }
    .price-notes { text-align: left !important; font-size: 10px !important; }

    .specs-label { font-size: 10px !important; margin-bottom: 10px !important; }

    .specs-list li {
        font-size: 12px !important;
        margin-bottom: 8px !important;
        gap: 8px !important;
    }

    .specs-list li::before {
        width: 16px !important;
        height: 16px !important;
        font-size: 9px !important;
    }

    .product-info-side .btn,
    .product-info-side .btn-red,
    .product-info-side .w-100 {
        margin-top: 18px !important;
        padding: 12px 18px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
    }
}


/* ============================================
   MOBILE SMALL (max-width: 480px)
============================================ */
@media (max-width: 480px) {

    /* Hero */
    .hero { padding: 90px 16px 32px; }
    .hero-title { font-size: 26px; }
    .hero-description { font-size: 13px; }

    /* Services */
    .services-cards { padding: 0 12px; }
    .service-card { padding: 10px 7px; }
    .service-info h2 { font-size: 18px; }
    .service-info p  { font-size: 12px; }

    /* Details */
    .detail-card { padding: 0 !important;
    gap: 2px;
    }
    .detail-card-icon {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        font-size: 11px !important;
    }
    .detail-card-content h4 { font-size: 12px !important; }
    .detail-card-content p  { font-size: 10.5px !important; }

    /* Carousel */
    .ip-phones-track .ip-phone-card { width: 190px; }
    .ip-phones-track h3 { font-size: 14px; }

    /* Hardware Grid — نسيبها 2 برضه عشان تفضل صفين × كرتين */
    #hardwareProductsTrack.hardware-grid-mode {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }

    #hardwareProductsTrack.hardware-grid-mode .ip-phone-card {
        padding: 5px !important;
        min-height: 122px !important;
    }

    #hardwareProductsTrack .hardware-card-image-wrap {
        height: 68px !important;
    }

    #hardwareProductsTrack .ip-phone-card h3 {
        font-size: 9.5px !important;
    }

    #hardwareProductsTrack .ip-phone-card p {
        font-size: 8.5px !important;
    }

    /* Modal */
    .product-info-side h2 { font-size: 20px !important; }
    .price-value { font-size: 22px !important; }

    /* CTA */
    .cta-btn-primary,
    .cta-btn-secondary {
        font-size: 11px;
        padding: 10px 14px;
    }
}


/* ============================================
   VERY SMALL (max-width: 360px)
============================================ */
@media (max-width: 360px) {
    .hero-title { font-size: 22px; }
    .service-info h2 { font-size: 16px; }
    .service-info p { font-size: 11px; }

    .detail-card-content h4 { font-size: 11.5px !important; }
    .detail-card-content p  { font-size: 10px !important; }

    #hardwareProductsTrack.hardware-grid-mode .ip-phone-card {
        padding: 6px !important;
        min-height: 130px !important;
    }

    #hardwareProductsTrack .hardware-card-image-wrap {
        height: 70px !important;
    }

    #hardwareProductsTrack .ip-phone-card h3 {
        font-size: 10px !important;
    }
}