:root {
  --cyan:    #00A8D4;
  --blue:    #0068B3;
  --navy:    #003466;
  --orange:  #F47920;
  --yellow:  #FFD100;
  --green:   #2DB84B;
  --bg:      #F0F5FA;
  --card-bg: #ffffff;
  --text:    #1A2B3C;
  --muted:   #6B7FA8;
  --border:  #DDE9F5;
  --radius:  16px;
  --shadow:  0 8px 30px rgba(0,52,102,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}

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

a { color: inherit; text-decoration: none; }

/* ─── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 8px; }

/* ─── HEADER ────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(0,52,102,0.25);
}

.header-logo img { height: 48px; object-fit: contain; }

.header-nav { display: flex; align-items: center; gap: 10px; }
.header-nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all .2s;
}
.header-nav a:hover { background: rgba(255,255,255,0.15); color: white; }

.cart-link {
  position: relative;
  background: var(--orange);
  color: white !important;
  border-radius: 50px;
  padding: 10px 20px !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform .2s !important;
}
.cart-link:hover { transform: scale(1.05) !important; background: #d9621a !important; }

.cart-count {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 900;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 20px;
  line-height: 1.4;
}

/* Hamburger (mobile) */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { display: block; width: 26px; height: 2px; background: white; border-radius: 2px; transition: .3s; }

/* ─── WAVE ──────────────────────────────────────── */
.wave-bar {
  background: var(--blue);
  line-height: 0;
  overflow: hidden;
}
.wave-bar svg { display: block; transform: scaleX(1); }

/* ─── HERO ──────────────────────────────────────── */
.hero {
  min-height: 380px;
  background-image: url('../../imagens/fundo.png');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  padding: 40px clamp(20px, 5vw, 80px);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,20,60,.88) 0%, rgba(0,104,179,.45) 60%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 560px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: white;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.hero h1 span { color: var(--yellow); }
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  line-height: 1.6;
}

/* ─── STEPS BAR ─────────────────────────────────── */
.steps-bar {
  background: white;
  border-top: 3px solid var(--cyan);
  padding: 18px 40px;
  display: flex;
  gap: 30px;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,52,102,0.07);
}
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: .45;
  transition: opacity .3s;
}
.step.active { opacity: 1; }
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  flex-shrink: 0;
}
.step.active .step-num { background: var(--blue); color: white; box-shadow: 0 4px 12px rgba(0,104,179,0.4); }
.step-text { line-height: 1.3; }
.step-text small { display: block; font-size: 0.68rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.step-text strong { font-size: 0.95rem; color: var(--text); }
.step-sep { flex: 1; height: 2px; background: var(--border); margin: 0 10px; }

/* ─── MAIN LAYOUT ───────────────────────────────── */
.page-content {
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 clamp(14px, 3vw, 40px);
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 36px;
  align-items: start;
}

/* ─── CALENDAR ──────────────────────────────────── */
.calendar-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: sticky;
  top: 86px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.cal-header h3 {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cal-header h3 i { color: var(--cyan); }

.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-nav button {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 1rem;
  color: var(--blue);
  transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.cal-nav button:hover { background: var(--blue); color: white; border-color: var(--blue); }
.cal-month-label {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--navy);
  min-width: 110px;
  text-align: center;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}
.cal-weekdays span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 6px 0;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: default;
  transition: all .2s;
  position: relative;
}
.cal-day.avail {
  background: #EBF6FF;
  color: var(--blue);
  cursor: pointer;
  border: 1.5px solid transparent;
}
.cal-day.avail:hover {
  border-color: var(--cyan);
  background: #d4eeff;
}
.cal-day.selected {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  color: white;
  font-weight: 900;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(0,168,212,0.45);
  transform: scale(1.08);
}
.cal-day.today.avail { border-color: var(--orange); color: var(--orange); font-weight: 900; }
.cal-day.disabled { color: #CBD5E1; cursor: not-allowed; }

.selected-date-label {
  margin-top: 20px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cal-legend {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.cal-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
.cal-legend .dot {
  width: 10px; height: 10px; border-radius: 50%;
}

/* ─── PRODUCTS ──────────────────────────────────── */
.products-col { display: flex; flex-direction: column; gap: 24px; }

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.products-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.products-title span { color: var(--cyan); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,52,102,0.14); }

.product-img-wrap { position: relative; overflow: hidden; height: 200px; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--orange);
  color: white;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 50px;
}

.product-body { padding: 22px; flex-grow: 1; display: flex; flex-direction: column; }
.product-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-desc {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 22px;
}
.product-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.product-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}
.product-price small { display: block; font-size: 0.65rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }

.btn-add {
  background: linear-gradient(135deg, var(--green), #1d9e3d);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.btn-add:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(45,184,75,0.4); }
.btn-add:active { transform: scale(0.97); }

/* ─── EMPTY STATE ───────────────────────────────── */
.empty-products {
  background: white;
  border-radius: 24px;
  padding: 60px 30px;
  text-align: center;
  border: 2px dashed var(--border);
}
.empty-icon {
  width: 90px; height: 90px;
  background: #EBF6FF;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  color: var(--cyan);
  margin: 0 auto 24px;
}
.empty-products h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 10px; font-weight: 900; }
.empty-products p { font-size: 0.95rem; color: var(--muted); max-width: 320px; margin: 0 auto; }

/* ─── FOOTER ────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, #001a3a 100%);
  color: white;
  margin-top: 80px;
}

.footer-wave { background: var(--bg); line-height: 0; }
.footer-wave svg { display: block; }

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px clamp(14px, 3vw, 40px) 40px;
  display: grid;
  grid-template-columns: 280px repeat(3, 1fr);
  gap: 48px;
}

.footer-brand img { height: 50px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.7; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cyan);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.footer-col ul li i { color: var(--cyan); width: 16px; }
.footer-col a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px clamp(14px, 3vw, 40px);
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-badges { display: flex; align-items: center; gap: 12px; }
.badge-pix, .badge-ssl {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
}
.badge-pix { background: rgba(45,184,75,0.2); color: #5eed7f; }
.badge-ssl { background: rgba(0,168,212,0.15); color: var(--cyan); }

/* Footer links bar */
.footer-links-bar {
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 14px clamp(14px,3vw,40px);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  max-width: 1300px;
  margin: 0 auto;
}
.footer-links-bar a {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.footer-links-bar a:hover { color: var(--cyan); }

/* Payment brand badges */
.payment-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brand-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}
.brand-badge i { font-size: 1.1rem; color: white; }

/* ─── FLOATING WA ───────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background: #25d366;
  width: 62px; height: 62px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  color: white;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.12) rotate(-5deg); }

/* ─── OVERLAY ALERT ─────────────────────────────── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,20,60,0.75);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.overlay.active { display: flex; }
.alert-box {
  background: white;
  padding: 44px 36px;
  border-radius: 28px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  animation: popIn .25s ease;
}
@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.alert-icon {
  width: 72px; height: 72px;
  background: #FFF4E8;
  color: var(--orange);
  border-radius: 50%;
  font-size: 32px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.alert-box h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 10px; font-weight: 900; }
.alert-box p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 26px; }
.alert-box button {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .2s;
}
.alert-box button:hover { transform: scale(1.04); }

/* ─── TOAST ─────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 110px;
  right: 30px;
  background: var(--navy);
  color: white;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,52,102,0.3);
  z-index: 998;
  transform: translateY(20px);
  opacity: 0;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.toast.show { transform: translateX(0) translateY(0); opacity: 1; }
.toast i { color: var(--green); font-size: 1.1rem; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */

/* ── Tablet / small desktop ≤ 1150px ── */
@media (max-width: 1150px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ── Tablet ≤ 1050px ── */
@media (max-width: 1050px) {
  .page-content {
    grid-template-columns: 1fr;
    margin: 24px auto;
  }
  .calendar-card {
    position: static;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  /* Stack calendar and products vertically */
  aside { order: 1; }
  .products-col { order: 2; }
}

/* ── Mobile ≤ 768px ── */
@media (max-width: 768px) {

  /* Header */
  .site-header {
    padding: 0 18px;
    height: 62px;
  }
  .header-logo img { height: 38px; }
  .header-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 62px;
    left: 0; right: 0;
    background: var(--navy);
    padding: 16px 18px;
    gap: 6px;
    z-index: 199;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    border-top: 2px solid var(--cyan);
  }
  .header-nav.open { display: flex; }
  .header-nav a {
    padding: 11px 16px;
    border-radius: 10px;
    font-size: .95rem;
  }
  .cart-link {
    padding: 11px 16px !important;
  }
  .hamburger { display: flex; }

  /* Hero */
  .hero {
    padding: 28px 18px;
    min-height: 220px;
  }
  .hero h1 { font-size: 1.8rem; letter-spacing: -.5px; }
  .hero p  { font-size: .95rem; }

  /* Steps bar */
  .steps-bar {
    padding: 12px 18px;
    gap: 10px;
    overflow-x: auto;
  }
  .step-sep { display: none; }
  .step-text strong { font-size: .82rem; }
  .step-text small  { font-size: .62rem; }
  .step-num { width: 30px; height: 30px; font-size: .85rem; }

  /* Calendar */
  .calendar-card {
    padding: 20px 16px;
    max-width: 100%;
    border-radius: 16px;
  }
  .cal-header h3 { font-size: .95rem; }
  .cal-day { font-size: .82rem; border-radius: 8px; }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
  }
  .products-title { font-size: 1.2rem; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 18px 24px;
  }
  .footer-brand { grid-column: auto; }
  .footer-links-bar {
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 18px;
    font-size: .78rem;
  }
  .footer-bottom div:last-child { text-align: left; }
  .payment-brands { gap: 6px; }
  .brand-badge { font-size: .7rem; padding: 5px 10px; }

  /* Toast */
  .toast { right: 12px; bottom: 16px; font-size: .82rem; padding: 11px 16px; }

  /* Overlay/alert */
  .alert-box { padding: 30px 22px; }
}

/* ── Small phone ≤ 480px ── */
@media (max-width: 480px) {
  body { font-size: 14px; }

  .site-header { height: 58px; padding: 0 14px; }
  .header-logo img { height: 34px; }
  .header-nav { top: 58px; }

  .hero {
    min-height: 180px;
    padding: 22px 14px;
  }
  .hero h1  { font-size: 1.5rem; }
  .hero p   { font-size: .88rem; }
  .hero-badge { font-size: .68rem; padding: 5px 11px; }

  .steps-bar { padding: 10px 14px; gap: 8px; }
  .step-text { display: none; }

  .page-content {
    padding: 0 12px;
    margin: 18px auto;
    gap: 20px;
  }

  .calendar-card { padding: 16px 12px; }
  .cal-day { font-size: .78rem; border-radius: 7px; }
  .cal-weekdays span { font-size: .62rem; }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .product-img-wrap { height: 170px; }
  .product-body { padding: 16px; }
  .product-name { font-size: 1rem; }
  .product-price { font-size: 1.4rem; }
  .product-footer { flex-direction: column; align-items: stretch; }
  .btn-add { justify-content: center; padding: 13px; }

  .footer-inner { padding: 28px 14px 20px; }
  .footer-col h4 { font-size: .72rem; }
  .footer-col ul li { font-size: .82rem; }
}

/* ── Very small phone ≤ 360px ── */
@media (max-width: 360px) {
  .hero h1  { font-size: 1.3rem; }
  .products-grid { grid-template-columns: 1fr; }
  .brand-badge { font-size: .65rem; padding: 4px 8px; }
}

