/* Smile Beauty & Natural Cosmetics - Clean Luxury Template CSS */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --bg-body: #ffffff;
  --bg-page: #faf8f5;
  --bg-card: #ffffff;
  
  --color-primary: #1f2937;
  --color-heading: #262626;
  --color-body: #4b5563;
  --color-muted: #6b7280;
  --color-light: #9ca3af;
  
  --accent-peach: #e8a57e;
  --accent-rose: #f47272;
  --accent-gold: #c59b6d;
  --border-color: #ede9e3;
  --border-light: #f3f0ea;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.09);
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-full: 9999px;
  
  --transition: all 0.28s ease;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--color-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif-title {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-heading);
  letter-spacing: 0.01em;
}

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

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

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ==========================================================================
   HEADER & NAVBAR (SMILE ORIGINAL TEMPLATE)
   ========================================================================== */
.header-smile {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.header-smile.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  padding: 8px 0;
}

.brand-link {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 96px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.04);
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 34px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #111827;
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-peach);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

.nav-icon-btn {
  color: #4b5563;
  font-size: 17px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-icon-btn:hover {
  color: #111827;
  transform: translateY(-1px);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent-rose);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: #111827;
  cursor: pointer;
}

/* ==========================================================================
   HERO SLIDER BANNER (SLIDE 1 - TENDER LIGHT)
   ========================================================================== */
.hero-slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #edd5c4;
}

.hero-slide {
  width: 100%;
  position: relative;
}

.hero-slide-img {
  width: 100%;
  height: auto;
  min-height: 480px;
  max-height: 680px;
  object-fit: cover;
  display: block;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.95);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.55);
  color: #ffffff;
  transform: translateY(-50%) scale(1.06);
}

.slider-prev {
  left: 28px;
}

.slider-next {
  right: 28px;
}

/* ==========================================================================
   EDITORIAL 2-COLUMN SECTION (MATCHING COVER.JPG BOTTOM HALF)
   ========================================================================== */
.editorial-section {
  padding: 80px 0 90px;
  background: #ffffff;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.editorial-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-md);
}

.editorial-img {
  width: 100%;
  height: 490px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.editorial-media:hover .editorial-img {
  transform: scale(1.03);
}

.editorial-content {
  padding-right: 30px;
}

.editorial-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-peach);
  display: inline-block;
  margin-bottom: 12px;
}

.editorial-title {
  font-size: 3rem;
  line-height: 1.18;
  color: #242424;
  margin-bottom: 24px;
}

.editorial-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 18px;
}

.editorial-body {
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--color-muted);
  margin-bottom: 32px;
}

.editorial-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-dark {
  background: #1f2937;
  color: #ffffff;
  border-color: #1f2937;
}

.btn-dark:hover {
  background: #374151;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-dark {
  background: transparent;
  color: #1f2937;
  border-color: #d1d5db;
}

.btn-outline-dark:hover {
  border-color: #1f2937;
  background: #f9fafb;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background: #1eb956;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   PRODUCTS CATALOG (COLLEZIONE ESCLUSIVA)
   ========================================================================== */
.products-section {
  padding: 80px 0 100px;
  background: var(--bg-page);
  border-top: 1px solid var(--border-light);
}

.section-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-peach);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  color: #1f2937;
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* Filter Tabs */
.category-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.filter-tab-btn {
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab-btn:hover {
  border-color: #111827;
  color: #111827;
}

.filter-tab-btn.active {
  background: #1f2937;
  color: #ffffff;
  border-color: #1f2937;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  height: 290px;
  background: #fbf9f6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.02em;
}

.product-size-badge {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 1.25rem;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.35;
}

.product-title a:hover {
  color: var(--accent-peach);
}

.product-desc {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  font-family: var(--font-serif);
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-card-add {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: #1f2937;
  color: #ffffff;
  border: 1px solid #1f2937;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-card-add:hover {
  background: #374151;
  transform: translateY(-1px);
}

/* ==========================================================================
   SERVICES & RITUALS SECTION (SERVIZI & BOUTIQUE)
   ========================================================================== */
.services-section {
  padding: 80px 0 90px;
  background: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #faf8f5;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
}

.service-img-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-peach);
  margin-bottom: 8px;
}

.service-title {
  font-size: 1.35rem;
  color: #1f2937;
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--accent-peach);
  transform: translateX(4px);
}

/* ==========================================================================
   VALUES & GUARANTEES
   ========================================================================== */
.values-strip {
  padding: 50px 0;
  background: #fbf9f6;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.value-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-peach);
  flex-shrink: 0;
}

.value-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2px;
}

.value-desc {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.4;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-section {
  padding: 80px 0;
  background: #ffffff;
}

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

.testimonial-card {
  padding: 36px;
  border-radius: var(--radius-sm);
  background: #faf8f5;
  border: 1px solid var(--border-light);
  position: relative;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 1.02rem;
  font-style: italic;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 18px;
}

.testimonial-author {
  font-weight: 700;
  color: #1f2937;
  font-size: 0.95rem;
}

.testimonial-product {
  font-size: 0.82rem;
  color: var(--accent-peach);
  font-weight: 600;
}

/* ==========================================================================
   FOOTER (SMILE CLEAN LUXURY)
   ========================================================================== */
.footer-smile {
  background: #fbf9f6;
  border-top: 1px solid var(--border-light);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-brand img {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 1.15rem;
  color: #1f2937;
  margin-bottom: 18px;
  font-family: var(--font-serif);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #111827;
  padding-left: 3px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-contact-item i {
  color: var(--accent-peach);
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--color-light);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .editorial-media img {
    height: 380px;
  }
  .editorial-content {
    padding-right: 0;
  }
  .products-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    gap: 16px;
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-slide-img {
    min-height: 300px;
  }
  .editorial-title {
    font-size: 2.2rem;
  }
  .products-grid,
  .services-grid,
  .testimonials-grid,
  .values-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}


/* Responsive Layout Grid Utilities (Auto-migrated from inline styles) */
.grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.grid-split-responsive {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.grid-split-rev-responsive {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}
.grid-3col-responsive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.grid-4col-responsive {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .grid-4col-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3col-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile Safeguard Rules */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}


/* Comprehensive Mobile Polish (360px - 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  button, .btn, .nav-link, a.btn {
    min-height: 42px;
  }
  
  h1, .hero-title, .page-hero-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
    line-height: 1.25 !important;
  }
  h2, .section-title, .shelf-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem) !important;
    line-height: 1.3 !important;
  }
  
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}
