/* Shop grid: products must always be visible */
.shop-page .products-grid,
.shop-page .products-grid .product-card,
.shop-page .products-grid .product-card * {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.shop-header {
  max-width: var(--container-width, 1280px);
  margin-inline: auto;
  padding: 1.5rem 1rem 0.5rem;
}

.shop-header__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c3aed;
}

.shop-page {
  padding: 0 0 4rem;
}

.shop-spotlight {
  padding: 1.25rem 0 0.5rem;
}

.shop-spotlight__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c3aed;
}

.shop-spotlight__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.shop-spotlight__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.shop-spotlight__link {
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.shop-spotlight__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 240px);
  gap: 0.85rem;
  overflow: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
}

.shop-spotlight-card {
  scroll-snap-align: start;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.shop-spotlight-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.shop-spotlight-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-spotlight-card__badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #fef08a;
  color: #854d0e;
  font-size: 0.72rem;
  font-weight: 800;
}

.shop-spotlight-card__body {
  padding: 0.75rem;
}

.shop-spotlight-card__title {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.shop-spotlight-card__price {
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.shop-spotlight-card__add {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  max-width: var(--container-width, 1280px);
  margin-inline: auto;
  padding: 1.25rem 1rem 0;
}

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

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

.shop-filters__cat-link {
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-size: 0.88rem;
}

.shop-filters__cat-link.is-active {
  background: #ede9fe;
  color: #5b21b6;
  font-weight: 700;
}

.shop-filters__cat-link em {
  font-style: normal;
  color: #64748b;
  font-size: 0.78rem;
}

.shop-toolbar {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.shop-toolbar--sticky {
  position: sticky;
  top: calc(var(--header-height, 72px) + 52px);
  z-index: 15;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border-color: #ddd6fe;
}

.shop-toolbar__views {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #f8fafc;
}

.shop-view-btn {
  min-width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.shop-view-btn.is-active {
  background: #7c3aed;
  color: #fff;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.shop-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.products-grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.products-grid--list {
  grid-template-columns: 1fr !important;
}

.products-grid--list .product-card--shop {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.products-grid--list .product-card--shop .product-card__media {
  height: 100%;
}

.products-grid--list .product-card--shop .product-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card--shop {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card--shop:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.12);
}

.product-card--shop .product-card__category {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7c3aed;
}

.product-card--shop .product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.65rem;
}

.product-card--shop .product-card__chip {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 0.68rem;
  font-weight: 700;
  color: #475569;
}

.product-card--shop .product-card__ship {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #16a34a;
}

.product-card--shop .product-card__hover-actions {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-card--shop:hover .product-card__hover-actions {
  opacity: 1;
  transform: translateY(0);
}

.product-card--shop .product-card__quick,
.product-card--shop .product-card__hover-add {
  flex: 1;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.product-card--shop .product-card__quick {
  background: rgba(255, 255, 255, 0.92);
  color: #1e1b4b;
}

.product-card--shop .product-card__hover-add {
  background: #7c3aed;
  color: #fff !important;
}

.product-card--shop .product-card__cta-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.product-card--shop .product-card__cta-row .product-card__cta {
  flex: 1;
  margin: 0;
}

.product-card--shop .product-card__view-link {
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

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

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

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

  .shop-layout {
    grid-template-columns: 1fr;
  }

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

  .shop-toolbar__sort {
    width: 100%;
    justify-content: space-between;
  }

  .products-grid--list .product-card--shop {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shop-hero__search {
    flex-direction: column;
  }

  .shop-hero__stats {
    grid-template-columns: 1fr 1fr;
  }
}
