/* Luciole India Hair - Luxury E-commerce Styles */
:root {
  --black: #0a0a0a;
  --deep-black: #111111;
  --gold: #c9a227;
  --gold-light: #e0c35a;
  --gold-dark: #a88b1f;
  --white: #ffffff;
  --beige: #f5f0e8;
  --beige-dark: #e8e0d4;
  --rose: #e8c4c4;
  --rose-dark: #d4a5a5;
  --gray: #6b6b6b;
  --gray-light: #f8f6f3;
  --success: #2d6a4f;
  --shadow: 0 10px 40px rgba(0,0,0,0.15);
  --shadow-gold: 0 8px 30px rgba(201, 162, 39, 0.25);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', 'Segoe UI', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--beige);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: var(--transition);
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--black);
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--rose));
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 50px;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(201, 162, 39, 0.4);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  padding: 0 5%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.navbar.scrolled {
  height: 60px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo .logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  padding: 2px;
}

.nav-logo .logo-text span {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  line-height: 1.1;
}

.nav-logo .logo-text small {
  display: block;
  font-size: 0.6rem;
  color: var(--rose);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 1px;
}

@media (max-width: 640px) {
  .nav-logo .logo-text {
    display: none; /* On mobile: logo only to save space */
  }
  .nav-logo .logo-img {
    height: 42px;
  }
  .nav-actions {
    gap: 8px;
  }
  .cart-btn {
    font-size: 1.2rem;
    padding: 6px;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 60%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  position: relative;
  background: transparent;
  color: var(--white);
  font-size: 1.3rem;
  padding: 8px;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -6px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-whatsapp {
  background: #25D366;
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-whatsapp:hover {
  background: #128C7E;
  transform: scale(1.05);
}

.nav-facebook {
  background: #1877F2;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.nav-facebook:hover {
  background: #0d65d9;
  transform: scale(1.08);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  overflow: hidden;
  margin-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.4) 50%, rgba(10,10,10,0.8) 100%),
              url('../images/hero.jpg') center/cover no-repeat;
  animation: zoomSlow 20s ease-in-out infinite alternate;
}

@keyframes zoomSlow {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: fadeUp 1s ease;
}

.hero-content h1 span {
  color: var(--gold);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeUp 1s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 1s ease 0.4s both;
}

.hero-advantages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 3rem;
  animation: fadeUp 1s ease 0.6s both;
}

.hero-hair-showcase {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  animation: fadeUp 1s ease 0.75s both;
}

.hero-hair-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(140deg, rgba(34, 14, 43, 0.65), rgba(33, 17, 52, 0.48));
  backdrop-filter: blur(8px);
}

.hero-hair-card img {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.28);
}

.hero-hair-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.hero-hair-copy strong {
  font-size: 0.9rem;
  color: #ffe2ab;
  font-weight: 700;
}

.hero-hair-copy span {
  font-size: 0.77rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}

.advantage-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 50px;
  border: 1px solid rgba(201,162,39,0.3);
  font-size: 0.85rem;
}

.advantage-item i {
  color: var(--gold);
}

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

/* Sections common */
section {
  padding: 80px 5%;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Categories */
.categories {
  background: var(--white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--beige);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: var(--transition);
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-info {
  padding: 18px;
  text-align: center;
}

.category-info h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--black);
}

.category-info p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 12px;
}

/* Products */
.products {
  background: var(--gray-light);
}

.catalog-group-invite {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0 auto 24px;
  padding: 20px 22px;
  overflow: hidden;
  border: 1px solid rgba(184, 119, 178, 0.24);
  border-radius: 20px;
  background: linear-gradient(110deg, #fff 0%, #fff6fb 55%, #f3efff 100%);
  box-shadow: 0 12px 32px rgba(88, 35, 88, 0.08);
}

.catalog-group-invite::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -78px;
  bottom: -104px;
  border: 25px solid rgba(209, 167, 225, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.catalog-group-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, #b26c9e, #6d60b5);
  box-shadow: 0 8px 18px rgba(113, 73, 146, 0.25);
}

.catalog-group-copy { min-width: 0; }
.catalog-group-kicker { margin: 0 0 4px; color: #a14e82; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.catalog-group-copy h3 { margin: 0 0 5px; color: #35213d; font-family: 'Playfair Display', serif; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.2; }
.catalog-group-copy > p:last-child { max-width: 700px; margin: 0; color: #6b5a6d; font-size: 0.9rem; line-height: 1.55; }
.catalog-group-cta { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 10px 15px; border: 0; border-radius: 999px; color: #fff; background: #6d60b5; box-shadow: 0 7px 17px rgba(91, 75, 155, 0.22); font: inherit; font-size: 0.84rem; font-weight: 700; white-space: nowrap; transition: var(--transition); }
.catalog-group-cta:hover { background: #594da0; transform: translateY(-2px); }

.products-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--beige);
  border-radius: 50px;
  padding: 8px 16px;
  flex: 1;
  max-width: 320px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--gold);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.95rem;
  padding-left: 8px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filters select {
  padding: 8px 14px;
  border-radius: 50px;
  border: 1px solid var(--beige-dark);
  background: var(--white);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.filters select:focus {
  border-color: var(--gold);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-nouveau { background: var(--gold); color: var(--black); }
.badge-promo { background: #e63946; color: white; }
.badge-best { background: var(--success); color: white; }
.badge-limite { background: #f77f00; color: white; }

.product-image {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--beige);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-video-badge {
  position: absolute;
  right: 11px;
  bottom: 11px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  color: #fff;
  background: rgba(42, 24, 60, .76);
  box-shadow: 0 5px 14px rgba(0,0,0,.18);
  font-size: .66rem;
  font-weight: 800;
}
.product-video-badge i { color: #ffcf6e; font-size: .58rem; }

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

.product-actions-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 20px 12px 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.product-card:hover .product-actions-overlay {
  opacity: 1;
  transform: translateY(0);
}

.product-info {
  padding: 18px;
}

.product-info h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--black);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.product-meta span {
  font-size: 0.75rem;
  background: var(--beige);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--gray);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-dark);
  font-family: var(--font-heading);
}

.price-old {
  font-size: 0.9rem;
  color: var(--gray);
  text-decoration: line-through;
}

.product-buttons {
  display: flex;
  gap: 8px;
}

.product-buttons .btn {
  flex: 1;
  padding: 10px;
  font-size: 0.8rem;
}

/* Product Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
}

.modal-close:hover {
  background: var(--gold);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.modal-gallery {
  background: var(--beige);
  padding: 20px;
}

.modal-main-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.modal-thumbs {
  display: flex;
  gap: 10px;
}

.modal-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.modal-thumbs img.active,
.modal-thumbs img:hover {
  border-color: var(--gold);
}

.modal-video-gallery { margin-top: 16px; }
.modal-video-gallery > p { margin: 0 0 9px; color: #5b3a65; font-size: .79rem; font-weight: 800; }
.modal-video-gallery > p i { margin-right: 5px; color: #a14e82; }
.modal-video-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 9px; }
.modal-video-list video { width: 100%; min-height: 145px; border-radius: 10px; background: #17131b; object-fit: cover; }

.modal-details {
  padding: 30px;
}

.modal-details h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.modal-price {
  font-size: 1.8rem;
  color: var(--gold-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 12px 0;
}

.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
  padding: 16px;
  background: var(--beige);
  border-radius: 10px;
}

.modal-specs div {
  font-size: 0.9rem;
}

.modal-specs strong {
  color: var(--black);
}

.modal-description {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.7;
}

.length-selector,
.qty-selector {
  margin-bottom: 16px;
}

.length-selector label,
.qty-selector label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.length-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.length-btn {
  padding: 8px 14px;
  border: 1px solid var(--beige-dark);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.85rem;
  transition: var(--transition);
}

.length-btn.active,
.length-btn:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 1px solid var(--beige-dark);
  border-radius: 8px;
  overflow: hidden;
}

.qty-control button {
  width: 36px;
  height: 36px;
  background: var(--beige);
  font-size: 1.1rem;
}

.qty-control button:hover {
  background: var(--gold);
}

.qty-control input {
  width: 50px;
  height: 36px;
  text-align: center;
  border: none;
  outline: none;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.modal-actions .btn {
  flex: 1;
}

.modal-actions .btn-group-purchase {
  flex-basis: 100%;
  background: linear-gradient(135deg, #277fca, #6c63c9);
  color: #fff;
  border-color: transparent;
}

.modal-actions .btn-group-purchase:hover { filter: brightness(1.06); }

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 95vw;
  height: 100vh;
  background: var(--white);
  z-index: 1500;
  box-shadow: -10px 0 40px rgba(0,0,0,0.2);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--beige-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--black);
  color: var(--white);
}

.cart-header h3 {
  font-size: 1.2rem;
  color: var(--gold);
}

.cart-close {
  background: transparent;
  color: var(--white);
  font-size: 1.4rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--beige);
}

.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

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

.cart-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.cart-item-info .meta {
  font-size: 0.8rem;
  color: var(--gray);
}

.cart-item-price {
  font-weight: 700;
  color: var(--gold-dark);
  margin-top: 4px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.cart-item-qty button {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--beige);
  font-size: 0.9rem;
}

.cart-item-remove {
  background: transparent;
  color: #e63946;
  font-size: 1.1rem;
  padding: 4px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--beige-dark);
  background: var(--beige);
}

.cart-summary {
  margin-bottom: 16px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.cart-summary-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  padding-top: 8px;
  border-top: 1px dashed var(--beige-dark);
}

.cart-city {
  margin-bottom: 16px;
}

.cart-city label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.cart-city input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--beige-dark);
  border-radius: 8px;
  outline: none;
  font-size: 0.95rem;
}

.cart-city input:focus {
  border-color: var(--gold);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Promotions */
.promotions {
  background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 100%);
  color: var(--white);
}

.promotions .section-title {
  color: var(--white);
}

.promotions .section-title::after {
  background: linear-gradient(90deg, var(--gold), var(--rose));
}

.promotions .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.promo-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.promo-card:hover {
  border-color: var(--gold);
  background: rgba(201,162,39,0.1);
  transform: translateY(-4px);
}

.promo-card h3 {
  color: var(--gold);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.promo-card p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 16px;
}

.promo-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Delivery */
.delivery {
  background: var(--white);
}

.delivery-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.delivery-text p {
  margin-bottom: 16px;
  color: var(--gray);
  line-height: 1.8;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.city-tag {
  background: var(--beige);
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.city-tag:hover {
  background: var(--gold);
  color: var(--black);
}

.delivery-visual {
  background: linear-gradient(135deg, var(--black), #1a1a1a);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  color: var(--white);
}

.delivery-visual i {
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 20px;
}

/* About */
.about {
  background: var(--beige);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--gray);
}

/* Testimonials */
.testimonials {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--beige);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.testimonial-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-weight: 700;
  font-size: 1.2rem;
}

.testimonial-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.testimonial-info span {
  font-size: 0.8rem;
  color: var(--gray);
}

.stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--gray);
  font-style: italic;
  line-height: 1.7;
}

/* FAQ */
.faq {
  background: var(--gray-light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--beige-dark);
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--black);
}

.faq-question:hover {
  color: var(--gold-dark);
}

.faq-question i {
  transition: var(--transition);
  color: var(--gold);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 20px 18px;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 16px;
  line-height: 1.7;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact i {
  color: var(--gold);
}

.footer h4 {
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--gold);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  padding-bottom: 80px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Floating social buttons */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

.floating-facebook {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1877F2, #0d65d9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 25px rgba(24, 119, 242, 0.45);
  transition: var(--transition);
}

.floating-facebook:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(24, 119, 242, 0.65);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 6px 35px rgba(37, 211, 102, 0.8); }
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--black);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  z-index: 3000;
  opacity: 0;
  transition: var(--transition);
  border: 1px solid var(--gold);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid rgba(201,162,39,0.3);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 16px;
    width: 100%;
  }

  .menu-toggle {
    display: flex;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .delivery-content {
    grid-template-columns: 1fr;
  }

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

  .cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    height: auto;
    min-height: 90vh;
    padding: 40px 0;
  }

  .hero-advantages {
    flex-direction: column;
    align-items: center;
  }

  .hero-hair-showcase {
    grid-template-columns: 1fr;
  }

  .products-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-group-invite { grid-template-columns: auto minmax(0, 1fr); gap: 13px; padding: 17px; }
  .catalog-group-cta { grid-column: 1 / -1; width: 100%; margin-top: 2px; }

  .search-box {
    max-width: 100%;
  }

  .filters {
    justify-content: center;
  }

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

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .cart-sidebar {
    width: 100%;
  }
}

/* Admin styles */
.admin-page {
  background: var(--gray-light);
  min-height: 100vh;
  padding: 40px 5%;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.admin-table {
  width: 100%;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--beige);
}

.admin-table th {
  background: var(--black);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-table tr:hover {
  background: var(--beige);
}

.admin-form {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--beige-dark);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--beige) 25%, var(--beige-dark) 50%, var(--beige) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Language Banner & Switcher ===== */
.lang-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  color: white;
  padding: 14px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.lang-banner.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.lang-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.lang-banner-inner span {
  font-size: 0.95rem;
  opacity: 0.9;
}

.lang-banner-btns {
  display: flex;
  gap: 10px;
}

.lang-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(201,162,39,0.5);
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--gold);
  color: #0a0a0a;
  border-color: var(--gold);
}

.lang-switcher-bottom {
  display: inline-flex;
  gap: 6px;
  margin-right: 16px;
  vertical-align: middle;
}

.lang-switcher-bottom .lang-btn {
  padding: 4px 12px;
  font-size: 0.75rem;
  border-color: rgba(201,162,39,0.4);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== Enhanced Motion Design ===== */

/* Smooth reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Product cards enhanced hover */
.product-card {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.18), 0 0 0 1px rgba(201,162,39,0.25);
}

.product-card .product-image img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-image img {
  transform: scale(1.12);
}

/* Category cards */
.category-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s;
}
.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(201,162,39,0.15);
}

/* Buttons glow / pulse */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}
.btn-primary:hover::after {
  width: 300px;
  height: 300px;
}

/* Floating WhatsApp stronger pulse */
.floating-whatsapp {
  animation: pulseWhatsapp 2.2s infinite;
}
@keyframes pulseWhatsapp {
  0%, 100% { 
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.75);
    transform: scale(1.06);
  }
}

/* Hero text animation */
.hero-content h1 {
  animation: fadeUpHero 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-content p {
  animation: fadeUpHero 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.hero-buttons {
  animation: fadeUpHero 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.hero-advantages {
  animation: fadeUpHero 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}
@keyframes fadeUpHero {
  from { opacity: 0; transform: translateY(35px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section titles underline animation */
.section-title::after {
  animation: expandLine 1s ease 0.3s both;
}
@keyframes expandLine {
  from { width: 0; }
  to { width: 80px; }
}

/* Soft background gradient shift on hero */
.hero-bg {
  animation: heroZoom 22s ease-in-out infinite alternate, gradientShift 15s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

/* Testimonial cards */
.testimonial-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Promo cards */
.promo-card {
  transition: transform 0.4s ease, border-color 0.3s, background 0.3s;
}
.promo-card:hover {
  transform: translateY(-6px) scale(1.02);
}

/* Smooth page scroll */
html {
  scroll-behavior: smooth;
}

/* Cart badge bounce */
.cart-count {
  animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes badgePop {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Modal entrance */
.modal.active .modal-content {
  animation: modalIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Stagger product grid on load */
.products-grid .product-card {
  opacity: 0;
  animation: cardFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.products-grid .product-card:nth-child(1) { animation-delay: 0.05s; }
.products-grid .product-card:nth-child(2) { animation-delay: 0.1s; }
.products-grid .product-card:nth-child(3) { animation-delay: 0.15s; }
.products-grid .product-card:nth-child(4) { animation-delay: 0.2s; }
.products-grid .product-card:nth-child(5) { animation-delay: 0.25s; }
.products-grid .product-card:nth-child(6) { animation-delay: 0.3s; }
.products-grid .product-card:nth-child(7) { animation-delay: 0.35s; }
.products-grid .product-card:nth-child(8) { animation-delay: 0.4s; }
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Mobile Performance Optimizations ===== */

/* Reduce motion for users who prefer it + low-end devices */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-bg { animation: none !important; }
  .floating-whatsapp { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Mobile-specific lighter styles */
@media (max-width: 768px) {
  /* Lighter shadows = better paint performance */
  .product-card,
  .category-card,
  .testimonial-card,
  .promo-card {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  }
  .product-card:hover,
  .category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }

  /* Disable expensive hover zoom on touch devices */
  .product-card:hover .product-image img {
    transform: none;
  }

  /* Simpler hero animation on mobile */
  .hero-bg {
    animation: none;
    transform: scale(1.05);
  }

  /* Reduce backdrop blur cost */
  .navbar {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* Touch-friendly targets */
  .btn, .nav-menu a, .cart-btn, .menu-toggle, .lang-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .product-buttons .btn {
    padding: 12px 10px;
    font-size: 0.8rem;
  }

  /* Contain layout for better scrolling */
  .product-card,
  .category-card,
  .testimonial-card {
    content-visibility: auto;
    contain-intrinsic-size: 320px;
  }

  /* Hide heavy decorative elements if any */
  .section-title::after {
    width: 50px;
  }

  /* Faster transitions on mobile */
  .product-card,
  .category-card,
  .btn {
    transition-duration: 0.2s;
  }
}

/* Prevent layout shift */
img {
  max-width: 100%;
  height: auto;
}

.product-image {
  aspect-ratio: 1 / 1.05;
  background: var(--beige);
}

.category-card img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

/* GPU acceleration for key animated elements only */
.floating-whatsapp,
.product-card,
.modal-content {
  will-change: transform;
}

/* After first interaction, remove will-change to free memory */
@media (hover: hover) {
  .product-card:hover {
    will-change: transform;
  }
}


/* ===== Hero Slider ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* 16:9 cover photo – full landscape, subject fully visible */
.hero-img-cover {
  object-fit: cover;
  object-position: center 30%;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.4) 0%,
    rgba(10,10,10,0.2) 40%,
    rgba(10,10,10,0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.hero-dot.active,
.hero-dot:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .hero {
    min-height: 85vh;
    height: auto;
    padding: 70px 0 50px;
  }
  .hero-img {
    object-position: center 15%;
  }
  .hero-img-cover {
    object-fit: cover !important;
    object-position: center 25% !important;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.15) 40%, rgba(10,10,10,0.55) 100%) !important;
  }
}

/* ===== Web design promo banner ===== */
.web-promo {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  padding: 40px 5%;
  border-top: 1px solid rgba(201,162,39,0.25);
}

.web-promo-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.web-promo-text h3 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.web-promo-text p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  max-width: 560px;
  line-height: 1.6;
  margin: 0;
}

.web-promo-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .web-promo-inner {
    flex-direction: column;
    text-align: center;
  }
  .web-promo-text p {
    max-width: 100%;
  }
}

/* ===== Mobile commerce experience ===== */
@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  section {
    padding: 56px 16px;
  }

  .navbar {
    height: 64px;
    padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  }

  .navbar.scrolled {
    height: 60px;
  }

  .nav-menu {
    top: 64px;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    padding: 12px max(16px, env(safe-area-inset-right)) 20px max(16px, env(safe-area-inset-left));
  }

  .nav-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero {
    margin-top: 64px;
    min-height: min(760px, calc(100dvh - 64px));
  }

  .hero-content {
    width: min(100%, 560px);
    padding: 0 20px;
  }

  .hero-buttons {
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }

  .products-toolbar {
    gap: 12px;
    padding: 12px;
    margin-bottom: 20px;
  }

  .filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px 0 6px;
    scrollbar-width: thin;
  }

  .filters select {
    flex: 0 0 auto;
    min-height: 42px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-image {
    height: auto;
  }

  .product-info {
    padding: 12px;
  }

  .product-info h3 {
    font-size: 0.95rem;
  }

  .product-meta {
    display: none;
  }

  .product-price {
    min-height: 32px;
    margin-bottom: 8px;
  }

  .price-current {
    font-size: 1.05rem;
  }

  .price-old {
    display: none;
  }

  .product-buttons {
    flex-direction: column;
    gap: 6px;
  }

  .product-buttons .btn {
    width: 100%;
    min-height: 40px;
    padding: 8px 6px;
    font-size: 0.7rem;
    letter-spacing: 0;
  }

  .product-actions-overlay {
    display: none;
  }

  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal-content {
    max-height: 100dvh;
    border-radius: 18px 18px 0 0;
  }

  .modal-gallery,
  .modal-details {
    padding: 16px;
  }

  .modal-main-img {
    height: min(55vw, 300px);
  }

  .modal-thumbs {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .modal-thumbs img {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
  }

  .modal-details h2 {
    font-size: 1.35rem;
    padding-right: 42px;
  }

  .modal-specs {
    padding: 12px;
    gap: 8px;
  }

  .length-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .length-btn {
    flex: 0 0 auto;
    min-height: 42px;
  }

  .modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 max(4px, env(safe-area-inset-bottom));
    margin-bottom: calc(-1 * max(4px, env(safe-area-inset-bottom)));
    background: var(--white);
  }

  .modal-actions .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.8rem;
    letter-spacing: 0.2px;
  }

  .cart-sidebar {
    width: 100%;
    max-width: none;
    right: -100%;
    height: 100dvh;
    padding-top: env(safe-area-inset-top);
  }

  .cart-header {
    min-height: 64px;
    padding: 14px 16px;
  }

  .cart-close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
  }

  .cart-items {
    padding: 8px 16px 16px;
    -webkit-overflow-scrolling: touch;
  }

  .cart-item {
    gap: 10px;
    padding: 12px 0;
  }

  .cart-item img {
    width: 76px;
    height: 76px;
  }

  .cart-item-info {
    min-width: 0;
  }

  .cart-item-info h4 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cart-item-qty button,
  .cart-item-remove {
    min-width: 36px;
    min-height: 36px;
  }

  .cart-footer {
    padding: 14px 16px max(16px, env(safe-area-inset-bottom));
  }

  .cart-summary-row {
    font-size: 0.85rem;
  }

  .cart-summary-row.total {
    font-size: 1rem;
  }

  .cart-city input {
    min-height: 44px;
  }

  .cart-footer .btn-whatsapp {
    min-height: 50px;
    font-size: 0.78rem;
    padding: 12px 10px;
  }

  .floating-whatsapp {
    width: 54px;
    height: 54px;
    right: auto;
    left: max(16px, env(safe-area-inset-left));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 389px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-buttons {
    flex-direction: row;
  }

  .product-buttons .btn {
    min-height: 44px;
    font-size: 0.78rem;
  }
}

/* ===== Private contribution groups ===== */
.groups {
  background: linear-gradient(135deg, #fffdf9 0%, #f5f0e8 100%);
}

.groups-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.groups-heading .section-title,
.groups-heading .section-subtitle {
  text-align: left;
  margin-left: 0;
}

.groups-heading .section-title::after {
  margin-left: 0;
}

.eyebrow {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.group-safety {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 850px;
  margin: 0 auto 24px;
  padding: 14px 16px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 10px;
  color: #654f0f;
  background: #fff9e8;
  font-size: 0.92rem;
}

.group-safety i { color: var(--gold-dark); margin-top: 3px; }

.groups-auth-prompt {
  max-width: 850px;
  margin: 0 auto;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.groups-auth-prompt h3 { margin-bottom: 5px; }
.groups-auth-prompt p { color: var(--gray); font-size: 0.92rem; }
.groups-dashboard { margin-top: 20px; }
#groupsAuthPrompt[hidden],
#groupsDashboard[hidden] { display: none !important; }

.account-signout {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #9b2b2b;
  font: inherit;
  cursor: pointer;
}
.account-signout:hover { text-decoration: underline; }

.dashboard-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.dashboard-tabs button {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--gray);
  background: var(--white);
  border: 1px solid var(--beige-dark);
  font-size: 0.85rem;
}

.dashboard-tabs button.active { color: var(--black); background: var(--gold); border-color: var(--gold); font-weight: 700; }
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

.group-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--beige-dark);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.group-card-content { padding: 20px; }
.group-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.group-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.group-card-product { color: var(--gray); font-size: 0.86rem; }
.group-status { padding: 4px 9px; border-radius: 999px; background: #f8efce; color: #735804; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.group-beneficiary { margin: 16px 0 10px; font-size: 0.86rem; color: var(--gray); }
.group-amounts { display: flex; justify-content: space-between; font-size: 0.84rem; margin: 8px 0; }
.group-amounts strong { color: var(--gold-dark); }
.group-progress { height: 9px; overflow: hidden; border-radius: 999px; background: var(--beige-dark); }
.group-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.group-card-meta { display: flex; gap: 14px; margin: 14px 0 18px; font-size: 0.8rem; color: var(--gray); }
.group-card-actions { display: flex; gap: 8px; }
.group-card-actions .btn { flex: 1; padding: 10px 8px; font-size: 0.75rem; }

.group-modal {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.group-modal.active { opacity: 1; visibility: visible; }
.group-modal-card { width: min(100%, 560px); max-height: min(90dvh, 760px); overflow-y: auto; padding: 28px; border-radius: 16px; background: var(--white); position: relative; }
.group-modal-card h2 { font-size: 1.55rem; margin-bottom: 8px; padding-right: 32px; }
.group-modal-card > p { color: var(--gray); font-size: 0.9rem; margin-bottom: 20px; }
.group-modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--beige); font-size: 1.15rem; }
.group-form { display: grid; gap: 14px; }
.group-form label { display: grid; gap: 6px; color: var(--black); font-weight: 600; font-size: 0.86rem; }
.group-form input, .group-form select, .group-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--beige-dark); border-radius: 8px; background: var(--white); font: inherit; }
.group-form input[type="checkbox"] { width: auto; padding: 0; }

/* ===== Yaoundé partner ===== */
.partner {
  background: var(--white);
}

.partner-content {
  max-width: 960px;
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}

.partner-photo-wrap {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
}

.partner-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.partner-city {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 8px 12px;
  border-radius: 50px;
  background: var(--black);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
}

.partner-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 8px;
}

.partner-copy h3 {
  margin-bottom: 18px;
  color: var(--gold-dark);
  font-size: 1.22rem;
}

.partner-copy > p:not(.eyebrow) {
  color: var(--gray);
  margin-bottom: 14px;
}

.partner-reassurance {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 15px;
  margin: 20px 0 22px !important;
  border-left: 3px solid var(--gold);
  border-radius: 0 9px 9px 0;
  background: var(--beige);
  color: var(--black) !important;
  font-size: 0.9rem;
}

.partner-reassurance i { color: var(--gold-dark); margin-top: 3px; }
.partner-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .partner-content { grid-template-columns: 1fr; gap: 28px; }
  .partner-photo-wrap { max-width: min(100%, 310px); }
  .partner-copy { text-align: center; }
  .partner-reassurance { text-align: left; }
  .partner-actions { justify-content: center; }
}
.group-form textarea { min-height: 84px; resize: vertical; }
.group-form small { color: var(--gray); font-weight: 400; }
.auth-options { display: grid; gap: 10px; }
.auth-options .btn { width: 100%; text-transform: none; }

/* ===== Auth box — clean, professional sign-in (Google/Amazon style) ===== */
.authbox { padding: 4px 0; }
.authbox-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; }
.authbox-logo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.authbox-brand span { font-family: var(--font-heading); font-size: 1.05rem; color: var(--black); letter-spacing: 0.2px; }
h2.authbox-title { text-align: center; font-family: var(--font-heading); font-size: 1.5rem; color: var(--black); margin-bottom: 6px; }
.authbox-subtitle { text-align: center; color: var(--gray); font-size: 0.88rem; margin-bottom: 22px; line-height: 1.5; }
.authbox-panel { display: block; }
.authbox-error { background: #fdecec; color: #a12626; border: 1px solid #f3c6c6; border-radius: 8px; padding: 11px 14px; font-size: 0.85rem; margin-bottom: 16px; line-height: 1.5; }
.btn-google-official { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 20px; background: white; color: #3c4043; border: 1px solid #dadce0; border-radius: 8px; font-weight: 600; font-size: 0.92rem; font-family: inherit; cursor: pointer; transition: box-shadow 0.2s, background 0.2s; }
.btn-google-official:hover { background: #f8f9fa; box-shadow: 0 1px 6px rgba(0,0,0,0.12); }
.btn-google-official:disabled { opacity: 0.7; cursor: default; }
.authbox-divider { display: flex; align-items: center; gap: 12px; color: var(--gray); font-size: 0.82rem; margin: 18px 0; }
.authbox-divider::before, .authbox-divider::after { content: ''; flex: 1; height: 1px; background: var(--beige-dark); }
.authbox-form { display: grid; gap: 14px; }
.authbox-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--black); }
.authbox-form input { width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid var(--beige-dark); border-radius: 8px; font-size: 0.95rem; font-family: inherit; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.authbox-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,0.15); }
.authbox-forgot { justify-self: start; font-size: 0.83rem; color: var(--gold-dark); text-decoration: none; margin-top: -6px; }
.authbox-forgot:hover { text-decoration: underline; }
.btn-authbox-primary { width: 100%; padding: 12px 20px; border: none; border-radius: 8px; background: var(--black); color: white; font-weight: 600; font-size: 0.95rem; font-family: inherit; cursor: pointer; transition: background 0.2s, opacity 0.2s; }
.btn-authbox-primary:hover { background: #262626; }
.btn-authbox-primary:disabled { opacity: 0.7; cursor: default; }
.authbox-switch { text-align: center; font-size: 0.88rem; color: var(--gray); margin-top: 20px; }
.authbox-switch a { color: var(--gold-dark); font-weight: 600; text-decoration: none; }
.authbox-switch a:hover { text-decoration: underline; }

/* ===== Welcome screen (after account creation) ===== */
.welcome-screen { text-align: center; padding: 8px 4px 4px; }
.welcome-check { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: #e8f8ef; color: #1a7a47; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
h2.welcome-title { font-family: var(--font-heading); font-size: 1.45rem; color: var(--black); margin-bottom: 10px; }
.welcome-text { color: var(--gray); font-size: 0.9rem; line-height: 1.7; margin-bottom: 22px; }
.welcome-perks { display: flex; justify-content: center; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.welcome-perk { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--gray); font-weight: 600; }
.welcome-perk i { width: 42px; height: 42px; border-radius: 50%; background: var(--beige); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; color: var(--gold-dark); }
.btn-welcome { background: var(--black); color: white; border-radius: 8px !important; padding: 13px 32px; font-size: 0.95rem; font-weight: 600; width: 100%; }
.btn-welcome:hover { background: #262626; }
.group-payment-warning { padding: 12px; border-radius: 8px; background: #fff5f5; color: #8c2e2e; font-size: 0.84rem; }
.payment-account-picker { display: grid; gap: 10px; padding: 14px; border: 1px solid #ead8c4; border-radius: 12px; background: #fffaf4; }
.payment-account-picker legend { padding: 0 6px; color: var(--black); font-weight: 700; font-size: 0.9rem; }
.payment-account-option { display: grid !important; grid-template-columns: auto 42px 1fr; align-items: center; gap: 10px !important; padding: 11px; border: 1px solid var(--beige-dark); border-radius: 10px; background: var(--white); cursor: pointer; }
.payment-account-option:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(179,139,74,0.14); }
.payment-account-option input { width: 18px !important; height: 18px; accent-color: var(--gold); }
.payment-account-option small { display: block; margin-top: 3px; line-height: 1.45; }
.payment-account-logo { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #fff; font-size: 0.72rem; font-weight: 800; }
.payment-account-logo.orange { background: #f47920; }
.payment-account-logo.mtn { background: #ffcb05; color: #171717; }
.payment-security-note { display: flex; gap: 9px; align-items: flex-start; padding: 12px; border-radius: 8px; background: #edf9f3; color: #156849 !important; font-size: 0.82rem !important; margin: 0 !important; }
.payment-security-note i { margin-top: 2px; }
.payment-proof-field { padding: 13px; border-radius: 10px; border: 1px dashed var(--gold); background: #fffdf8; }
.payment-proof-field input[type="file"] { padding: 9px; background: var(--white); }
.group-completed-label { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:42px; padding:9px 14px; border-radius:999px; background:#e7f7ee; color:#167046; font-size:.82rem; font-weight:700; }
.group-message-list { max-height: 270px; overflow-y: auto; padding: 12px; border-radius: 10px; background: var(--gray-light); }
.group-message { padding: 9px 11px; margin-bottom: 8px; border-radius: 10px; background: var(--white); font-size: 0.88rem; }
.group-message strong { display: block; margin-bottom: 2px; font-size: 0.78rem; color: var(--gold-dark); }
.group-system-message { background: #fff9e8; color: #654f0f; font-size: 0.82rem; text-align: center; }

@media (max-width: 768px) {
  .account-label { display: none; }
  .account-btn { min-width: 44px; min-height: 44px; padding: 8px; background: transparent; color: var(--white); font-size: 1.1rem; }
  .groups-heading, .groups-auth-prompt { align-items: stretch; flex-direction: column; }
  .groups-heading .btn, .groups-auth-prompt .btn { width: 100%; }
  .groups-heading .section-subtitle { margin-bottom: 0; }
  .groups-grid { grid-template-columns: 1fr; }
  .group-modal { align-items: end; padding: 0; }
  .group-modal-card { width: 100%; max-height: 92dvh; border-radius: 18px 18px 0 0; padding: 24px 16px max(24px, env(safe-area-inset-bottom)); }
}

@media (min-width: 769px) {
  .account-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; color: var(--white); background: transparent; font-size: 0.8rem; }
  .account-btn:hover { color: var(--gold); }
}

/* ===== Video promotion carousel ===== */
.video-showcase {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 14%, rgba(255, 111, 149, 0.35), transparent 26%),
    radial-gradient(circle at 92% 80%, rgba(98, 203, 255, 0.28), transparent 30%),
    linear-gradient(135deg, #171127 0%, #261740 55%, #17243c 100%);
  color: var(--white);
}

.video-showcase::before,
.video-showcase::after {
  content: '';
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.video-showcase::before { top: -95px; right: 8%; }
.video-showcase::after { bottom: -125px; left: 18%; width: 280px; height: 280px; }
.video-showcase .container { position: relative; z-index: 1; }

.video-showcase-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.video-showcase .eyebrow { color: #ffd86e; }
.video-showcase .section-title,
.video-showcase .section-subtitle { text-align: left; margin-left: 0; color: var(--white); }
.video-showcase .section-title::after { margin-left: 0; background: #ffcf58; }
.video-showcase .section-subtitle { max-width: 700px; color: rgba(255,255,255,0.8); margin-bottom: 0; }
.video-showcase .btn-primary { background: #ff4f86; border-color: #ff4f86; box-shadow: 0 10px 25px rgba(255,79,134,0.32); white-space: nowrap; }
.video-showcase .btn-primary:hover { background: #ff2e70; border-color: #ff2e70; }

.video-carousel { position: relative; padding: 0 56px; }
.video-carousel-viewport { position: relative; overflow: hidden; border-radius: 24px; outline: none; }
.video-carousel-viewport:focus-visible { box-shadow: 0 0 0 4px rgba(255, 216, 110, 0.65); }
.video-carousel-viewport::after {
  content: '✦  ✧  ✦';
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  pointer-events: none;
  color: #fff0b7;
  font: 800 clamp(1.2rem, 3vw, 2rem)/1 "Montserrat", sans-serif;
  letter-spacing: .26em;
  opacity: 0;
  text-shadow: 0 0 24px #ff71a7, 0 0 42px #9ceaff;
  transform: translate(-50%, -50%) scale(.3) rotate(-12deg);
}
.video-carousel-viewport.is-clicking::after { animation: feminine-video-bloom .72s cubic-bezier(.2,.8,.25,1) both; }
@keyframes feminine-video-bloom {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(-12deg); }
  38% { opacity: 1; transform: translate(-50%, -50%) scale(1.16) rotate(5deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.65) rotate(12deg); }
}
.video-carousel-track { display: flex; transition: transform 560ms cubic-bezier(.2,.8,.2,1); will-change: transform; }

.video-promo-card {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  background: rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
}

.video-frame { position: relative; min-height: 350px; overflow: hidden; background: #0b0b0e; }
.video-frame video { width: 100%; height: 100%; min-height: 350px; object-fit: cover; display: block; background: #0b0b0e; }
.video-label {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(14, 11, 29, 0.74);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.76rem;
  font-weight: 700;
}
.video-label i { color: #ffd86e; }
.video-promo-copy { align-self: center; padding: clamp(28px, 5vw, 64px); }
.video-promo-copy > span { color: #ffd86e; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.video-promo-copy h3 { color: var(--white); font-size: clamp(1.75rem, 3.2vw, 3rem); line-height: 1.08; margin: 12px 0; }
.video-promo-copy p { max-width: 420px; color: rgba(255,255,255,0.78); font-size: 1rem; }

/* Kinetic copy inspired by a polished music-video title treatment. */
.video-story-copy {
  position: relative;
  display: flex;
  min-height: 350px;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(65, 31, 104, .38), rgba(8, 19, 43, .3));
}
.video-story-copy::before {
  content: 'GLOW';
  position: absolute;
  z-index: -1;
  right: -0.06em;
  bottom: -0.27em;
  color: rgba(255,255,255,.045);
  font: 700 clamp(7rem, 18vw, 15rem)/.8 "Montserrat", sans-serif;
  letter-spacing: -.1em;
  pointer-events: none;
}
.video-story-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.52); font-size: .66rem; font-weight: 700; letter-spacing: .13em; }
.video-story-live { color: #ffd86e; }
.video-story-live i { margin-right: 6px; color: #ff4f86; font-size: .53rem; animation: video-pulse 1.1s ease-in-out infinite; }
.video-story-rotator { margin-top: 22px; min-height: 171px; transition: opacity .25s ease, transform .25s ease; }
.video-story-rotator.is-changing { opacity: 0; transform: translateY(14px) skewY(1deg); }
.video-story-kicker { margin: 0 0 11px !important; color: #83e2ff !important; font-size: .68rem !important; font-weight: 800; letter-spacing: .16em; }
.video-story-copy h3 { max-width: 560px; margin: 0 0 15px; font-size: clamp(2rem, 4.1vw, 4rem); letter-spacing: -.055em; text-wrap: balance; }
.video-story-text { margin: 0 !important; max-width: 510px !important; color: rgba(255,255,255,.84) !important; font-size: clamp(.95rem, 1.35vw, 1.1rem) !important; line-height: 1.65; }
.video-story-equalizer { display: flex; height: 18px; align-items: end; gap: 4px; margin-top: 26px; }
.video-story-equalizer i { width: 4px; border-radius: 99px; background: linear-gradient(#83e2ff, #ff5a91); animation: video-eq .9s ease-in-out infinite alternate; }
.video-story-equalizer i:nth-child(1) { height: 7px; animation-delay: -.2s; }
.video-story-equalizer i:nth-child(2) { height: 16px; animation-delay: -.6s; }
.video-story-equalizer i:nth-child(3) { height: 10px; animation-delay: -.1s; }
.video-story-equalizer i:nth-child(4) { height: 18px; animation-delay: -.45s; }
.video-story-equalizer i:nth-child(5) { height: 8px; animation-delay: -.8s; }
@keyframes video-pulse { 50% { opacity: .3; transform: scale(.7); } }
@keyframes video-eq { to { height: 3px; } }
.video-product-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; color: #fff; background: rgba(255,255,255,.1); font: inherit; font-size: .77rem; font-weight: 800; transition: var(--transition); }
.video-product-link:hover { border-color: #ffcae1; color: #fff0b7; background: rgba(255,103,157,.24); transform: translateY(-2px); }

.video-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 50%;
  color: #20133a;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  transform: translateY(-50%);
}
.video-carousel-btn:hover { color: var(--white); background: #ff4f86; border-color: #ff4f86; }
.video-carousel-btn.prev { left: 0; }
.video-carousel-btn.next { right: 0; }
.video-carousel-dots { display: flex; justify-content: center; gap: 9px; margin-top: 20px; }
.video-carousel-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.38); }
.video-carousel-dots button.active { width: 26px; border-radius: 99px; background: #ffd86e; }

/* ===== Textures : social, bright and playful ===== */
.categories { background: linear-gradient(180deg, #fff 0%, #fff8fb 100%); }
.texture-eyebrow { text-align: center; color: #ef4e83; }
.categories-grid { gap: 22px; }
.category-card { border: 1px solid #f0dce7; background: var(--white); border-radius: 20px; box-shadow: 0 10px 30px rgba(78, 26, 73, 0.08); }
.category-card:hover { border-color: #ff78a4; box-shadow: 0 18px 36px rgba(238, 77, 131, 0.2); }
.texture-image-wrap { position: relative; overflow: hidden; }
.category-card img { height: 208px; }
.texture-image-wrap::after { content: ''; position: absolute; inset: auto 0 0; height: 54%; background: linear-gradient(transparent, rgba(18,9,27,0.42)); pointer-events: none; }
.texture-icon { position: absolute; z-index: 1; top: 14px; left: 14px; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 14px; color: #8d1e56; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,0.16); }
.texture-reaction { position: absolute; z-index: 1; right: 13px; bottom: 13px; padding: 7px 10px; border-radius: 999px; color: var(--white); background: rgba(28, 19, 49, 0.76); font-size: 0.72rem; font-weight: 700; }
.texture-reaction i { color: #ff6f9e; margin-right: 4px; }
.category-info { padding: 19px 18px 20px; }
.category-info h3 { color: #35162a; }
.category-info .btn-outline { border-color: #e7a1bd; color: #a61f5b; }
.category-info .btn-outline:hover { color: var(--white); background: #e9427c; border-color: #e9427c; }

/* ===== Groups : warm community dashboard ===== */
.groups { position: relative; overflow: hidden; background: radial-gradient(circle at 8% 0%, rgba(108, 185, 255, 0.23), transparent 29%), radial-gradient(circle at 95% 92%, rgba(255, 191, 91, 0.25), transparent 30%), linear-gradient(135deg, #f7fbff, #fff7fb 62%, #fffdf3); }
.groups::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.6; background-image: radial-gradient(#e5a2be 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to bottom, black, transparent 75%); }
.groups .container { position: relative; z-index: 1; }
.groups-heading { padding: 24px; border: 1px solid rgba(126, 183, 231, 0.35); border-radius: 22px; background: rgba(255,255,255,0.76); box-shadow: 0 13px 30px rgba(48, 91, 132, 0.08); }
.groups-heading .eyebrow { color: #1776bd; }
.groups-heading .btn-primary { background: linear-gradient(135deg, #218dd4, #5762cf); border-color: #218dd4; box-shadow: 0 10px 20px rgba(33, 141, 212, 0.25); }
.groups-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.groups-heading-actions .btn { padding: 9px 18px; font-size: 0.78rem; letter-spacing: 0.4px; border-radius: 50px; font-weight: 600; border-width: 1.5px; }
.groups-heading-actions .btn-outline { color: #b04d80; border-color: #e8a3c5; background: rgba(255,255,255,.85); }
.groups-heading-actions .btn-outline:hover { color: #fff; background: #d05a8c; border-color: #d05a8c; }
.groups-heading .btn-primary { background: linear-gradient(135deg, #e8538d, #b83077); border-color: #e8538d; box-shadow: 0 6px 18px rgba(184, 48, 119, 0.28); }
.group-safety { border: 1px solid #b9e4d2; background: #f0fff8; color: #186042; box-shadow: 0 8px 20px rgba(24, 96, 66, 0.06); }
.group-safety i { color: #16a16b; }
.groups-auth-prompt { border: 1px solid #dce9f7; border-radius: 20px; background: linear-gradient(110deg, #fff, #f1f8ff); box-shadow: 0 15px 34px rgba(45, 113, 168, 0.1); }
.groups-auth-prompt h3 { color: #253e68; }
.groups-auth-prompt .btn-outline { border-color: #78aee2; color: #196daf; }
.groups-auth-prompt .btn-outline:hover { color: #fff; background: #278bd1; border-color: #278bd1; }
.dashboard-tabs button.active { color: var(--white); background: linear-gradient(135deg, #218dd4, #6d59c9); border-color: #218dd4; }
.group-card { border: 1px solid #d8e7f5; border-top: 5px solid #5a9ddb; border-radius: 18px; box-shadow: 0 12px 30px rgba(34, 101, 157, 0.1); transition: transform .25s ease, box-shadow .25s ease; }
.group-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(34, 101, 157, 0.16); }
.group-card-content { padding: 21px; }
.group-title-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.group-community-icon { flex: 0 0 auto; display: grid; width: 39px; height: 39px; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #ff7b9e, #8a6dd7); box-shadow: 0 7px 15px rgba(194, 77, 132, 0.25); }
.group-card h3 { color: #2b3157; }
.group-card-product { color: #60708e; }
.group-status { color: #17623f; background: #e7faef; }
.group-status i { margin-right: 3px; }
.group-beneficiary { color: #53627e; }
.group-beneficiary i { color: #f4933b; }
.group-amounts strong { color: #1979bb; }
.group-progress { height: 10px; background: #e7edf6; }
.group-progress span { background: linear-gradient(90deg, #36a5e8, #7d70df 52%, #f176a1); }
.group-card-meta { color: #66748d; }
.group-card-actions .btn-primary { background: #277fca; border-color: #277fca; }
.group-card-actions .btn-outline { color: #246ead; border-color: #9ec8ed; }
.group-invite-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0; padding: 14px; border: 1px dashed #73a9d8; border-radius: 14px; color: #1c4770; background: #eff8ff; }
.group-invite-code span { font-size: clamp(1.05rem, 4vw, 1.35rem); font-weight: 800; letter-spacing: .12em; }
.group-message-list { border: 1px solid #dce8f4; background: #f4f8fc; }
.group-message { max-width: 86%; border-radius: 16px 16px 16px 4px; border: 1px solid #dce8f4; box-shadow: 0 3px 7px rgba(40, 91, 135, 0.05); }
.group-message:nth-child(even):not(.group-system-message) { margin-left: auto; border-radius: 16px 16px 4px 16px; color: #fff; background: linear-gradient(135deg, #318cd2, #6c63c9); border-color: transparent; }
.group-message:nth-child(even):not(.group-system-message) strong { color: #e6f4ff; }
.group-system-message { max-width: 100%; border-radius: 12px; background: #fff7dc; color: #765d14; border-color: #f2df99; }

/* ===== Discussion chat plein écran design féminin ===== */
.discussion-modal-card {
  width: min(100%, 720px) !important;
  height: min(92dvh, 900px) !important;
  max-height: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
  overflow: hidden !important;
  border-radius: 24px !important;
  background: #fff5fa;
}
.discussion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, #e8538d 0%, #c2407a 55%, #9a2f6b 100%);
  flex-shrink: 0;
  border-radius: 24px 24px 0 0;
}
.discussion-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.discussion-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,0.18); display: grid; place-items: center;
  font-size: 1.15rem; color: #fff; flex-shrink: 0;
}
.discussion-title h2 {
  font-size: 1.05rem; color: #fff; margin: 0; padding: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700;
}
.discussion-title small { font-size: 0.71rem; color: rgba(255,255,255,0.8); font-weight: 500; display: block; margin-top: 1px; }
.discussion-close-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.18); color: #fff;
  font-size: 0.95rem; display: grid; place-items: center;
  border: none; cursor: pointer; flex-shrink: 0;
  transition: background 0.2s;
}
.discussion-close-btn:hover { background: rgba(255,255,255,0.32); }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(to bottom, #fff0f6 0%, #fff 60%);
  min-height: 0;
}
.chat-message { display: flex; flex-direction: column; max-width: 74%; }
.chat-mine  { align-self: flex-end;   align-items: flex-end; }
.chat-theirs { align-self: flex-start; align-items: flex-start; }
.chat-author { font-size: 0.69rem; font-weight: 700; color: #b06090; margin-bottom: 3px; padding-left: 4px; }
.chat-bubble {
  padding: 10px 14px; line-height: 1.55; font-size: 0.88rem;
  white-space: pre-wrap; word-break: break-word;
}
.chat-mine .chat-bubble {
  background: linear-gradient(135deg, #e8538d, #b83077);
  color: #fff; border-radius: 20px 20px 6px 20px;
}
.chat-theirs .chat-bubble {
  background: #fff; color: var(--black);
  border: 1.5px solid #f2d5e5;
  box-shadow: 0 2px 8px rgba(180, 80, 120, 0.07);
  border-radius: 20px 20px 20px 6px;
}
.chat-time { font-size: 0.64rem; color: #b0a0a8; margin-top: 3px; padding: 0 4px; }
.chat-system { align-self: center; max-width: 90%; }
.chat-system span {
  display: block; font-size: 0.76rem; color: #8a6a50;
  background: #fff8e8; border: 1px solid #f2ddb0;
  border-radius: 12px; padding: 5px 12px; text-align: center;
}
.chat-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #c0a0b0; gap: 10px; padding: 40px 0;
}
.chat-empty i { font-size: 2.2rem; opacity: 0.45; }
.chat-empty span { font-size: 0.88rem; text-align: center; }
.chat-input-area {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid #f2d5e5; flex-shrink: 0;
}
.chat-textarea {
  flex: 1; padding: 10px 14px; border: 1.5px solid #f0c0d8; border-radius: 22px;
  font: inherit; font-size: 0.9rem; resize: none; min-height: 44px; max-height: 110px;
  outline: none; overflow-y: auto; transition: border-color 0.2s; background: #fff9fb;
}
.chat-textarea:focus { border-color: #e8538d; background: #fff; }
.chat-send-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #e8538d, #b83077);
  color: #fff; font-size: 0.95rem; display: grid; place-items: center;
  border: none; cursor: pointer; flex-shrink: 0;
  transition: opacity 0.2s, transform 0.15s;
}
.chat-send-btn:hover { opacity: 0.88; transform: scale(1.06); }
/* Override du groupe-modal quand la discussion est ouverte */
.group-modal[data-mode="discussion"] { align-items: center; padding: 16px; }

@media (max-width: 768px) {
  .group-modal[data-mode="discussion"] { align-items: stretch; padding: 0; }
  .discussion-modal-card {
    width: 100% !important;
    height: 100dvh !important;
    max-height: none !important;
    border-radius: 0 !important;
  }
  .discussion-header { border-radius: 0; }
}

@media (max-width: 768px) {
  .video-showcase { padding-left: 16px; padding-right: 16px; }
  .video-showcase-heading { align-items: stretch; flex-direction: column; }
  .video-showcase-heading .btn { width: 100%; }
  .video-carousel { padding: 0; }
  .video-promo-card { grid-template-columns: 1fr; border-radius: 19px; }
  .video-frame, .video-frame video { min-height: min(78vw, 410px); max-height: 410px; }
  .video-promo-copy { padding: 22px 20px 25px; }
  .video-promo-copy h3 { font-size: 1.62rem; }
  .video-story-copy { min-height: 275px; }
  .video-story-rotator { min-height: 140px; margin-top: 17px; }
  .video-story-copy h3 { font-size: clamp(1.85rem, 9vw, 2.55rem); }
  .video-carousel-btn { top: min(39vw, 205px); width: 40px; height: 40px; }
  .video-carousel-btn.prev { left: 8px; }
  .video-carousel-btn.next { right: 8px; }
  .groups-heading { padding: 19px; }
  .groups-heading-actions { align-items: stretch; width: 100%; }
  .groups-heading-actions .btn { flex: 1 1 130px; padding: 10px 14px; font-size: 0.75rem; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; min-height: 48px; }
  .group-card-top { gap: 8px; }
  .group-status { font-size: 0.66rem; padding: 4px 7px; }
  .group-card-meta { gap: 10px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .video-carousel-track { transition: none; }
  .video-carousel-viewport.is-clicking::after { animation: none; }
}
