/* ============================================
   MER SALÉE - E-COMMERCE DE MODA PRAIA
   Design: Clean, Chic, Elegante
   ============================================ */

/* Importar Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Sacramento&display=swap');

/* ============================================
   VARIÁVEIS CSS - PALETA DA MARCA
   ============================================ */
:root {
  /* Cores principais da marca */
  --brand-blue: #1B7A8E;        /* Azul petróleo da logo */
  --brand-peach: #E89A9A;       /* Coral/rosa da logo */
  
  /* Tons complementares */
  --blue-light: #E3F2F5;
  --blue-medium: #5A9AAA;
  --blue-dark: #0F5A68;
  --peach-light: #F9E5E5;
  --peach-dark: #D87A7A;
  
  /* Cores neutras */
  --white: #FFFFFF;
  --cream: #FAF9F6;
  --gray-light: #F5F5F5;
  --gray-medium: #D1D1D1;
  --gray-dark: #666666;
  --black: #2C2C2C;
  
  /* Tipografia */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  /* Espaçamentos */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Transições */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ============================================
   RESET E BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  background-color: var(--cream);
  overflow-x: hidden;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  color: var(--brand-blue);
}

h1 {
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: 1px;
}

h2 {
  font-size: 2.5rem;
  font-weight: 400;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.4rem;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--gray-dark);
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--brand-peach);
}

/* ============================================
   HEADER E NAVEGAÇÃO
   ============================================ */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-normal);
}

.header-top {
  background-color: var(--blue-light);
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--brand-blue);
}

.header-main {
  padding: 1.5rem 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 120px;
  padding: 1rem 0;
}

.logo img {
  height: 120px;
  width: auto;
  display: block;
  object-fit: contain;
  max-width: 400px;
}

/* Placeholder enquanto não há imagem */
.logo-placeholder {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--blue-light), var(--peach-light));
  border: 2px dashed var(--brand-blue);
  border-radius: 8px;
  max-width: 250px;
}

.logo-placeholder p {
  font-size: 0.75rem;
  color: var(--brand-blue);
  margin: 0;
  font-weight: 500;
}

.logo-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
}

.shell-petals {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  height: 30px;
  position: relative;
}

.shell-petal {
  width: 12px;
  background: var(--brand-peach);
  border-radius: 50% 50% 50% 50%;
  transform-origin: bottom center;
}

.shell-petal:nth-child(1) {
  height: 18px;
  transform: rotate(-50deg) translateX(4px);
  border-radius: 60% 40% 40% 60%;
}

.shell-petal:nth-child(2) {
  height: 25px;
  transform: rotate(-25deg) translateX(2px);
  border-radius: 55% 45% 45% 55%;
}

.shell-petal:nth-child(3) {
  height: 30px;
  border-radius: 50% 50% 50% 50%;
}

.shell-petal:nth-child(4) {
  height: 25px;
  transform: rotate(25deg) translateX(-2px);
  border-radius: 45% 55% 55% 45%;
}

.shell-petal:nth-child(5) {
  height: 18px;
  transform: rotate(50deg) translateX(-4px);
  border-radius: 40% 60% 60% 40%;
}

.shell-wave {
  width: 80px;
  height: 12px;
  position: relative;
  margin-top: -3px;
}

.shell-wave::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 10px;
  border: 2.5px solid var(--brand-peach);
  border-top: none;
  border-right: none;
  border-radius: 0 0 0 100%;
}

.shell-wave::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40px;
  height: 10px;
  border: 2.5px solid var(--brand-peach);
  border-top: none;
  border-left: none;
  border-radius: 0 0 100% 0;
}

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

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-dark);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-peach);
  transition: var(--transition-fast);
}

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

.nav-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--brand-blue);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  color: var(--brand-peach);
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--brand-peach);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Menu Mobile */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--brand-blue);
  cursor: pointer;
}

/* ============================================
   CONTAINERS E LAYOUT
   ============================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--brand-peach);
  margin: 1rem auto 0;
}

/* ============================================
   BOTÕES
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--brand-peach);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--peach-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: var(--brand-blue);
  color: var(--white);
}

/* ============================================
   CARDS DE PRODUTOS
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: var(--spacing-lg);
}

.product-card {
  background-color: var(--white);
  border-radius: 0;
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

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

.product-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  display: block;
  background-color: #ffffff;
  transition: opacity 0.3s ease;
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-peach);
  margin-bottom: 0.5rem;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 1rem;
}

.product-colors {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--gray-medium);
  cursor: pointer;
  transition: var(--transition-fast);
}

.color-swatch:hover,
.color-swatch.active {
  border-color: var(--brand-blue);
  transform: scale(1.15);
}

/* ============================================
   FORMULÁRIOS
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--gray-medium);
  background-color: var(--white);
  color: var(--black);
  transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--brand-blue);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.footer-section p,
.footer-section a {
  color: var(--blue-light);
  font-size: 0.95rem;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--brand-peach);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--blue-light);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--blue-light);
  transition: var(--transition-fast);
}

.social-links a:hover {
  color: var(--brand-peach);
  transform: scale(1.2);
}

/* ============================================
   UTILITÁRIOS
   ============================================ */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .logo {
    min-height: 100px;
  }
  
  .logo img {
    height: 100px;
    max-width: 320px;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }
  
  .container,
  .container-narrow {
    padding: 0 1rem;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
}

@media (max-width: 480px) {
  .logo {
    min-height: 80px;
  }
  
  .logo img {
    height: 80px;
    max-width: 280px;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
}
