﻿/* =========================
   PRODUITS – PREMIUM CLEAN
========================= */

/* ===== BODY ===== */
body.produits {
    margin: 0;
    font-family: system-ui, Arial, sans-serif;

    background: url("../../images/backgrounds/bg-aloe.avif") center/cover no-repeat fixed;
    color: #fff;
}

/* Dark Overlay */
body.produits::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10, 40, 30, 0.45);
    z-index: -1;
}


/* =========================
   HERO / HEADER
========================= */

.hero {
    text-align: center;
    padding: 60px 20px 30px;

    background: radial-gradient(
        circle at top,
        rgba(120,255,180,0.15),
        transparent 70%
    );
}

/* LOGO */
.logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo {
    width: 160px;
    max-width: 60%;

    filter:
      drop-shadow(0 0 10px rgba(120,255,180,0.6))
      drop-shadow(0 0 25px rgba(120,255,180,0.3));
}

/* TITEL */
.hero h1 {
    font-size: clamp(28px, 5vw, 52px);
    letter-spacing: 5px;
    color: #ffd84a;
}

/* SUBTEXT */
.catcher {
    font-size: clamp(14px, 2vw, 18px);
    opacity: 0.8;
    margin-top: 10px;
}


/* =========================
   NAVIGATION
========================= */

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;

    margin: 25px auto;
    max-width: 1000px;
}

.nav a {
    padding: 10px 16px;
    border-radius: 10px;

    background: rgba(255,255,255,0.08);
    color: #caffdf;

    text-decoration: none;
    font-size: 0.9rem;

    border: 1px solid rgba(120,255,180,0.25);

    transition: 0.25s;
}

.nav a:hover {
    background: rgba(120,255,180,0.25);
    color: #fff;
    transform: translateY(-2px);
}

.nav a.active {
    background: rgba(120,255,180,0.35);
    box-shadow: 0 0 15px rgba(120,255,180,0.4);
}


/* =========================
   GUIDE BUTTON
========================= */

.guide-box {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    text-align: center;

    margin: 30px auto;
}

.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 34px;
    border-radius: 999px;

    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;

    color: #ffe9a6;

    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.15),
        rgba(255, 215, 0, 0.05)
    );

    border: 1px solid rgba(255, 215, 0, 0.35);

    cursor: pointer;
    transition: all 0.35s ease;

    box-shadow:
      0 0 10px rgba(255, 215, 0, 0.2),
      0 0 25px rgba(255, 215, 0, 0.1);
}

.btn-premium:hover {
    transform: translateY(-2px) scale(1.05);

    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.3),
        rgba(255, 215, 0, 0.1)
    );

    box-shadow:
      0 0 20px rgba(255, 215, 0, 0.4),
      0 0 60px rgba(255, 215, 0, 0.2);
}


/* =========================
   CATEGORY NAV
========================= */

.category-nav-modern {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 12px;
    max-width: 1800px;
	  width: 95%;
    margin: 30px auto;
}

.category-nav-modern a {
    padding: 10px 18px;
    border-radius: 20px;

    background: rgba(255,255,255,0.05);
    color: #caffdf;

    text-decoration: none;
    font-size: 0.9rem;

    transition: 0.3s;
}

.category-nav-modern a:hover,
.category-nav-modern a.active {
    background: rgba(120,255,180,0.35);
    color: #fff;
}
.sticky-nav {
    max-width: 1200px;
    width: 95%;
}

/* =========================
   MAIN CONTENT
========================= */

#main {
    width: 100%;
	  margin: 0 auto;
    padding: 40px 20px;
}

/* =========================
   CATEGORY IMAGE (FIX!)
========================= */

.category-banner {
    width: 92%;
    max-width: 1500px;
    margin: 0 auto 30px;
}

.category-image {
    width: 100%;
    max-height: 400px;

    object-fit: contain; /* 🔥 kein Abschneiden */

    background: rgba(0,0,0,0.4);
    padding: 10px;
    border-radius: 12px;
}



/* =========================
   GUIDE MODAL
========================= */
/* =========================
   GUIDE OVERLAY FIX iPAD/iPHONE
========================= */

.contact-overlay {
    position: fixed;
    inset: 0;

    display: none;
    overflow-y: auto;

    padding: 20px;

    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(5px);

    z-index: 9999;

    -webkit-overflow-scrolling: touch;

    justify-content: center;

    /* 🔥 WICHTIG */
    align-items: flex-start;
}

.contact-overlay.active {
    display: flex;
}

/* BOX */
.guide-modal {

    position: relative;

    margin: auto;

    margin-top: 40px;
    margin-bottom: 40px;

    background: rgba(20,25,20,0.96);

    border-radius: 20px;

    padding: 30px 20px;

    width: min(700px, 100%);

    max-height: none;

    overflow: visible;

    border: 1px solid rgba(120,255,180,0.25);

    box-shadow:
      0 0 20px rgba(120,255,180,0.2),
      0 0 60px rgba(120,255,180,0.08);

    /* 🔥 EXTREM WICHTIG */
    animation: none;
}

/* CONTENT */
.guide-content {
    overflow-wrap: break-word;
    line-height: 1.6;
}

/* CLOSE BUTTON */
.guide-close {

    position: sticky;

    top: 0;

    float: right;

    z-index: 20;

    background: rgba(0,0,0,0.8);

    width: 38px;
    height: 38px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;

    cursor: pointer;
}

/* MOBILE FIX */
@media (max-width: 768px) {

    .contact-overlay {
        padding: 10px;
    }

    .guide-modal {

        width: 100%;

        padding: 20px 16px;

        border-radius: 16px;
    }

    .guide-close {
        top: 5px;
    }
}
/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .logo {
        width: 120px;
    }

    .nav a {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .btn-premium {
        padding: 12px 20px;
        font-size: 12px;
    }

    .category-image {
        max-height: 220px;
    }

  }

/* =========================
   PRODUCT OVERLAY SYSTEM
========================= */



/* HOVER → Overlay erscheint */
.luxury-product:hover .product-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE (kein hover) */
.luxury-product.active .product-overlay {
    opacity: 1;
    transform: translateY(0);
}
.product-overlay::-webkit-scrollbar {
    width: 6px;
}

.product-overlay::-webkit-scrollbar-thumb {
    background: rgba(120,255,180,0.4);
    border-radius: 10px;
}
/* =========================
   STICKY CATEGORY NAV FIX
========================= */

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    /* 💎 BOX LOOK */
    background: rgba(10, 20, 15, 0.85);
    backdrop-filter: blur(10px);

    padding: 10px 15px;
    border-radius: 14px;

    margin: 20px auto;

    border: 1px solid rgba(120,255,180,0.2);

    box-shadow:
        0 8px 25px rgba(0,0,0,0.6);
}
/* =========================
   PRODUCT ACTION BUTTONS
========================= */

.product-actions {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 12px;
    margin-top: 20px;
}

/* Buttons + Links */
.product-actions a,
.product-actions button {
    width: 220px;

    padding: 12px 16px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border-radius: 10px;

    background: rgba(255,255,255,0.05);
    color: #ffffff;

    border: 1px solid rgba(120,255,180,0.25);

    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;

    cursor: pointer;
    transition: all 0.3s ease;
}
.product-actions a:hover,
.product-actions button:hover {
    background: rgba(120,255,180,0.25);
    border-color: rgba(120,255,180,0.5);

    transform: translateY(-2px);

    box-shadow: 0 0 12px rgba(120,255,180,0.4);
}

/* 🔥 FIX: Overlay MUSS über dem Bild liegen */
.luxury-product {
    position: relative;
    overflow: hidden;
}

/* Bild bleibt Fläche */
.luxury-product img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 🔥 DAS IST DER WICHTIGE PART */
.product-overlay {
    position: absolute;
    inset: 0; /* = top/right/bottom/left 0 */

    background: rgba(10,20,15,0.9);
    padding: 20px;

    overflow-y: auto;

    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover = Bild weg + Text rein */
.luxury-product:hover img {
    opacity: 0;
}

.luxury-product:hover .product-overlay {
    opacity: 1;
}

/* =========================
   PRODUCT TITLE IM BILD (PREMIUM)
========================= */

.product-title {
    position: absolute;
    top: 15px;        /* 🔥 Abstand vom oberen Bildrand */
    left: 50%;
    transform: translateX(-50%); /* nur horizontal zentrieren */

    z-index: 2;

    text-align: center;
    width: 90%;

    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #fff;

    text-shadow:
        0 0 10px rgba(0,0,0,0.8),
        0 0 20px rgba(0,0,0,0.6),
        0 2px 4px rgba(0,0,0,0.9);

    pointer-events: none;

background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.6),
    rgba(0,0,0,0)
);
padding: 8px;
border-radius: 8px;
}	
.luxury-product:hover .product-title {
    opacity: 0;
    transition: 0.3s;
}


.luxury-product:hover {
    transform: translateY(-5px) scale(1.02);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.8),
        0 0 20px rgba(120,255,180,0.3);
}

/* =========================
   🟩 PRODUKT KARTE
========================= */

.luxury-product {
    position: relative;
    aspect-ratio: 4 / 5;

    border-radius: 18px;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.4),
        inset 0 0 0 1px rgba(255,255,255,0.08);

    transition: all 0.35s ease;
}

/* =========================
   🖼️ BILD
========================= */

.luxury-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

/* =========================
   🏷️ TITEL IM BILD (OBEN)
========================= */

.product-title {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 30px); /* Abstand links + rechts */
    
    text-align: center;
    color: white;

    font-weight: 600;
    letter-spacing: 2px;
    font-size: 14px;

    padding: 6px 10px;

    /* verhindert Abschneiden */
    box-sizing: border-box;
    word-wrap: break-word;

    text-shadow: 0 2px 10px rgba(0,0,0,0.8);

    z-index: 2;
}

/* =========================
   📖 OVERLAY (TEXT STATT BILD)
========================= */

.product-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);

    color: white;
    padding: 20px;

    overflow-y: auto;

    opacity: 0;
    transition: 0.3s ease;
}

.luxury-product:hover .product-overlay {
    opacity: 1;
}

/* =========================
   ✨ APPLE FOKUS EFFEKT
========================= */

.luxury-grid:hover .luxury-product {
    opacity: 0.5;
    transform: scale(0.96);
}

.luxury-grid .luxury-product:hover {
    opacity: 1;
    transform: scale(1.05);
    z-index: 5;

    box-shadow:
        0 25px 60px rgba(0,0,0,0.7),
        0 0 25px rgba(120,255,180,0.25);
}

/* =========================
   🌟 PREMIUM GLOW
========================= */

.luxury-product::after {
    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(
        circle at 50% 30%,
        rgba(255,255,255,0.15),
        transparent 70%
    );

    opacity: 0;
    transition: 0.3s;
}

.luxury-product:hover::after {
    opacity: 1;
}

/* =========================
   🌞 SEITE ETWAS HELLER
========================= */

body {
    background: radial-gradient(
        circle at top,
        rgba(120,255,180,0.12),
        rgba(0,0,0,0.85)
    );
}

/* =========================
   FIX: OVERLAY SCROLL FINAL
========================= */

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    flex-direction: column;

    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);

    color: white;
    padding: 20px;

    overflow-y: auto; /* 🔥 SCROLL */

    opacity: 0;
    transition: opacity 0.3s ease;

    z-index: 3;
}

/* 🔥 WICHTIG: Inhalt darf wachsen */
.product-overlay > * {
    flex-shrink: 0;
}

/* SCROLLBAR schöner */
.product-overlay::-webkit-scrollbar {
    width: 6px;
}

.product-overlay::-webkit-scrollbar-thumb {
    background: rgba(120,255,180,0.5);
    border-radius: 10px;
}
.product-overlay h3 {
    display: none;
}

/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */


/* =========================================
   🧼 CLEAN PRODUCT LAYOUT (FINAL)
========================================= */


/* =========================
   GLOBAL WIDTH SYSTEM
========================= */
.container,
.category-nav-modern,
.category-banner,
.content-box,
.luxury-grid {
    width: 100%;
    max-width: 1800px;

    margin-left: auto;
    margin-right: auto;

    padding-left: clamp(16px, 4vw, 60px);
    padding-right: clamp(16px, 4vw, 60px);
}

/* 🔥 WICHTIG: kein Limit mehr hier */
article.active {
    width: 100%;
    max-width: none;
}


/* =========================
   GRID SYSTEM (FIXED LOGIC)
========================= */
.luxury-grid {
    display: grid;
    gap: clamp(20px, 2vw, 40px);
    margin-top: 40px;
}

/* 📱 MOBILE → 1 */
@media (max-width: 600px) {
    .luxury-grid {
        grid-template-columns: 1fr;
    }
}

/* 📲 TABLET → 2 */
@media (min-width: 601px) and (max-width: 1100px) {
    .luxury-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 💻 DESKTOP → IMMER 3 */
@media (min-width: 1101px) {
    .luxury-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =========================
   PRODUCT CARD
========================= */
.luxury-product {
    position: relative;
    aspect-ratio: 4 / 5;

    border-radius: 18px;
    overflow: hidden;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);

    transition: 0.3s ease;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.4),
        inset 0 0 0 1px rgba(255,255,255,0.06);
}


/* =========================
   IMAGE (FILL BOX)
========================= */
.luxury-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* =========================
   TITLE (TOP INSIDE IMAGE)
========================= */
.product-title {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 24px);

    text-align: center;
    color: white;

    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;

    padding: 6px 10px;
    border-radius: 8px;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.6),
        rgba(0,0,0,0)
    );

    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    z-index: 2;
}


/* =========================
   OVERLAY (TEXT VIEW)
========================= */

/* =========================
   PRODUCT OVERLAY FIX IOS
========================= */

.product-overlay {

    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(10px);

    color: white;

    padding: 20px;

    opacity: 0;
    transition: opacity 0.3s ease;

    /* 🔥 SCROLL FIX */
    overflow-y: scroll;

    /* 🔥 iOS FIX */
    -webkit-overflow-scrolling: touch;

    /* 🔥 wichtig */
    height: 100%;

    box-sizing: border-box;

    /* 🔥 scrollbar sichtbar */
    scrollbar-width: thin;
}

/* WEBKIT */
.product-overlay::-webkit-scrollbar {
    width: 8px;
}

.product-overlay::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.08);
}

.product-overlay::-webkit-scrollbar-thumb {
    background: rgba(120,255,180,0.55);
    border-radius: 20px;
}
  .luxury-product {
    position: relative;
    overflow: hidden;
} 
.product-overlay {
    overscroll-behavior: contain;
}

/* =========================
   INTERACTION
========================= */
.luxury-product:hover img {
    opacity: 0;
}

.luxury-product:hover .product-overlay {
    opacity: 1;
}

.luxury-product:hover .product-title {
    opacity: 0;
}


/* =========================
   PREMIUM HOVER EFFECT
========================= */
.luxury-grid:hover .luxury-product {
    opacity: 0.5;
    transform: scale(0.96);
}

.luxury-grid .luxury-product:hover {
    opacity: 1;
    transform: scale(1.05);
    z-index: 5;

    box-shadow:
        0 25px 60px rgba(0,0,0,0.7),
        0 0 20px rgba(120,255,180,0.25);
}


/* =========================
   LIGHT GLOW
========================= */
.luxury-product::after {
    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(
        circle at 50% 30%,
        rgba(255,255,255,0.12),
        transparent 70%
    );

    opacity: 0;
    transition: 0.3s;
}

.luxury-product:hover::after {
    opacity: 1;
}


/* =========================
   SECTION SPACING
========================= */
section {
    margin-bottom: clamp(60px, 8vw, 120px);
}


/* =========================
   BODY FIX
========================= */
body {
    overflow-x: hidden;
}

/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
/* =========================================
   🔥 FORCE FULL WIDTH FIX (NO HTML CHANGE)
========================================= */


/* =========================
   1. ALLE BREITEN LIMITS KILLEN
========================= */
article.active,
.content-box,
.category-banner,
.luxury-grid {
    max-width: none !important;
    width: 100% !important;
}


/* =========================
   2. GLEICHE BREITE WIE NAV
========================= */
article.active {
    padding-left: clamp(16px, 4vw, 60px);
    padding-right: clamp(16px, 4vw, 60px);

    margin-left: auto;
    margin-right: auto;
}


/* =========================
   3. GRID BLEIBT FIX (DEINE LOGIK)
========================= */
.luxury-grid {
    display: grid !important;
    gap: clamp(20px, 2vw, 40px) !important;
}

/* MOBILE */
@media (max-width: 600px) {
    .luxury-grid {
        grid-template-columns: 1fr !important;
    }
}

/* TABLET */
@media (min-width: 601px) and (max-width: 1100px) {
    .luxury-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* DESKTOP = IMMER 3 */
@media (min-width: 1101px) {
    .luxury-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}


/* =========================
   4. PRODUKTE WACHSEN JETZT
========================= */
.luxury-product {
    width: 100% !important;
    max-width: none !important;
}


/* =========================
   5. BILD IMMER FULL
========================= */
.luxury-product img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}


/* =========================
   6. TITEL FIX (NICHT ABGESCHNITTEN)
========================= */
.product-title {
    left: 50% !important;
    transform: translateX(-50%) !important;

    width: calc(100% - 24px) !important;

    text-align: center !important;
}


/* =========================
   7. BODY OVERFLOW FIX
========================= */
body {
    overflow-x: hidden;
}
.last-update {
  margin: 40px auto 0;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: #2e7d32;
  background: #e8f5e9;
  border-radius: 20px;
  width: fit-content;
  font-weight: 500;
}
.footer {
  text-align: center;
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}
.footer {
  text-align: center;
  margin: 40px auto;
  padding: 20px;
}

/* =========================
   FLOATING CART
========================= */

.floating-cart {

  position: fixed;

  top: 20px;
  right: 20px;

  display: flex;
  align-items: center;
  gap: 10px;

  z-index: 999999;

}

/* CART BUTTON */

.floating-cart-icon {

  width: 65px;
  height: 65px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;

  text-decoration: none;

  font-size: 28px;
  color: #fff;

  background:
    linear-gradient(
      135deg,
      #14532d,
      #22c55e
    );

  box-shadow:
    0 10px 30px rgba(0,0,0,0.35);

  transition: 0.3s;

}

.floating-cart-icon:hover {

  transform: scale(1.08);

}

/* COUNTER */

#cartCounter {

  position: absolute;

  top: -6px;
  right: -6px;

  width: 28px;
  height: 28px;

  border-radius: 50%;

  background: #ff3b5c;

  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 13px;
  font-weight: bold;

}

/* LABEL */

.cart-label {

  position: absolute;

  bottom: -22px;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;

  color: #fff;

  text-transform: uppercase;

}