/* sections.css - Hero + 3 Service Sections with Animations */

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: 
    linear-gradient(to right, rgba(13, 110, 253, 0.9), rgba(13, 110, 253, 0.9)), 
    url('https://cdn.files.salla.network/homepage/2096406014/e2e9b7ad-a97b-4ecb-8cd1-08ae15a5768b.webp') center/cover no-repeat;
}


.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.hero-text-wrapper {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  color: white;
  animation: fadeIn 1s ease-in;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: white;
}

.hero-highlight {
  color: #559bf6;
  text-shadow: 0 0 30px rgba(255, 193, 7, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 576px) {
  .hero-actions {
    flex-direction: row;
  }
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  padding: 1.5rem 2rem;
  background: white;
  color: #0d6efd;
  transition: all 0.3s ease;
  border-radius: 0.375rem;
  font-weight: 500;
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-arrow {
  margin-right: 0.5rem;
  transform: rotate(180deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.hero-cta:hover .hero-arrow {
  transform: rotate(180deg) translateX(-4px);
}

.hero-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(to top, var(--bs-body-bg, #ffffff), transparent);
  z-index: 10;
}

/* ========================================
   CUSTOM BUTTON SYSTEM
======================================== */

.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
}

.btn-custom:focus-visible {
  outline: 2px solid var(--bs-primary, #0d6efd);
  outline-offset: 2px;
}

.btn-custom:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-custom svg {
  pointer-events: none;
  flex-shrink: 0;
}

/* Button Variants */
.btn-custom-primary {
  background: var(--bs-primary, #0d6efd);
  color: white;
}

.btn-custom-primary:hover {
  background: rgba(13, 110, 253, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
}

.btn-custom-secondary {
  background: var(--bs-secondary, #6c757d);
  color: white;
}

.btn-custom-secondary:hover {
  background: rgba(108, 117, 125, 0.8);
}

.btn-custom-outline {
  border: 1px solid var(--bs-border-color, #dee2e6);
  background: transparent;
  color: var(--bs-body-color, #212529);
}

.btn-custom-outline:hover {
  background: var(--bs-light, #f8f9fa);
}

/* Button Sizes */
.btn-custom-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
}

.btn-custom-default {
  height: 2.5rem;
  padding: 0 1rem;
}

.btn-custom-lg {
  height: 2.75rem;
  padding: 0 2rem;
  font-size: 1rem;
}

/* ========================================
   SERVICE SECTIONS
======================================== */

.service-section {
  padding: 5rem 0;
  scroll-margin-top: 5rem;
}

/* الأنيميشن بس على المحتوى، مش الصور */
.service-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-section.animate-in .service-content {
  opacity: 1;
  transform: translateY(0);
}

/* الصور تظهر عادي بدون أنيميشن */
.service-image-wrapper {
  opacity: 1;
  transform: none;
}

.service-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.service-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .service-grid {
    flex-direction: row;
    gap: 4rem;
  }
  
  .service-grid-reverse {
    flex-direction: row-reverse;
  }
}

/* Content Side */
.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-subtitle {
  color: var(--bs-primary, #0d6efd);
  font-weight: 600;
  font-size: 1.125rem;
}

.service-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--bs-body-color, #212529);
  line-height: 1.2;
}

.service-description {
  font-size: 1.125rem;
  color: var(--bs-secondary, #6c757d);
  line-height: 1.7;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-icon {
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--bs-primary, #0d6efd);
  width: 1.5rem;
  height: 1.5rem;
}

.feature-text {
  color: var(--bs-body-color, #212529);
  font-size: 1.125rem;
  margin: 0;
  line-height: 1.6;
}

.service-arrow {
  margin-right: 0.5rem;
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.btn-custom:hover .service-arrow {
  transform: rotate(180deg) translateX(-4px);
}

/* Image Side */
.service-image-wrapper {
  flex: 1;
  width: 100%;
}

.service-image-card {
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 0.5rem;
  transition: transform 0.5s ease;
}

.service-image:hover {
  transform: scale(1.05);
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Staggered animation for features - بس على المحتوى */
.service-section.animate-in .feature-item {
  animation: slideInFromRight 0.6s ease forwards;
  opacity: 0;
}

.service-section.animate-in .feature-item:nth-child(1) {
  animation-delay: 0.1s;
}

.service-section.animate-in .feature-item:nth-child(2) {
  animation-delay: 0.2s;
}

.service-section.animate-in .feature-item:nth-child(3) {
  animation-delay: 0.3s;
}

.service-section.animate-in .feature-item:nth-child(4) {
  animation-delay: 0.4s;
}

/* ملغينا الأنيميشن من الصور تماماً */
/* .service-section.animate-in .service-image { ... } */

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1024px) {
  .service-image-card {
    height: 400px;
  }
}

@media (max-width: 768px) {
  /* Hero */
  .hero-content {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  
  .hero-cta {
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
  }
  
  /* Service */
  .service-section {
    padding: 3rem 0;
  }
  
  .service-title {
    font-size: 2rem;
  }
  
  .service-description,
  .feature-text {
    font-size: 1rem;
  }
  
  .btn-custom-lg {
    width: 100%;
    justify-content: center;
  }
  
  .service-image-card {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .service-image-card {
    height: 250px;
  }
}
@media (max-width: 450px) {
  .s-products-list-vertical-cards {
      gap: .625rem;
      grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .grid-cols-\[repeat\(2\,minmax\(0\,1fr\)\] {
      grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1024px) {
    .s-products-list-vertical-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.copyright-text{
  display: none
}
/* ========================================
   STYLING EXISTING BUTTONS
======================================== */

/* Style the Add to Cart button (Solid) */
.s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  white-space: nowrap !important;
  border-radius: 0.375rem !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  border: none !important;
  outline: none !important;
  position: relative !important;
  background: #0d6efd !important;
  color: white !important;
  padding: 0 2rem !important;
  font-size: 1rem !important;
  height: 2.75rem !important;
}

.s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary:hover {
  background: rgba(13, 110, 253, 0.85) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 40px rgba(13, 110, 253, 0.4) !important;
}

.s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary:active {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3) !important;
}

.s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary:focus-visible {
  outline: 2px solid var(--bs-primary, #0d6efd) !important;
  outline-offset: 2px !important;
}

.s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary:disabled {
  pointer-events: none !important;
  opacity: 0.5 !important;
}

/* Style the Add to Cart button (Outline) */
.s-button-element.s-button-btn.s-button-outline.s-button-wide.s-button-primary-outline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  white-space: nowrap !important;
  border-radius: 0.375rem !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  outline: none !important;
  position: relative !important;
  background: transparent !important;
  border: 2px solid #0d6efd !important;
  color: #0d6efd !important;
  fill: #0d6efd !important;
  padding: 0 2rem !important;
  font-size: 1rem !important;
  height: 2.75rem !important;
  width: 100% !important;
}

.s-button-element.s-button-btn.s-button-outline.s-button-wide.s-button-primary-outline:hover {
  background: #0d6efd !important;
  color: white !important;
  fill: white !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 40px rgba(13, 110, 253, 0.4) !important;
  border-color: #0d6efd !important;
}

.s-button-element.s-button-btn.s-button-outline.s-button-wide.s-button-primary-outline:hover
  .sicon-shopping-bag {
  color: white !important;
}

.s-button-element.s-button-btn.s-button-outline.s-button-wide.s-button-primary-outline:active {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3) !important;
}

.s-button-element.s-button-btn.s-button-outline.s-button-wide.s-button-primary-outline:disabled {
  pointer-events: none !important;
  opacity: 0.5 !important;
}

/* Style the Fast Checkout button EXACTLY like Hero button */
/* Override CSS Variables for Shadow DOM */
salla-mini-checkout-widget,
.s-add-product-button-mini-checkout {
  --color-primary: #0d6efd !important;
  --color-primary-reverse: white !important;
  --salla-fast-checkout-button-height: 2.75rem !important;
  --salla-fast-checkout-button-width: 100% !important;
  --salla-fast-checkout-button-border-radius: 0.375rem !important;
}

/* Try to override the button itself */
button.s-fast-checkout-button.outline.rtl,
.s-fast-checkout-button.outline.rtl {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  font-size: 1.125rem !important;
  padding: 0 2rem !important;
  background: white !important;
  background-color: white !important;
  color: #0d6efd !important;
  transition: all 0.3s ease !important;
  border-radius: 0.375rem !important;
  font-weight: 500 !important;
  border: none !important;
  cursor: pointer !important;
  height: 2.75rem !important;
  width: 100% !important;
  flex-direction: row !important;
  text-transform: none !important;
}

button.s-fast-checkout-button.outline.rtl:hover,
.s-fast-checkout-button.outline.rtl:hover {
  background: rgba(255, 255, 255, 0.85) !important;
  background-color: rgba(255, 255, 255, 0.85) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25) !important;
  border: none !important;
}

button.s-fast-checkout-button.outline.rtl:active,
.s-fast-checkout-button.outline.rtl:active {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

button.s-fast-checkout-button.outline.rtl svg,
.s-fast-checkout-button.outline.rtl svg {
  margin-right: 0.5rem !important;
  transition: transform 0.3s ease !important;
  flex-shrink: 0 !important;
}

button.s-fast-checkout-button.outline.rtl:hover svg,
.s-fast-checkout-button.outline.rtl:hover svg {
  transform: translateX(-4px) !important;
}

/* Override the slot content inside */
.s-fast-checkout-button.outline.rtl slot,
.s-fast-checkout-button.outline.rtl slot[name='widget-label'] {
  color: #0d6efd !important;
}

@media (max-width: 768px) {
  .s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary,
  .s-button-element.s-button-btn.s-button-outline.s-button-wide.s-button-primary-outline,
  .s-fast-checkout-button.outline.rtl {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
  }
}