/* ===== PRODUCTS ===== */
.products {
    background-color: var(--accent-3);
    padding: 100px 0;
}

/* ===== GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    position: relative;
    background-color: var(--secondary);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
}
.product-card-1{
    position: relative;
    background-color:transparent;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
    width: 320px;
}
.product-image-1{
    position: relative;
    height: 300px;
    background-color:transparent;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    z-index: 1;
}
.product-image-1 img {
    width: 100%;
    height: 100%;
   object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    border: none;
}

.img-hover-1{
        opacity: 0;
}
.product-image-1 .img-hover {
    opacity: 0;
}

/* Hover effect */
.product-card-1:hover .img-default {
    opacity: 0;
}

.product-card-1:hover .img-hover-1 {
    opacity: 1;
}

.product-card:hover .product-image-1 img {
    transform: scale(1.09);
}
/* ===== BADGES ===== */
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    z-index: 10;
    color: #fff;
    text-transform: uppercase;
}

.badge.soldout {
    background-color: #000;
}

.badge.promo {
    background-color: var(--accent-1);
}

/* ===== IMAGE HOVER ===== */
.product-image {
    position: relative;
    height: 300px;
    background-color: white;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    z-index: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
   object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    border: none;
}


/* Image hover cachée */
.product-image .img-hover {
    opacity: 0;
}

/* Hover effect */
.product-card:hover .img-default {
    opacity: 0;
}

.product-card:hover .img-hover {
    opacity: 1;
}

.product-card:hover .product-image img {
    transform: scale(1.09);
}

/* ===== TEXT ===== */
.product-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
    font-family: 'Amaranth', sans-serif;
}

.price {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.price-1{
     font-size: 50px;
  font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Amaranth', sans-serif;
}
.old-price {
    text-decoration: line-through;
    opacity: 0.5;
    margin-right: 8px;
}

.promo-price {
    color: var(--accent-1);
}

/* ===== RATING ===== */
.rating {
    font-size: 14px;
    margin-bottom: 15px;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.btn.primary {
    background-color: var(--primary);
    color: var(--secondary);
}

.btn.disabled {
    background-color: #ccc;
    color: #777;
    cursor: not-allowed;
}
/* ===============================
   RESPONSIVE – TABLETTE
================================ */
@media (max-width: 1024px) {

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .product-image {
        height: 260px;
    }
}

/* ===============================
   RESPONSIVE – MOBILE
================================ */
@media (max-width: 768px) {

    .products {
        padding: 80px 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-card {
        padding: 25px;
    }

    .product-image {
        height: 240px;
    }

    .product-card h2 {
        font-size: 18px;
    }

    .price {
        font-size: 17px;
    }
}

/* ===============================
   RESPONSIVE – PETIT MOBILE (320px)
================================ */
@media (max-width: 480px) {

    .products {
        padding: 60px 0;
    }

    .product-card {
        padding: 20px;
    }

    .product-image {
        height: 220px;
    }

    .product-card h2 {
        font-size: 16px;
    }

    .price {
        font-size: 16px;
    }

    .btn {
        width: 100%;
        padding: 14px 0;
    }
}
.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product img {
    width: 70px;
    height: auto;
    border-radius: 6px;
    background: #fff;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.cart-item img {
    width: 55px;
    height: auto;
    border-radius: 6px;
    background: #fff;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info p {
    margin: 0;
    font-size: 14px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: red;
    font-size: 16px;
    cursor: pointer;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item img {
    width: 50px;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.item-name {
    font-weight: 700;
    color: #4a2d1f;
}

.item-price {
    font-size: 14px;
}
#cart-drawer {
    position: fixed;
    top: 0;
    right: -360px;
    width: 360px;
    height: 100vh;
    background: var(--secondary);
    transition: right 0.3s ease;
    z-index: 1000;
}

#cart-drawer.open {
    right: 0;
}

#cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}

#cart-overlay.show {
    opacity: 1;
    z-index: 1;
    visibility: visible;
}
/* ===== CART STRUCTURE ===== */
#cart-drawer {
    display: flex;
    flex-direction: column;
    font-family: 'Amaranth', sans-serif;
}

/* ===== HEADER ===== */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--accent-4);
    color: var(--primary);
    border-bottom: 1px solid var(--accent-3);
}

.cart-header h3 {
    margin: 0;
    font-size: 20px;
}

#close-cart {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* ===== ITEMS ===== */
#cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* ===== FOOTER ===== */
.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--accent-3);
    background: #fff;
}

.cart-footer strong {
    font-size: 18px;
}
/* =========================
   DÉSACTIVER LES HOVER DANS LE PANIER
========================= */
#cart-drawer *,
#cart-drawer *:hover {
    opacity: 1 !important;
    transform: none !important;
}
#cart-drawer {
    pointer-events: auto;
}

.products {
    pointer-events: auto;
}
/* ===============================
   SECTION AVIS CLIENTS
================================ */
.reviews {
    background-color: var(--accent-4);
    padding: 100px 0;
    text-align: center;
}

.reviews-title {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: 'Amaranth', sans-serif;
}

.reviews-subtitle {
    font-size: 16px;
    color: #555;
    margin-bottom: 50px;
}

/* GRID */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* CARD */
.review-card {
    background: var(--secondary);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-6px);
}

/* STARS */
.review-stars {
    color: #f5b301;
    font-size: 18px;
    margin-bottom: 15px;
}

/* TEXT */
.review-text {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* AUTHOR */
.review-author strong {
    display: block;
    color: var(--primary);
    font-size: 15px;
}

.review-author span {
    font-size: 13px;
    color: #777;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reviews {
        padding: 80px 0;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .reviews-title {
        font-size: 26px;
    }
}
/* ===============================
   AVIS – DISPOSITION ORGANIQUE
================================ */

.reviews {
    background-color: var(--accent-4);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.reviews-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 80px 120px;
    margin-top: 80px;
    justify-items: center;
}

/* CARD */
.review-card {
    background: var(--secondary);
    border-radius: 20px;
    padding: 30px;
    max-width: 320px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: transform 0.4s ease;
}

/* DÉCALAGES & ROTATIONS */
.review-card:nth-child(1) {
    transform: rotate(-4deg) translateY(20px);
}

.review-card:nth-child(2) {
    transform: rotate(3deg) translateY(-10px);
}

.review-card:nth-child(3) {
    transform: rotate(-2deg) translateX(-20px);
}

.review-card:nth-child(4) {
    transform: rotate(4deg) translateX(20px);
}

/* Hover doux */
.review-card:hover {
    transform: rotate(0deg) translate(0, -6px);
}

/* TEXT */
.review-author strong {
    color: var(--primary);
    font-size: 16px;
}

.review-text {
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.6;
}

.review-stars {
    color: #f5b301;
    font-size: 16px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .review-card {
        transform: none !important;
    }
}
.cart-footer {
    padding: 15px;
    border-top: 1px solid #eee;
}

.cart-pay-btn {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
}
.cart-pay-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* ============================
   CARDS TYPES DE CHEVEUX
============================ */

.hair-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.hair-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 25px 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
  text-align: center;
  transition: transform 0.3s ease;
}

.hair-card:hover {
  transform: translateY(-5px);
}

.hair-card h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.hair-card p {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Carte résumé mise en avant */
.hair-card.highlight {
  background: var(--accent-4);
}

.hair-card.highlight h4,
.hair-card.highlight p {
  color:var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .hair-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hair-cards {
    grid-template-columns: 1fr;
  }
}
/* ============================
   BANNIÈRE ROUTINE BOTANEYA
============================ */

.routine-botaneya-banner {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--accent-1)
  );
  padding: 50px 20px;
}

.routine-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.routine-text h4 {
  color: var(--secondary);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.routine-text p {
  color: var(--accent-4);
  font-size: 1rem;
  margin-bottom: 6px;
}

/* Bouton */
.routine-btn {
  background-color: var(--secondary);
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.routine-btn:hover {
  background-color: var(--accent-2);
  color: var(--hover);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .routine-content {
    flex-direction: column;
    text-align: center;
  }

  .routine-btn {
    margin-top: 15px;
  }
}
/* ============================
   SECTION CONSEIL ROUTINE
============================ */

.routine-advice {
  background-color: var(--accent-4);
  padding: 70px 20px;
  text-align: center;
}

.routine-advice h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 20px;
}

.routine-advice p {
  color: var(--primary);
  font-size: 1rem;
  max-width: 850px;
  margin: 0 auto 15px;
  line-height: 1.7;
}

.routine-advice .btn.primary {
  margin-top: 25px;
  padding: 14px 34px;
  border-radius: 30px;
}
/* ============================
   CLOSE PAGE – FIX VIEWPORT
============================ */

.close-page {
    position: fixed;
    top: 24px;
    left: 24px; /* TOUJOURS DANS L'ÉCRAN */
    z-index: 99999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--secondary);
    color:red;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
/* Sécurité pour écrans très larges */
@media (min-width: 1600px) {
    .close-page {
        right: max(24px, env(safe-area-inset-right));
    }
}

.close-page i {
    font-size: 18px;
}

.close-page:hover {
    background-color: var(--primary);
    color: var(--secondary);
    transform: rotate(90deg);
}
/* ============================
   FIX CROIX FERMETURE PANIER
============================ */

#cart-drawer {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    height: 100vh;
    background: var(--secondary);
    z-index: 1000;
}

/* Header du panier */
.cart-header {
    position: relative;
}

/* Bouton fermer */
#close-cart {
    position: absolute;
    top: 18px;
    right: 18px; /* TOUJOURS DANS LE PANIER */
    z-index: 10;

    width: 36px;
    height: 36px;
    border-radius: 50%;

    background-color: var(--accent-4);
    color: var(--primary);

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

    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#close-cart:hover {
    background-color: var(--primary);
    color: var(--secondary);
}
.open{
   
}

