/* ============================================================
   SHOP PAGE
   ============================================================ */
.shop-main {
  background: #fff;
  min-height: 100vh;
}

.shop-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  position: relative;
}
.shop-row {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
}
@media (width >= 1024px) {
  .shop-row {
    flex-direction: row;
    position: static;
  }
}

.shop-products {
  width: 100%;
  order: 2;
}
@media (width >= 1024px) {
  .shop-products {
    width: 76%;
    order: 1;
  }
}

.shop-filterbar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-top: 0.5rem;
  gap: 1rem;
}
@media (width >= 768px) {
  .shop-filterbar {
    flex-direction: row;
    margin-bottom: 4rem;
  }
}
.shop-results {
  font-size: 14px;
  color: #99a1af;
  font-family: "Lato", sans-serif;
  text-align: center;
}
@media (width >= 768px) {
  .shop-results {
    font-size: 15px;
    text-align: left;
  }
}
.shop-sort {
  position: relative;
  width: 100%;
  border: 1px solid #d1d5db;
}
@media (width >= 768px) {
  .shop-sort {
    width: auto;
  }
}
.shop-sort select {
  appearance: none;
  border: none;
  padding: 0.75rem 2.5rem 0.75rem 1.5rem;
  font-size: 15px;
  outline: none;
  background: #fff;
  color: #6a7282;
  cursor: pointer;
  width: 100%;
}
.shop-sort__chev {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #99a1af;
}

.shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 2.5rem;
  row-gap: 6rem;
}
@media (width >= 640px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (width >= 1024px) {
  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.shop-pagination {
  margin-top: 6rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  font-family: "Outfit", sans-serif;
}
.shop-pagination__num {
  font-size: 20px;
  color: #000;
  transition: all 0.3s;
  background: transparent;
}
.shop-pagination__num:hover {
  opacity: 0.5;
}
.shop-pagination__num.is-active {
  color: #f5e6e3;
  text-decoration: underline;
  text-underline-offset: 12px;
  text-decoration-thickness: 1px;
}
.shop-pagination__next {
  color: #000;
  transition: opacity 0.15s;
  margin-left: 0.5rem;
}
.shop-pagination__next:hover {
  opacity: 0.5;
}

/* Mobile filter button */
.shop-filter-toggle {
  display: block;
}
@media (width >= 1024px) {
  .shop-filter-toggle {
    display: none;
  }
}
.shop-filter-toggle button {
  position: fixed;
  right: 1rem;
  top: 30%;
  transform: translateY(50%) rotate(-90deg);
  transform-origin: right;
  z-index: 100;
  background: #000;
  color: #fff;
  padding: 1rem 2rem;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}
.shop-filter-toggle button:active {
  transform: translateY(50%) rotate(-90deg) scale(0.95);
}

/* Sidebar / drawer */
.shop-sidebar {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
  padding: 1.5rem;
  transition: all 0.5s;
  transform: translateX(-100%);
  opacity: 0;
}
@media (width >= 768px) {
  .shop-sidebar {
    padding: 2.5rem;
  }
}
.shop-sidebar.is-open {
  transform: translateX(0);
  opacity: 1;
}
@media (width >= 1024px) {
  .shop-sidebar {
    position: static;
    z-index: auto;
    padding: 0;
    transform: translateX(0);
    opacity: 1;
    width: 24%;
    order: 2;
  }
}
.shop-sidebar__mobile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}
@media (width >= 1024px) {
  .shop-sidebar__mobile-head {
    display: none;
  }
}
.shop-sidebar__mobile-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "Outfit", sans-serif;
}
.shop-sidebar__close {
  padding: 0.5rem;
  border-radius: 9999px;
  transition: background 0.15s;
}
.shop-sidebar__close:hover {
  background: #f3f4f6;
}
.shop-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  overflow-y: auto;
  max-height: 100vh;
  padding-bottom: 5rem;
}
@media (width >= 1024px) {
  .shop-sidebar__inner {
    max-height: none;
    padding-bottom: 0;
  }
}

.shop-search-widget {
}
.shop-search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.shop-search-box input {
  width: 100%;
  border: 1px solid #000;
  padding: 0.875rem 1.5rem;
  font-size: 15px;
  outline: none;
  font-family: "Lato", sans-serif;
}
.shop-search-box input::placeholder {
  color: #364153;
}
.shop-search-box__icon {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding-right: 1.25rem;
  cursor: pointer;
}
.shop-search-box__icon-divider {
  height: 60%;
  width: 1px;
  background: rgba(0, 0, 0, 0.2);
  margin-right: 1rem;
}
.shop-search-box__icon svg {
  color: #000;
}

.shop-cats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.shop-cats__head {
  position: relative;
  padding-bottom: 1rem;
}
.shop-cats__head h4 {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #000;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  font-family: "Karla", sans-serif;
}
.shop-cats__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.shop-cat {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.shop-cat__name {
  font-size: 16px;
  font-weight: 700;
  transition: color 0.15s;
  font-family: "Outfit", sans-serif;
  color: rgba(0, 0, 0, 0.8);
}
.shop-cat__name:hover {
  color: #000;
}
.shop-cat.is-active .shop-cat__name {
  color: #000;
}
.shop-cat__count {
  margin-left: 0.5rem;
  font-size: 16px;
  color: #000;
  font-weight: 700;
}

.shop-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
  backdrop-filter: blur(4px);
}
@media (width >= 1024px) {
  .shop-backdrop {
    display: none;
  }
}
