.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: var(--color-primary);
  font-weight: 800;
  line-height: 1.1;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.button--outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.button--outline:hover {
  color: #fff;
  background: var(--color-primary);
}

.button--whatsapp {
  background: var(--color-success);
}

.button--whatsapp:hover {
  background: #1eaf55;
}

.feature-card,
.stat-card,
.product-card,
.product-panel {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 4px 14px rgba(23, 32, 51, 0.04);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.feature-card:hover {
  border-color: rgba(63, 72, 204, 0.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.feature-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 0.8rem;
  color: var(--color-primary);
  background: #eef0ff;
  font-size: 1.3rem;
  font-weight: 900;
}

.feature-card p,
.stat-card p {
  color: var(--color-muted);
}

.feature-card__link,
.text-link {
  color: var(--color-primary);
  font-weight: 800;
}

.stat-card {
  padding: 1.5rem;
}

.stat {
  display: grid;
  gap: 0.25rem;
}

.stat strong {
  color: var(--color-primary);
  font-size: 1.7rem;
  line-height: 1;
}

.stat span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.stat-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.search-field {
  width: min(100%, 380px);
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-ink);
  background: #fff;
}

.search-field:focus {
  border-color: var(--color-primary);
  outline: 3px solid rgba(63, 72, 204, 0.12);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.product-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.product-card__media {
  display: grid;
  min-height: 230px;
  place-items: center;
  padding: 1rem;
  background: #f8fafc;
}

.product-card__media img {
  width: 100%;
  height: 230px;
  object-fit: contain;
}

.product-card__media--empty {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem;
}

.product-card__category {
  margin-bottom: 0.45rem;
  color: var(--color-primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-card__title {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.product-card__button {
  width: 100%;
  margin-top: auto;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2.5rem;
}

.pagination button {
  min-width: 40px;
  min-height: 40px;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-ink);
  background: #fff;
}

.pagination button:hover,
.pagination button[aria-current="page"] {
  border-color: var(--color-primary);
  color: #fff;
  background: var(--color-primary);
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.breadcrumb a {
  color: var(--color-primary);
  font-weight: 700;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.gallery-main {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 2rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: #f8fafc;
}

.gallery-main img {
  width: 100%;
  height: min(58vw, 560px);
  min-height: 360px;
  object-fit: contain;
}

.gallery-zoom {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 800;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.gallery-thumb {
  min-height: 96px;
  padding: 0.4rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.gallery-thumb[aria-current="true"] {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(63, 72, 204, 0.12);
}

.gallery-thumb img {
  width: 100%;
  height: 82px;
  object-fit: contain;
}

.product-info h1 {
  margin-bottom: 1rem;
}

.product-description {
  padding: 1rem 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  color: var(--color-muted);
  white-space: normal;
}

.product-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  margin: 1.5rem 0;
  color: var(--color-muted);
}

.product-meta dt {
  color: var(--color-ink);
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(11, 16, 35, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__panel {
  position: relative;
  display: grid;
  width: min(100%, 1000px);
  height: min(90vh, 800px);
  place-items: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.5rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  text-align: center;
}

.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: var(--color-success);
  box-shadow: var(--shadow-md);
  font-weight: 800;
}
