/* ==========================================================
   BOTUKA — CATALOGO DE SERVICOS
   ========================================================== */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.service-store {
  --store-border: rgba(15, 23, 42, .10);
  --store-muted: #64748b;
  --store-text: #172033;
  --store-surface: #ffffff;
  --store-soft: #f6f8fb;
  --store-accent: #0d6efd;
  --store-radius: 18px;

  width: 100%;
  min-width: 0;
  color: var(--store-text);
  background: #f7f8fa;
  overflow-x: clip;
}


/* HERO */

.store-hero {
  padding: 46px 0 38px;
  color: #fff;
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(255,255,255,.16),
      transparent 30%
    ),
    linear-gradient(135deg, #111827, #172554);
}

.store-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 600px);
  align-items: end;
  gap: 40px;
}

.store-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .82;
}

.store-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -.045em;
}

.store-hero p {
  max-width: 620px;
  margin: 10px 0 0;
  font-size: 1.05rem;
  color: rgba(255,255,255,.76);
}

.store-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 17px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.store-search > i {
  color: #64748b;
  font-size: 1.05rem;
}

.store-search input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
}

.store-search button {
  height: 46px;
  padding: 0 23px;
  border: 0;
  border-radius: 11px;
  background: var(--store-accent);
  color: #fff;
  font-weight: 750;
}


/* ESTRUTURA */

.store-container {
  padding-top: 32px;
  padding-bottom: 60px;
}

.store-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}


/* FILTROS */

.store-filters {
  position: sticky;
  top: 90px;
  z-index: 10;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius);
  box-shadow: 0 8px 30px rgba(15,23,42,.045);
  scrollbar-width: thin;
}

.store-filters__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 17px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--store-border);
}

.store-filters__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--store-muted);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.store-filters h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.store-filter-close {
  display: none;
}

.store-filter-group {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(15,23,42,.07);
}

.store-filter-group:last-of-type {
  border-bottom: 0;
}

.store-filter-group > label:not(.store-check),
.store-filter-label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: .83rem;
  font-weight: 750;
}

.store-filter-group select,
.store-filter-group input[type="text"] {
  width: 100%;
  min-width: 0;
  height: 43px;
  padding: 0 11px;
  border: 1px solid #dbe1e8;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #1e293b;
  font-size: .88rem;
}

.store-filter-group select:focus,
.store-filter-group input:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 3px rgba(13,110,253,.10);
}

.store-price-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.store-price-fields small {
  display: block;
  margin-bottom: 5px;
  color: var(--store-muted);
  font-size: .74rem;
}

.store-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 11px 0;
  color: #475569;
  font-size: .88rem;
  cursor: pointer;
}

.store-check input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: var(--store-accent);
}

.store-filter-submit {
  display: flex;
  width: 100%;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  background: var(--store-accent);
  color: #fff;
  font-weight: 750;
}

.store-filter-clear {
  display: block;
  margin-top: 12px;
  color: var(--store-muted);
  font-size: .82rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.store-filter-clear:hover {
  color: #dc3545;
}


/* RESULTADOS */

.store-results {
  min-width: 0;
}

.store-results-header {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.store-results-count {
  display: block;
  margin-bottom: 3px;
  color: var(--store-muted);
  font-size: .78rem;
  font-weight: 650;
}

.store-results-header h2 {
  margin: 0;
  color: #172033;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

.store-order {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.store-order label {
  color: var(--store-muted);
  font-size: .8rem;
  white-space: nowrap;
}

.store-order select {
  height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid #dbe1e8;
  border-radius: 10px;
  background-color: #fff;
  color: #334155;
  font-size: .86rem;
}


/* GRID */

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


/* CARD */

.store-product-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--store-border);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(15,23,42,.035);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.store-product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13,110,253,.22);
  box-shadow: 0 14px 34px rgba(15,23,42,.09);
}

.store-product-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f1f4f8;
}

.store-product-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f7f8fa;
  transition: transform .25s ease;
}

.store-product-card:hover .store-product-image > img {
  transform: scale(1.025);
}

.store-product-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #94a3b8;
  font-size: 2.2rem;
}

.store-product-badges {
  position: absolute;
  top: 11px;
  left: 11px;
  display: flex;
  max-width: calc(100% - 22px);
  flex-wrap: wrap;
  gap: 6px;
}

.store-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #166534;
  box-shadow: 0 2px 9px rgba(0,0,0,.09);
  font-size: .69rem;
  font-weight: 800;
}

.store-badge--highlight {
  color: #92400e;
}

.store-product-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 17px 17px 13px;
}

.store-product-meta {
  display: flex;
  min-height: 20px;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.store-product-meta span {
  color: var(--store-muted);
  font-size: .7rem;
  font-weight: 700;
}

.store-product-meta span + span::before {
  content: "•";
  margin-right: 6px;
  opacity: .55;
}

.store-product-body h3 {
  margin: 0 0 11px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.store-product-body h3 a {
  display: -webkit-box;
  overflow: hidden;
  color: #172033;
  text-decoration: none;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.store-product-company {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  color: #64748b;
  font-size: .78rem;
}

.store-product-company i {
  margin-top: 2px;
  flex: 0 0 auto;
}

.store-product-company span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.store-product-company small {
  display: block;
  margin-top: 1px;
  color: #94a3b8;
}

.store-product-price {
  margin-top: auto;
  padding-top: 6px;
}

.store-product-price small {
  display: block;
  margin-bottom: 1px;
  color: #94a3b8;
  font-size: .76rem;
  text-decoration: line-through;
}

.store-product-price strong {
  display: block;
  color: #111827;
  font-size: 1.18rem;
  font-weight: 850;
}

.store-product-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.store-product-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #475569;
  font-size: .68rem;
  font-weight: 700;
}

.store-product-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 0 17px 17px;
}

.store-product-view,
.store-product-whatsapp {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 750;
}

.store-product-view {
  padding: 0 15px;
  background: #172554;
  color: #fff;
  font-size: .82rem;
}

.store-product-view:hover {
  background: #1e3a8a;
  color: #fff;
}

.store-product-whatsapp {
  width: 40px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
  font-size: 1.05rem;
}


/* VAZIO */

.store-empty {
  grid-column: 1 / -1;
  padding: 70px 30px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--store-radius);
  text-align: center;
}

.store-empty > i {
  display: block;
  margin-bottom: 15px;
  color: #94a3b8;
  font-size: 2.6rem;
}

.store-empty h2 {
  margin-bottom: 8px;
  font-size: 1.3rem;
  font-weight: 800;
}

.store-empty p {
  color: var(--store-muted);
}

.store-empty a {
  display: inline-flex;
  margin-top: 8px;
  padding: 10px 17px;
  border-radius: 10px;
  background: #172554;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}


/* PAGINAÇÃO */

.store-pagination {
  margin-top: 32px;
}


/* MOBILE TOOLBAR */

.store-mobile-toolbar {
  display: none;
}

.store-filter-backdrop {
  display: none;
}


/* TABLET */

@media (max-width: 1199px) {
  .store-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* MOBILE / DRAWER */

@media (max-width: 880px) {
  .store-hero {
    padding: 32px 0;
  }

  .store-hero__content {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .store-container {
    padding-top: 20px;
  }

  .store-layout {
    display: block;
  }

  .store-mobile-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
  }

  .store-mobile-toolbar > span {
    color: var(--store-muted);
    font-size: .8rem;
  }

  .store-filter-toggle {
    display: inline-flex;
    height: 42px;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    background: #fff;
    color: #172033;
    font-weight: 750;
  }

  .store-filters {
    position: fixed;
    z-index: 1055;
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: min(88vw, 360px);
    max-height: none;
    padding: 20px;
    border: 0;
    border-radius: 0 18px 18px 0;
    box-shadow: 20px 0 50px rgba(0,0,0,.22);
    transform: translateX(-105%);
    transition: transform .22s ease;
  }

  body.store-filters-open .store-filters {
    transform: translateX(0);
  }

  .store-filter-close {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    color: #475569;
  }

  body.store-filters-open {
    overflow: hidden;
  }

  body.store-filters-open .store-filter-backdrop {
    position: fixed;
    z-index: 1050;
    inset: 0;
    display: block;
    background: rgba(2,6,23,.58);
    backdrop-filter: blur(2px);
  }

  .store-results-header {
    align-items: flex-end;
  }
}


/* CELULAR */

@media (max-width: 600px) {
  .service-store .container {
    padding-right: 14px;
    padding-left: 14px;
  }

  .store-hero h1 {
    font-size: 2rem;
  }

  .store-hero p {
    font-size: .92rem;
  }

  .store-search {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .store-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .store-results-header {
    display: grid;
    gap: 12px;
  }

  .store-order {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .store-order select {
    width: 100%;
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .store-product-card {
    border-radius: 13px;
  }

  .store-product-body {
    padding: 12px 11px 9px;
  }

  .store-product-body h3 {
    font-size: .88rem;
  }

  .store-product-company {
    display: none;
  }

  .store-product-price strong {
    font-size: 1rem;
  }

  .store-product-benefits {
    display: none;
  }

  .store-product-footer {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 11px 11px;
  }

  .store-product-whatsapp {
    display: none;
  }

  .store-product-view {
    width: 100%;
    padding: 0 8px;
    font-size: .75rem;
  }

  .store-product-badges {
    top: 7px;
    left: 7px;
  }

  .store-badge {
    padding: 4px 6px;
    font-size: .61rem;
  }
}


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