/* ========== ACESSORIOS – grelha de categorias ========== */
:root{
  --ayeme-brown: #bda996;       /* castanho do tema */
  --ayeme-brown-700:#9e8c7c;
  --acc-radius: 14px;
  --acc-shadow: 0 12px 26px rgba(0,0,0,.12);
}

.acc-wrap{
  padding: clamp(48px, 6vw, 88px) 0;
  background: #fff;
}
.acc-head{
  /* centra o bloco do cabeçalho dentro da página */
  max-width: min(1100px, 92vw);
  margin-inline: auto;

  text-align: center;
  padding: 0 12px;
  margin-bottom: clamp(28px, 4.5vw, 52px); /* espaço extra até à grelha */
}

.acc-title{
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 700;
  color: #1b1b1b;
  margin: 0 0 .35em 0; /* respiro entre o título e o parágrafo */
}

.acc-sub{
  margin: 0;                          /* parágrafo numa nova linha */
  color: #8a8f98;                     /* mais claro */
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
}

/* linha fina por baixo do cabeçalho */
.acc-head::after{
  content: "";
  display: block;
  width: min(820px, 92%);             /* linha um pouco mais curta que o container */
  height: 1px;
  background: #e9e9e9;
  margin: clamp(12px, 2vw, 18px) auto  /* espaço título/parágrafo ↔ linha */
          clamp(28px, 4vw, 46px);      /* espaço linha ↔ grelha */
  border-radius: 2px;
}

/* grelha: 4 → 3 → 2 → 1 */
.acc-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: clamp(14px, 2vw, 24px);
}
@media (max-width: 1200px){
  .acc-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 900px){
  .acc-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .acc-grid{ grid-template-columns: 1fr; }
}

/* Cartão */
.acc-card{
  display: block;
  text-decoration: none;
  color: inherit;
}
.acc-figure{
  position: relative;
  border-radius: var(--acc-radius);
  overflow: hidden;
  box-shadow: var(--acc-shadow);
  aspect-ratio: 4 / 3;           /* mantém proporção bonita */
  background: #eee;
}
.acc-img{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .9s cubic-bezier(.2,.8,.2,1), filter .9s ease;
  filter: saturate(.94) contrast(.98) brightness(.96);
}

/* Overlay castanho + ícone "+" */
.acc-hover{
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ayeme-brown) 70%, #000 18%);
  opacity: 0;
  transition: opacity .5s ease;
  display: grid;
  place-items: center;
}
.acc-plus{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #fff;
  color: var(--ayeme-brown-700);
  display: grid;
  place-items: center;
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  transform: translateY(8px);
  transition: transform .35s ease;
}

/* Interações */
.acc-card:hover .acc-hover,
.acc-card:focus-visible .acc-hover{ opacity: .95; }
.acc-card:hover .acc-img,
.acc-card:focus-visible .acc-img{ transform: scale(1.05); filter: none; }
.acc-card:hover .acc-plus,
.acc-card:focus-visible .acc-plus{ transform: translateY(0); }

/* Nome do acessório */
.acc-name{
  margin: 12px 2px 0 2px;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  color: #111;
}

/* Acessibilidade foco teclado */
.acc-card:focus-visible{
  outline: 3px solid var(--ayeme-brown);
  outline-offset: 4px;
  border-radius: var(--acc-radius);
}


