/* ================================
   LEVIOSA DOCES — Custom Styles
   ================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --bg-vanilla: #FFFDF9;
  --text-chocolate: #3E2723;
  --gold-caramel: #D4A373;
  --gold-caramel-dark: #C4935F;
  --pink-tea: #F3E5DC;
  --white-pure: #FFFFFF;
  --shadow-soft: 0 2px 16px rgba(62, 39, 35, 0.08);
  --shadow-hover: 0 8px 32px rgba(212, 163, 115, 0.22);
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-chocolate);
  background-color: var(--bg-vanilla);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-vanilla);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-caramel);
  border-radius: 8px;
}

/* ===== Animations ===== */

/* Float animation for cards */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* Sparkle shimmer */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Fade in up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Gentle pulse */
@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Star twinkle */
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Levitate float for hero */
@keyframes levitate {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(1deg); }
  75% { transform: translateY(-5px) rotate(-1deg); }
}

/* Golden glow pulse */
@keyframes goldenGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(212, 163, 115, 0.3); }
  50% { box-shadow: 0 0 20px rgba(212, 163, 115, 0.6), 0 0 40px rgba(212, 163, 115, 0.2); }
}

/* ===== Utility Classes ===== */

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

.fade-in-up.delay-1 { animation-delay: 0.15s; }
.fade-in-up.delay-2 { animation-delay: 0.3s; }
.fade-in-up.delay-3 { animation-delay: 0.45s; }
.fade-in-up.delay-4 { animation-delay: 0.6s; }

/* ===== Header ===== */

.header-glass {
  background: rgba(255, 253, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 163, 115, 0.15);
  transition: all 0.3s ease;
}

.header-glass.scrolled {
  box-shadow: 0 4px 20px rgba(62, 39, 35, 0.08);
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.65rem;
  color: var(--text-chocolate);
  letter-spacing: 0.01em;
}

.logo-star {
  color: var(--gold-caramel);
  display: inline-block;
  animation: twinkle 2.5s ease-in-out infinite;
  margin: 0 2px;
  font-size: 0.8em;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-chocolate);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-caramel);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--gold-caramel);
}

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

/* ===== Golden Buttons ===== */

.btn-gold {
  background: linear-gradient(135deg, var(--gold-caramel), var(--gold-caramel-dark));
  color: var(--white-pure);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.35s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.5s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 163, 115, 0.4);
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold-caramel);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 27px;
  border: 2px solid var(--gold-caramel);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.35s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-gold-outline:hover {
  background: var(--gold-caramel);
  color: var(--white-pure);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 163, 115, 0.35);
}

/* ===== Hero ===== */

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-bg-decoration {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-bg-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  animation: levitate 8s ease-in-out infinite;
}

.hero-bg-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  animation: levitate 10s ease-in-out infinite reverse;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-chocolate);
}

.hero-title .highlight {
  color: var(--gold-caramel);
  font-style: italic;
  position: relative;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(62, 39, 35, 0.7);
  max-width: 500px;
  line-height: 1.8;
}

.floating-stars {
  position: absolute;
  font-size: 14px;
  color: var(--gold-caramel);
  opacity: 0.4;
  animation: twinkle 3s ease-in-out infinite;
  pointer-events: none;
}

/* ===== About Section ===== */

.about-section {
  background-color: var(--pink-tea);
  position: relative;
}

.about-photo {
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(62, 39, 35, 0.12);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-photo:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 50px rgba(212, 163, 115, 0.25);
}

.about-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--text-chocolate);
  line-height: 1.3;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(62, 39, 35, 0.8);
}

/* ===== Section Dividers ===== */

.section-divider {
  text-align: center;
  padding: 16px 0;
  color: var(--gold-caramel);
  font-size: 0.9rem;
  letter-spacing: 8px;
  opacity: 0.6;
}

/* ===== Catalog Section ===== */

.catalog-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  color: var(--text-chocolate);
}

.catalog-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  text-align: center;
  color: rgba(62, 39, 35, 0.6);
  max-width: 550px;
  margin: 0 auto;
}

/* ===== Product Cards ===== */

.product-card {
  background: var(--white-pure);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

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

.product-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-card-image-wrapper {
  overflow: hidden;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.product-badge.available {
  background: rgba(212, 163, 115, 0.9);
  color: white;
}

.product-badge.sold-out {
  background: rgba(62, 39, 35, 0.75);
  color: white;
}

.product-card-body {
  padding: 20px 22px 24px;
}

.product-name {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-chocolate);
  margin-bottom: 6px;
}

.product-description {
  font-size: 0.88rem;
  color: rgba(62, 39, 35, 0.6);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-caramel);
  margin-bottom: 16px;
}

.product-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(62, 39, 35, 0.5);
}

.btn-whatsapp {
  width: 100%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 12px 20px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.35s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp.disabled {
  background: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

/* WhatsApp icon */
.whatsapp-icon {
  width: 18px;
  height: 18px;
}

/* ===== Footer ===== */

.footer {
  background: var(--text-chocolate);
  color: rgba(255, 253, 249, 0.7);
}

.footer a {
  color: var(--gold-caramel);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #E8BA8A;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-vanilla);
}

/* ===== Contact Section ===== */

.contact-section {
  background: linear-gradient(135deg, var(--pink-tea), var(--bg-vanilla));
}

/* ===== Loading & Empty States ===== */

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--pink-tea);
  border-top-color: var(--gold-caramel);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: rgba(62, 39, 35, 0.5);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* ===== Scroll Reveal ===== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mobile Navigation ===== */

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-chocolate);
}

/* Desktop: nav visível como flex horizontal */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 253, 249, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(212, 163, 115, 0.15);
    box-shadow: 0 8px 24px rgba(62, 39, 35, 0.08);
    align-items: stretch;
  }

  .nav-links.active {
    display: flex !important;
  }

  .hero-title {
    text-align: center;
  }

  .hero-subtitle {
    text-align: center;
    margin: 0 auto;
  }
}

/* ===== Admin Styles ===== */

.admin-login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(62, 39, 35, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.admin-login-card {
  background: white;
  padding: 48px 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(62, 39, 35, 0.2);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: var(--pink-tea);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-chocolate);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(212, 163, 115, 0.12);
  font-size: 0.9rem;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(243, 229, 220, 0.3);
}

.admin-table img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(212, 163, 115, 0.25);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-chocolate);
  background: var(--white-pure);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--gold-caramel);
  box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.12);
}

.form-input::placeholder {
  color: rgba(62, 39, 35, 0.35);
}

.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-chocolate);
  margin-bottom: 6px;
  display: block;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  bottom: 3px;
  left: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--gold-caramel);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

/* Upload area */
.upload-area {
  border: 2px dashed rgba(212, 163, 115, 0.4);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(243, 229, 220, 0.15);
}

.upload-area:hover {
  border-color: var(--gold-caramel);
  background: rgba(243, 229, 220, 0.35);
}

.upload-area.dragover {
  border-color: var(--gold-caramel);
  background: rgba(212, 163, 115, 0.1);
}

.upload-preview {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  margin-top: 12px;
  object-fit: cover;
}

/* Alert/Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.toast.error {
  background: linear-gradient(135deg, #E53935, #C62828);
}

.toast.info {
  background: linear-gradient(135deg, var(--gold-caramel), var(--gold-caramel-dark));
}

/* ===== Admin Tabs & Cards ===== */

.admin-tabs {
  display: flex;
  gap: 4px;
  background: rgba(243, 229, 220, 0.4);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(212, 163, 115, 0.15);
}

.admin-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(62, 39, 35, 0.55);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.admin-tab:hover {
  color: var(--text-chocolate);
  background: rgba(255, 255, 255, 0.5);
}

.admin-tab.active {
  background: var(--white-pure);
  color: var(--text-chocolate);
  box-shadow: 0 2px 8px rgba(62, 39, 35, 0.08);
}

.admin-tab.active svg {
  color: var(--gold-caramel);
}

.admin-tab-content {
  display: none;
  animation: fadeInUp 0.4s ease forwards;
}

.admin-tab-content.active {
  display: block;
}

.admin-card {
  background: var(--white-pure);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 1px 8px rgba(62, 39, 35, 0.04);
  border: 1px solid rgba(212, 163, 115, 0.12);
}

.admin-card-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(212, 163, 115, 0.1);
}

.admin-card-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-chocolate);
}

.admin-card-subtitle {
  font-size: 0.85rem;
  color: rgba(62, 39, 35, 0.5);
  margin-top: 4px;
}

@media (max-width: 640px) {
  .admin-tabs {
    flex-direction: column;
  }
  
  .admin-tab {
    font-size: 0.82rem;
    padding: 10px 16px;
  }

  .admin-card {
    padding: 18px 16px;
  }
}
