/* CAMLIQA Beauty - Mobile-First Responsive Luxury Design */

:root {
  /* Enhanced Color Palette */
  --rose-lux: #E8B4B2;
  --rose-soft: #F4C7C3;
  --gold-lux: #D4AF37;
  --cream-bg: #FDFAF7;
  --dark-rose: #5D3A3A;
  --text-primary: #2C1810;
  --text-secondary: #8B7355;
  
  /* Typography Scale */
  --fs-xl: clamp(2.5rem, 5vw, 4.5rem);
  --fs-lg: clamp(1.5rem, 4vw, 2.5rem);
  --fs-md: clamp(1.125rem, 3vw, 1.5rem);
  --fs-sm: clamp(1rem, 2.5vw, 1.125rem);
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: clamp(1rem, 2vw, 1.5rem);
  --space-md: clamp(1.5rem, 3vw, 2.5rem);
  --space-lg: clamp(2rem, 4vw, 4rem);
  
  /* Layout */
  --container-max: 1400px;
  --border-radius: 16px;
  --shadow-soft: 0 8px 32px rgba(232, 180, 178, 0.15);
  --shadow-hover: 0 20px 40px rgba(232, 180, 178, 0.25);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--cream-bg);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 max(1.5rem, 5vw);
  max-width: var(--container-max);
}

/* Loading Screen */
.page-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--rose-soft), var(--rose-lux));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.page-loader.loaded {
  opacity: 0;
  pointer-events: none;
}

/* Announcement Bar - Improved */
.announcement-bar {
  background: linear-gradient(90deg, 
    var(--rose-lux) 0%, 
    var(--gold-lux) 50%, 
    var(--rose-soft) 100%);
  overflow: hidden;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 500;
}

.announcement-content {
  display: inline-block;
  padding-left: 100%;
  animation: announcement-scroll 30s linear infinite;
}

@keyframes announcement-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.announcement-content:hover {
  animation-play-state: paused;
}

/* Header - Mobile First */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  z-index: 1000;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  min-height: 60px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--rose-lux);
  text-decoration: none;
  display: block;
  letter-spacing: -0.02em;
}

.header-nav {
  display: none;
}

.header-icons {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.header-icon:hover {
  background: var(--rose-soft);
  color: var(--rose-lux);
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--rose-lux);
  color: white;
  border-radius: 10px;
  min-width: 20px;
  height: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Mobile Menu Active */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section - Responsive */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.2)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23E8B4B2" stop-opacity="0.3"/><stop offset="100%" stop-color="%23D4AF37" stop-opacity="0.1"/></radialGradient></defs><rect width="1200" height="800" fill="url(%23a)"/></svg>');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero-content {
  padding: clamp(2rem, 8vw, 6rem) var(--space-md);
  max-width: 800px;
  z-index: 2;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}

.hero-subtitle {
  font-size: var(--fs-md);
  margin-bottom: var(--space-lg);
  opacity: 0.95;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease 0.2s forwards;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease 0.4s forwards;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

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

/* Buttons - Touch Friendly */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--rose-lux);
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.9);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255,255,255,0.15);
}

/* Sections */
.section {
  padding: var(--space-lg) 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-lg);
  text-align: center;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

/* Responsive Grids */
.grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* Cards */
.card {
  background: white;
  border-radius: var(--border-radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

/* Product Cards */
.product-grid {
  grid-template-columns: 1fr;
}

.product-card {
  composes: card;
  text-align: center;
}

.product-image-wrapper {
  position: relative;
  height: clamp(200px, 40vw, 280px);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  border-radius: calc(var(--border-radius) / 2);
}

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

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

.product-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xs);
}

.product-price {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--gold-lux);
  margin-bottom: var(--space-sm);
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-card:nth-child(1) { animation: float 6s ease-in-out infinite; }
.float-card:nth-child(2) { animation: float 6s ease-in-out infinite 2s; }
.float-card:nth-child(3) { animation: float 6s ease-in-out infinite 4s; }

/* Collections */
.collection-grid {
  grid-template-columns: 1fr;
}

.collection-card {
  composes: card;
  height: clamp(200px, 35vw, 300px);
  background: linear-gradient(135deg, var(--rose-soft), var(--cream-bg));
  display: flex;
  align-items: end;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.collection-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--rose-lux);
  opacity: 0.2;
  z-index: -1;
}

/* Features */
.features-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  composes: card;
  text-align: center;
  padding: var(--space-lg);
}

.feature-icon {
  font-size: clamp(2rem, 8vw, 3.5rem);
  margin-bottom: var(--space-sm);
  display: block;
}

/* Steps */
.steps-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Testimonials */
.testimonials {
  max-width: 600px;
  margin: 0 auto;
}

.testimonial {
  display: none;
  text-align: center;
  padding: var(--space-lg);
}

.testimonial.active {
  display: block;
}

.customer-photo {
  width: clamp(60px, 15vw, 80px);
  height: clamp(60px, 15vw, 80px);
  border-radius: 50%;
  margin: 0 auto var(--space-sm);
  border: 3px solid var(--rose-soft);
}

/* Gallery */
.gallery-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--border-radius);
  background: var(--rose-soft);
  position: relative;
  overflow: hidden;
}

.gallery-item::after {
  content: '✨';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Footer */
.footer {
  background: var(--dark-rose);
  color: white;
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-column h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: var(--space-md);
  font-size: var(--fs-sm);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: var(--space-xs);
}

.footer-column a {
  color: var(--rose-soft);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--rose-lux);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.newsletter-input {
  padding: 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: var(--fs-sm);
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }
  
  .newsletter-input {
    flex: 1;
  }
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--fs-sm);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

/* Intersection Observer Target */
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

[data-reveal].revealed {
  animation: reveal 0.8s ease forwards;
}

/* Media Queries - Progressive Enhancement */

/* Tablet */
@media (min-width: 640px) {
  .product-grid,
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .header-nav {
    display: block;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .header-menu {
    display: flex !important;
    list-style: none;
    gap: var(--space-md);
    margin: 0;
    padding: 0;
  }
  
  .header-menu li {
    margin: 0;
  }
  
  .header-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: var(--fs-sm);
  }
  
  .header-menu a:hover {
    background: var(--rose-soft);
    color: var(--rose-lux);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .collection-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-buttons {
    flex-direction: row !important;
  }
  
  .header-inner {
    min-height: 70px;
  }
}

/* Large Desktop */
@media (min-width: 1400px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --shadow-soft: 0 4px 12px rgba(0,0,0,0.3);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .header, .footer, .announcement-bar {
    display: none;
  }
  
  .hero::before {
    background: white;
  }
}

