/* Wix-style product listing (category + search) */

.shop-Listing {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(12px, 2vw, 24px) clamp(2.5rem, 5vw, 4rem);
  background: #fff;
}

.shop-CategoryBanner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f5f3f0;
}

.shop-CategoryBanner_Media {
  display: block;
  width: 100%;
  height: clamp(180px, 34vw, 420px);
  object-fit: cover;
  object-position: center top;
}

.shop-CategoryBanner_Overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.38));
}

.shop-CategoryBanner_Title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

#product-category.shop-Listing--withBanner {
  padding-top: clamp(1rem, 2.5vw, 1.5rem);
}

.shop-Listing_Head {
  margin: 0 0 1.25rem;
  text-align: center;
}

.shop-Listing_Title {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #1a1a1a;
}

.shop-Listing_Toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1rem;
  min-height: 2.5rem;
}

.shop-Listing_Results {
  margin: 0;
  font-size: 0.8125rem;
  color: #666;
  text-align: center;
}

.shop-Listing_Controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.shop-Listing_Layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
}

.shop-Listing_Main {
  min-width: 0;
}

.shop-Listing_Filters {
  position: sticky;
  top: 1rem;
  padding: 0 0.5rem 1rem 0;
}

.shop-Filters_Title {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.shop-Filters_Back {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: #666;
  text-decoration: none;
}

.shop-Filters_Back:hover {
  color: #c88d8d;
}

.shop-Filters_List {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.shop-Filters_List li + li {
  margin-top: 0.35rem;
}

.shop-Filters_Link {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #444;
  text-decoration: none;
}

.shop-Filters_Link:hover,
.shop-Filters_Link.is-active {
  color: #c88d8d;
}

.shop-Filters_Link.is-active {
  font-weight: 600;
}

.shop-Filters_Module .card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.shop-Filters_Module .card-header {
  padding: 0.75rem 0 0.5rem;
  background: transparent;
  border: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a1a1a;
}

.shop-Filters_Module .list-group-item {
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  font-size: 0.8125rem;
}

.shop-Filters_Module .card-footer {
  padding: 0.75rem 0 0;
  background: transparent;
  border: 0;
}

.shop-Filters_Module #button-filter {
  width: 100%;
  border-radius: 0;
  background: #c88d8d;
  border-color: #c88d8d;
  font-size: 0.8125rem;
}

.shop-Listing_Pagination {
  display: flex;
  justify-content: center;
  margin: 0 0 1.25rem;
}

.shop-Listing_Pagination .pagination {
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.shop-Listing_Pagination .page-link {
  border-radius: 0;
  color: #444;
  font-size: 0.8125rem;
  min-width: 2.25rem;
  text-align: center;
}

.shop-Listing_Pagination .page-item.active .page-link {
  background: #c88d8d;
  border-color: #c88d8d;
  color: #fff;
}

.shop-Listing_Footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.shop-Listing_LoadMore {
  display: inline-block;
  min-width: min(100%, 280px);
  padding: 0.75rem 1.5rem;
  border: 1px solid #c88d8d;
  background: #fff;
  color: #c88d8d;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.shop-Listing_LoadMore:hover {
  background: #c88d8d;
  color: #fff;
}

.shop-Listing_SortSelect {
  appearance: none;
  -webkit-appearance: none;
  min-width: 10rem;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 0.65rem center;
  font-size: 0.8125rem;
  color: #444;
  cursor: pointer;
}

.shop-Listing_SortSelect:focus {
  outline: 1px solid #c88d8d;
  outline-offset: 1px;
}

.shop-Listing_Grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
}

.shop-Listing_Footer .pagination {
  margin: 0;
}

.shop-Listing_Footer .pagination .page-link {
  border-radius: 0;
  color: #444;
  font-size: 0.8125rem;
}

.shop-Listing_Footer .pagination .page-item.active .page-link {
  background: #c88d8d;
  border-color: #c88d8d;
}

.shop-Listing_Empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.shop-Listing_Empty .btn-primary {
  background: #c88d8d;
  border-color: #c88d8d;
  border-radius: 0;
}

/* Search toolbar filters */
.shop-Search_Toolbar {
  margin-top: 1rem;
}

.shop-Search_Filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
}

.shop-Search_Filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
}

.shop-Search_Category {
  min-width: 140px;
  max-width: 180px;
}

.shop-Search_Filter input[type="checkbox"] {
  flex-shrink: 0;
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
  accent-color: #000;
}

.shop-Search_Filter input[type="checkbox"]:disabled {
  opacity: 0.45;
}

.shop-Search_Filter:has(input[type="checkbox"]:disabled) {
  opacity: 0.55;
}

@media (max-width: 767px) {
  .shop-Search_Filters {
    justify-content: flex-start;
    width: 100%;
  }

  #product-search .shop-Search_Category {
    flex: none;
    width: 100%;
    max-width: none;
  }
}

/* Product card */
.shop-Card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  text-align: center;
}

.shop-Card_Media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #f5f3f0;
  text-decoration: none;
}

.shop-Card_Image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity 0.35s ease, transform 0.5s ease;
}

.shop-Card_Image-hover {
  opacity: 0;
}

.shop-Card:hover .shop-Card_Image-primary,
.shop-Card:focus-within .shop-Card_Image-primary {
  opacity: 0;
}

.shop-Card:hover .shop-Card_Image-hover,
.shop-Card:focus-within .shop-Card_Image-hover {
  opacity: 1;
}

.shop-Card:not(:has(.shop-Card_Image-hover)):hover .shop-Card_Image-primary,
.shop-Card:not(:has(.shop-Card_Image-hover)):focus-within .shop-Card_Image-primary {
  opacity: 1;
  transform: scale(1.03);
}

.shop-Card_Body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  padding: 0.65rem 0.5rem 0.85rem;
  gap: 0.35rem;
}

.shop-Card_Name {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.shop-Card_Name a {
  color: #1a1a1a;
  text-decoration: none;
}

.shop-Card_Name a:hover {
  color: #000;
}

.shop-Card_Price {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1a;
}

.shop-Card_PriceCurrent {
  display: inline;
}

.shop-Card_PriceOld {
  display: inline;
  margin-left: 0.35rem;
  text-decoration: line-through;
  opacity: 0.65;
}

.shop-Card_Form {
  margin: 0;
  padding: 0;
  margin-top: auto;
}

.shop-Card_Body > .shop-Card_Button {
  margin-top: auto;
}

.shop-Card_Button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border: 0;
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.shop-Card_Button:hover,
.shop-Card_Button:focus-visible {
  background: #222;
  color: #fff;
  outline: none;
}

/* Full-width listing on category/search */
#product-category.shop-Listing,
#product-search.shop-Listing {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#product-search.shop-Listing {
  padding-top: clamp(0.75rem, 2vw, 1.25rem);
}

@media (max-width: 991px) {
  .shop-Listing_Layout {
    grid-template-columns: 1fr;
  }

  .shop-Listing_Filters {
    position: static;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
  }

  .shop-Filters_List {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
  }

  .shop-Filters_List li + li {
    margin-top: 0;
  }

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

  #product-category .shop-Listing_Head {
    margin-bottom: 0.85rem;
    padding: 0 0.75rem;
  }

  #product-category .shop-Listing_Filters {
    margin: 0 0.75rem 1rem;
    padding: 1rem 0.85rem;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 0;
  }

  #product-category .shop-Filters_Title {
    margin-bottom: 0.65rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #888;
  }

  #product-category .shop-Filters_Back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
  }

  #product-category .shop-Filters_List {
    gap: 0.45rem;
    margin-bottom: 0;
  }

  #product-category .shop-Filters_Link {
    display: inline-block;
    padding: 0.45rem 0.7rem;
    border: 1px solid #e5e5e5;
    background: #fff;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  #product-category .shop-Filters_Link:hover {
    border-color: #ccc;
    color: #1a1a1a;
  }

  #product-category .shop-Filters_Link.is-active {
    background: #000;
    border-color: #000;
    color: #fff;
    font-weight: 600;
  }

  #product-category .shop-Listing_Toolbar {
    margin: 0 0.75rem 0.85rem;
    padding: 0;
    min-height: 0;
  }

  #product-category .shop-Listing_Controls {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr);
    gap: 0.5rem;
  }

  #product-category .shop-Listing_SortSelect {
    min-width: 0;
    width: 100%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.75rem;
  }

  #product-search .shop-Search_Toolbar {
    margin: 0 0.75rem 1rem;
    padding: 0;
    min-height: 0;
  }

  #product-search .shop-Search_Filters {
    display: grid;
    grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr);
    gap: 0.5rem;
    width: 100%;
    justify-content: stretch;
    padding: 1rem 0.85rem;
    background: #fafafa;
    border: 1px solid #eee;
  }

  #product-search .shop-Search_Filter,
  #product-search .shop-Search_Category {
    grid-column: 1 / -1;
  }

  #product-search .shop-Search_Filter {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #e5e5e5;
    background: #fff;
    font-size: 0.6875rem;
    line-height: 1.35;
    white-space: normal;
  }

  #product-search .shop-Search_Category {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    max-width: none;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.75rem;
  }

  #product-search .shop-Listing_SortSelect {
    min-width: 0;
    width: 100%;
    max-width: none;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.75rem;
  }

  #product-search .shop-Listing_LimitSelect {
    grid-column: 1;
  }

  #product-search #input-sort {
    grid-column: 2;
  }
}

@media (max-width: 575px) {
  .shop-Listing {
    padding-left: 0;
    padding-right: 0;
  }

  #product-category .shop-Listing_Head {
    padding: 0 0.65rem;
  }

  #product-category .shop-Listing_Filters {
    margin-left: 0.65rem;
    margin-right: 0.65rem;
    padding: 0.85rem 0.75rem;
  }

  #product-category .shop-Filters_List {
    gap: 0.4rem;
  }

  #product-category .shop-Filters_Link {
    padding: 0.4rem 0.6rem;
    font-size: 0.625rem;
  }

  .shop-Listing_Toolbar {
    padding: 0 0.75rem;
  }

  #product-category .shop-Listing_Toolbar {
    padding: 0 0.65rem;
  }

  #product-category .shop-Listing_Controls {
    grid-template-columns: minmax(0, 4.75rem) minmax(0, 1fr);
    gap: 0.4rem;
  }

  #product-search .shop-Search_Toolbar {
    margin-left: 0.65rem;
    margin-right: 0.65rem;
  }

  #product-search .shop-Search_Filters {
    padding: 0.85rem 0.75rem;
    gap: 0.45rem;
    grid-template-columns: minmax(0, 4.75rem) minmax(0, 1fr);
  }

  #product-search .shop-Search_Filter {
    padding: 0.5rem 0.6rem;
    font-size: 0.625rem;
  }

  #product-search .shop-Search_Category,
  #product-search .shop-Listing_SortSelect {
    font-size: 0.6875rem;
  }

  .shop-Card_Body {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .shop-Listing_Footer {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
