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

:root {
  --rosa:       #d4145a;
  --rosa-esc:   #9b0a3e;
  --rosa-hover: #b80f4f;
  --rosa-claro: #fce8f0;
  --rosa-medio: #f5c8d8;
  --fundo:      #fdf8f9;
  --texto:      #2d1520;
  --muted:      #8a6070;
  --borda:      #f0d5e0;
  --sombra:     rgba(212, 20, 90, 0.14);
}

/* ── Base ──────────────────────────────────────────────── */
body {
  background: var(--fundo);
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--texto);
}

h1, h2, h3, .serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ── Barra decorativa topo ─────────────────────────────── */
.barra-topo {
  height: 3px;
  background: linear-gradient(90deg, var(--rosa-esc), var(--rosa), var(--rosa-medio), var(--rosa), var(--rosa-esc));
}

/* ── Navbar ────────────────────────────────────────────── */
.navbar-ski {
  background: #fff;
  border-bottom: 1px solid var(--borda);
}

.navbar-ski .navbar-toggler {
  border: none;
  box-shadow: none;
}

/* Logo imagem na navbar */
.logo-navbar {
  height: 110px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.brand-ski {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--rosa);
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand-sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 1px;
}

.navbar-ski .nav-link {
  color: var(--texto) !important;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.navbar-ski .nav-link:hover {
  color: var(--rosa) !important;
}

.btn-carrinho {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1.5px solid var(--rosa);
  color: var(--rosa);
  border-radius: 50px;
  padding: 0.45rem 1.3rem;
  font-weight: 500;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.22s;
}

.btn-carrinho:hover {
  background: var(--rosa);
  color: #fff;
}

/* ── Hero da listagem ──────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #fff5f8 0%, var(--rosa-claro) 60%, #fde0ec 100%);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(212,20,90,.07) 0%, transparent 70%);
  top: -100px;
  right: -60px;
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '✦';
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 6rem;
  color: var(--rosa);
  opacity: 0.07;
  pointer-events: none;
  line-height: 1;
}

.hero-linha {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--rosa), var(--rosa-medio));
  border-radius: 2px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--texto);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero p {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0;
}

/* ── Busca ─────────────────────────────────────────────── */
.busca-wrap .form-control {
  border: 1.5px solid var(--borda);
  border-right: none;
  border-radius: 25px 0 0 25px;
  padding: 0.65rem 1.2rem;
  background: #fff;
  color: var(--texto);
  font-size: 0.9rem;
}

.busca-wrap .form-control:focus {
  border-color: var(--rosa);
  box-shadow: 0 0 0 3px var(--sombra);
  outline: none;
}

.busca-wrap .btn-busca {
  background: var(--rosa);
  color: #fff;
  border: none;
  border-radius: 0 25px 25px 0;
  padding: 0.65rem 1.2rem;
  transition: background 0.2s;
}

.busca-wrap .btn-busca:hover {
  background: var(--rosa-hover);
  color: #fff;
}

.busca-wrap .btn-limpar {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--borda);
  border-radius: 25px;
  margin-left: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.busca-wrap .btn-limpar:hover {
  border-color: var(--rosa);
  color: var(--rosa);
}

/* ── Cards de produto ──────────────────────────────────── */
.card-produto {
  border: 1.5px solid var(--borda) !important;
  border-radius: 16px !important;
  overflow: hidden;
  background: #fff;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card-produto:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--sombra) !important;
  border-color: var(--rosa-medio) !important;
}

.card-produto .img-wrap {
  overflow: hidden;
}

.card-produto .card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  width: 100%;
}

.card-produto:hover .card-img-top {
  transform: scale(1.05);
}

.card-produto .card-body {
  padding: 0.9rem 1rem 1.1rem;
}

.card-produto .card-title {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--texto);
  line-height: 1.4;
}

.preco-card {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--rosa);
}

.img-placeholder {
  height: 220px;
  background: linear-gradient(135deg, var(--rosa-claro), var(--rosa-medio));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(212,20,90,.3);
}

/* ── Botões principais ─────────────────────────────────── */
.btn-ski {
  background: linear-gradient(135deg, var(--rosa) 0%, #e8255c 100%);
  color: #fff !important;
  border: none;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.48rem 1.2rem;
  transition: all 0.22s;
}

.btn-ski:hover {
  background: linear-gradient(135deg, var(--rosa-hover) 0%, var(--rosa) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--sombra);
  color: #fff !important;
}

.btn-ski:disabled,
.btn-ski[disabled] {
  background: #ddc8d0;
  color: #a08090 !important;
  box-shadow: none;
  transform: none;
  opacity: 1;
  cursor: not-allowed;
}

.btn-ski-lg {
  border-radius: 30px;
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.btn-outline-ski {
  background: transparent;
  color: var(--rosa) !important;
  border: 1.5px solid var(--rosa);
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1.4rem;
  transition: all 0.22s;
}

.btn-outline-ski:hover {
  background: var(--rosa);
  color: #fff !important;
}

/* ── Página de detalhe ─────────────────────────────────── */
.img-detalhe {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
}

.detalhe-preco {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--rosa);
}

.tag-estoque {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
}

.tag-ok {
  background: #e8f5e9;
  color: #2e7d32;
}

.tag-off {
  background: #fce4e4;
  color: #c62828;
}

/* Descrição HTML da Tiny */
.descricao-produto {
  font-size: 0.94rem;
  color: #5a3d4a;
  line-height: 1.75;
}

.descricao-produto h1,
.descricao-produto h2,
.descricao-produto h3,
.descricao-produto h4,
.descricao-produto h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  color: var(--texto);
}

.descricao-produto p { margin-bottom: 0.6rem; }

.descricao-produto ul,
.descricao-produto ol {
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
}

/* ── Carrinho ──────────────────────────────────────────── */
.carrinho-thumb {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.carrinho-thumb-placeholder {
  width: 62px;
  height: 62px;
  background: var(--rosa-claro);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rosa-medio);
  flex-shrink: 0;
}

.total-box {
  background: linear-gradient(135deg, #fff5f8, var(--rosa-claro));
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--borda);
}

.total-valor {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--rosa);
}

/* ── Breadcrumb ────────────────────────────────────────── */
.breadcrumb-item a {
  color: var(--rosa);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* ── Paginação ─────────────────────────────────────────── */
.page-link {
  color: var(--rosa);
  border-color: var(--borda);
  border-radius: 8px !important;
  margin: 0 2px;
  font-size: 0.88rem;
}

.page-link:hover {
  background: var(--rosa-claro);
  color: var(--rosa-esc);
  border-color: var(--rosa-medio);
}

.page-item.active .page-link {
  background: var(--rosa);
  border-color: var(--rosa);
  color: #fff;
}

/* ── Badge carrinho ────────────────────────────────────── */
.badge-ski {
  background: var(--rosa) !important;
}

/* ── HTMX indicator ────────────────────────────────────── */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-block; }

/* ── Footer ────────────────────────────────────────────── */
.footer-ski {
  background: linear-gradient(135deg, #2d1520 0%, #1a0c13 100%);
  color: #c8a0b0;
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  line-height: 1;
}

.footer-sub {
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: var(--rosa-medio);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

.footer-social a {
  color: var(--rosa-medio);
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: #fff;
}

hr.footer-hr {
  border-color: rgba(200,160,176,.2);
  margin: 1.2rem 0;
}

/* ── Homepage: barra de categorias ────────────────────── */
.cat-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.cat-strip::-webkit-scrollbar { display: none; }

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 80px;
}

.cat-circulo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--borda);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--rosa);
  transition: all 0.22s;
}

.cat-item:hover .cat-circulo {
  background: var(--rosa);
  color: #fff;
  border-color: var(--rosa);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--sombra);
}

.cat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--texto);
  text-align: center;
  line-height: 1.3;
}

.cat-item:hover .cat-label {
  color: var(--rosa);
}

/* ── Homepage: banners ─────────────────────────────────── */
.banners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  min-height: 360px;
}

@media (max-width: 767px) {
  .banners-grid { grid-template-columns: 1fr; }
}

.banner {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: block;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(212,20,90,.2);
}

.banner-principal {
  background: linear-gradient(135deg, #3d0a22 0%, #8b1045 40%, #d4145a 100%);
  min-height: 360px;
}

.banners-lado {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.banner-secundario {
  flex: 1;
  min-height: 168px;
}

.banner-higiene {
  background: linear-gradient(135deg, #1a2a5e 0%, #2d4a9e 60%, #5b7fce 100%);
}

.banner-corpo {
  background: linear-gradient(135deg, #5a1a3a 0%, #a0306a 60%, #d4145a 100%);
}

.banner-inner {
  position: relative;
  z-index: 2;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner-tag {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.banner-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.banner-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 1.5rem;
}

.banner-titulo-sm {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.banner-btn {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 25px;
  padding: 0.5rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
  width: fit-content;
}

.banner:hover .banner-btn {
  background: #fff;
  color: var(--rosa);
  border-color: #fff;
}

.banner-btn-sm {
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
}

/* Elementos decorativos dos banners */
.banner-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.banner-deco-1 {
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,.06);
  top: -80px;
  right: -60px;
}

.banner-deco-2 {
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,.04);
  bottom: -40px;
  right: 60px;
}

.banner-deco-3 {
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,.07);
  top: -50px;
  right: -40px;
}

.banner-deco-4 {
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,.06);
  bottom: -40px;
  right: -20px;
}
