.av-shop {
  padding-top: 5rem;
  background: hsl(var(--background));
}

.av-shop-hero {
  background: linear-gradient(135deg, hsl(var(--navy)), hsl(var(--navy-dark)));
  color: hsl(var(--primary-foreground));
  padding: 5rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.av-shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(hsl(var(--gold) / .05) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--gold) / .05) 1px, transparent 1px);
  background-size: 56px 56px;
}

.av-shop-hero-inner,
.av-shop-shell {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}

.av-shop-eyebrow {
  color: hsl(var(--gold));
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.av-shop-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.03;
  font-weight: 800;
  margin-top: .65rem;
}

.av-shop-copy {
  max-width: 680px;
  margin-top: 1rem;
  color: hsl(var(--primary-foreground) / .78);
  font-size: 1.02rem;
}

.av-shop-shell {
  padding: 2rem 1.5rem 5rem;
}

.av-shop-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(240px, 1.2fr);
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.av-field label {
  display: block;
  color: hsl(var(--foreground));
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.av-input,
.av-select {
  width: 100%;
  height: 44px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  padding: 0 .8rem;
  outline: none;
}

.av-input:focus,
.av-select:focus {
  border-color: hsl(var(--gold));
  box-shadow: 0 0 0 3px hsl(var(--gold) / .18);
}

.av-search-wrap {
  display: flex;
}

.av-search-wrap .av-input {
  border-radius: 8px 0 0 8px;
}

.av-search-button {
  width: 48px;
  border: 1px solid hsl(var(--border));
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  font-size: 1.15rem;
}

.av-shop-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: hsl(var(--muted-foreground));
  font-size: .92rem;
  margin-bottom: 1rem;
}

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

.av-product-card {
  min-height: 292px;
  border: 1px solid hsl(var(--gold) / .22);
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #fffdf7 0%, #fbf8ee 100%);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 10px 28px rgb(9 22 52 / .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.av-product-card:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--gold) / .5);
  box-shadow: 0 18px 40px rgb(9 22 52 / .14);
}

.av-product-image {
  height: 214px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
  background: transparent;
}

.av-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.av-product-fallback {
  color: hsl(var(--muted-foreground));
  font-size: .9rem;
  text-align: center;
}

.av-product-footer {
  margin-top: auto;
  background: transparent;
  color: hsl(var(--foreground));
  text-align: center;
  padding: .95rem .85rem 1rem;
  border-top: 1px solid hsl(var(--gold) / .16);
}

.av-product-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.25;
  color: hsl(var(--primary));
}

.av-product-tags {
  margin-top: .35rem;
  color: hsl(var(--muted-foreground));
  font-size: .78rem;
  line-height: 1.3;
}

.av-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin-top: 2rem;
}

.av-page-button,
.av-cart-button,
.av-back-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 1rem;
  font-weight: 700;
  border: 1px solid hsl(var(--gold));
  background: linear-gradient(135deg, #e8b130, #e8c87d, #bd890f);
  color: hsl(var(--primary));
}

.av-product-card .av-cart-button {
  margin-top: .75rem;
  min-height: 38px;
  min-width: 126px;
  border: 0;
  box-shadow: 0 8px 18px rgb(189 137 15 / .18);
}

.av-page-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.av-state {
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--card));
}

.av-detail {
  padding: 7rem 1.5rem 5rem;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(320px, 1.05fr);
  gap: 2.5rem;
}

.av-detail-media {
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  background: #fff;
  padding: 1.25rem;
}

.av-detail-main-image {
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.av-detail-main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.av-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.av-thumb {
  width: 68px;
  height: 68px;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: #fff;
  padding: .25rem;
}

.av-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.av-detail-eyebrow {
  color: hsl(var(--gold));
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
  font-size: .76rem;
}

.av-detail-title {
  font-family: "Playfair Display", Georgia, serif;
  color: hsl(var(--primary));
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
  margin: .65rem 0 1rem;
}

.av-detail-price {
  color: hsl(var(--gold));
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.av-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1rem 0;
}

.av-pill {
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  padding: .35rem .7rem;
  font-size: .82rem;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--secondary));
}

.av-description {
  color: hsl(var(--foreground) / .82);
  line-height: 1.75;
  margin: 1.25rem 0;
}

.av-description p {
  margin: 0 0 .85rem;
}

.av-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.5rem;
}

@media (max-width: 980px) {
  .av-shop-toolbar,
  .av-detail {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .av-shop-hero {
    padding-top: 4rem;
  }

  .av-product-grid {
    grid-template-columns: 1fr;
  }

  .av-shop-meta,
  .av-pagination {
    flex-direction: column;
  }

  .av-detail-main-image {
    height: 300px;
  }
}
