.shop {
  --shop-accent: var(--accent);
  --shop-rule: #3a3437;
  padding-block: 0 clamp(3.3rem, 6vw, 5.5rem);
  border-block: 1px solid var(--line);
  background: #151416;
}

.shop-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shop-banner,
.shop-category,
.product-card,
.product-media {
  position: relative;
  isolation: isolate;
}

.shop-banner {
  overflow: hidden;
  background: #0b0b0c;
}

.shop-banner-media {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 32%;
}

.shop-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}

.shop-banner::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #0b0b0c 22%, #0b0b0cfa 33%, #0b0b0ccb 43%, #0b0b0c2e 63%, transparent 81%),
    linear-gradient(0deg, #0b0b0cc9, transparent 37%);
  content: '';
  pointer-events: none;
}

.shop-banner-inner {
  display: grid;
  min-height: clamp(27rem, 39vw, 36rem);
  align-items: center;
  padding-block: clamp(3.75rem, 7vw, 7rem);
}

.shop-intro { max-width: min(100%, 47rem); }
.shop-title { font-size: clamp(2.75rem, 5vw, 5rem); }
.shop-title > * { display: block; text-wrap: balance; }
.shop-title em { margin-top: .1em; color: #ded0c8; }

.shop-subtitle {
  max-width: 27rem;
  margin-top: 1.35rem;
  color: var(--soft);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
}

.shop-actions { margin-top: 1.6rem; }
.shop-actions .button, .product-inquiry { gap: .65rem; }
.shop-catalog-link { border-color: #817776; }
.shop-catalog-link .shop-icon { width: 1.05rem; height: 1.05rem; }

.shop-benefits {
  border-block: 1px solid var(--shop-rule);
  background: #1b181a;
}

.shop-benefits ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  list-style: none;
}

.shop-benefits li {
  display: flex;
  min-height: 5.15rem;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .8rem .4rem;
  color: #e1d9d3;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.shop-benefits li + li { border-inline-start: 1px solid var(--shop-rule); }
.shop-benefits .shop-icon { color: var(--shop-accent); }

.shop-catalog { padding-top: clamp(2.3rem, 5vw, 4.5rem); }

.shop-catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: .65rem 2rem;
  margin-bottom: clamp(.9rem, 2.1vw, 1.6rem);
  padding-bottom: clamp(.9rem, 2vw, 1.45rem);
  border-bottom: 1px solid var(--shop-rule);
}
.shop-catalog-title { font-size: clamp(1.8rem, 3.3vw, 3.2rem); }
.shop-tools { margin-bottom: clamp(1rem, 2.4vw, 1.9rem); }

.shop-filters {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(.48rem, 1vw, .9rem);
}

.shop-category {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  gap: clamp(.45rem, 1vw, .9rem);
  padding: .7rem clamp(.65rem, 1.4vw, 1.15rem);
  overflow: hidden;
  border: 1px solid var(--shop-rule);
  border-radius: .25rem;
  background: linear-gradient(150deg, #222023, #1a181b 75%);
  color: var(--soft);
  font-size: clamp(.84rem, 1.15vw, .96rem);
  font-weight: 600;
  line-height: 1.25;
  text-align: start;
  transition: transform .2s var(--motion-ease), border-color .2s, color .2s, background-color .2s;
}

.shop-category .shop-icon {
  width: 1.6rem;
  height: 1.6rem;
  color: #b8aaa8;
}

.shop-category::before {
  position: absolute;
  inset: auto .9rem 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--shop-accent);
  content: '';
  opacity: 0;
  transform: scaleX(0);
  transition: transform .4s var(--motion-ease), opacity .25s;
}

.shop-category[aria-pressed='true'] {
  border-color: #815e5e;
  background: linear-gradient(150deg, #332629, #221b1f 75%);
  color: var(--text);
}
.shop-category[aria-pressed='true'] .shop-icon { color: var(--shop-accent); }
.shop-category[aria-pressed='true']::before { opacity: 1; transform: scaleX(1); }
.shop-category:active { transform: translateY(1px); }

.shop-note { max-width: 42ch; color: var(--muted); font-size: .91rem; }
.shop-empty { padding-block: 1.5rem; color: var(--muted); }

.shop-pagination {
  display: grid;
  justify-items: center;
  gap: .65rem;
  margin-top: clamp(1.2rem, 3vw, 2.5rem);
  padding-top: clamp(.85rem, 2vw, 1.55rem);
  border-top: 1px solid var(--shop-rule);
}

.shop-page-controls,
.shop-page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .1875rem;
}

.shop-page-button {
  display: grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  padding: .3rem .25rem;
  border: 1px solid var(--shop-rule);
  border-radius: .2rem;
  background: #201d20;
  color: var(--soft);
  font-size: .92rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  transition: background-color .22s, border-color .22s, color .22s, transform .22s var(--motion-ease);
}

.shop-page-button[aria-current='page'] {
  border-color: #ae595c;
  background: #782e37;
  color: #fff3ef;
}

.shop-page-button:focus-visible { outline-offset: 2px; z-index: 1; }
.shop-page-button:enabled:active { transform: translateY(1px); }
.shop-page-button .shop-icon { width: 1.02rem; height: 1.02rem; }
.shop-page-previous .shop-icon { transform: rotate(180deg); }
.shop-page-position { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(.8rem, 1.7vw, 1.5rem);
  padding: 0;
  list-style: none;
}

.product-card {
  --product-sheen: #9a6b6630;
  --product-icon: #cfa29b;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--shop-rule);
  border-radius: .25rem;
  background: linear-gradient(165deg, #201c1f, #181719 64%);
  box-shadow: 0 .4rem .85rem #0002;
  transition: transform .24s var(--motion-ease), border-color .24s, box-shadow .24s;
}

.product-card[data-category='agulhas'] { --product-sheen: #9ca5ab2d; --product-icon: #c7cbce; }
.product-card[data-category='pomadas'] { --product-sheen: #bca38729; --product-icon: #d0b59a; }
.product-card[data-category='higiene'] { --product-sheen: #a6aba02d; --product-icon: #c6ccc0; }
.product-card[data-category='acessorios'] { --product-sheen: #9c837e2b; --product-icon: #bfa7a0; }
.product-card[data-category='outros'] { --product-sheen: #a59da62a; --product-icon: #c8bcc8; }

.product-media {
  overflow: hidden;
  aspect-ratio: 1;
  border-bottom: 1px solid var(--shop-rule);
  background: #252326;
}

.product-art {
  position: absolute;
  inset: .55rem;
  transform: translateY(var(--shop-drift, 0px));
}

.product-photo,
.product-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform .63s var(--motion-ease);
}

.product-photo {
  background: #fff;
  object-fit: contain;
  object-position: center;
}

.product-illustration {
  display: grid;
  place-items: center;
  color: var(--product-icon);
  background: radial-gradient(ellipse at 50% 42%, var(--product-sheen), transparent 68%), linear-gradient(150deg, #262326, #1b191c 70%);
}

.product-illustration::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, #e8dbd010 0 1px, transparent 1px 1.4rem),
    repeating-linear-gradient(90deg, #e8dbd010 0 1px, transparent 1px 1.4rem);
  mask-image: radial-gradient(ellipse at 50% 48%, #000, transparent 76%);
  content: '';
}

.product-illustration::after {
  position: absolute;
  width: min(52%, 8.35rem);
  aspect-ratio: 1;
  border: 1px solid #dbc4be28;
  border-radius: 50%;
  box-shadow: 0 0 0 .55rem #dbc4be0b, inset 0 0 1.15rem #0a090927;
  content: '';
}

.product-illustration .shop-icon {
  position: relative;
  z-index: 1;
  width: min(29%, 4.5rem);
  height: auto;
  aspect-ratio: 1;
  stroke-width: .8;
  filter: drop-shadow(0 .18rem .38rem #120f11);
}

.product-placeholder {
  position: absolute;
  z-index: 1;
  bottom: .65rem;
  left: .7rem;
  padding: .27rem .55rem;
  border: 1px solid #e0c6bb28;
  border-radius: .2rem;
  background: #141214e8;
  color: #e3d6cf;
  font-size: .73rem;
  line-height: 1.3;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  padding: clamp(1rem, 1.65vw, 1.45rem);
}

.product-category { color: var(--product-icon); font-size: .81rem; line-height: 1.35; }
.product-body h3 { margin-top: .45rem; font-size: clamp(1.42rem, 1.9vw, 1.87rem); overflow-wrap: anywhere; }
.product-description { margin-top: .48rem; color: var(--muted); font-size: .89rem; line-height: 1.45; }
.product-price { margin-top: .48rem; color: var(--text); font-weight: 600; }
.product-body::after { order: 1; flex: 1 0 .9rem; content: ''; }
.product-card:focus-within { border-color: #87706b; }
.product-inquiry {
  order: 2;
  min-height: 2.85rem;
  padding: .5rem .65rem;
  border-color: #67585c;
  border-radius: .15rem;
  font-size: .83rem;
  letter-spacing: .01em;
  text-transform: none;
}
.product-inquiry .icon { width: 1rem; height: 1rem; color: var(--shop-accent); }
.product-inquiry:focus-visible { outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  .shop-page-button:enabled:not([aria-current]):hover { border-color: #937476; color: var(--text); }
  .shop-category:hover { border-color: #8a7474; color: var(--text); }
  .shop-category:hover:not(:active) { transform: translateY(-2px); }
  .product-card:hover { transform: translateY(-2px); border-color: #7a6060; box-shadow: 0 .7rem 1.3rem #0005; }
  .product-card:hover :is(.product-photo, .product-illustration) { transform: scale(1.02); }
}

@media (prefers-reduced-motion: no-preference) {
  .product-media.is-in-view .product-photo {
    animation: product-photo-enter .58s var(--motion-ease) both;
  }
  @keyframes product-photo-enter {
    from { opacity: .72; }
    to { opacity: 1; }
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  [data-shop-spotlight]::after {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: var(--spot-size, 15rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, #e8a19023, #dfa2970b 45%, transparent 70%);
    content: '';
    pointer-events: none;
    opacity: 0;
    transform: translate3d(calc(var(--spot-x, 0px) - 50%), calc(var(--spot-y, 0px) - 50%), 0);
    transition: opacity .28s;
  }

  .shop-banner { --spot-size: 35rem; }
  [data-shop-spotlight][data-lit]::after { opacity: 1; }
}

@media (max-width: 1100px) {
  .shop-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop-category[data-shop-filter='todos'] { grid-column: span 2; }
}

@media (max-width: 1020px) {
  .shop-banner-media { left: 24%; }
  .shop-banner::before {
    background:
      linear-gradient(90deg, #0b0b0c 17%, #0b0b0cf2 30%, #0b0b0cba 45%, #0b0b0c2e 72%),
      linear-gradient(0deg, #0b0b0c9c, transparent 45%);
  }
}

@media (max-width: 780px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .shop-banner-media {
    inset: 0 0 auto;
    height: clamp(15.5rem, 66vw, 24rem);
  }

  .shop-banner-media img { object-position: center 62%; }
  .shop-banner::before {
    background: linear-gradient(180deg, transparent 20%, #0b0b0c0a 29%, #0b0b0c95 40%, #0b0b0c 58%);
  }

  .shop-banner-inner {
    min-height: 0;
    padding-block: clamp(12rem, 52vw, 19rem) 2.1rem;
  }

  .shop-title { font-size: clamp(1.87rem, 8.55vw, 3.05rem); }
  .shop-title > * { text-wrap: wrap; }
  .shop-intro .eyebrow { margin-bottom: .8rem; }
  .shop-subtitle { margin-top: .95rem; }
  .shop-actions { margin-top: 1.15rem; }
  .shop-actions .button { width: 100%; }

  .shop-benefits li {
    flex-direction: column;
    min-height: 5.2rem;
    gap: .36rem;
    font-size: clamp(.68rem, 3.05vw, .86rem);
  }

  .shop-benefits .shop-icon { width: 1.12rem; height: 1.12rem; }
  .shop-catalog-head { display: grid; }
  .shop-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-category {
    min-height: 4.4rem;
    flex-direction: column;
    justify-content: center;
    gap: .35rem;
    padding: .48rem .2rem;
    font-size: .78rem;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .shop-category .shop-icon { width: 1.18rem; height: 1.18rem; }
  .shop-category[data-shop-filter='todos'] { grid-column: 1 / -1; min-height: 2.75rem; flex-direction: row; }
  .product-grid { gap: .65rem; }
  .product-media { aspect-ratio: 4 / 5; }
  .product-art { inset: .4rem; }
  .product-body { min-height: 11.45rem; padding: .7rem; }
  .product-category { font-size: .73rem; }
  .product-body h3 { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .product-description { font-size: .8rem; }
  .product-inquiry { gap: .35rem; padding-inline: .35rem; font-size: .75rem; }
  .product-inquiry .icon { width: .86rem; height: .86rem; }
}

@media (max-width: 359px) {
  .shop-category { padding-inline: .12rem; font-size: .74rem; }
  .product-body { padding-inline: .55rem; }
  .product-inquiry .icon { display: none; }
}

@media (max-width: 319px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .shop-category:hover, .shop-category:active, .product-card:hover, .product-art, .product-card:hover :is(.product-photo, .product-illustration), .shop-page-button:enabled:active { transform: none; }
}
