/* ==========================================================
   CRU · Estilo partilhado da loja
   Mesma linguagem visual da splash: preto, branco, Archivo
   Black, grão de filme, contornos finos, tudo em maiúsculas.
========================================================== */

:root{
  --bg: #0a0a0a;
  --bg-raised: #121212;
  --fg: #f5f5f2;
  --line: rgba(245,245,242,0.14);
  --muted: rgba(245,245,242,0.55);
}

*{ box-sizing: border-box; }

html,body{
  margin:0;
  padding:0;
  background: var(--bg);
  color: var(--fg);
}

body{
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  position: relative;
}

a{ color: inherit; }

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

button, input, select, textarea{
  font-family: inherit;
}

/* grão de fundo, subtil, igual à splash */
body::before{
  content:"";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  z-index: 0;
  animation: grain 0.5s steps(3) infinite;
}

@keyframes grain{
  0%   { transform: translate(0,0); }
  33%  { transform: translate(-2%,1%); }
  66%  { transform: translate(1%,-2%); }
  100% { transform: translate(0,0); }
}

/* scanlines subtis, deriva lenta — igual à splash */
.scanlines{
  position: fixed;
  inset: -10% 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
  mix-blend-mode: overlay;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(245,245,242,0.06) 0px,
    rgba(245,245,242,0.06) 1px,
    transparent 2px,
    transparent 4px
  );
  animation: scan 9s linear infinite;
}

@keyframes scan{
  0%   { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

/* spotlight que segue o rato — igual à splash */
.spotlight{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(245,245,242,0.05),
    transparent 70%
  );
  transition: background 0.15s ease-out;
}

/* ===== Barra de anúncio ===== */
.announce-bar{
  position: relative;
  z-index: 21;
  background: var(--fg);
  color: var(--bg);
  text-align: center;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.announce-bar a{
  color: var(--bg);
  text-decoration: underline;
}

/* ===== Header ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(6px);
}

.site-header .brand{
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-decoration:none;
}

.site-header .brand sup{
  font-size: 9px;
  opacity: 0.6;
}

.site-nav{
  display:flex;
  align-items:center;
  gap: clamp(16px, 3vw, 32px);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a{
  text-decoration:none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}

.site-nav a:hover, .site-nav a.active{
  opacity: 1;
  border-color: var(--fg);
}

.cart-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}

.cart-pill .cart-icon{
  width: 16px;
  height: 16px;
  display: block;
}

@media (max-width: 640px){
  .cart-pill .cart-label{ display: none; }
  .cart-pill{ padding: 8px 10px; }
}

.cart-pill .count{
  background: var(--fg);
  color: var(--bg);
  font-weight: 800;
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 50%;
  padding: 0 4px;
}

main{
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px) 96px;
}

.page-title{
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: clamp(26px, 4vw, 42px);
  margin: 0 0 8px 0;
}

.page-sub{
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 36px 0;
}

/* ===== Banner da home ===== */
.home-banner{
  position: relative;
  min-height: clamp(280px, 42vw, 460px);
  display:flex;
  align-items:center;
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.home-banner img,
.home-banner video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: grayscale(0.2);
}

.home-banner::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(10,10,10,0.92) 10%, rgba(10,10,10,0.35) 70%);
}

.home-banner-content{
  position: relative;
  z-index: 1;
  padding: clamp(28px, 5vw, 56px);
  max-width: 560px;
}

.home-banner-content h1{
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.05;
  margin: 0 0 14px;
}

.home-banner-content p{
  color: rgba(245,245,242,0.75);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 26px;
  max-width: 420px;
}

/* ===== Faixa de categorias (entre o banner e os destaques) ===== */
.category-strip{
  display:flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 16px 4px 10px;
  margin-bottom: clamp(28px, 4.5vw, 48px);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

.category-pill{
  flex: 0 0 auto;
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: var(--muted);
  width: 84px;
  text-align:center;
}

.category-icon{
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.category-icon img{ width:100%; height:100%; object-fit:cover; }

.category-icon-all{ font-size: 20px; color: var(--fg); }

.category-pill span:last-child{
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

.category-pill:hover .category-icon{ border-color: rgba(245,245,242,0.5); transform: translateY(-2px); }

.category-pill.active{ color: var(--fg); }

.category-pill.active .category-icon{
  border-color: var(--fg);
  box-shadow: 0 0 0 1px var(--fg);
}

.section-heading{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom: 20px;
}

.section-heading h2{
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: clamp(18px, 2.4vw, 24px);
  margin: 0;
}

.section-divider{
  height: 1px;
  background: var(--line);
  margin: clamp(40px, 6vw, 64px) 0;
}

/* ===== Grid de produtos ===== */
.product-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

@media (max-width: 640px){
  .product-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-card .info{ padding: 12px 12px 16px; }
  .product-card .name{ font-size: 12.5px; }
  .product-card .price{ font-size: 12px; }
}

.product-card{
  text-decoration:none;
  display:flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.product-card:hover{
  border-color: rgba(245,245,242,0.4);
  transform: translateY(-2px);
}

.product-card .thumb{
  aspect-ratio: 4 / 5;
  background: #000;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.product-card .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15);
  transition: transform 0.4s ease;
}

.product-card:hover .thumb img{ transform: scale(1.04); }

.product-card .thumb.empty{
  color: var(--muted);
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.product-card .info{
  padding: 16px 18px 20px;
}

.product-card .name{
  font-family: 'Archivo Black', sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  margin: 0 0 6px 0;
}

.product-card .price{
  color: var(--muted);
  font-size: 14px;
}

.empty-state{
  border: 1px dashed var(--line);
  padding: 60px 20px;
  text-align:center;
  color: var(--muted);
  font-size: 14px;
}

/* ===== Botões ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  cursor: pointer;
  text-decoration:none;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.btn:hover{ background: transparent; color: var(--fg); }

.btn.btn-outline{
  background: transparent;
  color: var(--fg);
}

.btn.btn-outline:hover{
  background: var(--fg);
  color: var(--bg);
}

.btn:disabled{
  opacity: 0.4;
  cursor: not-allowed;
}

.btn:disabled:hover{ background: var(--fg); color: var(--bg); }

/* ===== Produto individual ===== */
.product-detail{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
}

@media (max-width: 800px){
  .product-detail{ grid-template-columns: 1fr; }
}

.product-gallery .main-image{
  aspect-ratio: 4/5;
  background:#000;
  border: 1px solid var(--line);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 12px;
}

.product-gallery .main-image img{
  width:100%; height:100%; object-fit:cover;
}

.product-gallery .thumbs{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-gallery .thumbs img{
  width: 64px; height: 76px;
  object-fit: cover;
  border: 1px solid var(--line);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.product-gallery .thumbs img:hover,
.product-gallery .thumbs img.active{
  opacity: 1;
  border-color: var(--fg);
}

.product-info h1{
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 10px 0;
}

.product-info .price{
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 22px;
}

.product-info .desc{
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 30px;
  font-size: 14px;
  white-space: pre-line;
}

.field-group{ margin-bottom: 22px; }

.field-label{
  display:block;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--muted);
}

.swatches{ display:flex; flex-wrap: wrap; gap: 10px; }

.swatch{
  border: 1px solid var(--line);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: var(--fg);
  transition: all 0.15s ease;
}

.swatch:hover{ border-color: rgba(245,245,242,0.5); }

.swatch.selected{
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.swatch-color{
  display:inline-flex;
  align-items:center;
  gap: 8px;
}

.color-dot{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(245,245,242,0.35);
  flex-shrink: 0;
}

.swatch-color.selected .color-dot{
  border-color: var(--bg);
}

.qty-row{ display:flex; align-items:center; gap: 14px; }

.qty-input{
  width: 64px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 12px;
  text-align:center;
  font-size: 14px;
}

.form-msg{
  font-size: 12px;
  margin-top: 12px;
  color: #ff8a8a;
}

/* ===== Carrinho ===== */
.cart-table{ width:100%; border-collapse: collapse; margin-bottom: 32px; }

.cart-table th{
  text-align:left;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.cart-table td{
  padding: 18px 10px 18px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 14px;
}

.cart-row-thumb{
  width: 60px; height: 72px;
  object-fit: cover;
  background:#000;
  border: 1px solid var(--line);
}

.cart-row-name{ font-weight: 700; }
.cart-row-meta{ color: var(--muted); font-size: 12px; margin-top: 4px; }

.remove-link{
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline;
  background:none;
  border:none;
  cursor:pointer;
  padding:0;
}

.remove-link:hover{ color: var(--fg); }

.cart-summary{
  max-width: 360px;
  margin-left: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.cart-summary .row{
  display:flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--muted);
}

.cart-summary .row.total{
  color: var(--fg);
  font-weight: 800;
  font-size: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 6px;
}

/* ===== Formulários (checkout) ===== */
.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .full{ grid-column: 1 / -1; }

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

label{
  display:block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea{
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 13px 14px;
  font-size: 14px;
}

input:focus, textarea:focus{
  outline: none;
  border-color: rgba(245,245,242,0.5);
}

.checkout-layout{
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items:start;
}

@media (max-width: 860px){
  .checkout-layout{ grid-template-columns: 1fr; }
}

.summary-box{
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 24px;
}

.summary-box .line{
  display:flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.summary-box .line:last-of-type{ border-bottom:none; }

.alert{
  border: 1px solid var(--line);
  padding: 16px 18px;
  font-size: 13px;
  margin-bottom: 24px;
}

.alert.success{ border-color: #4caf50; }
.alert.error{ border-color: #e05353; }

/* ===== Tabela genérica (área de cliente, admin) ===== */
.admin-table{ width:100%; border-collapse:collapse; margin-top: 8px; }

.admin-table th{
  text-align:left;
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  padding-bottom:12px;
  border-bottom:1px solid var(--line);
}

.admin-table td{
  padding:14px 10px 14px 0;
  border-bottom:1px solid var(--line);
  font-size:13px;
  vertical-align: middle;
}

.status-pill{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  border:1px solid var(--line);
}

.status-paid{ border-color:#4caf50; color:#4caf50; }
.status-pending{ border-color:#e0a53e; color:#e0a53e; }
.status-failed, .status-cancelled{ border-color:#e05353; color:#e05353; }
.status-shipped, .status-delivered{ border-color:#5aa0e0; color:#5aa0e0; }

.admin-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 10px;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Barra de cookies ===== */
.cookie-bar{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 18px 20px;
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  gap: 16px;
  justify-content: space-between;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-bar.hidden{
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.cookie-bar p{
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(245,245,242,0.8);
  flex: 1 1 260px;
}

.cookie-bar p a{ text-decoration: underline; color: var(--fg); }

.cookie-bar-actions{
  display:flex;
  gap: 10px;
  flex: 0 0 auto;
}

.cookie-bar-actions .btn{ padding: 11px 18px; font-size: 11px; white-space: nowrap; }

@media (max-width: 480px){
  .cookie-bar{ flex-direction: column; align-items: stretch; }
  .cookie-bar-actions{ justify-content: flex-end; }
}

/* ===== Tabs (área de cliente, etc.) ===== */
.page-tabs{
  display:flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-tabs a{
  text-decoration:none;
  color: var(--muted);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-tabs a:hover{ color: var(--fg); }

.page-tabs a.active{
  color: var(--fg);
  border-color: var(--fg);
}

/* ===== Páginas institucionais (privacidade/termos/devoluções) ===== */
.legal-content{
  max-width: 720px;
  color: rgba(245,245,242,0.8);
  font-size: 14px;
  line-height: 1.8;
}

/* ===== Rodapé ===== */
footer.site-footer{
  position: relative;
  z-index: 1;
  padding: 48px clamp(20px, 4vw, 48px) 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.footer-grid{
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

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

.footer-col h3{
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--fg);
}

.footer-col a{
  display:block;
  text-decoration:none;
  color: var(--muted);
  font-size: 12.5px;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-col a:hover{ color: var(--fg); }

.footer-col p{
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  margin: 0 0 6px;
  white-space: pre-line;
}

.footer-brand{
  font-family: 'Archivo Black', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-social{
  display:flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social a{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover{ border-color: var(--fg); color: var(--fg); }

.footer-social svg{ width: 15px; height: 15px; fill: currentColor; }

.footer-payments{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-pill{
  border: 1px solid var(--line);
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-bottom{
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display:flex;
  justify-content:space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
