/* 
    D'SENS Beauty Center - Core Styles
    Performance Focused, Mobile First
*/

:root {
    --primary-color: #d4af37; /* Premium Gold */
    --primary-dark: #b49020;
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --dark-bg: #1a1a1a;
    --border-color: #e0e0e0;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-width: 1200px;
    --header-height: 70px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-main); color: var(--text-color); line-height: 1.6; background: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-weight: 600; margin-bottom: 1rem; color: var(--dark-bg); }

/* Utilities */
.container { width: 92%; max-width: var(--container-width); margin: 0 auto; padding: 0 15px; }
.section-padding { padding: 60px 0; }
.text-center { text-align: center; }
.btn { display: inline-block; padding: 12px 24px; background: var(--dark-bg); color: var(--white); font-weight: 500; border-radius: 4px; border: 1px solid var(--dark-bg); cursor: pointer; text-align: center; }
.btn:hover { background: var(--primary-color); border-color: var(--primary-color); }
.btn-outline { background: transparent; color: var(--dark-bg); border: 1px solid var(--dark-bg); }
.btn-outline:hover { background: var(--dark-bg); color: var(--white); }
.btn-primary { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-whatsapp { background: #25D366; border-color: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #128C7E; border-color: #128C7E; }

.hidden-mobile { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* Header & Nav */
header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255,255,255,0.98); box-shadow: 0 2px 10px rgba(0,0,0,0.05); z-index: 1000; height: var(--header-height); display: flex; align-items: center; transition: var(--transition); }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--dark-bg); letter-spacing: 1px; }
.logo span { color: var(--primary-color); }

.nav-menu { position: fixed; top: var(--header-height); right: -100%; width: 80%; height: calc(100vh - var(--header-height)); background: var(--white); flex-direction: column; padding: 2rem; border-left: 1px solid var(--border-color); transition: var(--transition); display: flex; gap: 20px; overflow-y: auto; }
.nav-menu.active { right: 0; }
.nav-link { font-weight: 500; color: var(--dark-bg); font-size: 1.1rem; }
.nav-link:hover { color: var(--primary-color); }

.hamburger { display: block; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--dark-bg); transition: var(--transition); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.header-cta { display: none; gap: 10px; }

/* Hero Slider */
.hero-slider { position: relative; height: 60vh; min-height: 400px; overflow: hidden; background: #000; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; display: flex; align-items: center; justify-content: center; text-align: center; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.slide-content { position: relative; z-index: 2; color: var(--white); padding: 20px; max-width: 800px; }
.slide-content h1, .slide-content h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--white); text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.slide-content p { font-size: 1.1rem; margin-bottom: 1.5rem; }

/* Section Headers */
.section-title { font-size: 2rem; text-align: center; margin-bottom: 3rem; position: relative; padding-bottom: 15px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--primary-color); }

/* PRODUCTS SPECIFIC STYLES */
.section.products { padding: 56px 0; }
.section-head { margin-bottom: 18px; }
.section-head h2 { font-size: 1.6rem; margin: 0 0 8px; }
.section-head p { margin: 0; max-width: 72ch; opacity: .9; }

.products-toolbar {
  display: flex; gap: 12px; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  margin: 18px 0 18px;
}
.input {
  flex: 1 1 260px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  outline: none;
  font-family: inherit;
}
.input:focus { border-color: rgba(0,0,0,.25); }

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 1040px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

.product-card {
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-media { display: block; background: rgba(0,0,0,.04); }
.product-media img { width: 100%; height: auto; display: block; }

.product-body { padding: 16px; display: grid; gap: 10px; flex-grow: 1; align-content: start; }
.product-brand { margin: 0; font-size: .85rem; opacity: .75; text-transform: uppercase; letter-spacing: 0.5px; }
.product-title { margin: 0; font-size: 1.05rem; line-height: 1.25; }

.product-text { margin: 0; opacity: .9; font-size: 0.95rem; }
.product-points { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.85rem; opacity: 0.8; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.tag {
  font-size: .78rem;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 999px;
  background: rgba(0,0,0,.02);
  white-space: nowrap;
}

.product-actions { display: flex; gap: 10px; align-items: center; margin-top: 15px; }
.btn.btn-sm { padding: 10px 12px; border-radius: 14px; font-size: 0.85rem; }
.btn-whatsapp.btn-sm { border: 1px solid rgba(0,0,0,.10); background: #25D366; color: #fff; }
.btn-whatsapp.btn-sm:hover { background: #128C7E; }

/* Services Grid */
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.service-item { background: var(--light-bg); padding: 30px; border-radius: 8px; transition: var(--transition); }
.service-item:hover { background: var(--white); box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.service-item h3 { color: var(--primary-dark); font-size: 1.4rem; }
.service-item p { margin-bottom: 15px; color: #666; font-size: 0.95rem; }
.service-link { color: var(--primary-color); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; }
.service-link:after { content: '→'; margin-left: 5px; transition: transform 0.2s; }
.service-link:hover:after { transform: translateX(5px); }

/* Trust Area */
.trust-section { background: var(--light-bg); text-align: center; }
.rating-box { font-size: 1.2rem; font-weight: bold; color: var(--dark-bg); }
.stars { color: var(--primary-color); letter-spacing: 2px; }

/* Contact Strip */
.contact-strip { background: var(--dark-bg); color: var(--white); padding: 40px 0; text-align: center; }
.strip-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 20px; }

/* Footer */
footer { background: #111; color: #bbb; padding: 60px 0 20px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--primary-color); margin-left: 5px; }
.copyright { text-align: center; border-top: 1px solid #333; padding-top: 20px; }

/* Sticky WhatsApp */
.sticky-wa { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 999; transition: transform 0.3s; }
.sticky-wa:hover { transform: scale(1.1); }
.sticky-wa img { width: 35px; height: 35px; }

/* Desktop Media Query */
@media (min-width: 992px) {
    .hidden-mobile { display: inline-block; }
    .hamburger { display: none; }
    .nav-menu { position: static; width: auto; height: auto; background: transparent; flex-direction: row; border: none; padding: 0; overflow-y: visible; }
    .nav-link { margin-left: 25px; font-size: 1rem; }
    .header-cta { display: flex; margin-left: 30px; }
    .hero-slider { height: 80vh; }
    .slide-content h1 { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Service Page Specifics */
.page-header { background: var(--light-bg); padding: 80px 0 40px; text-align: center; margin-bottom: 40px; }
.page-header h1 { font-size: 2.5rem; }
.breadcrumb { font-size: 0.9rem; color: #666; margin-top: 10px; }
.service-detail-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 992px) {
    .service-detail-grid { grid-template-columns: 2fr 1fr; }
}
.sidebar-box { background: var(--light-bg); padding: 20px; margin-bottom: 30px; border-radius: 4px; }
.sidebar-menu li { border-bottom: 1px solid #ddd; }
.sidebar-menu a { display: block; padding: 10px 0; }
.sidebar-menu a:hover, .sidebar-menu a.active { color: var(--primary-color); padding-left: 5px; }
.process-step { display: flex; margin-bottom: 20px; }
.step-number { background: var(--primary-color); color: var(--white); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 15px; flex-shrink: 0; font-weight: bold; }

/* Gallery & Lightbox */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; height: 250px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }

.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 2000; display: none; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; border: 3px solid #fff; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 2rem; cursor: pointer; }
