:root{
    /* SAME Modern B2B Flat Palette */
    --primary-dark:#0f172a;  
    --accent-teal:#06b6d4;  
    --accent-hover:#0e7490; 
    --light-bg:#f4f7f9;     
    --card-bg:white;        
    --border-color:#e2e8f0;  
    --radius:12px;
}

/* Global Styles (Standardized) */
body { direction: ltr; text-align: left; font-family:'Inter', system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial; color: var(--primary-dark); background: var(--light-bg); line-height:1.6; }
h1, h2, h3, h4 { font-family: 'Inter', system-ui; font-weight: 900; color: var(--primary-dark); }
a { text-decoration: none; }
*{box-sizing:border-box; margin:0; padding:0;}
html { scroll-behavior: smooth; }

/* Header (Standardized) */
header{ position:sticky;top:0;right:0;left:0;z-index:999; display:flex;justify-content:space-between;align-items:center; padding:16px 30px; background: var(--card-bg); box-shadow:0 5px 20px rgba(0,0,0,0.05); transition: all 0.3s ease; }
.logo{display:flex;align-items:center;gap:12px}
.logo img{height:45px;width:45px;border-radius:50%;object-fit:cover; border: 2px solid var(--accent-teal);}
.brand {font-weight:900;color:var(--primary-dark);font-size:1.3rem; letter-spacing: -0.5px;}
.logo-sub {font-size:10px;color:var(--accent-teal); line-height: 1.2; font-weight: 600;}
nav{display:flex;align-items:center;gap:4px;}
nav a{color:var(--primary-dark);text-decoration:none;font-weight:600;padding:8px 12px;border-radius:6px;transition:.25s; font-size: 0.95rem; opacity: 0.8;}
nav a:hover{opacity: 1; background: var(--border-color);}
.cta{background:var(--primary-dark);color:white;padding:10px 18px;border-radius:6px;font-weight:700;box-shadow:0 4px 15px rgba(15,23,42,0.3); transition: background-color 0.3s;}
.cta:hover { background: var(--accent-teal); box-shadow:0 6px 20px rgba(6,182,212,0.4); }

/* Dropdown Styles (Standardized) */
.dropdown { position: relative; display: inline-block; }
.dropdown .dropbtn { display: flex; align-items: center; gap: 5px; color:var(--primary-dark); text-decoration:none; font-weight:600; padding:8px 12px; border-radius:6px; transition:.25s; font-size: 0.95rem; opacity: 0.8; cursor: pointer; }
.dropdown .dropbtn:hover { opacity: 1; background: var(--border-color); }
.dropdown-content { display: none; position: absolute; background: var(--card-bg); min-width: 220px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1); z-index: 1000; border-radius: 8px; padding: 5px 0; border-top: 3px solid var(--accent-teal); top: calc(100% + 5px); left: 0; }
.dropdown-content a { color: var(--primary-dark); padding: 10px 16px; text-decoration: none; display: block; font-weight: 500; opacity: 0.9; transition: background-color 0.2s, color 0.2s; border-radius: 0; }
.dropdown-content a:hover { background-color: var(--light-bg); color: var(--accent-teal); opacity: 1; }
.dropdown:hover .dropdown-content { display: block; }
.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; cursor: pointer; padding: 0; z-index: 1000; }
.menu-toggle span { display: block; height: 3px; width: 100%; background: var(--primary-dark); border-radius: 3px; transition: all 0.3s ease; }
.menu-toggle.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

/* Buttons (Unified Style) */
.btn{ display:inline-block;padding:14px 25px;border-radius:8px;font-weight:700;border:0;cursor:pointer; transition:transform .2s ease, box-shadow .2s ease, background-color 0.3s; font-size: 1rem; min-width: 180px; text-align: center; }
.btn-primary{background:var(--accent-teal);color:white;box-shadow:0 8px 20px rgba(6,182,212,0.3)}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-4px); box-shadow:0 12px 30px rgba(6,182,212,0.45); }
.btn-secondary{background:transparent;border:2px solid var(--primary-dark);color:var(--primary-dark); padding: 12px 25px;}
.btn-secondary:hover { background: var(--primary-dark); color: white; transform: translateY(-4px); }

/* Main sections (Standardized) */
main{max-width:1200px;margin:60px auto;padding:0 30px}
section{margin-bottom:120px;padding-top: 20px;}
.section-title{text-align:center; margin-bottom: 60px;}
.section-title h2{font-size:2.8rem; position: relative; display: inline-block; padding-bottom: 15px;}
.section-title h2:after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 6px; background: var(--accent-teal); border-radius: 3px; }
.section-sub{color:var(--accent-teal);font-weight:600; font-size: 1.15rem; margin-top: 10px;}

/* Specific Styles for Product Detail Section */
.product-detail-hero {
    padding: 80px 30px;
    background: var(--card-bg); 
    border-bottom: 5px solid var(--accent-teal);
    margin-bottom: 60px;
}
.product-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}
.product-gallery {
    flex: 1;
}
.product-info {
    flex: 2;
}
.product-info h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    border-bottom: 3px solid var(--accent-teal);
    padding-bottom: 10px;
}
.product-gallery img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-specifications {
    margin-top: 30px;
    padding: 30px;
    background: var(--light-bg);
    border-radius: var(--radius);
}
.product-specifications h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.spec-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.spec-list li {
    font-size: 1rem;
    color: var(--primary-dark);
}
.spec-list li strong {
    font-weight: 700;
    color: var(--accent-teal);
    margin-right: 10px;
}
.breadcrumb { font-size: 0.9rem; color: var(--accent-teal); font-weight: 600; margin-bottom: 10px; }
.breadcrumb a { color: var(--primary-dark); opacity: 0.7; transition: opacity 0.3s; }
.breadcrumb a:hover { opacity: 1; color: var(--accent-teal); }

/* --- GALLERY SECTION STYLES (MODIFIED FOR CLEAN LOOK) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative; 
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    background: var(--card-bg); 
    padding-bottom: 0; 
    display: flex; 
    flex-direction: column;
    align-items: center;
    overflow: hidden; 
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.gallery-grid .gallery-img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0; 
    margin-bottom: 0; 
}
.gallery-caption {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0;
    z-index: 5;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.95));
    border: 2px solid var(--accent-teal); 
    border-top: none; 
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-teal);
    text-align: center;
    padding: 15px 10px; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.05); 
}
.gallery-item:hover .gallery-caption {
    color: var(--primary-dark); 
}

/* Lightbox Styles (Modal) */
.lightbox {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
}
.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    object-fit: contain;
}
.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover { color: #bbb; }

/* [NEW] Navigation Buttons (Prev/Next) */
.prev-btn, .next-btn {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 25px;
  transition: 0.6s ease;
  user-select: none;
  background-color: rgba(0,0,0,0.5); 
}
.next-btn { right: 0; border-radius: 3px 0 0 3px; }
.prev-btn { left: 0; border-radius: 0 3px 3px 0; }
.prev-btn:hover, .next-btn:hover { background-color: rgba(0,0,0,0.8); }
.prev-btn i, .next-btn i { font-size: 25px; }

/* Footer (Standardized) */
footer{ padding:40px 30px; background:var(--primary-dark); color:var(--light-bg); margin:0; border-top: 5px solid var(--accent-teal); }
.footer-content { max-width:1200px; margin:auto; display:flex; justify-content:space-between; align-items:center; gap: 30px; flex-wrap: wrap; }
.footer-brand { font-weight: 800; font-size: 1.1rem; flex-shrink: 0; }
.footer-right-group { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer-links a { color: var(--light-bg); opacity: 0.8; transition: opacity 0.3s, color 0.3s; margin-right: 20px; }
.footer-links a:hover { opacity: 1; color: var(--accent-teal); }
.footer-copyright { font-size: 0.9rem; opacity: 0.7; }

/* Responsive */
@media (max-width: 900px) {
    .product-content { flex-direction: column; text-align: center; }
    .product-info { order: -1; }
    .product-info h1 { text-align: center; }
    .spec-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    nav { display: none; flex-direction: column; position: absolute; top: 77px; left: 0; right: 0; background: var(--card-bg); border-bottom: 2px solid var(--accent-teal); padding: 10px 0; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    nav.active { display: flex; }
    nav a { width: 100%; padding: 12px 20px; text-align: center; border-bottom: 1px solid var(--border-color); }
    .cta { width: 90%; margin: 10px auto; }
    .dropdown { width: 100%; position: static; border-bottom: 1px solid var(--border-color); }
    .dropdown-content { position: static; width: 100%; box-shadow: none; background: var(--light-bg); padding: 5px 0 5px 20px; border-radius: 0; border-top: none; display: none; }
    .dropdown.open .dropdown-content { display: block; }
    .dropdown .dropbtn { width: 100%; padding: 12px 20px; text-align: center; }
    .dropdown-content a { padding: 8px 30px; font-size: 0.9rem; text-align: left; }
    .footer-content { flex-direction: column; text-align: center; gap: 20px; justify-content: center;}
    .footer-right-group { flex-direction: column; text-align: center; gap: 10px;}
    .footer-links a { margin: 0 10px; }
    .gallery-grid { gap: 20px; }
    .gallery-grid .gallery-img { height: 200px; }

    /* --- تصغير العناوين والخطوط الغامقة على الموبايل --- */
    h1 { font-size: 1.9rem !important; }
    h2 { font-size: 1.6rem !important; }
    h3 { font-size: 1.3rem !important; }
    h4 { font-size: 1.1rem !important; }
    strong, b { font-size: 0.95rem !important; }
    .product-info h1 { font-size: 2rem !important; }
    .product-specifications h3 { font-size: 1.2rem !important; }
    .gallery-caption { font-size: 1rem !important; }
}

/* WhatsApp Button */
#whatsapp-button { position: fixed; bottom: 25px; right: 25px; width: 55px; height: 55px; background: #25D366; color: #fff; border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; z-index: 10000; font-size: 28px; transition: transform 0.3s, background-color 0.3s; }
#whatsapp-button:hover { transform: scale(1.1); background: #128C7E; }

/* Back to Top */
#backToTop { display: none; position: fixed; bottom: 90px; right: 30px; z-index: 99; border: none; outline: none; background-color: var(--accent-teal); color: white; cursor: pointer; padding: 15px; border-radius: 50%; font-size: 18px; transition: opacity 0.3s, transform 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
#backToTop.visible { display: block; }
#backToTop:hover { background-color: var(--accent-hover); transform: scale(1.1); }

.nav-active-page { opacity: 1 !important; background: var(--border-color) !important; }
.btn-full-width { width: 100% !important; min-width: auto !important; }
