/* ============================================================
   MAKTUBE STORE — Folha de estilo
   Paleta: rosé + menta sobre creme (identidade da marca)
   ============================================================ */

:root {
  --cream:      #FAF5EF;
  --cream-2:    #F3EAE0;
  --rose:       #E7B7B3;
  --rose-deep:  #D89A96;
  --rose-soft:  #F6E1DE;
  --mint:       #A9D3CB;
  --mint-deep:  #7FBDB2;
  --mint-soft:  #DCEEEA;
  --ink:        #43403B;
  --ink-soft:   #7E7871;
  --line:       #EAE0D5;
  --white:      #FFFFFF;
  --whats:      #25D366;
  --shadow-sm:  0 2px 10px rgba(120, 100, 85, .08);
  --shadow:     0 12px 34px rgba(120, 100, 85, .14);
  --shadow-lg:  0 24px 60px rgba(120, 100, 85, .20);
  --radius:     18px;
  --radius-sm:  12px;
  --container:  1200px;
  --serif: "Fraunces", "Georgia", serif;
  --sans:  "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }

.eyebrow {
  display: inline-block; font-family: var(--sans); font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em; font-size: .72rem;
  color: var(--rose-deep); margin-bottom: 14px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #57534d; box-shadow: var(--shadow); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-whats { background: var(--whats); color: #fff; }
.btn-whats:hover { background: #1fbc59; box-shadow: 0 10px 26px rgba(37,211,102,.34); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--rose), var(--mint));
  color: #fff; text-align: center; font-size: .82rem; font-weight: 600;
  padding: 8px 16px; letter-spacing: .01em;
}
.topbar strong { font-weight: 800; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 245, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 74px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.32rem; letter-spacing: .06em; color: var(--ink); }
.brand-sub { font-family: var(--serif); font-style: italic; font-size: .82rem; color: var(--rose-deep); align-self: flex-end; margin-top: 2px; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--rose-deep); transition: width .22s ease;
}
.nav a:hover { color: var(--rose-deep); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: 12px; }
.nav + .header-actions { margin-left: 12px; }
.header-actions { margin-left: auto; }
.nav ~ .header-actions { margin-left: 12px; }

.icon-btn {
  background: transparent; border: none; cursor: pointer; color: var(--ink);
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s ease, color .18s ease; font-size: 1.15rem;
}
.icon-btn:hover { background: var(--cream-2); color: var(--rose-deep); }
.menu-toggle { display: none; font-size: 1.5rem; }

.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 3px; right: 3px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--rose-deep); color: #fff; border-radius: 999px;
  font-size: .68rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  transform: scale(0); transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.cart-count.show { transform: scale(1); }

/* Search */
.searchbar { max-height: 0; overflow: hidden; transition: max-height .3s ease; border-top: 0 solid var(--line); }
.searchbar.open { max-height: 90px; border-top: 1px solid var(--line); }
.searchbar .container { padding-top: 14px; padding-bottom: 14px; }
.searchbar input {
  width: 100%; padding: 13px 20px; border: 1.5px solid var(--line); border-radius: 999px;
  font-family: var(--sans); font-size: 1rem; background: #fff; color: var(--ink);
}
.searchbar input:focus { outline: none; border-color: var(--mint-deep); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 18px; }
.hero-copy h1 em { font-style: italic; color: var(--rose-deep); }
.hero-copy p { font-size: 1.08rem; color: var(--ink-soft); max-width: 30em; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-brands { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.hero-brands span {
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-soft);
  opacity: .8;
}

.hero-art { position: relative; min-height: 380px; display: grid; place-items: center; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob-rose { width: 300px; height: 300px; background: radial-gradient(circle at 30% 30%, var(--rose), var(--rose-soft)); top: 10%; left: 8%; opacity: .85; }
.blob-mint { width: 320px; height: 320px; background: radial-gradient(circle at 70% 70%, var(--mint), var(--mint-soft)); bottom: 4%; right: 6%; opacity: .8; }
.hero-mark {
  position: relative; width: 260px; height: 260px; object-fit: contain;
  background: var(--cream); border-radius: 32px; padding: 22px;
  box-shadow: var(--shadow-lg); transform: rotate(-3deg);
}

/* ---------- Perks ---------- */
.perks { padding: 26px 0; }
.perks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perk {
  display: flex; align-items: center; gap: 13px; background: #fff; padding: 16px 18px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.perk-ico { font-size: 1.6rem; }
.perk strong { display: block; font-size: .95rem; }
.perk small { color: var(--ink-soft); font-size: .82rem; }

/* ---------- Categorias ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 34px 24px; }
.cat-card {
  border: none; cursor: pointer; background: #fff; border-radius: var(--radius);
  padding: 30px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:nth-child(1) { background: linear-gradient(160deg, #fff, var(--rose-soft)); }
.cat-card:nth-child(2) { background: linear-gradient(160deg, #fff, var(--mint-soft)); }
.cat-card:nth-child(3) { background: linear-gradient(160deg, #fff, #FBEEDD); }
.cat-card:nth-child(4) { background: linear-gradient(160deg, #fff, #EDE7F3); }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cat-emoji { font-size: 2rem; }
.cat-name { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }

/* ---------- Shop ---------- */
.shop { padding: 30px 24px 60px; }
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.shop-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.sort { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--ink-soft); }
.sort select {
  font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--ink);
  padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer;
}
.sort select:focus { outline: none; border-color: var(--mint-deep); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  font-family: var(--sans); font-weight: 700; font-size: .9rem; cursor: pointer;
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); transition: all .18s ease;
}
.chip:hover { border-color: var(--rose); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease;
  cursor: pointer; position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media {
  position: relative; aspect-ratio: 1/1; background: var(--cream-2);
  display: grid; place-items: center; overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--rose-deep); color: #fff; font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; padding: 5px 11px; border-radius: 999px;
}
.badge.sale { background: var(--ink); }
.card-quick {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  background: rgba(67,64,59,.92); color: #fff; text-align: center;
  font-weight: 700; font-size: .88rem; padding: 11px; transform: translateY(100%);
  transition: transform .25s ease;
}
.card:hover .card-quick { transform: translateY(0); }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-marca { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--mint-deep); }
.card-nome { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; line-height: 1.25; color: var(--ink); }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 8px; }
.card-price { font-family: var(--sans); font-weight: 800; font-size: 1.12rem; color: var(--ink); }
.card-price-old { font-size: .85rem; color: var(--ink-soft); text-decoration: line-through; }

.empty { text-align: center; padding: 50px; font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- About ---------- */
.about { background: linear-gradient(180deg, var(--cream), var(--cream-2)); padding: 70px 0; margin-top: 20px; }
.about-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.about-art { display: grid; place-items: center; }
.logo-lockup {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: var(--cream); border-radius: 28px; padding: 46px 54px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.lockup-mark { width: 190px; height: 190px; }
.lockup-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.lockup-text .brand-name { font-family: var(--serif); font-weight: 700; font-size: 2.2rem; letter-spacing: .1em; color: var(--ink); }
.lockup-text .brand-sub { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--rose-deep); align-self: flex-end; margin-top: 4px; }
.about-copy h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 18px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 15px; font-size: 1.03rem; }
.about-copy .btn { margin-top: 12px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--rose), var(--mint)); padding: 56px 0; text-align: center; }
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 10px; }
.cta-inner p { color: rgba(255,255,255,.92); font-size: 1.05rem; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #EDE7DF; padding: 54px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand-name { color: #fff; }
.footer .brand-mark { background: #fff; padding: 4px; }
.footer-brand p { color: #B7B0A7; margin-top: 14px; max-width: 24em; font-size: .95rem; }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 15px; }
.footer-col a { display: block; color: #B7B0A7; padding: 5px 0; font-size: .94rem; transition: color .15s ease; }
.footer-col a:hover { color: var(--rose); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem; color: #948D84;
}

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(50,45,40,.5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 80;
}
.overlay.show { opacity: 1; visibility: visible; }

.cart {
  position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 92vw;
  background: var(--cream); z-index: 90; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.cart.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 1.3rem; }
.cart-body { flex: 1; overflow-y: auto; padding: 14px 22px; }

.cart-item { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); flex-shrink: 0; }
.ci-info { flex: 1; min-width: 0; }
.ci-nome { font-family: var(--serif); font-weight: 600; font-size: .96rem; line-height: 1.2; }
.ci-meta { font-size: .78rem; color: var(--ink-soft); margin: 2px 0 8px; }
.ci-controls { display: flex; align-items: center; gap: 10px; }
.qty { display: flex; align-items: center; gap: 2px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 26px; height: 26px; border: none; background: transparent; cursor: pointer; font-size: 1.1rem; color: var(--ink); border-radius: 50%; display: grid; place-items: center; }
.qty button:hover { color: var(--rose-deep); }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: .88rem; }
.ci-price { font-weight: 800; margin-left: auto; }
.ci-remove { background: none; border: none; cursor: pointer; color: var(--ink-soft); font-size: .78rem; text-decoration: underline; padding: 0; }
.ci-remove:hover { color: var(--rose-deep); }

.cart-foot { padding: 18px 22px; border-top: 1px solid var(--line); background: var(--cream); }
.cart-frete { font-size: .84rem; text-align: center; margin-bottom: 12px; padding: 8px; border-radius: 10px; background: var(--mint-soft); color: #4a7b72; font-weight: 600; }
.cart-frete.free { background: #DCF3E4; color: #2f7d4a; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cart-total span { font-size: 1rem; color: var(--ink-soft); }
.cart-total strong { font-family: var(--serif); font-size: 1.55rem; }
.cart-note { text-align: center; font-size: .76rem; color: var(--ink-soft); margin-top: 10px; }

.cart-empty { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px; text-align: center; }
.cart-empty span { font-size: 3rem; }
.cart-empty p { color: var(--ink-soft); }
.cart.is-empty .cart-body, .cart.is-empty .cart-foot { display: none; }
.cart.is-empty .cart-empty { display: flex; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(50,45,40,.55); backdrop-filter: blur(3px); }
.modal-card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(880px, 94vw); max-height: 92vh; overflow: auto; background: var(--cream);
  border-radius: 22px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr;
}
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; background: #fff; box-shadow: var(--shadow-sm); }
.modal-media { background: #fff; display: grid; place-items: center; padding: 24px; }
.modal-media img { max-height: 440px; object-fit: contain; }
.modal-info { padding: 34px 32px; display: flex; flex-direction: column; }
.modal-marca { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--mint-deep); margin-bottom: 8px; }
.modal-info h3 { font-size: 1.7rem; margin-bottom: 14px; }
.modal-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.modal-price .now { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; }
.modal-price .old { text-decoration: line-through; color: var(--ink-soft); font-size: 1rem; }
.modal-desc { color: var(--ink-soft); margin-bottom: 22px; }
.modal-sizes-label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: 10px; }
.size-list { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.size {
  min-width: 44px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--ink); transition: all .15s ease;
}
.size:hover { border-color: var(--rose); }
.size.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.modal-add { margin-top: auto; }
.modal-hint { color: var(--rose-deep); font-weight: 700; font-size: .86rem; margin-top: 10px; text-align: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 120%);
  background: var(--ink); color: #fff; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); z-index: 200;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1); display: flex; align-items: center; gap: 9px;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- WhatsApp float ---------- */
.whats-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whats); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s ease;
}
.whats-float:hover { transform: scale(1.08); }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero-mark { width: 220px; height: 220px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: 0; left: 0; height: 100vh; width: 280px; max-width: 82vw;
    background: var(--cream); flex-direction: column; gap: 4px; padding: 90px 26px 26px;
    box-shadow: var(--shadow-lg); transform: translateX(-100%); transition: transform .3s ease; z-index: 85; margin: 0;
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: 280px; order: -1; }
  .perks-grid { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-art { order: -1; }
  .logo-lockup { padding: 34px 40px; }
  .lockup-mark { width: 140px; height: 140px; }
  .lockup-text .brand-name { font-size: 1.8rem; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-media { padding: 18px; }
  .modal-media img { max-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .cats { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-nome { font-size: .92rem; }
  .card-price { font-size: 1rem; }
  .hero-copy h1 { font-size: 2.1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .shop-head { flex-direction: column; align-items: flex-start; }
  .brand-name { font-size: 1.15rem; }
}
