/* ============================================================
 * pot_megamenu — front CSS
 * Couleurs : orange #f57c00 (fabricant) · noir #1a1a1a · vert #16a34a
 * Adapté au theme vinova_teemax (Potelet).
 * ============================================================ */
/* Sélecteurs avec spécificité élevée pour vaincre le text-align:center du theme parent (.verticalmenu-content) */
nav.pot-mm,
nav.pot-mm * ,
.verticalmenu-content nav.pot-mm,
.verticalmenu-content nav.pot-mm * {
  text-align: left !important;
}
nav.pot-mm { position: relative; z-index: 100; background: #fff; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #e6e6e6; }
.pot-mm-list { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; max-width: 1320px; margin: 0 auto; }

.pot-mm-entry { position: static; display: flex; align-items: stretch; }
.pot-mm-link-n1 {
  display: flex; align-items: center; gap: 6px;
  padding: 0 18px; height: 48px; white-space: nowrap;
  font-weight: 600; font-size: 14px; color: #1a1a1a;
  text-decoration: none; transition: color .15s, background .15s;
}
.pot-mm-entry:hover .pot-mm-link-n1 { color: #f57c00; background: #fff7ed; }
.pot-mm-caret { font-size: 9px; color: #999; transition: transform .15s; }
.pot-mm-entry:hover .pot-mm-caret { transform: rotate(180deg); color: #f57c00; }

/* Étoile devant les entrées "highlight-new" */
.pot-mm-entry.highlight-new .pot-mm-link-n1::before {
  content: "★"; color: #f57c00; margin-right: 6px; font-size: 11px;
}

/* ---------------- Mega-menu panel ---------------- */
.pot-mm-megamenu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-top: 3px solid #f57c00;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  padding: 28px 32px; display: none; z-index: 200;
}
.pot-mm-entry:hover .pot-mm-megamenu { display: grid; }

.pot-mm-megamenu-cols-2 { grid-template-columns: 2.2fr 1fr; gap: 48px; }
.pot-mm-megamenu-cols-3 { grid-template-columns: repeat(3, 1fr); gap: 36px; }
.pot-mm-megamenu-cols-4 { grid-template-columns: repeat(4, 1fr); gap: 32px; }
.pot-mm-megamenu-cols-5 { grid-template-columns: repeat(5, 1fr); gap: 28px; }

.pot-mm-col-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px;
  color: #f57c00; margin-bottom: 6px; padding-bottom: 0;
}
.pot-mm-col-sub {
  font-size: 11.5px; color: #757575; font-style: italic;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0;
}
.pot-mm-col-title:not(:has(+ .pot-mm-col-sub)) {
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0;
}

.pot-mm-items { list-style: none; margin: 0; padding: 0; }
.pot-mm-items li { margin-bottom: 4px; }

.pot-mm-item a {
  display: block; padding: 6px 8px; margin-left: -8px; border-radius: 4px;
  font-size: 13px; color: #333; text-decoration: none;
  transition: background .12s, color .12s;
}
.pot-mm-item a:hover { background: #fff7ed; color: #f57c00; }
.pot-mm-item a strong { color: #1a1a1a; font-weight: 600; }
.pot-mm-item a:hover strong { color: #f57c00; }
.pot-mm-item-sub { color: #999; font-size: 11.5px; font-weight: 400; margin-left: 4px; }
.pot-mm-item-icon { display: inline-block; margin-right: 6px; vertical-align: middle; }
.pot-mm-svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.pot-mm-cta-icon .pot-mm-svg { width: 22px; height: 22px; }
.pot-mm-badge-icon .pot-mm-svg { width: 22px; height: 22px; }
.pot-mm-icon .pot-mm-svg { width: 14px; height: 14px; }

/* Pill NEW */
.pot-mm-item.pill-new strong::after {
  content: "NEW"; background: #16a34a; color: #fff;
  font-size: 9px; font-weight: 800; padding: 2px 6px;
  border-radius: 3px; margin-left: 6px; letter-spacing: 0.5px;
}

/* See-all */
.pot-mm-item.see-all { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #e0e0e0; }
.pot-mm-item.see-all a { color: #f57c00; font-weight: 600; font-size: 12.5px; }

/* ---------------- Visuel : card / cta / link / badge ---------------- */
.pot-mm-card a {
  display: block; border: 1px solid #f0f0f0; border-radius: 8px;
  overflow: hidden; background: #fff; text-decoration: none; color: inherit;
  transition: border-color .12s, transform .12s;
}
.pot-mm-card a:hover { border-color: #f57c00; transform: translateY(-1px); }
.pot-mm-card-img {
  height: 130px; background: linear-gradient(135deg, #f57c00, #e65100);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px; text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  background-size: cover; background-position: center;
}

/* ---------- Image slider carousel ---------- */
.pot-mm-slider {
  position: relative; height: 130px; overflow: hidden;
  border-radius: 8px 8px 0 0;
}
.pot-mm-slides {
  display: flex; height: 100%;
  transition: transform .4s ease-in-out;
}
.pot-mm-slide {
  flex: 0 0 100%; height: 100%;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.pot-mm-slider-prev, .pot-mm-slider-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  background: rgba(0,0,0,0.55); color: #fff; border: 0; border-radius: 50%;
  font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
}
.pot-mm-slider:hover .pot-mm-slider-prev,
.pot-mm-slider:hover .pot-mm-slider-next { opacity: 1; }
.pot-mm-slider-prev { left: 6px; }
.pot-mm-slider-next { right: 6px; }
.pot-mm-slider-prev:hover, .pot-mm-slider-next:hover { background: #f57c00; }
.pot-mm-slider-dots {
  position: absolute; bottom: 6px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 5px; pointer-events: none;
}
.pot-mm-slider-dot {
  width: 6px; height: 6px; background: rgba(255,255,255,0.5);
  border-radius: 50%; transition: background .2s;
}
.pot-mm-slider-dot.active { background: #f57c00; }

/* Slide meta (label + sub qui défilent avec l'image) */
.pot-mm-slide-meta {
  position: relative; height: 50px; overflow: hidden;
  margin-top: 0;
}
.pot-mm-slide-meta-item {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 10px 12px 12px;
  opacity: 0; transition: opacity .3s;
}
.pot-mm-slide-meta-item.active {
  opacity: 1;
}
.pot-mm-slide-meta-item .pot-mm-card-title { padding: 0; font-size: 13px; font-weight: 600; }
.pot-mm-slide-meta-item .pot-mm-card-sub { padding: 0; font-size: 12px; color: #757575; }

/* ---------- Product slider ---------- */
.pot-mm-product-slider-wrap { padding: 0; margin: 0; list-style: none; }
.pot-mm-product-slider-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px;
  color: #f57c00; margin-bottom: 8px;
}
.pot-mm-product-slider {
  position: relative; overflow: hidden;
}
.pot-mm-products {
  display: flex; gap: 10px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.pot-mm-products::-webkit-scrollbar { display: none; }
.pot-mm-product {
  flex: 0 0 calc(50% - 5px);
  scroll-snap-align: start;
  background: #fff; border: 1px solid #f0f0f0; border-radius: 6px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s;
}
.pot-mm-product:hover { border-color: #f57c00; transform: translateY(-2px); }
.pot-mm-product-img {
  height: 90px; background-size: cover; background-position: center;
  background-color: #f5f5f5;
}
.pot-mm-product-noimg { background: linear-gradient(135deg, #f5f5f5, #e0e0e0); }
.pot-mm-product-name {
  font-size: 11.5px; font-weight: 600; color: #1a1a1a;
  padding: 6px 8px 2px; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pot-mm-product-price {
  font-size: 12.5px; font-weight: 700; color: #f57c00;
  padding: 0 8px 6px;
}
.pot-mm-card.bg-noir .pot-mm-card-img { background: linear-gradient(135deg, #2a2a2a, #0d0d0d); }
.pot-mm-card-with-image .pot-mm-card-img {
  background: #000 center/cover no-repeat; /* image set via inline style overrides; fallback dark */
}
.pot-mm-card-title { font-size: 13px; font-weight: 600; padding: 10px 12px 4px; }
.pot-mm-card-sub { font-size: 12px; color: #757575; padding: 0 12px 12px; }

.pot-mm-cta {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  background: #fff7ed; border: 1px solid #ffd9b3; border-radius: 8px;
  padding: 10px 12px; font-size: 12px; text-decoration: none; color: inherit;
  transition: background .12s, border-color .12s;
}
.pot-mm-cta:hover { background: #ffeacc; border-color: #f57c00; }
.pot-mm-cta.cta-strong { background: #f57c00; border-color: #f57c00; color: #fff; }
.pot-mm-cta.cta-strong:hover { background: #e65100; }
.pot-mm-cta.cta-strong small { color: #ffe0b3; }
.pot-mm-cta-icon { font-size: 24px; }
.pot-mm-cta small { color: #757575; }

.pot-mm-link-inline a { display: block; padding: 4px 8px; font-size: 12px; color: #16a34a; font-weight: 600; text-decoration: none; }
.pot-mm-link-inline a:hover { text-decoration: underline; }

.pot-mm-badge {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; background: #f0f9ff; border-left: 3px solid #16a34a;
  padding: 10px 12px; border-radius: 4px; font-size: 12px;
}
.pot-mm-badge-icon { font-size: 22px; }
