/* =========================
   Global Styles
   ========================= */
html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* =========================
   كلاس مشترك لفل وِدث حقيقي
   ========================= */
.full-bleed-section {
  position: relative;
  width: 100vw;
  left: auto;
  right: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  transform: none;
  box-sizing: border-box;
}

/* Mobile Fix for RTL Alignment */
@media (max-width: 767px) {
  .full-bleed-section {
    left: auto;
    right: 50%;
    margin-left: 0;
    margin-right: 0;
    transform: translateX(50%);
  }
}

/* =========================
   قسم البانر (تعديلات السيو والأنيميشن)
   ========================= */
#hero-banner {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: right;
  color: #fff;
  padding: 0;
  overflow: hidden;
}

/* خلفية الصور */
#hero-banner .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#hero-banner .hero-bg img,
#hero-banner .hero-bg source {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* طبقة تغميق */
#hero-banner .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}

/* المحتوى - تم توسيع العرض هنا */
#hero-banner .hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1600px; /* تم التعديل من 1200px إلى 1600px */
  padding: 0 30px;
  margin: 0 auto;
}

/* اسم البراند (P) بشكل عنوان كبير */
.hero-title {
  font-size: 7rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  text-shadow: 0 0 25px rgba(0, 0, 0, 0.95);
  margin-bottom: 1.8rem !important;
  margin-top: 0;
}

/* الوصف (H1) بشكل نص فرعي أصغر */
h1.hero-subtitle {
  font-size: 2rem !important;
  font-weight: 400 !important;
  color: #ffffff !important;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  margin: 0;
  line-height: 1.5;
}

/* تأثير الظهور (Fade Up Animation) */
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out forwards;
}

.delay-100 {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* هامش إضافي لليمين على الديسكتوب */
@media (min-width: 1024px) {
  #hero-banner .hero-content {
    margin-right: auto;
  }
}

/* موبايل للبانر */
@media (max-width: 767px) {
  #hero-banner {
    padding-right: 20px;
    padding-left: 20px;
    justify-content: flex-start;
  }

  .hero-title {
    font-size: 4.2rem !important;
    margin-bottom: 1.5rem !important;
  }

  h1.hero-subtitle {
    font-size: 1.6rem !important;
    line-height: 1.6 !important;
  }
}

/* =========================
   قسم التصنيفات
   ========================= */
#categories-section.categories-wrapper {
  padding: 30px 0;
  color: #ffffff;
}

.categories-container {
  max-width: 1600px; /* تم التعديل لعرض أكبر */
  margin: 0 auto;
  padding: 0 20px; /* إضافة هوامش جانبية بسيطة */
}

.categories-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #06321c;
  border-radius: 0;
  padding: 20px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none !important;
  color: #ffffff !important;
  transition: all 0.25s ease;
  position: relative;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  height: 3px;
  width: 60%;
  left: 50%;
  transform: translateX(-50%);
  background: #27c96e;
  opacity: 0.9;
  border-radius: 0;
}

.category-card:hover {
  transform: translateY(-6px);
  background: rgba(0, 0, 0, 0.32);
  border-color: rgba(40, 167, 69, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.category-image-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.category-image-wrapper img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: brightness(1.25);
  transition: transform 0.25s ease;
}

.category-card:hover .category-image-wrapper img {
  transform: scale(1.09);
}

.category-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none !important;
}

@media (max-width: 991px) {
  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 575px) {
  #categories-section.categories-wrapper {
    padding: 30px 10px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .category-card {
    padding: 15px 10px;
  }

  .category-image-wrapper {
    width: 70px;
    height: 70px;
  }

  .category-name {
    font-size: 0.95rem;
  }
}

/* =========================
   قسم المنتجات المميزة
   ========================= */
#featured-products {
  padding: 20px 0;
  background-color: #ffffff;
  color: #000;
}

.featured-container {
  max-width: 1600px; /* تم التعديل لعرض أكبر */
  margin: 0 auto;
  padding: 0 20px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.product-card {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 0;
  padding: 30px;
  gap: 30px;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-image {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  flex: 1;
}

.product-desc {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #333;
  margin: 0;
  font-weight: 600;
}

@media (max-width: 767px) {
  #featured-products {
    padding-left: 10px;
    padding-right: 10px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: 15px;
    gap: 15px;
  }

  .product-image {
    width: 100px;
    height: 100px;
  }

  .product-desc {
    font-size: 1rem;
  }
}

/* =========================
   قسم المميزات
   ========================= */
#features-section {
  padding: 60px 0;
  background-color: #06321c;
  color: #ffffff;
}

.features-container {
  max-width: 1600px; /* تم التعديل لعرض أكبر */
  margin: 0 auto;
  padding: 0 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
  font-size: 3.6rem;
  color: #27c96e;
  margin-bottom: 20px;
  line-height: 1;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff !important;
}

.feature-desc {
  font-size: 0.9rem;
  color: #ffffff !important;
  margin: 0;
  line-height: 1.5;
  opacity: 0.9;
}

@media (max-width: 991px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  #features-section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .feature-card {
    padding: 15px 10px;
  }
  
  .feature-icon {
    font-size: 2.8rem;
    margin-bottom: 14px;
  }
  
  .feature-title {
    font-size: 1rem;
  }
  
  .feature-desc {
    font-size: 0.8rem;
  }
}

/* =========================
   قسم شبكة المنتجات (6 منتجات)
   ========================= */
#products-grid-section {
  padding: 60px 20px;
  background-color: #f4f4f4;
  color: #000;
}

.products-grid-container {
  max-width: 1600px; /* تم التعديل من 1200px إلى 1600px */
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 40px;
  color: #06321c;
}

.products-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-grid-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-grid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border-color: #27c96e;
}

.product-grid-image {
  width: 100%;
  height: 250px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-grid-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-grid-card:hover .product-grid-image img {
  transform: scale(1.05);
}

.product-grid-info {
  padding: 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-grid-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-grid-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #27c96e;
  margin: 0;
}

@media (max-width: 991px) {
  .products-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .products-grid-6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-grid-image {
    height: 180px;
  }

  .section-title {
    font-size: 2rem;
  }

  .product-grid-title {
    font-size: 1rem;
  }
}

/* =========================
   قسم بانر الشحن للسعودية
   ========================= */
#ksa-banner {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  color: #fff;
}

#ksa-banner .ksa-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#ksa-banner .ksa-bg img,
#ksa-banner .ksa-bg source {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#ksa-banner .ksa-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1600px; /* تم التعديل من 1200px إلى 1600px */
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.ksa-text-1 {
  font-size: 2rem !important;
  font-weight: 400 !important;
  margin: 0;
  line-height: 1;
  color: #164927 !important;
  text-shadow: none;
}

.ksa-text-2 {
  font-size: 7rem !important;
  font-weight: 900 !important;
  margin: -30px 0 0 0 !important;
  line-height: 0.9 !important;
  color: #164927 !important;
  text-shadow: none;
}

@media (max-width: 767px) {
  #ksa-banner {
    min-height: 300px;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
  }

  #ksa-banner .ksa-content {
    align-items: center;
    padding-top: 60px;
  }

  .ksa-text-1 {
    font-size: 1.5rem !important;
  }

  .ksa-text-2 {
    font-size: 3.5rem !important;
  }
}

/* =========================
   تنسيق قسم السيو (SEO Block)
   ========================= */
.seo-wrapper {
  background-color: #f8f9fa;
  padding: 60px 20px;
  border-top: 1px solid #e9ecef;
  font-family: inherit;
}

.seo-container {
  max-width: 1600px; /* تم التعديل من 1200px إلى 1600px */
  margin: 0 auto;
}

.seo-header {
  text-align: center;
  margin-bottom: 40px;
}

.seo-main-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 10px;
}

.seo-intro {
  font-size: 1.1rem;
  color: #6c757d;
}

.seo-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.seo-text-block h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  border-right: 4px solid #000;
  padding-right: 10px;
}

.seo-text-block p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

.seo-text-block strong {
  color: #000;
  font-weight: 700;
}

@media (max-width: 768px) {
  .seo-wrapper {
    padding: 40px 15px;
  }
  
  .seo-main-title {
    font-size: 1.5rem;
  }
  
  .seo-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .seo-text-block p {
    text-align: right;
  }
}

/* =========================
   FAQ Section (FINAL)
   ========================= */
#faq-section.faq-wrapper {
  background: #ffffff;
  padding: 60px 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* تم التعديل لعرض أكبر */
#faq-section .faq-container {
  max-width: 1600px; /* تم التعديل من 1200px إلى 1600px */
  margin: 0 auto;
  padding: 0 20px;
}

#faq-section .faq-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 900;
  margin: 0 0 28px 0;
  color: #06321c;
}

#faq-section .faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ضمان أن كل عنصر يمتد بعرض الحاوية */
#faq-section details.faq-item {
  width: 100%;
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 0;
  overflow: hidden;
}

#faq-section summary.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 800;
  color: #06321c;
  user-select: none;
}

#faq-section summary.faq-question::-webkit-details-marker { display: none; }

#faq-section .faq-q-text {
  font-size: 1.05rem;
  line-height: 1.4;
}

#faq-section .faq-icon {
  width: 18px;
  height: 18px;
  position: relative;
  flex: 0 0 18px;
}

#faq-section .faq-icon::before,
#faq-section .faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: #27c96e;
  border-radius: 2px;
}

#faq-section .faq-icon::before {
  width: 18px;
  height: 3px;
}

#faq-section .faq-icon::after {
  width: 3px;
  height: 18px;
}

#faq-section details[open] .faq-icon::after {
  height: 0;
}

#faq-section .faq-answer {
  padding: 0 18px 18px 18px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

#faq-section .faq-answer p {
  margin: 12px 0 0 0;
  color: #333;
  font-size: 1rem;
  line-height: 1.9;
}

#faq-section .faq-answer strong {
  color: #000;
  font-weight: 800;
}

/* Hover/focus */
#faq-section summary.faq-question:hover {
  background: rgba(6, 50, 28, 0.06);
}

#faq-section summary.faq-question:focus {
  outline: 2px solid rgba(39, 201, 110, 0.45);
  outline-offset: 2px;
}

/* Mobile */
@media (max-width: 767px) {
  #faq-section.faq-wrapper {
    padding: 40px 12px;
  }

  #faq-section .faq-title {
    font-size: 1.7rem;
    margin-bottom: 18px;
  }

  #faq-section summary.faq-question {
    padding: 14px 14px;
  }

  #faq-section .faq-q-text {
    font-size: 1rem;
  }

  #faq-section .faq-answer {
    padding: 0 14px 14px 14px;
  }

  #faq-section .faq-answer p {
    font-size: 0.95rem;
    line-height: 1.85;
  }
}

/* =========================
   قسم العلامات التجارية
   ========================= */
#brands-marquee {
  background: #ffffff;
  padding: 18px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

#brands-marquee .brands-container {
  max-width: 1600px; /* تم التعديل من 1200px إلى 1600px */
  margin: 0 auto;
  padding: 0 12px;
}

#brands-marquee .brands-marquee {
  position: relative;
  height: 110px;
  display: flex;
  align-items: center;
}

#brands-marquee .brands-viewport {
  width: 100%;
  height: 110px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

#brands-marquee .brands-viewport::-webkit-scrollbar {
  display: none;
}

#brands-marquee .brands-viewport:active {
  cursor: grabbing;
}

#brands-marquee .brands-track {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  height: 110px;
  padding: 0 56px;
  white-space: nowrap;
}

#brands-marquee .brand-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 0 8px;
  text-decoration: none;
}

#brands-marquee .brand-item img {
  max-height: 82px;
  max-width: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

#brands-marquee .brand-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.03);
}

#brands-marquee .brands-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
}

#brands-marquee .brands-prev { right: 10px; }
#brands-marquee .brands-next { left: 10px; }

@media (max-width: 767px) {
  #brands-marquee .brands-marquee,
  #brands-marquee .brands-viewport,
  #brands-marquee .brands-track,
  #brands-marquee .brand-item {
    height: 86px;
  }

  #brands-marquee .brands-track {
    gap: 22px;
    padding: 0 46px;
  }

  #brands-marquee .brand-item img {
    max-height: 60px;
    max-width: 190px;
  }

  #brands-marquee .brands-nav {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}