/* ═══════════════════════════════════════════════════════════════
   AURAVOX · Shop CSS
   Supplements brand/tokens.css with shop-specific components.
   All token references use Tier 3 maps tokens only.
   ═══════════════════════════════════════════════════════════════ */

/* ── Layout ───────────────────────────────────────────────────── */

.shop-layout { min-height: 100vh; display: flex; flex-direction: column; }
.shop-main { flex: 1; }
.shop-container { max-width: 1200px; margin: 0 auto; padding: 0 var(--page-px); }

/* ── Page header ──────────────────────────────────────────────── */

.page-header {
  padding: var(--space-6) 0 var(--space-5);
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.page-title {
  font-size: var(--type-h3);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
  line-height: var(--lh-h3);
}
.page-subtitle {
  font-size: var(--type-body-sm);
  color: var(--text-muted);
  line-height: var(--lh-body);
}


/* ── 925 Sterling Silver badge ────────────────────────────────── */
/* Looks like a hallmark — used on cards and page headers */

.badge-925 {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1.5px solid var(--border-info);
  border-radius: 3px;
  padding: 3px var(--space-3);
  background: var(--surface-info);
  flex-shrink: 0;
}
.badge-925-num {
  font-size: var(--type-caption);
  font-weight: var(--weight-bold);
  color: var(--text-info);
  letter-spacing: 0.05em;
  line-height: 1;
}
.badge-925-sep {
  width: 1px;
  height: 12px;
  background: var(--border-info);
  opacity: 0.5;
  flex-shrink: 0;
}
.badge-925-label {
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-info);
  line-height: 1;
}

/* Larger variant for page headers */
.badge-925-lg {
  padding: var(--space-1h) var(--space-4);
  border-radius: var(--radius-sm);
}
.badge-925-lg .badge-925-num { font-size: var(--type-body-sm); }
.badge-925-lg .badge-925-label { font-size: var(--type-label); }
.badge-925-lg .badge-925-sep { height: 16px; }


/* ── Filter bar ───────────────────────────────────────────────── */

.filter-bar {
  background: var(--surface-default);
  border: var(--border-w-small) solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: var(--space-8);
}
.filter-bar-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  font-size: var(--type-label);
  font-weight: var(--weight-demi);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  font-family: var(--font-base);
  border-bottom: var(--border-w-small) solid var(--border-default);
}
@media (min-width: 768px) {
  .filter-bar-toggle { display: none; }
}
.filter-bar-toggle-icon { transition: transform var(--transition-base); }
.filter-bar-toggle[aria-expanded="true"] .filter-bar-toggle-icon { transform: rotate(180deg); }

.filter-bar-body {
  display: none;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-5);
}
.filter-bar-body.open { display: flex; }
@media (min-width: 768px) {
  .filter-bar-body {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-6);
  }
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
  min-width: 0;
}
.filter-section-label {
  font-size: var(--type-label);
  font-weight: var(--weight-demi);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Filter chip — extends .tag from brand tokens */
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: var(--space-1h) var(--space-4);
  background: var(--surface-raised);
  border: var(--border-w-small) solid var(--border-default);
  border-radius: var(--radius-round);
  font-family: var(--font-base);
  font-size: var(--type-label);
  font-weight: var(--weight-demi);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--transition-fast),
              color var(--transition-fast),
              background var(--transition-fast);
}
.filter-chip:hover { border-color: var(--border-strong); color: var(--text-body); }
.filter-chip.active {
  background: var(--surface-action);
  border-color: var(--border-action);
  color: var(--text-on-action);
}
.filter-chip[aria-disabled="true"] {
  opacity: 0.3;
  pointer-events: none;
  background: var(--surface-disabled);
  border-color: var(--border-disabled);
  color: var(--text-disabled);
}

/* ── Category cards (landing page) ───────────────────────────── */

.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding: var(--space-8) 0 var(--space-16);
}
@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

.cat-card {
  position: relative;
  background: var(--surface-default);
  border: var(--border-w-small) solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.cat-card:not([aria-disabled="true"]):hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.cat-card[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.cat-card-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 1;
}
.cat-card-img {
  aspect-ratio: 4 / 3;
  background: var(--beige-200);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.cat-card:not([aria-disabled="true"]):hover .cat-card-img img { transform: scale(1.07); }
.cat-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: var(--type-label);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}
.cat-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.cat-card-name {
  font-size: var(--type-h4);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
  line-height: var(--lh-h4);
}
.cat-card-desc {
  font-size: var(--type-body-sm);
  color: var(--text-muted);
  line-height: var(--lh-body);
}
.cat-card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--type-label);
  font-weight: var(--weight-demi);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-action);
}

/* ── Style cards (chains listing) ────────────────────────────── */

.style-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 480px) { .style-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .style-grid { grid-template-columns: repeat(3, 1fr); } }

.style-card {
  background: var(--surface-default);
  border: var(--border-w-small) solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.style-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.style-card-img {
  aspect-ratio: 1 / 1;
  background: var(--beige-200);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.style-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.style-card:hover .style-card-img img { transform: scale(1.07); }
.style-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: var(--type-label);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}
.style-card-body {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1h);
  flex: 1;
}
.style-card-name {
  font-size: var(--type-h6);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
}
.style-card-meta {
  font-size: var(--type-label);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
}
.style-card-price {
  font-size: var(--type-body-sm);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
  margin-top: auto;
  padding-top: var(--space-3);
}
.style-card-cta {
  font-size: var(--type-label);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-action);
  margin-top: var(--space-2);
}

/* ── Product variant cards (style pages) ─────────────────────── */

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 400px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--surface-default);
  border: var(--border-w-small) solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card[data-hidden="true"] { display: none; }

.product-card-img {
  aspect-ratio: 1 / 1;
  background: var(--beige-200);
  overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product-card-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}
.product-card-name {
  font-size: var(--type-body-sm);
  font-weight: var(--weight-demi);
  color: var(--text-heading);
}
.product-card-spec {
  font-size: var(--type-label);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
}
.product-card-price {
  font-size: var(--type-body-sm);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
  margin-top: auto;
  padding-top: var(--space-3);
}

/* No results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-16) var(--page-px);
  color: var(--text-muted);
}
.no-results p { font-size: var(--type-body-sm); margin-top: var(--space-3); }

/* ── Shop footer ──────────────────────────────────────────────── */

.shop-footer {
  background: var(--surface-default);
  border-top: var(--border-w-small) solid var(--border-default);
  padding: var(--space-8) var(--page-px);
  margin-top: var(--space-16);
}
.shop-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .shop-footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.shop-footer-brand {
  font-size: var(--type-body-sm);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
}
.shop-footer-legal {
  font-size: var(--type-label);
  color: var(--text-subtle);
  letter-spacing: var(--tracking-wide);
}

/* ── Nav logo: always show horizontal wordmark ───────────────── */

.nav-logo-badge { display: none; }
.nav-logo-img   { display: block; height: 24px; width: auto; }
@media (min-width: 768px) { .nav-logo-img { height: 28px; } }

/* ── Product card image: show side shot on hover (desktop) ─────── */

.product-card-img-front { display: block; }
.product-card-img-side  { display: none; }
@media (hover: hover) {
  .product-card:hover .product-card-img-front { display: none; }
  .product-card:hover .product-card-img-side  { display: block; }
}

/* ── Shared nav helpers ───────────────────────────────────────── */

/* Result count label */
.result-count {
  font-size: var(--type-label);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
  align-self: center;
}
