/* ============================================================
   Crochê Mood — Estilos
   Paleta: azul-céu, azul-claro, preto suave, branco
   ============================================================ */

:root {
  --blue:        #4fb8d9;   /* azul do novelo */
  --blue-dark:   #2e9ec1;
  --blue-soft:   #d9f0f7;   /* fundo claro */
  --blue-softer: #eef9fc;
  --ink:         #1d2a31;   /* preto suave */
  --ink-soft:    #4a5860;
  --pink:        #f06ea0;   /* acento quente */
  --cream:       #fffdf9;
  --white:       #ffffff;
  --shadow:      0 10px 30px rgba(45, 110, 135, .12);
  --shadow-lg:   0 20px 50px rgba(45, 110, 135, .18);
  --radius:      20px;
  --radius-sm:   12px;
}

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

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

body {
  font-family: "Quicksand", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .6rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-family: inherit; font-weight: 700; font-size: .98rem;
  padding: .78rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(79,184,217,.4); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--blue); color: var(--blue-dark); }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,249,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(79,184,217,.18);
}
.header-inner { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.brand-name { font-family: "Pacifico", cursive; font-size: 1.4rem; color: var(--ink); }

.main-nav { margin-left: auto; display: flex; gap: 1.6rem; font-weight: 600; }
.main-nav a { position: relative; padding: .2rem 0; color: var(--ink-soft); }
.main-nav a:hover { color: var(--blue-dark); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--blue); transition: width .2s;
}
.main-nav a:hover::after { width: 100%; }

.cart-btn {
  position: relative; background: var(--blue-soft); border: none; cursor: pointer;
  font-size: 1.15rem; padding: .5rem .8rem; border-radius: 999px; transition: background .2s;
}
.cart-btn:hover { background: #c8e9f3; }
.cart-count {
  position: absolute; top: -6px; right: -6px; background: var(--pink); color: #fff;
  font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; line-height: 20px;
  border-radius: 999px; padding: 0 5px; font-family: "Quicksand";
}
.cart-count.bump { animation: bump .3s; }
@keyframes bump { 50% { transform: scale(1.4); } }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: linear-gradient(160deg, var(--blue-soft), var(--blue-softer)); padding: 3.5rem 0 5rem; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero-text h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; margin-bottom: 1rem; }
.hero-text h1 span { font-family: "Pacifico", cursive; color: var(--blue-dark); font-weight: 400; }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 30rem; }
.hero-actions { display: flex; gap: .8rem; margin: 1.6rem 0 1.4rem; flex-wrap: wrap; }
.hero-badges { list-style: none; display: flex; gap: 1.2rem; flex-wrap: wrap; font-weight: 600; color: var(--ink-soft); font-size: .92rem; }

.hero-art { display: grid; place-items: center; }
.hero-art img {
  width: min(380px, 80%); border-radius: 50%; background: #fff; padding: 1.2rem;
  box-shadow: var(--shadow-lg); animation: float 5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }

.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0; height: 60px;
  background: var(--cream);
  -webkit-mask: radial-gradient(40px at 50% 0, transparent 99%, #000) repeat-x;
  mask: radial-gradient(40px at 50% 0, transparent 99%, #000) repeat-x;
  -webkit-mask-size: 90px 60px; mask-size: 90px 60px;
}

/* ============================================================
   DESTAQUE
   ============================================================ */
.featured { padding: 4rem 0; }
.featured-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
  background: linear-gradient(135deg, #fff, var(--blue-softer));
  border-radius: 28px; padding: 2.5rem; box-shadow: var(--shadow); border: 1px solid rgba(79,184,217,.15);
}
.featured-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.featured-text h2 { font-size: 2rem; margin-bottom: .8rem; }
.featured-text p { color: var(--ink-soft); margin-bottom: 1.4rem; max-width: 28rem; }

/* ============================================================
   SECÇÃO / TÍTULOS
   ============================================================ */
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 { font-size: 2.2rem; }
.section-head p { color: var(--ink-soft); }

/* ============================================================
   LOJA
   ============================================================ */
.shop { padding: 2rem 0 4rem; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2rem; }
.filter {
  font-family: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  padding: .5rem 1.1rem; border-radius: 999px; border: 2px solid var(--blue-soft);
  background: #fff; color: var(--ink-soft); transition: all .18s;
}
.filter:hover { border-color: var(--blue); color: var(--blue-dark); }
.filter.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem;
}
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(79,184,217,.1);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card.flash { animation: flash 1.5s; }
@keyframes flash { 0%,100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 4px var(--pink); } }

.card-img { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--blue-softer); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-badge {
  position: absolute; top: .7rem; left: .7rem; background: var(--pink); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
}
.card-quick {
  position: absolute; bottom: .7rem; left: 50%; transform: translateX(-50%) translateY(8px);
  background: rgba(29,42,49,.85); color: #fff; border: none; cursor: pointer;
  padding: .5rem 1rem; border-radius: 999px; font-family: inherit; font-weight: 600; font-size: .82rem;
  opacity: 0; transition: all .22s;
}
.card:hover .card-quick { opacity: 1; transform: translateX(-50%) translateY(0); }

.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.card-body h3 { font-size: 1.06rem; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-price { font-weight: 700; color: var(--blue-dark); font-size: 1.1rem; }
.card-add {
  background: var(--blue-soft); color: var(--blue-dark); border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: .85rem; padding: .5rem .8rem; border-radius: 999px;
  transition: all .18s;
}
.card-add:hover { background: var(--blue); color: #fff; }

/* ============================================================
   SOBRE
   ============================================================ */
.about { background: linear-gradient(160deg, var(--blue-softer), #fff); padding: 4.5rem 0; }
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.about-text h2 { font-family: "Pacifico", cursive; font-size: 2.6rem; color: var(--ink); margin-bottom: 1rem; font-weight: 400; }
.about-text p { color: var(--ink-soft); margin-bottom: 1rem; }
.about-stats { display: flex; gap: 1.6rem; margin-top: 1.6rem; flex-wrap: wrap; }
.about-stats div { display: flex; flex-direction: column; font-weight: 600; color: var(--ink-soft); font-size: .9rem; }
.about-stats span { font-size: 1.8rem; font-weight: 700; color: var(--blue-dark); font-family: "Quicksand"; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #d7e3e9; padding: 3rem 0 1.2rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand img { width: 60px; border-radius: 50%; margin-bottom: .8rem; }
.footer-brand p { color: #9fb4bd; }
.footer-col h4 { margin-bottom: .8rem; color: #fff; }
.footer-col p { color: #9fb4bd; font-size: .95rem; }
.socials { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.socials a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.2rem; text-align: center; color: #7e949d; font-size: .85rem; }

/* ============================================================
   CARRINHO (drawer)
   ============================================================ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(29,42,49,.45); opacity: 0; visibility: hidden;
  transition: opacity .25s; z-index: 60;
}
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 92%);
  background: var(--cream); z-index: 70; box-shadow: -10px 0 40px rgba(0,0,0,.2);
  transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.3rem; border-bottom: 1px solid rgba(79,184,217,.2); }
.cart-header h3 { font-size: 1.2rem; }
.cart-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--ink-soft); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; }
.cart-empty { text-align: center; color: var(--ink-soft); margin-top: 2rem; }
.cart-empty a { color: var(--blue-dark); font-weight: 700; }

.cart-item { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid rgba(79,184,217,.15); }
.cart-item img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.ci-info { flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.ci-name { font-weight: 600; font-size: .95rem; }
.ci-price { color: var(--blue-dark); font-weight: 700; font-size: .9rem; }
.ci-qty { display: flex; align-items: center; gap: .6rem; margin-top: .2rem; }
.ci-qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--blue-soft); background: #fff; cursor: pointer; font-size: 1rem; line-height: 1; color: var(--blue-dark); }
.ci-qty button:hover { background: var(--blue-soft); }
.ci-remove { background: none; border: none; cursor: pointer; font-size: 1.05rem; align-self: flex-start; }

.cart-foot { padding: 1.2rem 1.3rem; border-top: 1px solid rgba(79,184,217,.2); display: flex; flex-direction: column; gap: .7rem; }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
.cart-total strong { color: var(--blue-dark); font-size: 1.3rem; }
.cart-note { font-size: .78rem; color: var(--ink-soft); text-align: center; }

/* ============================================================
   MODAL PRODUTO
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal.open { display: grid; place-items: center; }
.modal-overlay { position: absolute; inset: 0; background: rgba(29,42,49,.55); }
.modal-box {
  position: relative; background: var(--cream); width: min(820px, 92%); max-height: 90vh; overflow: auto;
  border-radius: 24px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal-close {
  position: absolute; top: .8rem; right: .8rem; z-index: 2; background: #fff; border: none; cursor: pointer;
  width: 38px; height: 38px; border-radius: 50%; font-size: 1.1rem; box-shadow: var(--shadow);
}
.modal-gallery { padding: 1.2rem; }
.modal-gallery > img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); }
.modal-thumbs { display: flex; gap: .5rem; margin-top: .6rem; }
.modal-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; opacity: .7; }
.modal-thumbs img.active, .modal-thumbs img:hover { border-color: var(--blue); opacity: 1; }
.modal-info { padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: .7rem; }
.modal-cat { text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 700; color: var(--blue-dark); }
.modal-info h3 { font-size: 1.7rem; }
.modal-price { font-size: 1.5rem; font-weight: 700; color: var(--blue-dark); }
.modal-desc { color: var(--ink-soft); flex: 1; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .25s; z-index: 100;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .hero-inner, .featured-inner, .about-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 220px; }
  .featured-inner { padding: 1.6rem; }
  .modal-box { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
  .card-body { padding: .8rem; }
  .card-add { padding: .45rem .6rem; font-size: .78rem; }
}
