/* ===================================
   SMA Boutique - Product List (Adobe XD Specs)
   ================================== */

/* ===================================
   PAGE HEADER BANNER
   ================================== */

.product-list-banner {
  /* #F2EEDD com opacity 0.39 → rgba(242, 238, 221, 0.39) */
  background: rgba(242, 238, 221, 0.39) 0% 0% no-repeat padding-box;
  padding: 3rem 0 2rem;
  border-bottom: 3px solid var(--color-border-gold, #C0AE5138);
}

.product-list-banner__title {
  text-align: center;
  font: normal normal bold 55px/1.2 "Poppins", sans-serif;
  letter-spacing: 0px;
  color: #8C6D3A;
  opacity: 1;
  width: 942px;
  min-height: 77px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-list-banner__breadcrumb {
  font: normal normal 400 15px/22px "Poppins", sans-serif;
  color: var(--text-primary, #383838);
}

.product-list-banner__breadcrumb a {
  color: var(--brand-primary, #8C6D3A);
  text-decoration: none;
}

.product-list-banner__breadcrumb a:hover {
  text-decoration: underline;
}

.product-list-banner__breadcrumb .separator {
  margin: 0 0.5rem;
  color: var(--text-muted, #C7B69B);
}

/* ===================================
   LAYOUT PRINCIPAL
   ================================== */

.product-list-section {
  background: var(--bg-primary, #FFFFFF);
  padding: 3rem 0 4rem;
}

@media (min-width: 992px) {
  .product-list-section > .container,
  .product-list-banner .container {
    max-width: 1400px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ===================================
   SIDEBAR — FILTROS
   ================================== */

.filter-sidebar {
  padding: 1.75rem 1.5rem;
}

.filter-sidebar__title {
  width: 221px;
  max-width: 100%;
  height: 35px;
  text-align: left;
  font: normal normal bold 25px/28px "Poppins", sans-serif;
  letter-spacing: 0px;
  color: #8C6D3A;
  opacity: 1;
  margin-bottom: 2rem;
  /* padding-bottom: 1.25rem; */
  /* border-bottom: 3px solid var(--color-border-gold, #C0AE5138); */
}

.filter-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-sidebar__item a {
  display: block;
  text-align: left;
  font: normal normal normal 14px/38px "Poppins", sans-serif;
  letter-spacing: 0px;
  color: #C0AE51;
  opacity: 1;
  padding: 0 1rem;
  border-radius: var(--border-radius-sm, 10px);
  text-decoration: none;
  transition: background var(--transition-fast, 0.15s ease), color var(--transition-fast, 0.15s ease);
}

.filter-sidebar__item a:hover {
  background: rgba(140, 109, 58, 0.08);
  color: var(--brand-primary, #8C6D3A);
}

.filter-sidebar__item a.active,
.filter-sidebar__item a[aria-current="page"] {
  background: #C0AE51 0% 0% no-repeat padding-box;
  border-radius: 10px;
  opacity: 1;
  color: var(--text-on-brand, #F2EEDD);
  font-weight: 600;
}

.filter-sidebar__count {
  font-size: 12px;
  color: var(--text-muted, #C7B69B);
  margin-left: 0.35rem;
}

.filter-sidebar__item a.active .filter-sidebar__count {
  color: rgba(242, 238, 221, 0.7);
}

/* ===================================
   ÁREA DE RESULTADOS — BARRA SUPERIOR
   ================================== */

.results-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-top: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 3px solid var(--color-border-gold, #C0AE5138);
}

.results-toolbar__heading {
  text-align: left;
  font: normal normal bold 25px/28px "Poppins", sans-serif;
  letter-spacing: 0px;
  color: #8C6D3A;
  opacity: 1;
  margin: 0;
}

.results-toolbar__count {
  font: normal normal 400 15px/22px "Poppins", sans-serif;
  color: var(--text-muted, #C7B69B);
  margin-top: 0.2rem;
}

.results-toolbar__search-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(140, 109, 58, 0.08);
  color: var(--brand-primary, #8C6D3A);
  font: normal normal 500 14px/20px "Poppins", sans-serif;
  border: 1px solid var(--color-border-gold, #C0AE5138);
  border-radius: 50px;
  padding: 0.3rem 0.85rem;
}

/* ===================================
   PRODUCT CARDS — GRID
   ================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Product Card — alinhado ao design system da home */
.product-card {
  max-width: 315px;
  margin: 0 auto;
  width: 100%;
  border: none;
  border-radius: var(--border-radius-md, 25px);
  background: transparent;
}

.product-card__image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 25px 25px 0 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  opacity: 1;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px 25px 0 0;
  display: block;
  transition: transform var(--transition-slow, 0.5s ease);
}

.product-card:hover .product-card__image {
  transform: scale(1.03);
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-tertiary, #ECE9DF);
  border-radius: 25px 25px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__placeholder-icon {
  font-size: 4rem;
  color: var(--text-muted, #C7B69B);
}

/* Badge de desconto */
.product-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--brand-primary, #8C6D3A);
  color: var(--text-on-brand, #F2EEDD);
  font: normal normal 600 12px/18px "Poppins", sans-serif;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
}

.product-card__body {
  width: 100%;
  min-height: auto;
  max-width: 100%;
  padding: 18px 15px;
  border: 1px solid #C0AE5138;
  border-top: none;
  border-radius: 0px 0px 25px 25px;
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  background: var(--bg-primary, #FFFFFF);
}

.product-card__category {
  width: 221px;
  height: 22px;
  max-width: 100%;
  text-align: left;
  font: normal normal normal 12px/28px "Poppins", sans-serif;
  letter-spacing: 0px;
  color: #8C6D3A;
  opacity: 1;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-card__name {
  width: 235px;
  min-height: 30px;
  max-width: 100%;
  text-align: left;
  font: normal normal bold 20px/22px "Poppins", sans-serif;
  letter-spacing: 0px;
  color: #8C6D3A;
  opacity: 1;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__description {
  width: 235px;
  height: 35px;
  max-width: 100%;
  text-align: left;
  font: normal normal normal 12px/16px "Poppins", sans-serif;
  letter-spacing: 0px;
  color: #383838;
  opacity: 1;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price-block {
  width: 158px;
  height: 43px;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.product-card__price-original {
  font: normal normal 400 15px/20px "Poppins", sans-serif;
  color: var(--text-muted, #C7B69B);
  text-decoration: line-through;
}

.product-card__price-current {
  text-align: center;
  font: normal normal 600 30px/28px "Poppins", sans-serif;
  letter-spacing: 0px;
  color: #383838;
  opacity: 1;
}

.product-card__btn {
  min-width: 207px;
  height: 40px;
  background: var(--brand-secondary, #C0AE51);
  color: var(--text-on-brand, #F2EEDD);
  border: none;
  border-radius: var(--border-radius-sm, 10px);
  font: normal normal 500 15px/28px "Poppins", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  text-decoration: none;
  transition: background var(--transition-fast, 0.15s ease);
  padding: 0 14px;
}

.product-card__btn:hover {
  background: var(--brand-primary, #8C6D3A);
  color: var(--text-on-brand, #F2EEDD);
}

/* ===================================
   EMPTY STATE
   ================================== */

.empty-state {
  padding: 4rem 1rem;
  text-align: center;
}

.empty-state__icon {
  font-size: 4rem;
  color: var(--text-muted, #C7B69B);
  display: block;
  margin-bottom: 1.25rem;
}

.empty-state__title {
  font: normal normal bold 25px/35px "Cinzel", serif;
  color: var(--brand-secondary, #C0AE51);
  margin-bottom: 0.75rem;
}

.empty-state__text {
  font: normal normal 400 17px/22px "Poppins", sans-serif;
  color: var(--text-primary, #383838);
  margin-bottom: 1.75rem;
}

.empty-state__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-primary, #8C6D3A);
  color: var(--text-on-brand, #F2EEDD);
  border: none;
  border-radius: var(--border-radius-sm, 10px);
  font: normal normal 500 17px/28px "Poppins", sans-serif;
  padding: 0.65rem 1.75rem;
  text-decoration: none;
  transition: background var(--transition-fast, 0.15s ease);
}

.empty-state__btn:hover {
  background: var(--brand-primary-dark, #674F27);
  color: var(--text-on-brand, #F2EEDD);
}

/* ===================================
   PAGINAÇÃO
   ================================== */

.product-list-section .pagination {
  gap: 0.35rem;
}

.product-list-section .page-link {
  font: normal normal 500 15px/20px "Poppins", sans-serif;
  color: var(--brand-primary, #8C6D3A);
  border: 2px solid var(--color-border-gold, #C0AE5138);
  border-radius: var(--border-radius-sm, 10px) !important;
  padding: 0.45rem 0.85rem;
  background: transparent;
  transition: all var(--transition-fast, 0.15s ease);
}

.product-list-section .page-link:hover {
  background: var(--brand-primary, #8C6D3A);
  border-color: var(--brand-primary, #8C6D3A);
  color: var(--text-on-brand, #F2EEDD);
}

.product-list-section .page-item.active .page-link {
  background: var(--brand-primary, #8C6D3A);
  border-color: var(--brand-primary, #8C6D3A);
  color: var(--text-on-brand, #F2EEDD);
}

.product-list-section .page-item.disabled .page-link {
  color: var(--text-muted, #C7B69B);
  border-color: var(--color-border-gold, #C0AE5138);
}

/* ===================================
   RESPONSIVIDADE
   ================================== */

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .product-list-banner__title {
    font-size: 44px;
    line-height: 28px;
    width: 100%;
    height: auto;
    min-height: 60px;
  }

  .results-toolbar__heading {
    font-size: 20px;
    line-height: 26px;
  }

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

  .product-card__image-wrapper {
    width: 100%;
  }

  .product-card__name {
    font-size: 21px;
  }

  .product-card__price-current {
    font-size: 28px;
  }

  .product-card__btn {
    min-width: 180px;
    height: 38px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .product-list-banner {
    padding: 2rem 0 1.5rem;
    text-align: center;
  }

  .product-list-banner__title {
    font-size: 36px;
    line-height: 28px;
    height: auto;
    min-height: 50px;
  }

  /* Sidebar vira chips horizontais scrolláveis em mobile */
  .filter-sidebar {
    margin-bottom: 0;
    padding: 0.75rem 0;
  }

  .filter-sidebar__title {
    display: none;
  }

  .filter-sidebar__list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0 1rem 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .filter-sidebar__list::-webkit-scrollbar {
    display: none;
  }

  .filter-sidebar__item a {
    white-space: nowrap;
    padding: 0 11px;
    height: 19.5px;
    line-height: 19.5px;
    font-size: 10px;
    border-radius: 5.7px;
    border: 1px solid #E1D9C3;
    color: #C0AE51;
  }

  .filter-sidebar__item a.active {
    background: #C0AE51;
    color: #fff;
    border-color: #C0AE51;
    border-radius: 5.7px;
  }

  .filter-sidebar__count {
    display: none;
  }

  .results-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .product-card__body {
    height: auto;
    min-height: auto;
  }

  .product-card__name {
    font-size: 19px;
  }

  .product-card__price-current {
    font-size: 26px;
  }
}

/* ===================================
   MOBILE FIGMA SPEC (≤ 480px)
   Baseado no node 19:119 — viewport 390px
   Cards: 2 col, 164px wide, gap ~14px
   ================================== */

@media (max-width: 480px) {
  /* Remove gap Bootstrap entre sidebar e grid */
  .product-list-section .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
  }

  .product-list-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .product-list-section {
    padding: 0.5rem 0 3rem;
  }

  .product-list-banner {
    padding: 1rem 0 0.75rem;
  }

  .product-list-banner__title {
    font: normal normal bold 16.57px/1.3 "Poppins", sans-serif;
    text-align: left;
    padding-left: 1rem;
    min-height: auto;
  }

  /* Chips de categoria — scroll horizontal */
  .filter-sidebar {
    padding: 0.5rem 0;
  }

  .filter-sidebar__list {
    gap: 0.4rem;
    padding: 0 0.75rem 0.4rem;
  }

  .filter-sidebar__item a {
    font-size: 10.16px;
    height: 19.5px;
    line-height: 19.5px;
    padding: 0 11.5px;
    border-radius: 5.74px;
  }

  /* Toolbar */
  .results-toolbar {
    padding: 0.75rem 0 0.75rem;
    margin-bottom: 0.75rem;
  }

  .results-toolbar__heading {
    font-size: 14px;
    line-height: 20px;
  }

  .results-toolbar__count {
    font-size: 12px;
  }

  /* Grid de produtos: 2 colunas, gap reduzido */
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
  }

  /* Card alinhado ao Figma */
  .product-card {
    max-width: 100%;
    border-radius: 15.5px;
  }

  .product-card__image-wrapper {
    border-radius: 15.5px 15.5px 0 0;
    aspect-ratio: 1 / 1;
  }

  .product-card__image {
    border-radius: 15.5px 15.5px 0 0;
  }

  .product-card__placeholder {
    border-radius: 15.5px 15.5px 0 0;
  }

  .product-card__body {
    padding: 8px 9px 10px;
    gap: 4px;
    border-radius: 0 0 15.5px 15.5px;
    border-width: 0.62px;
  }

  .product-card__category {
    font-size: 7.44px;
    line-height: 17.4px;
    height: auto;
    width: 100%;
  }

  .product-card__name {
    font-size: 12.4px;
    line-height: 13.6px;
    width: 100%;
    min-height: auto;
  }

  .product-card__description {
    font-size: 7.44px;
    line-height: 9.92px;
    width: 100%;
    height: auto;
    max-height: 21.7px;
  }

  .product-card__price-block {
    width: 100%;
    height: auto;
    align-items: flex-start;
    margin-bottom: 0;
  }

  .product-card__price-current {
    font-size: 18.6px;
    line-height: 1.2;
  }

  .product-card__price-original {
    font-size: 11px;
  }

  .product-card__btn {
    min-width: 0;
    width: 100%;
    height: 21.85px;
    font-size: 7.44px;
    line-height: 17.4px;
    border-radius: 6.2px;
    padding: 0 8px;
  }
}
