/*
 * SuperNet Child Theme - Menu horizontal moderne
 * Design épuré avec logo, menu, recherche et panier sur une ligne
 */

/* Import Material Icons avec preconnect pour performance */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons&display=swap');

/* Import Search Autocomplete Styles */
@import url('search-autocomplete.css');

/* Import Filters CSS (non chargé automatiquement) */
@import url('04-supernet-filters.css');

/* Import Footer Modern */
@import url('footer-modern-supernet.css');

/* Import Pagination */
@import url('pagination-premium.css');

/* Import Quantity Controls */
@import url('quantity-controls.css');

/* Material Icons Baseline */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Variables SuperNet — héritées de 01-supernet-core.css */
/* Aliases legacy pour compatibilité avec code existant */
:root {
  --supernet-green: var(--supernet-accent-green, #4CAF50);
  --supernet-green-light: var(--supernet-primary-lighter, #C8E6C9);
  --supernet-green-dark: var(--supernet-accent-green-dark, #2E7D32);
  --supernet-orange: #FF6B35;
  --supernet-white: #ffffff;
  --supernet-gray-light: #f8fafc;
  --supernet-gray: #64748b;
  --supernet-shadow: var(--supernet-shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
}

/* === HEADER, RECHERCHE, PANIER ===
 * Tout le code header est désormais dans 02-supernet-header.css
 * Tout le code cartes produits est dans 03-supernet-products.css
 */

/* Nutri-Score Badge Styling (legacy compat) */
.nutriscore-badge {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
}

.supernet-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===============================
   PAGES CMS — Style cohérent avec le site
   =============================== */

.page-cms {
  padding: 1.5rem;
}

/* Titre principal */
.page-cms h1,
.page-cms .page-heading {
  color: #2E7D32;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #4CAF50;
}

/* Titres de section (h2) */
.page-cms h2,
.page-cms .page-subheading {
  color: #1A1A1A;
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding: 12px 16px;
  background: #f1f8f3;
  border-left: 4px solid #4CAF50;
  border-radius: 0 8px 8px 0;
}

/* Titres d'articles (h3) */
.page-cms h3 {
  color: #2E7D32;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Paragraphes */
.page-cms p {
  color: #374151;
  line-height: 1.7;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

/* Listes */
.page-cms ul {
  margin: 0.75rem 0 1.25rem 0;
  padding-left: 0;
  list-style: none;
}

.page-cms ul li {
  position: relative;
  padding: 8px 12px 8px 28px;
  margin-bottom: 4px;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.6;
  background: #f9fafb;
  border-radius: 6px;
}

.page-cms ul li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 16px;
  width: 6px;
  height: 6px;
  background: #4CAF50;
  border-radius: 50%;
}

/* Séparateurs */
.page-cms hr {
  border: none;
  height: 2px;
  background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
  margin: 2rem 0;
  border-radius: 2px;
}

/* Liens */
.page-cms a {
  color: #2E7D32;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-cms a:hover {
  color: #4CAF50;
}

/* Strong */
.page-cms strong {
  color: #1A1A1A;
}

/* Responsive */
@media (max-width: 768px) {
  .page-cms {
    padding: 1rem;
  }
  .page-cms h1, .page-cms .page-heading {
    font-size: 1.4rem;
  }
  .page-cms h2, .page-cms .page-subheading {
    font-size: 1.1rem;
  }
}

/* ===============================
   FOOTER — Ultra compact, une seule ligne
   =============================== */

#supernet-footer {
  margin-top: 2rem;
}

.sn-footer-divider {
  height: 1px;
  background: #E5E7EB;
}

.sn-footer-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #E8F5E9;
  gap: 24px;
  flex-wrap: wrap;
}

.sn-footer-brand-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #1A1A1A;
  flex-shrink: 0;
}

.sn-footer-icon {
  height: 24px;
  width: auto;
  border-radius: 3px;
}

.sn-footer-links-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sn-footer-links-inline a {
  color: #888;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s ease;
}

.sn-footer-links-inline a:hover {
  color: #4CAF50;
}

.sn-footer-copy {
  font-size: 12px;
  color: #AAA;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .sn-footer-compact {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .sn-footer-links-inline {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .supernet-footer-main {
    padding: 2rem 0 1.5rem;
  }
  
  .supernet-footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .supernet-footer-section {
    text-align: center;
  }
  
  .supernet-footer-logo {
    justify-content: center;
  }
  
  .supernet-footer-social {
    justify-content: center;
  }
  
  .supernet-footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }
  
  .footer-badges {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .footer-badges {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .supernet-footer-social {
    gap: 0.75rem;
  }
  
  .social-link {
    width: 36px;
    height: 36px;
  }
}

/* ===============================
   PAGE PRODUIT SUPERNET
   =============================== */

.supernet-product-page {
  padding: 2rem 0;
  background: var(--supernet-gray-light);
}

.supernet-product-page .supernet-product-layout {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: var(--supernet-shadow);
  min-height: 400px;
  gap: 1.5rem;
  align-items: flex-start !important;
}

/* Section image compacte - 1/3 de l'espace */
.supernet-product-page .supernet-product-layout .supernet-product-image-section {
  flex: 0 0 33.33% !important;
  max-width: 33.33% !important;
  width: 33.33% !important;
  background: var(--supernet-gray-light);
  display: block !important;
  border-radius: 6px;
  min-height: 350px;
  padding: 1rem;
  box-sizing: border-box !important;
}

/* Force override des conteneurs d'images PrestaShop */
.supernet-product-page .supernet-product-image-section .supernet-product-images-compact,
.supernet-product-page .supernet-product-image-section #content,
.supernet-product-page .supernet-product-image-section .images-container,
.supernet-product-page .supernet-product-image-section .product-cover {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Force les images à rester dans leur conteneur */
.supernet-product-page .supernet-product-image-section img {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Section informations produit - 2/3 de l'espace */
.supernet-product-page .supernet-product-layout .supernet-product-info-section {
  flex: 0 0 66.66% !important;
  max-width: 66.66% !important;
  width: 66.66% !important;
  padding: 1rem;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.6rem;
  min-height: 350px;
  box-sizing: border-box !important;
}

/* Header produit */
.supernet-product-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
}

.supernet-product-page .supernet-product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--supernet-text-main, #1A1A1A);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.supernet-product-price {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Actions d'achat */
.supernet-product-actions {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
}

.supernet-add-to-cart-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Système d'onglets */
.supernet-product-tabs {
  flex: 1;
}

.supernet-tabs-nav {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 0.75rem;
  gap: 0.25rem;
}

.supernet-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--supernet-gray);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.supernet-tab-btn:hover {
  background: var(--supernet-primary-light, #E8F5E9);
  color: var(--supernet-primary, #4CAF50);
}

.supernet-tab-btn.supernet-tab-active {
  background: var(--supernet-primary-light, #E8F5E9);
  color: var(--supernet-primary, #4CAF50);
  border-bottom-color: var(--supernet-primary, #4CAF50);
  font-weight: 600;
}

.supernet-tab-btn .material-icons {
  font-size: 1rem;
}

/* Contenu des onglets */
.supernet-tabs-content {
  position: relative;
}

.supernet-tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.supernet-tab-pane.supernet-tab-active {
  display: block;
}

.supernet-tab-content {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #374151;
  max-height: 120px;
  overflow-y: auto;
}

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

/* Responsive */
@media (max-width: 768px) {
  .supernet-product-page .supernet-product-layout {
    flex-direction: column !important;
    gap: 0.6rem;
    margin: 0 0.5rem;
  }
  
  .supernet-product-page .supernet-product-layout .supernet-product-image-section,
  .supernet-product-page .supernet-product-layout .supernet-product-info-section {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .supernet-product-image-section {
    min-height: 200px;
  }
  
  .supernet-product-info-section {
    padding: 0.5rem;
  }
  
  .supernet-product-title {
    font-size: 1.1rem;
  }
  
  .supernet-tab-content {
    max-height: 100px;
  }
}

/* ===============================
   SUPPRESSION DES PUCES DE LISTE
   =============================== */

/* Suppression globale de toutes les puces de liste */
ul, ol {
  list-style: none !important;
  list-style-type: none !important;
}

li {
  list-style: none !important;
  list-style-type: none !important;
}

/* Suppression spécifique pour les modules de filtres */
.faceted-search ul,
.faceted-search ol,
.faceted-search li {
  list-style: none !important;
  list-style-type: none !important;
}

/* Suppression pour les listes de produits */
.products ul,
.products ol,
.products li {
  list-style: none !important;
  list-style-type: none !important;
}

/* Suppression pour les menus de navigation */
.menu ul,
.menu ol,
.menu li,
.top-menu ul,
.top-menu ol,
.top-menu li {
  list-style: none !important;
  list-style-type: none !important;
}

/* Suppression pour les listes du footer */
.footer ul,
.footer ol,
.footer li {
  list-style: none !important;
  list-style-type: none !important;
}

/* Force la suppression même avec des styles inline */
ul[style*="list-style"],
ol[style*="list-style"],
li[style*="list-style"] {
  list-style: none !important;
  list-style-type: none !important;
}

/* Suppression spécifique pour les filtres ps_facetedsearch */
#search_filters ul,
#search_filters ol,
#search_filters li,
.facet ul,
.facet ol,
.facet li,
.search_filters ul,
.search_filters ol,
.search_filters li {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Suppression des puces avec pseudo-éléments */
#search_filters li::before,
#search_filters li::after,
.facet li::before,
.facet li::after,
.search_filters li::before,
.search_filters li::after {
  display: none !important;
  content: none !important;
}

/* Réinitialisation complète des listes de filtres */
.js-search-filters ul,
.js-search-filters ol,
.js-search-filters li {
  list-style: none !important;
  list-style-type: none !important;
  list-style-image: none !important;
  list-style-position: outside !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Suppression forcée des puces pour les sélecteurs spécifiques PrestaShop */
.faceted-search ul,
.faceted-search ol,
.faceted-search li,
.ps-facetedsearch ul,
.ps-facetedsearch ol,
.ps-facetedsearch li,
div[id*="search_filter"] ul,
div[id*="search_filter"] ol,
div[id*="search_filter"] li {
  list-style: none !important;
  list-style-type: none !important;
  list-style-image: none !important;
}
/* Nutri-Score badges — style principal dans 03-supernet-products.css */

/* === CARDS PRODUITS ===
 * Le style des cartes produits est maintenant dans 03-supernet-products.css
 * Anciennes définitions "portrait Tinder" supprimées
 */
