/* أضف هذا في ملف CSS الخاص بالمنتجات أو في ملف base.css إذا أردت */
.products-slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  max-width: 700px;
  position: relative;
  direction: rtl; /* لدعم العربية */
}
.products-slider {
  display: flex;
  position: relative;
  width: 350px;
  height: 320px;
  overflow: hidden;
}
.product-card {
  min-width: 100%;
  transition: transform 0.5s, opacity 0.5s;
  opacity: 0;
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  background: #fff;
  color: #222;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1;
}
.product-card.active {
  opacity: 1;
  z-index: 2;
  position: relative;
}
.product-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: #f5f5f5;
}
.product-info h3 {
  font-size: 1.3rem;
  color: #c49b3a;
  margin-bottom: 0.5rem;
}
.product-info p {
  font-size: 1rem;
  color: #444;
}
.slider-btn {
  background: #eee;
  color: #222;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  cursor: pointer;
  margin: 0 1rem;
  transition: background 0.2s;
  position: relative;
  z-index: 10;
}
.slider-btn:hover {
  background: #ccc;
}
.product-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.07);
  margin-bottom: 1.5rem;
  padding: 2rem 1rem;
  gap: 2rem;
  flex-wrap: wrap;
  transition: box-shadow 0.2s;
}
.product-info {
  flex: 1 1 220px;
  min-width: 0;
}
.product-info h2 {
  font-size: 1.3rem;
  color: #c49b3a !important;
  margin-bottom: 0.7rem;
}
.product-info p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.5rem;
}

/* إظهار أزرار "للمزيد" */
.product-info .btn {
  display: inline-block !important;
  background: linear-gradient(45deg, #c49b3a, #ffd700);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(196,155,58,0.3);
  border: none;
  cursor: pointer;
}

.product-info .btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(196,155,58,0.5);
  background: linear-gradient(45deg, #ffd700, #c49b3a);
}

.product-image {
  flex: 1 1 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  background: #f5f5f5;
  max-width: 90vw;
  max-height: 40vw;
  transition: width 0.2s, height 0.2s;
}
.product-image-with-size {
  position: relative;
  display: inline-block;
}
.product-image-with-size img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 2px solid #eee;
  border-radius: 12px;
}
.size-label {
  position: absolute;
  font-weight: bold;
  background: rgba(255,255,255,0.85);
  color: #d32f2f;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 1.1rem;
  z-index: 2;
  pointer-events: none;
}
.size-top {
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  writing-mode: horizontal-tb;
}
.size-left {
  left: 8px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  writing-mode: vertical-lr;
}
@media (max-width: 600px) {
  .products-hero { flex-direction: column; padding: 1rem 0.5rem; }
  .products-slider { width: 90vw; height: 260px; }
  .product-card img { width: 80px; height: 80px; }
  .size-label { font-size: 0.95rem; padding: 1px 6px; }
  .size-top { top: 2px; }
  .size-left { left: 2px; }
}
@media (max-width: 700px) {
  .product-section {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem 0.5rem;
    gap: 1.2rem;
  }
  .product-info h2 {
    font-size: 1.1rem;
  }
  .product-info p {
    font-size: 0.95rem;
  }
  .product-image img {
    width: 80vw;
    height: auto;
    max-width: 320px;
    max-height: 180px;
    margin: 0 auto;
  }
  .catalog-slider-container { max-width: 98vw; }
  .catalog-slider { min-height: 420px; }
  .catalog-slide { min-height: 400px; padding: 1rem 0.2rem; }
  .catalog-hero-slider { max-width: 99vw; gap: 0.5rem; }
  .catalog-hero-slider .catalog-slide { max-width: 99vw; }
}
@media (max-width: 400px) {
  .product-section {
    padding: 0.7rem 0.2rem;
    gap: 0.7rem;
  }
  .product-info h2 {
    font-size: 1rem;
  }
  .product-image img {
    width: 95vw;
    max-width: 200px;
  }
}
body.dark-mode .products-hero,
body.dark-mode .product-card,
body.dark-mode .product-section {
  background: #2c3136 !important;
  color: #fff !important;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.catalog-hero-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 2rem auto;
  width: 100%;
  max-width: 700px;
  position: relative;
  direction: rtl;
}
.catalog-hero-slider .catalog-slide {
  display: none;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  flex-shrink: 0;
  transition: opacity 0.4s;
}
.catalog-hero-slider .catalog-slide.active {
  display: flex;
  justify-content: center;
}
.button-cont {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  gap: 1rem;
}
.section {
  margin-bottom: 2.5rem;
}

.section h2 {
  margin: 1rem;
  color: #222;
  font-size: 1.4rem;
  font-weight: bold;
  border-bottom: 2px solid #c49b3a;
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* === Swiper.js Styles === */
@import url('https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css');

/* === Base Slider Container === */
.swiper {
  width: 240px;
  height: 320px;
  margin: 2rem auto;
  border-radius: 18px;
  overflow: visible;
  position: relative;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.swiper-wrapper {
  display: flex;
  align-items: stretch;
}

/* === عام للسليدات === */
.swiper-slide {
  width: 240px;
  height: 320px;
  display: flex;
  background: transparent;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  padding: 0;
  margin: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: grab;
  flex-shrink: 0;
  transition: transform 0.5s ease, box-shadow 0.3s ease;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  position: relative;
  overflow: hidden;
  /* جعل الصورة خلفية للسليدة نفسها - تملأ كامل البطاقة مع الحفاظ على الوضوح */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* تحسين عرض الصور لكل نوع منتج - كلها تملأ البطاقة */

/* بديل الرخام */
.marble-swiper .swiper-slide {
  background-size: cover !important;
  background-position: center center !important;
}

/* أوبن بوك */
.openbook-swiper .swiper-slide {
  background-size: cover !important;
  background-position: center center !important;
  background-color: #f8f8f8 !important;
}

/* ريزن */
.resin-swiper .swiper-slide {
  background-size: cover !important;
  background-position: center center !important;
}

/* بديل الخشب */
.wood-swiper .swiper-slide {
  background-size: cover !important;
  background-position: center center !important;
}

/* بديل الحجر */
.stone-swiper .swiper-slide {
  background-size: cover !important;
  background-position: center center !important;
}

/* بديل الشيبورد */
.chipboard-swiper .swiper-slide {
  background-size: cover !important;
  background-position: center center !important;
  background-color: #f5f5f5 !important;
}

/* البروفايل */
.profile-swiper .swiper-slide {
  background-size: cover !important;
  background-position: center center !important;
  background-color: #f8f8f8 !important;
}

/* طباعة 3D */
.print3d-swiper .swiper-slide {
  background-size: cover !important;
  background-position: center center !important;
  background-color: #f8f9fa !important;
}

/* تحسين التدرج لجميع البطاقات للحصول على وضوح أفضل */
.swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.15) 50%,
    rgba(0,0,0,0.25) 100%
  );
  z-index: 1;
  border-radius: 18px;
}

/* تدرج أخف للصور التقنية */
.openbook-swiper .swiper-slide::before,
.chipboard-swiper .swiper-slide::before,
.profile-swiper .swiper-slide::before,
.print3d-swiper .swiper-slide::before {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.1) 50%,
    rgba(0,0,0,0.2) 100%
  ) !important;
}

/* إزالة عنصر الصورة المنفصل */
.card-bg-image {
  display: none !important;
}

/* === كروت مع محتوى نصي === */
.swiper-slide .card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
  margin: 0;
  background: transparent;
  color: white;
  border-radius: 18px;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  overflow: hidden;
}

/* تأثير هوفر لمظهر المعرض */
.swiper-slide:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.swiper-slide:hover .product-number {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(196,155,58,0.6);
}

/* === أرقام المنتجات === */
.product-number {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(45deg, #c49b3a, #ffd700);
  color: #fff;
  padding: 8px 14px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 4px 20px rgba(196,155,58,0.4);
  z-index: 10;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  min-width: 50px;
  text-align: center;
}

/* تحسين وضوح أرقام المنتجات لقسم الطباعة ثلاثية الأبعاد */
.print3d-swiper .product-number {
  background: linear-gradient(45deg, #2196F3, #03A9F4) !important;
  box-shadow: 0 4px 20px rgba(33,150,243,0.4) !important;
}

.print3d-swiper .swiper-slide:hover .product-number {
  box-shadow: 0 6px 25px rgba(33,150,243,0.6) !important;
}

/* إخفاء كامل للنصوص والعناوين */
.swiper-slide .card h3,
.swiper-slide .card p {
  display: none !important;
  visibility: hidden !important;
}

/* إزالة كل التخصيصات الملونة للبطاقات */
.marble-swiper .swiper-slide .card,
.openbook-swiper .swiper-slide .card,
.resin-swiper .swiper-slide .card,
.wood-swiper .swiper-slide .card,
.chipboard-swiper .swiper-slide .card,
.profile-swiper .swiper-slide .card,
.print3d-swiper .swiper-slide .card,
.stone-swiper .swiper-slide .card {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.marble-swiper .swiper-slide:hover .card,
.openbook-swiper .swiper-slide:hover .card,
.resin-swiper .swiper-slide:hover .card,
.wood-swiper .swiper-slide:hover .card,
.chipboard-swiper .swiper-slide:hover .card,
.profile-swiper .swiper-slide:hover .card,
.print3d-swiper .swiper-slide:hover .card,
.stone-swiper .swiper-slide:hover .card {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

/* طباعة 3D - عرض خاص للصور لتظهر بوضوح أكثر */
.print3d-swiper .swiper-slide {
  background-size: contain !important;
  background-position: center center !important;
  background-color: #f8f9fa !important;
}

/* إزالة التدرج الداكن من صور الطباعة ثلاثية الأبعاد لتظهر بوضوح أكثر */
.print3d-swiper .swiper-slide::before {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.1) 50%,
    rgba(0,0,0,0.15) 100%
  ) !important;
}

/* تحسين وضوح أرقام المنتجات لقسم الطباعة ثلاثية الأبعاد */
.print3d-swiper .product-number {
  background: linear-gradient(45deg, #2196F3, #03A9F4) !important;
  box-shadow: 0 4px 20px rgba(33,150,243,0.4) !important;
}

.print3d-swiper .swiper-slide:hover .product-number {
  box-shadow: 0 6px 25px rgba(33,150,243,0.6) !important;
}

/* تحسين الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
  .swiper {
    width: 200px;
    height: 280px;
  }
  
  .swiper-slide {
    width: 200px;
    height: 280px;
  }
  
  .product-number {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .swiper {
    width: 180px;
    height: 240px;
  }
  
  .swiper-slide {
    width: 180px;
    height: 240px;
  }
  
  .product-number {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 0.8rem;
  }
}