/* ========================================
   LOJAS STYLES - MACAPÁ SHOPPING
   Estilos específicos da página de lojas e alimentação
   ======================================== */

/* PAGE HEAD */
.page-head {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: var(--spacing-lg) 0;
}

.breadcrumb {
  --bs-breadcrumb-divider: "›";
}

.breadcrumb a {
  color: #6d7387;
  text-decoration: none;
}

.page-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* CHIPS/BUTTONS */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: var(--spacing-xs);
  font-size: var(--font-size-sm);
  background: #fff;
  color: var(--brand-light);
  cursor: pointer;
  transition: all var(--transition-normal);
  min-width: 44px;
  justify-content: center;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.chip.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  min-width: auto;
  padding: var(--spacing-xs) var(--spacing-sm);
}

.chip .btn-text {
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: all var(--transition-normal);
}

.chip.active .btn-text {
  max-width: 200px;
  opacity: 1;
}

/* SIDEBAR */
.side {
  position: sticky;
  top: 20px;
}

/* FILTROS */
.filters {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.searchbox {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.searchbox svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #9aa1b5;
  pointer-events: none;
}

.searchbox input {
  padding-left: 40px;
  border: 1px solid var(--line);
  border-radius: 44px;
}

.letters {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.letter {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: .85rem;
  font-weight: 500;
}

.letter.letter-all {
  width: auto;
  padding-left: 10px;
  padding-right: 10px;
}

.letter:hover,
.letter.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* STORE CARDS */
.store-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  height: 100%;
  position: relative;
}

.store-card .logo {
  height: 10vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.store-card .logo img {
  max-height: 125px;
  max-width: 90%;
  object-fit: contain;
}

.store-card .body {
  padding: 12px 14px;
  border-top: 1px dashed #eef1f7;
}

.store-card h6 {
  font-size: 1.1rem;
  margin: 0 0 .25rem;
  color: var(--ink);
  text-transform: uppercase;
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .78rem;
  color: #6b7280;
}

.meta .dot::before {
  content: "•";
  margin-right: .4rem;
}

.go {
  position: absolute;
  right: 10px;
  top: 52%;
  width: 26px;
  height: 26px;
  border: 1px solid #f0f0f0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.go:hover {
  border-color: var(--brand);
  background: var(--brand);
}

.go:hover svg {
  stroke: #fff;
}

.go svg {
  width: 14px;
  height: 14px;
  stroke: #9aa1b5;
  transition: stroke 0.3s ease;
}

/* LOAD MORE BUTTON */
.loadmore {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.loadmore:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.loadmore svg {
  transition: transform 0.3s ease;
}

.loadmore:hover svg {
  transform: scale(1.1);
}

/* STORE DETAIL */
.store-detail {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  position: relative;
}

.store-detail .pane-left {
  border-right: 1px solid #eef1f7;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: #fff;
}

.store-detail .pane-left img {
  max-height: 150px;
  max-width: 90%;
  object-fit: contain;
}

.store-detail .pane-right {
  padding: 24px;
}

.store-detail .title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: .75rem;
  color: #2b2b2b;
}

.info-line {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #4b5563;
  font-size: .95rem;
  margin-bottom: .35rem;
}

.info-line svg {
  width: 16px;
  height: 16px;
  color: #3251ff;
  flex-shrink: 0;
}

.store-detail p {
  color: #4b5563;
  margin-top: 12px;
  margin-bottom: 0;
}

.detail-actions {
  position: absolute;
  right: 10px;
  top: 10px;
}

.btn-close-detail {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-close-detail:hover {
  border-color: var(--brand);
  background: var(--brand);
}

.btn-close-detail:hover svg {
  stroke: #fff;
}

.btn-close-detail svg {
  width: 14px;
  height: 14px;
  stroke: #6b7280;
  transition: stroke 0.3s ease;
}

/* RESPONSIVO */
@media (max-width: 991.98px) {
  .side {
    position: static;
  }

  .store-detail .pane-left {
    border-right: 0;
    border-bottom: 1px dashed #eef1f7;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .searchbox {
    min-width: auto;
  }

  .letters {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .btn-pages {
    width: 100%;
    margin-top: 1rem;
  }

  .chip {
    flex: 1;
    justify-content: center;
  }
}