/* 
   Flores & Cia | Design System
   Visual: Warm & Soft (Premium Floral)
*/

:root {
  /* Palette - Warm Soft */
  --bg: oklch(97% 0.018 70);
  --surface: oklch(99% 0.008 70);
  --fg: oklch(22% 0.02 50);
  --muted: oklch(50% 0.018 50);
  --border: oklch(90% 0.014 70);
  --accent: oklch(64% 0.13 28); /* Rose soft */
  --accent-strong: oklch(58% 0.15 28);
  --rose-soft: oklch(92% 0.03 15);
  --leaf: oklch(65% 0.1 145);

  /* Fonts */
  --font-display: 'Tiempos Headline', 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Söhne', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Shadows & Radius */
  --shadow: 0 24px 64px oklch(22% 0.02 50 / 0.12);
  --shadow-soft: 0 12px 32px oklch(22% 0.02 50 / 0.06);
  --radius: 24px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p { color: var(--muted); }

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Layout Shells */
.section-shell {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 8px 24px oklch(64% 0.13 28 / 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px oklch(64% 0.13 28 / 0.35);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg);
  transform: translateY(-2px);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
  padding: 1.5rem 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  height: 64px;
}

.site-header.is-scrolled {
  padding: 0.75rem 0;
}

.site-header.is-scrolled .header-inner {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.site-nav a:hover { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-top: 4rem; /* Initial high spacing */
  padding-bottom: 1.25rem; /* Reduced Gap between 1 and 2 */
}

.hero-subtitle {
  font-size: 1.25rem;
  margin: 1.5rem 0 2.5rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-primary-cta {
  font-size: 1.15rem;
  padding: 1.25rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-primary-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: rotate(45deg);
  transition: 0.6s;
}

.hero-primary-cta:hover::after {
  left: 100%;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-note span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: 99px;
}

.hero-visual {
  position: relative;
}

.floral-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  transition: transform 0.5s ease;
}

.floral-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floral-card-main {
  width: 100%;
  aspect-ratio: 4/5;
}

.floral-card-small {
  position: absolute;
  bottom: -2rem;
  left: -4rem;
  width: 50%;
  aspect-ratio: 1;
  border: 8px solid var(--surface);
}

.floating-label {
  position: absolute;
  top: 2rem;
  right: -2rem;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  max-width: 200px;
}

.floating-label span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.floating-label strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  display: block;
  line-height: 1.2;
}

/* Conversion Strip */
.conversion-strip {
  background: var(--rose-soft);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid var(--border);
  animation: pulse-soft 3s infinite ease-in-out;
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); }
}

.conversion-strip span {
  font-size: 0.9rem;
  color: var(--accent-strong);
}

/* Product Section */
.products {
  padding-top: 1.25rem; /* Reduced Gap between 1 and 2 */
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.product-image {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

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

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

.product-content p.product-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.product-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-content h3 {
  margin-bottom: 0.5rem;
}

.product-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.product-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-footer strong {
  font-size: 1.75rem;
  color: var(--fg);
  font-family: var(--font-body);
}

.product-footer p {
  display: none;
}

.add-button {
  width: 100%;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 0.85rem;
  border-radius: 99px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.add-button:hover {
  background: var(--fg);
  color: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* Map Section */
.map-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2rem;
  border: 1px solid var(--border);
}

.map-embed {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-width: 280px;
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.3s ease;
  z-index: 5;
}

.map-card:hover { transform: scale(1.02); }

.map-card small { display: block; color: var(--accent); font-weight: 700; margin-bottom: 0.25rem; }
.map-card strong { display: block; font-size: 1rem; margin-bottom: 0.5rem; }
.map-card span { font-size: 0.85rem; color: var(--muted); border-bottom: 1px solid var(--border); }

/* Contact Section */
.contact-only {
  background: transparent;
}

.contact-only-panel {
  background: var(--surface);
  padding: 4rem;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-channel-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  background: transparent;
  border: none;
  text-decoration: none;
  color: var(--fg);
  transition: all 0.3s ease;
}

.contact-channel:hover {
  transform: translateX(10px);
}

.channel-icon {
  width: 56px;
  height: 56px;
  background: var(--rose-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 1.5;
}

.contact-channel span { display: flex; flex-direction: column; }
.contact-channel small { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; font-weight: 700; }
.contact-channel strong { font-size: 1.25rem; margin: 0.2rem 0; }
.contact-channel em { font-style: normal; color: var(--accent); font-size: 0.9rem; font-weight: 600; }

/* Floating Cart */
.floating-cart {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: none;
  box-shadow: 0 16px 32px oklch(64% 0.13 28 / 0.3);
  cursor: pointer;
  z-index: 900;
  transition: all 0.3s ease;
  animation: float 4s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-cart:hover {
  background: var(--accent-strong);
  transform: scale(1.05) translateY(-4px);
}

.floating-cart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.floating-cart-copy { font-weight: 700; font-size: 0.9rem; }

/* Cart Drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-overlay.is-active { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: var(--surface);
  z-index: 1002;
  box-shadow: -20px 0 60px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-active { transform: translateX(0); }

.cart-header {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.icon-button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.icon-button svg { width: 24px; height: 24px; stroke: var(--fg); stroke-width: 1.5; }

.cart-empty {
  padding: 3.25rem 3.5rem;
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.cart-empty p {
  font-weight: 600;
  color: var(--fg);
  font-size: 1.1rem;
}

.cart-empty span {
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 28ch;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 2rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex-grow: 1; }
.cart-item-info h4 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; }
.cart-item-info p { font-size: 0.85rem; }

.quantity-control {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-footer {
  padding: 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.coupon-box {
  margin-bottom: 1.5rem;
}

.coupon-box label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.5rem; }

.coupon-row {
  display: flex;
  gap: 0.5rem;
}

.coupon-row input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: inherit;
}

.coupon-button {
  background: var(--fg);
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

.delivery-box {
  margin-bottom: 1.35rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.delivery-box h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--fg);
}

.delivery-box label {
  display: block;
  margin: 0.85rem 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fg);
}

.delivery-box select,
.delivery-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 0.85rem;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
}

.delivery-box select:focus,
.delivery-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 16%, transparent);
}

.delivery-message {
  min-height: 1.1rem;
  margin: 0.7rem 0 0;
  color: var(--accent);
  font-size: 0.82rem;
  line-height: 1.45;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.cart-total strong { font-size: 1.5rem; }

.checkout-button { width: 100%; margin-top: 1rem; }

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--fg);
  transition: 0.3s;
}

/* Responsividade */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; text-align: center; padding-top: 2rem; }
  .hero-copy { order: 2; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-visual { order: 1; max-width: 500px; margin: 0 auto; }
  .contact-only-panel { grid-template-columns: 1fr; gap: 3rem; padding: 2.5rem; }
}

@media (max-width: 720px) {
  .site-header { padding: 1rem 0; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: 0.3s;
  }
  .site-nav.is-active { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .hero-visual { max-width: 100%; }
  .floral-card-small { left: -1rem; bottom: -1rem; }
  .floating-label { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { max-width: 360px; margin: 0 auto; }
  .map-preview { aspect-ratio: 1; }
  .map-card { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; }
  .floating-cart { bottom: 1.5rem; right: 1.5rem; }
}
