:root {
    --primary: #D4AF37; /* Champagne Gold */
    --secondary: #000000; /* Deep Black */
    --text: #333333;
    --white: #FFFFFF;
    --crystal: #C0C0C0;
    --accent-blue: #002366;
    --accent-red: #722F37;
    --bg-light: #F9F9F9;
    --border: #EEEEEE;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

header { background: var(--secondary); color: var(--white); padding: 15px 5%; position: sticky; top: 0; z-index: 1000; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--primary); }
.logo { font-size: 24px; font-weight: bold; color: var(--primary); letter-spacing: 2px; }
.logo span { display: block; font-size: 10px; color: var(--crystal); text-transform: uppercase; font-weight: normal; }
nav ul { display: flex; gap: 20px; }
nav ul li a:hover { color: var(--primary); }

.hero { background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../img/hero-bg.webp'); background-size: cover; background-position: center; padding: 80px 5%; text-align: center; color: var(--white); }
.hero h1 { font-size: 2.2rem; color: var(--primary); margin-bottom: 15px; text-transform: uppercase; line-height: 1.2; }
.hero p { max-width: 800px; margin: 0 auto 25px; font-size: 1.1rem; color: var(--crystal); }
.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 30px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; font-size: 0.9rem; color: var(--primary); }

.btn { padding: 12px 25px; border-radius: 4px; font-weight: bold; cursor: pointer; display: inline-block; transition: 0.3s; border: none; text-align: center; }
.btn-primary { background: var(--primary); color: var(--secondary); }
.btn-primary:hover { background: #b8962d; }
.btn-secondary { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--secondary); }
.btn-whatsapp { background: #25D366; color: white; }
.btn-whatsapp:hover { background: #1ebe57; }
.btn-sm { padding: 8px 15px; font-size: 0.85rem; }

.section { padding: 60px 5%; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 1.8rem; color: var(--secondary); position: relative; text-transform: uppercase; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--primary); margin: 15px auto; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card { border: 1px solid var(--border); padding: 20px; border-radius: 8px; transition: 0.3s; background: #fff; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.product-img { width: 100%; aspect-ratio: 1/1; background: #f4f4f4; border-radius: 4px; margin-bottom: 15px; }
.product-info h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--secondary); }
.product-info p { font-size: 0.9rem; margin-bottom: 8px; }
.card-btns { margin-top: auto; display: grid; gap: 10px; padding-top: 15px; }

.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
.step { text-align: center; }
.step span { display: inline-block; width: 40px; height: 40px; line-height: 40px; background: var(--primary); color: var(--secondary); border-radius: 50%; font-weight: bold; margin-bottom: 10px; }
.step p { font-size: 0.85rem; font-weight: 500; }

.geo-content { background: #fff; padding: 30px; border-radius: 8px; }
.geo-content h3 { margin-bottom: 15px; color: var(--secondary); font-size: 1.2rem; }
.geo-content p { margin-bottom: 20px; color: #555; }

.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 25px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.faq-item h4 { margin-bottom: 10px; color: var(--secondary); }
.faq-item p { color: #555; font-size: 0.95rem; }

.custom-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.custom-list li { margin-bottom: 10px; padding-left: 20px; position: relative; font-size: 0.95rem; }
.custom-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: bold; }
.process-steps.vertical { display: flex; flex-direction: column; text-align: left; }
.process-steps.vertical .step { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; text-align: left; }

.contact-card { text-align: center; max-width: 600px; margin: 0 auto; background: #fff; padding: 40px; border: 1px solid var(--border); border-radius: 8px; }
.contact-card h3 { margin-bottom: 20px; color: var(--secondary); }

.floating-wa { position: fixed; bottom: 20px; right: 20px; background: #25D366; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 2000; transition: 0.3s; }
.floating-wa:hover { transform: scale(1.1); }

footer { background: var(--secondary); color: var(--crystal); padding: 50px 5% 30px; border-top: 4px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }

@media (max-width: 768px) {
    header { padding: 10px 5%; }
    nav { display: none; }
    .hero { padding: 60px 5%; }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 1rem; }
    .section-title { font-size: 1.5rem; }
    .custom-layout { grid-template-columns: 1fr; }
    .footer-grid { gap: 30px; }
}

/* ── Product Modal ── */
.product-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.product-modal-overlay.active { display: flex; }
.product-modal {
  background: #fff;
  border-radius: 10px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 24px;
}
.product-modal img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  max-height: 320px;
}
.product-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  cursor: pointer;
  background: none;
  border: none;
  color: #555;
  line-height: 1;
}
.product-modal-close:hover { color: #000; }
.product-modal h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.product-modal-meta { font-size: .9rem; color: #555; margin-bottom: 16px; line-height: 1.8; }
.modal-wa-btn {
  display: inline-block;
  background: #25D366;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 8px;
}
.modal-wa-btn:hover { background: #1ebe57; color: #fff; }
.product-card img { cursor: zoom-in; }
.btn-view {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: .9rem;
  transition: .3s;
}
.btn-view:hover { background: var(--primary); color: var(--secondary); }
.style-code { font-size: .8rem; color: #888; margin-bottom: 4px; }
.product-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }


/* CRYSTELLE V4 checked fixes */
.product-card > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  margin-bottom: 15px;
  background: #f4f4f4;
}
.product-card > img:hover { opacity: 0.92; }
@media (max-width: 768px) {
  header { flex-wrap: wrap; align-items: flex-start; }
  nav { display: block; width: 100%; margin-top: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  nav ul { display: flex; flex-wrap: nowrap; gap: 14px; min-width: max-content; padding-bottom: 6px; }
  nav ul li a { font-size: 0.9rem; white-space: nowrap; }
  .product-modal { max-height: 88vh; padding: 18px; }
  .product-modal img { max-height: 45vh; object-fit: contain; }
}


/* CRYSTELLE V4.1 true image lightbox fix */
.product-card > img,
.gallery-card > img,
.product-img-clickable {
  cursor: zoom-in !important;
}

.product-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86) !important;
  z-index: 99999 !important;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.product-modal-overlay.active {
  display: flex !important;
}

.product-modal {
  background: #ffffff;
  color: #222222;
  border-radius: 14px;
  width: min(1120px, 96vw) !important;
  max-width: min(1120px, 96vw) !important;
  max-height: 92vh !important;
  overflow: auto;
  position: relative;
  padding: 18px !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.product-modal img#modalImg {
  width: 100% !important;
  height: auto !important;
  max-height: 82vh !important;
  object-fit: contain !important;
  border-radius: 10px;
  background: #f6f6f6;
  display: block;
}

.product-modal .modal-detail-panel {
  display: block;
  padding: 10px 4px 4px;
}

.product-modal h3#modalName {
  margin: 8px 42px 12px 0 !important;
  font-size: 1.25rem !important;
  line-height: 1.35;
  color: #111;
}

.product-modal-meta {
  font-size: .95rem !important;
  color: #444 !important;
  margin-bottom: 18px !important;
  line-height: 1.8 !important;
}

.product-modal-close {
  position: sticky !important;
  top: 0 !important;
  float: right;
  margin-left: auto;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #111 !important;
  color: #fff !important;
  border: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px !important;
  cursor: pointer;
}

.product-modal-close:hover {
  background: #333 !important;
  color: #fff !important;
}

.modal-wa-btn {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .product-modal {
    width: 96vw !important;
    max-width: 96vw !important;
    max-height: 92vh !important;
    display: block;
    padding: 14px !important;
  }
  .product-modal img#modalImg {
    max-height: 58vh !important;
    margin-bottom: 14px;
  }
  .product-modal h3#modalName {
    font-size: 1.08rem !important;
  }
}


/* CRYSTELLE V4.2 REAL LIGHTBOX - no inline onclick dependency */
.product-card > img,
.gallery-card > img,
.js-product-detail {
  cursor: zoom-in !important;
}

.cru-lightbox-overlay {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0,0,0,.9) !important;
  z-index: 2147483000 !important;
  padding: 18px !important;
  align-items: center !important;
  justify-content: center !important;
}

.cru-lightbox-overlay.is-open {
  display: flex !important;
}

.cru-lightbox-panel {
  width: min(1180px, 96vw) !important;
  max-height: 94vh !important;
  background: #fff !important;
  color: #111 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px !important;
  box-shadow: 0 20px 80px rgba(0,0,0,.5) !important;
}

.cru-lightbox-image-wrap {
  background: #111 !important;
  min-height: 62vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px !important;
}

.cru-lightbox-image {
  display: block !important;
  max-width: 100% !important;
  max-height: 88vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 8px !important;
}

.cru-lightbox-info {
  position: relative !important;
  padding: 24px 20px !important;
  overflow-y: auto !important;
  max-height: 94vh !important;
}

.cru-lightbox-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 999px !important;
  border: none !important;
  background: #111 !important;
  color: #fff !important;
  font-size: 22px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.cru-lightbox-title {
  padding-right: 46px !important;
  font-size: 1.25rem !important;
  line-height: 1.35 !important;
  margin: 4px 0 16px !important;
  color: #111 !important;
}

.cru-lightbox-meta {
  font-size: .95rem !important;
  line-height: 1.8 !important;
  color: #444 !important;
}

.cru-lightbox-whatsapp {
  display: block !important;
  margin-top: 18px !important;
  background: #25D366 !important;
  color: #fff !important;
  padding: 12px 18px !important;
  border-radius: 6px !important;
  text-align: center !important;
  font-weight: 700 !important;
}

@media (max-width: 860px) {
  .cru-lightbox-overlay {
    padding: 10px !important;
  }
  .cru-lightbox-panel {
    width: 97vw !important;
    max-height: 94vh !important;
    display: block !important;
    overflow-y: auto !important;
  }
  .cru-lightbox-image-wrap {
    min-height: 0 !important;
    height: auto !important;
    padding: 10px !important;
  }
  .cru-lightbox-image {
    max-height: 62vh !important;
    width: auto !important;
    height: auto !important;
  }
  .cru-lightbox-info {
    max-height: none !important;
    padding: 18px 14px !important;
  }
  .cru-lightbox-title {
    font-size: 1.08rem !important;
  }
}
