/*
=====================================================
  STYLES FOR PRODUCT PAGE
=====================================================
*/


/*
=====================================================
  CUSTOM ARABIC FONT
=====================================================
*/

/*
  This rule targets any element inside a page with Right-to-Left direction.
  It applies the 'Cairo' font and provides a standard fallback font.
*/
[dir="rtl"] body,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] p,
[dir="rtl"] a,
[dir="rtl"] li,
[dir="rtl"] button,
[dir="rtl"] label,
[dir="rtl"] input,
[dir="rtl"] textarea {
  font-family: 'Cairo', sans-serif;}


/*
=====================================================
  STICKY NAVBAR STYLES
=====================================================
*/

/* Target the <header> tag which contains your navbar */
header {
  position: sticky; /* The magic property! */
  top: 0;           /* Stick to the very top of the screen */
  width: 100%;      /* Ensure it spans the full width */
  z-index: 1000;    /* Make sure it stays on top of other content */
}

/* --- Main Page Layout --- */
.product-page {
  padding: 2rem 0;
}

.product-header {

    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    color: #333;
    font-weight: heavy;
    text-transform: uppercase;
    margin: 0 auto 3rem auto;
    padding-bottom: 1rem;
    border-bottom: 0.2rem solid #d5b82c;
    max-width: 25rem;
}


.product-title {
  text-align: center;
  font-size: clamp(2.2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.product-intro {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.7; /* Improved readability */
  color: #666;
  max-width: 70ch;
  margin: 0 auto 4rem auto;
}

/* --- Product Gallery --- */
.product-gallery-v3 {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 4rem auto;
}

/* Main image viewer */
.product-gallery-v3 .gallery-main-viewer {
  width: 100%;
  height: 550px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-gallery-v3 .gallery-main-viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

/* Class added by JS for fade effect */
.product-gallery-v3 .gallery-main-viewer img.changing {
  opacity: 0;
  transform: scale(0.95);
}

/* --- Filmstrip Container & Buttons --- */
.product-gallery-v3 .gallery-filmstrip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-gallery-v3 .filmstrip-nav {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  flex-shrink: 0;
  z-index: 5;
}

.product-gallery-v3 .filmstrip-nav:hover {
  background-color: white;
  color: #007bff;
}

.product-gallery-v3 .filmstrip-nav.prev { order: 1; }
.product-gallery-v3 .filmstrip-thumbnails { order: 2; }
.product-gallery-v3 .filmstrip-nav.next { order: 3; }


/* --- Thumbnails --- */
.product-gallery-v3 .filmstrip-thumbnails {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem;
  scroll-behavior: smooth;
  overflow-x: auto;
  flex-grow: 1;

  -ms-overflow-style: none;
  scrollbar-width: none;
}
.product-gallery-v3 .filmstrip-thumbnails::-webkit-scrollbar {
  display: none;
}

.product-gallery-v3 .thumbnail {
  width: 110px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.product-gallery-v3 .thumbnail:hover {
  border-color: #a0a0a0;
}

.product-gallery-v3 .thumbnail.active {
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
}

/* --- Product Details Section --- */
.product-details h2 {
  margin-top: 3rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}



.product-details h4 {
  margin-top: 3rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #c80000;
}




.product-details ul {
  list-style-type: none; /* Remove default bullet */
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.product-details ul li {
  padding-left: 30px; /* Space for custom icon */
  padding-inline-start: 30px; /* Modern equivalent for LTR/RTL */
  position: relative;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Custom bullet point for a cleaner look */
.product-details ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #007bff;
  font-weight: bold;
}

[dir="rtl"] .product-details ul li {
  padding-left: 0;
  padding-right: 30px;
}

[dir="rtl"] .product-details ul li::before {
  left: auto;
  right: 0;
}

/* --- Responsive adjustments for the gallery --- */
@media (max-width: 768px) {
  .product-gallery-v3 .gallery-main-viewer {
    height: 350px;
  }
  
  .product-gallery-v3 .filmstrip-nav {
    display: none; 
  }
}

/*
=====================================================
  NEW STYLES FOR FORMS & CUSTOMERS
=====================================================
*/

/* --- Contact Form Button --- */
.button-primary {
  display: block;
  width: 100%;
  padding: 12px 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.button-primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* --- Customer Logos --- */
#ourcust .logo-item img {
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}

#ourcust .logo-item:hover img {
  transform: scale(1.05);
  opacity: 1;
}




/*
=====================================================
  NEW: RESPONSIVE TWO-COLUMN PRODUCT LAYOUT
=====================================================
*/

/* This applies ONLY to screens wider than 992px */
@media (min-width: 992px) {
  
  /* 1. Create the two-column grid */
  .product-layout-grid {
    display: grid;
    grid-template-columns: 55% 1fr; /* Gallery gets 55% of the space */
    gap: 3rem; /* Space between the gallery and the info */
    align-items: start; /* Align items to the top of their columns */
    margin-bottom: 4rem; /* Space before the next section */
  }

  /* 2. Adjust text alignment for the info column */
  .product-layout-info .product-title,
  .product-layout-info .product-intro {
    /* Use 'start' to respect LTR/RTL direction automatically */
    text-align: start; 
    margin-left: 0;
    margin-right: 0;
  }
  
  .product-layout-info .product-title {
    font-size: clamp(2.5rem, 4vw, 3.2rem); /* Slightly larger title on desktop */
  }

  .product-layout-info .product-intro {
    margin-bottom: 2rem;
    max-width: none; /* Remove the old width limit */
  }
  
  /* 3. Reset margins that are no longer needed inside the grid */
  .product-gallery-v3 {
    margin-bottom: 0; /* Margin is now on the parent grid */
  }
  
  .product-details h2 {
    margin-top: 1rem; /* Reduce top margin as it's not the first element anymore */
  }
}
