/* Shop listing + filter drawer */

.shop-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 6px;
  flex-wrap: wrap;
}
.shop-tagline {
  flex: 1;
  min-width: 200px;
}
.shop-tagline .eyebrow {
  margin-bottom: 4px;
}
.shop-tagline h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 6px;
}
.shop-tagline p {
  font-size: 0.92rem;
  color: var(--soft-brown);
  line-height: 1.55;
  max-width: 420px;
}

#openFilterBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  background: var(--burgundy);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.25s ease;
  box-shadow: 0 4px 14px rgba(107, 30, 42, 0.25);
}
#openFilterBtn:hover {
  background: #4a1520;
}
#openFilterBtn i { font-size: 0.95rem; }

.shop-section {
  background: var(--ivory);
  padding-top: 8px !important;
  padding-bottom: 64px;
  min-height: 45vh;
}

.shop-count {
  font-size: 0.88rem;
  color: var(--soft-brown);
  margin: 12px 0 18px;
}
.shop-count strong { color: var(--burgundy); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 768px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (min-width: 1024px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}
@media (min-width: 1280px) {
  .shop-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.shop-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.3s ease;
}
.shop-card:hover { box-shadow: var(--shadow-hover); }

.shop-card-img {
  display: block;
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--cream), var(--warm-beige));
  text-decoration: none;
}
.shop-card-img .placeholder-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  color: var(--gold);
  opacity: 0.7;
}

.shop-wish {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--charcoal);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  z-index: 2;
  transition: 0.25s ease;
}
.shop-wish:hover,
.shop-wish.active {
  background: var(--burgundy);
  color: #fff;
}

.shop-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.shop-card-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.shop-card-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}
.shop-card-title a {
  color: var(--charcoal);
  text-decoration: none;
}
.shop-card-title a:hover { color: var(--burgundy); }
.shop-card-rating {
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.shop-card-rating span {
  margin-left: 6px;
  color: var(--soft-brown);
}
.shop-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 14px;
}
.shop-card-price .old {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--soft-brown);
  text-decoration: line-through;
  margin-left: 8px;
}
.shop-card-actions .btn-add {
  width: 100%;
  text-align: center;
  border-radius: 50px;
  padding: 11px 14px;
  font-size: 0.82rem;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  margin-top: 0;
}

.shop-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--soft-brown);
}
.shop-empty i {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}
.shop-empty h3 {
  font-family: var(--font-heading);
  color: var(--charcoal);
  margin-bottom: 8px;
}

/* ===== Filter drawer (professional ecommerce side panel) ===== */
.filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 20, 0.45);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.filter-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 400px);
  height: 100%;
  background: var(--ivory);
  z-index: 3010;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
}
.filter-drawer.open {
  transform: translateX(0);
}

.filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--warm-beige);
  background: var(--white);
}
.filter-drawer-header h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--charcoal);
  margin: 0;
}
.filter-close-x {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--warm-beige);
  background: var(--ivory);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.filter-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.filter-block {
  margin-bottom: 24px;
}
.filter-block-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.filter-sort-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--warm-beige);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  cursor: pointer;
}

.filter-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-price-row input {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border: 1.5px solid var(--warm-beige);
  border-radius: 12px;
  background: var(--white);
  font-size: 0.9rem;
  outline: none;
}
.filter-price-row input:focus { border-color: var(--gold); }
.filter-price-row span { color: var(--soft-brown); font-size: 0.85rem; }
#filterPriceError {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: #b91c1c;
}

.filter-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-cat-btn {
  padding: 9px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--warm-beige);
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: 0.2s ease;
}
.filter-cat-btn.active,
.filter-cat-btn:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: #fff;
}

.filter-colors {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-color-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--charcoal);
  cursor: pointer;
}
.filter-color-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--burgundy);
  cursor: pointer;
}
.filter-color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
}

.filter-drawer-footer {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--warm-beige);
  background: var(--white);
}
.filter-drawer-footer button {
  flex: 1;
  padding: 14px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  transition: 0.25s ease;
}
#filterCancel {
  background: transparent;
  border: 1.5px solid var(--warm-beige);
  color: var(--soft-brown);
}
#filterCancel:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}
#filterDone {
  background: var(--burgundy);
  border: 2px solid var(--burgundy);
  color: #fff;
}
#filterDone:hover {
  background: #4a1520;
  border-color: #4a1520;
}

body.filter-open {
  overflow: hidden;
}
