/**
 * ADW Landing Page - Frontend Styles
 * Design moderne avec Splide Carousel
 */

/* ==========================================================================
   Landing Page Container
   ========================================================================== */

#module-adwlandingpage-landing .card-block{
    padding: 0;
}

.adw-landing-page {
  width: 100%;
  margin: 0 auto;
}

.adw-landing-page__empty {
  text-align: center;
  padding: 80px 20px;
  color: #999;
}

.adw-landing-page__empty svg {
  margin-bottom: 20px;
  opacity: 0.5;
}

.adw-landing-page__empty p {
  font-size: 1.125rem;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.adw-landing-section {
  padding: 60px 0;
  position: relative;
}

.adw-landing-section:nth-child(even) {
  background-color: #f8f9fa;
}

.adw-landing-section__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Section Header */
.adw-landing-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.adw-landing-section__title-wrapper {
  flex: 1;
}

.adw-landing-section__title {
  font-size: 2rem;
  font-weight: 700;
  color: #4a4745;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.adw-landing-section__subtitle {
  display: block;
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
}

.adw-landing-section__header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4a4745;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.adw-landing-section__header-link:hover {
  color: #e6254f;
  border-color: #e6254f;
  background: rgba(230, 37, 79, 0.05);
}

.adw-landing-section__header-link svg {
  transition: transform 0.3s ease;
}

.adw-landing-section__header-link:hover svg {
  transform: translateX(4px);
}

/* Section Content */
.adw-landing-section__content {
  position: relative;
}

.adw-landing-section__empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  background: #f8f9fa;
  border-radius: 12px;
}

.adw-landing-section__empty svg {
  margin-bottom: 15px;
  opacity: 0.5;
}

/* Section Footer (mobile) */
.adw-landing-section__footer {
  display: none;
  margin-top: 30px;
}

/* ==========================================================================
   Products Grid (uses productlistsplide.tpl)
   ========================================================================== */

.adw-landing-section__products {
  position: relative;
}

/* ==========================================================================
   Categories Carousel
   ========================================================================== */

.adw-landing-page .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--adw-space-xl);
  padding-bottom: var(--adw-space-lg);
  border-bottom: 1px solid var(--adw-border-light);
      flex-direction: column;
}

.adw-landing-page .section-header .adw-landingpage-title {
  font-size: var(--adw-font-2xl);
  font-weight: var(--adw-font-bold);
  color: var(--adw-text-dark);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.adw-landing-page .section-header .adw-landingpage-subtitle {
  font-size: var(--adw-font-size-lg);
  color: var(--adw-gray-600);
  margin: 0;
  font-weight: 400;
}

.adw-landing-section__categories {
  position: relative;
}

.adw-landing-categories-splide {
  position: relative;
}

/* Category Card */
.adw-category-card {
  height: 100%;
}

.adw-category-card__link {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  height: 100%;
}

.adw-category-card__link:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: #e6254f;
}

/* Category Image */
.adw-category-card__image {
  position: relative;
  padding-top: 70%;
  overflow: hidden;
  background: linear-gradient(135deg, #e6254f 0%, #4a4745 100%);
}

.adw-category-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.adw-category-card__link:hover .adw-category-card__image img {
  transform: scale(1.08);
}

.adw-category-card__placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.8);
}

/* Category Content */
.adw-category-card__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.adw-category-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #4a4745;
  margin: 0 0 8px 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.adw-category-card__link:hover .adw-category-card__title {
  color: #e6254f;
}

.adw-category-card__description {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
  margin: 0 0 15px 0;
  flex: 1;
}

.adw-category-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e6254f;
  margin-top: auto;
  transition: gap 0.3s ease;
}

.adw-category-card__link:hover .adw-category-card__cta {
  gap: 10px;
}

/* ==========================================================================
   Splide Customization for Categories
   ========================================================================== */

.adw-landing-categories-splide .splide__arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.adw-landing-categories-splide .splide__arrow {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.adw-landing-categories-splide .splide__arrow:hover {
  background: #e6254f;
  border-color: #e6254f;
  color: #fff;
}

.adw-landing-categories-splide .splide__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.adw-landing-categories-splide .splide__arrow--prev {
  left: -22px;
}

.adw-landing-categories-splide .splide__arrow--next {
  right: -22px;
}

.adw-landing-categories-splide .splide__arrow svg {
  width: 20px;
  height: 20px;
}

/* Pagination */
.adw-landing-categories-splide .splide__pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}

.adw-landing-categories-splide .splide__pagination__page {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5e5e5;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.adw-landing-categories-splide .splide__pagination__page.is-active {
  background: #e6254f;
  transform: scale(1.2);
}

.adw-landing-categories-splide .splide__pagination__page:hover {
  background: #e6254f;
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.button--black {
  background: #4a4745;
  color: #fff;
}

.button--black:hover {
  background: #333;
  color: #fff;
}

.button--md {
  padding: 12px 24px;
  font-size: 0.9375rem;
}

.button--full {
  width: 100%;
}

.button--icon svg {
  transition: transform 0.3s ease;
}

.button--icon:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1199px) {
  .adw-landing-categories-splide .splide__arrow--prev {
    left: 10px;
  }

  .adw-landing-categories-splide .splide__arrow--next {
    right: 10px;
  }
}

@media (max-width: 991px) {
  .adw-landing-section__title {
    font-size: 1.75rem;
  }

  .adw-landing-section {
    padding: 40px 0;
  }

  .adw-landing-section__header {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .adw-landing-section__title {
    font-size: 1.5rem;
  }

  .adw-landing-section__subtitle {
    font-size: 0.9375rem;
  }

  .adw-landing-section {
    padding: 30px 0;
  }

  .adw-landing-section__header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 25px;
  }

  /* Hide desktop link, show mobile footer */
  .adw-landing-section__header-link {
    display: none;
  }

  .adw-landing-section__footer {
    display: block;
  }

  /* Category cards adjustments */
  .adw-category-card__content {
    padding: 15px;
  }

  .adw-category-card__title {
    font-size: 1rem;
  }

  .adw-category-card__description {
    font-size: 0.8125rem;
  }

  /* Hide arrows on mobile */
  .adw-landing-categories-splide .splide__arrows {
    display: none;
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

.adw-landing-section {
  animation: fadeInUp 0.6s ease-out;
}

.adw-landing-section:nth-child(2) {
  animation-delay: 0.1s;
}
.adw-landing-section:nth-child(3) {
  animation-delay: 0.2s;
}
.adw-landing-section:nth-child(4) {
  animation-delay: 0.3s;
}
.adw-landing-section:nth-child(5) {
  animation-delay: 0.4s;
}
