/* =======================================================
   EXPERT HERO STYLES - Refined & Animated
   ======================================================= */

.home-main-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  overflow-x: hidden;
}

.expert-hero {
  position: relative;
  padding: 100px 0 80px; /* Top padding for header + breathing room */
  background-color: var(--bg-white);
  min-height: auto; /* Changed from 100vh to allow flow */
  width: 100%;
  flex-shrink: 0;
}

/* Watermark Animation */
.hero-watermark {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  font-size: clamp(8rem, 15vw, 25rem);
  font-weight: 900;
  color: rgba(11, 19, 43, 0.04);
  z-index: 0;
  pointer-events: none;
  line-height: 1;
  font-family: var(--font-body);
  white-space: nowrap;
}

.animate-reveal {
  animation: revealWatermark 2s ease-out forwards;
}

.expert-container {
  max-width: 1600px; /* Expanded for full width usage */
  margin: 0 auto;
  padding: 50px 40px 0; /* Top padding to account for header height */
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Visual Side & Animation */
.expert-visual {
  position: relative;
  opacity: 0;
  width: 100%;
}

.animate-slide-left {
  animation: slideInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rounded-frame {
  width: 100%;
  aspect-ratio: 0.85 / 1; /* Taller aspect ratio for more height */
  max-height: 650px; /* Increased from 550px */
  border-radius: 80px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

@keyframes floatVertical {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(11, 19, 43, 0.1), transparent);
}

.rounded-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.expert-visual:hover img {
  transform: scale(1.05);
}

/* Content Side & Animation */
.expert-content {
  opacity: 0;
}

.animate-slide-right {
  animation: slideInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.expert-badge {
  display: inline-block;
  background: var(--soft-surface);
  color: var(--primary-blue);
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 30px;
  border: 1px solid var(--border-stroke);
}

.expert-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4.5vw, 5.5rem); /* Scaled down from 6.5rem */
  line-height: 0.9;
  color: var(--deep-navy);
  margin-bottom: 20px; /* Tighter spacing */
  font-weight: 800;
}

.expert-title .highlight {
  color: var(--primary-blue);
  position: relative;
  display: inline-block;
}

.expert-title .highlight::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40%;
  height: 4px;
  background: var(--primary-blue);
  border-radius: 2px;
}

.expert-description {
  font-family: var(--font-body);
  font-size: 17px; /* Scaled down from 19px */
  line-height: 1.6;
  color: var(--text-medium);
  margin-bottom: 35px; /* Tighter spacing */
  max-width: 480px;
}

/* Action Buttons - Distinct Style */
.expert-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 60px; /* Space for stats */
}

/* New Stats Row */
.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--deep-navy);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-medium);
  letter-spacing: 1px;
  font-weight: 600;
}

.stat-divider {
  height: 40px;
  width: 1px;
  background: var(--border-stroke);
}

.btn-solid-brand {
  background: var(--deep-navy);
  color: #fff;
  padding: 20px 42px;
  border-radius: 12px; /* Less round for a 'different' feel */
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 20px rgba(11, 19, 43, 0.15);
}

.btn-solid-brand:hover {
  background: var(--primary-blue);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 91, 150, 0.2);
  color: #fff;
}

.btn-outline-brand {
  background: transparent;
  border: 2px solid var(--deep-navy);
  color: var(--deep-navy);
  padding: 18px 40px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: all 0.4s ease;
}

.btn-outline-brand:hover {
  background: var(--deep-navy);
  color: #fff;
}

/* Keyframe Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes revealWatermark {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .expert-hero {
    padding-top: 150px;
  }
  .expert-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  .expert-content {
    order: 1;
  }
  .expert-visual {
    order: 2;
    max-width: 500px;
    margin: 0 auto;
  }
  .expert-description {
    margin-left: auto;
    margin-right: auto;
  }
  .expert-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .expert-hero {
    padding-top: 120px;
  }
  .expert-title {
    font-size: 2.5rem;
  }
  .expert-actions {
    flex-direction: column;
  }
  .btn-solid-brand,
  .btn-outline-brand {
    width: 100%;
    text-align: center;
  }
}

/* =======================================================
   HOME CATEGORIES SECTION (Formerly Features - "The Great Duorama")
   ======================================================= */

.home-categories {
  padding: 120px 0;
  background: var(--bg-white);
  width: 100%;
  position: relative;
  z-index: 2;
}

.categories-header {
  text-align: center;
  margin-bottom: 100px;
}

.categories-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--primary-blue);
  text-transform: uppercase;
  background: var(--soft-surface);
  padding: 8px 16px;
  border-radius: 50px;
}

.categories-title {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 800;
  color: var(--deep-navy);
  margin-top: 20px;
}

.text-blue {
  color: var(--primary-blue);
}

.categories-panels {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 150px; /* Big gap between panels */
}

.panel-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.panel-right {
  direction: rtl; /* Flip direction for alternate look */
}

.panel-right .panel-content {
  direction: ltr; /* Reset text direction on content */
}

.panel-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 60px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.panel-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.panel-item:hover .panel-visual img {
  transform: scale(1.05);
}

.panel-content {
  padding: 20px;
}

.panel-name {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--deep-navy);
  margin-bottom: 25px;
}

.panel-desc {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-medium);
  margin-bottom: 40px;
  max-width: 550px;
}

.btn-panel {
  display: inline-block;
  background: var(--soft-surface);
  color: var(--deep-navy);
  padding: 18px 40px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-decoration: none;
  border: 1px solid var(--border-stroke);
  transition: all 0.4s ease;
}

.btn-panel:hover {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 91, 150, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
  .panel-item {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .panel-right {
    direction: ltr;
  }

  .panel-desc {
    margin: 0 auto 40px;
  }

  .panel-visual {
    border-radius: 40px;
  }

  .categories-title {
    font-size: 38px;
  }
}

/* =======================================================
   NEW STORE FEATURES BAR (Icons)
   ======================================================= */
.store-features-bar {
  width: 100%;
  background: var(--deep-navy); /* Dark Brand Background */
  padding: 60px 0;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.store-features-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 Columns as requested */
  gap: 40px;
}

.store-feature-item {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.03); /* Subtle glass effect */
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.store-feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: var(--primary-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 5px 0;
  color: #fff;
}

.feature-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

@media (max-width: 900px) {
  .store-features-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .store-feature-item {
    justify-content: flex-start;
  }
}
/* =======================================================
   HOME LATEST PRODUCTS SECTION
   ======================================================= */
.home-latest-products {
  padding: 100px 0;
  background: var(--soft-surface);
  width: 100%;
}

.latest-header {
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.latest-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: var(--deep-navy);
  line-height: 1.1;
}

.latest-link {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s;
}

.latest-link:hover {
  color: var(--primary-hover);
  transform: translateX(5px);
}

.latest-grid-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Customizing the WooCommerce Grid inside this Section */
.custom-home-grid ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Target the LI item */
.custom-home-grid ul.products li.product {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

/* Target the Inner Wrap which is the actual card */
.custom-home-grid .product-card__wrap {
  background: #fff;
  border-radius: 12px;
  padding: 15px; /* Restored Internal Padding */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
  position: relative;
  height: 100%;
}

.custom-home-grid .product-card__wrap:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.04);
}

/* Image */
/* Image styling - Enable Flip Effect */
/* Image styling - Enable Flip Effect */
/* Image styling - Enable Flip Effect */
/* Image Wrapper - The user's DOM has multiple anchors, we target the one with images */
/* Image Wrapper - The user's DOM has .product-card__image inside .astra-shop-thumbnail-wrap */
/* Image Wrapper - MATCHING SHOP CSS EXACTLY */
/* Image Wrapper - Restored Fixed Height Compact Style */
.custom-home-grid .product-card__image {
  display: block;
  position: relative;
  height: 180px; /* Restored Fixed Height 180px */
  width: 100%;
  margin: 0 auto 15px; /* Restored Margin */
  padding: 0; /* Removing Aspect Ratio Padding */
  background: transparent;
  box-shadow: none;
  border: none;
  overflow: hidden;
}

/* Ensure the links inside don't break layout */
.custom-home-grid .product-card__image a {
  display: block;
  height: 100%;
  width: 100%;
}

/* Images - Standardize size and position */
/* Images - Standardize size and position */
/* Images - Standardize size and position */
.custom-home-grid .product-card__image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Removed hover scale init */
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  transition: opacity 0.4s ease; /* Removed transform transition */
}

/* Remove Shop Hover Zoom Effect */
.custom-home-grid .product-card__wrap:hover img {
  transform: translate(-50%, -50%); /* No Zoom */
}

/* Secondary Hover Image */
.custom-home-grid .hover-image {
  opacity: 0;
  z-index: 2;
}

/* Primary Main Image */
.custom-home-grid .main-image {
  opacity: 1;
  z-index: 1;
}

/* Flip Effect on Card Hover */
.custom-home-grid .product-card__wrap:hover .hover-image {
  opacity: 1;
}

.custom-home-grid .product-card__wrap:hover .main-image {
  opacity: 0;
}

/* Hide the empty/duplicate link wrapper which Astra adds */
.custom-home-grid .astra-shop-thumbnail-wrap > a {
  display: none;
}

/* Title */
/* Title */
/* Title */
/* Title - Restored Home Style */
.custom-home-grid .woocommerce-loop-product__title {
  font-family: var(--font-heading);
  font-size: 20px !important; /* Larger Home Font */
  color: var(--deep-navy);
  margin-bottom: 5px !important;
  padding: 0;
  line-height: 1.2;
}

/* Price - Restored Home Style */
.custom-home-grid .price {
  color: var(--primary-blue) !important;
  font-weight: 700;
  font-size: 16px !important;
  display: block;
  margin-bottom: 20px;
}

/* Hide Add to Cart button for cleaner look (optional, but requested style was 'Vitrine') */
/* User can click image to go to product */
.custom-home-grid .add_to_cart_button {
  display: none;
}

/* Badge (Simulated 'Publique' Badge) */
/* Badge (Simulated 'Publique' Badge) */
.custom-home-grid .product-card__wrap::before {
  content: "NEW";
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 10;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .custom-home-grid ul.products {
    grid-template-columns: 1fr;
  }
  .latest-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
}
