/* TAMSIC — shop.css  (extracted from base.css; tokens defined in base.css) */
/* ---------- SHOP LIST VIEW (redesigned horizontal card) ---------- */
/* list-only elements are injected by JS and hidden in grid view */
.list-only {
  display: none;
}

/* Make every product column span the full row in list view */
#productGrid.list-view {
  --bs-gutter-y: 16px;
}
#productGrid.list-view > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

/* Horizontal card: image left, content right */
#productGrid.list-view .product-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: auto;
}
#productGrid.list-view .product-card-media {
  flex: 0 0 38%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
#productGrid.list-view .product-card-body {
  flex: 1;
  border-top: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(20px, 3vw, 36px);
}
/* Hide the grid-only hover overlay; list view has explicit CTAs */
#productGrid.list-view .product-card-overlay,
#productGrid.list-view .product-card-tag {
  display: none;
}
#productGrid.list-view .list-only {
  display: flex;
}
#productGrid.list-view .product-card-title {
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: 0;
}
#productGrid.list-view .product-card-rating {
  align-items: center;
  gap: 8px;
}
#productGrid.list-view .product-card-rating .stars {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1px;
}
#productGrid.list-view .product-card-rating .rating-count {
  font-size: 12px;
  color: var(--bone-dim);
  letter-spacing: 0.08em;
}
#productGrid.list-view .product-card-desc {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: var(--bone-dim);
  max-width: 60ch;
  margin: 2px 0;
}
#productGrid.list-view .product-card-price {
  justify-content: flex-start;
  gap: 14px;
}
#productGrid.list-view .product-card-list-cta {
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}
#productGrid.list-view .product-card-list-cta .btn-tamasic {
  min-width: 170px;
}
#productGrid.list-view .product-card-list-cta .quick-add {
  /* reset the grid overlay-button animation for the inline list button */
  width: auto;
  opacity: 1;
  transform: none;
  border-radius: var(--radius-md);
}
@media (max-width: 575px) {
  #productGrid.list-view .product-card {
    flex-direction: column;
  }
  #productGrid.list-view .product-card-media {
    flex-basis: auto;
    max-width: none;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  #productGrid.list-view .product-card-list-cta .btn-tamasic {
    flex: 1;
    min-width: 0;
  }
}

.filter-group {
  margin-bottom: var(--md);
}
.filter-list {
  list-style: none;
  padding: 0;
}
.filter-list li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--bone-dim);
  cursor: pointer;
  transition: color 0.3s var(--ease);
  display: flex;
  justify-content: space-between;
}
.filter-list li:hover {
  color: var(--crimson-text);
}
.filter-list li .count {
  color: rgba(232, 230, 227, 0.62);
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sm) 0;
  border-bottom: 1px solid rgba(232, 230, 227, 0.08);
  margin-bottom: var(--md);
  flex-wrap: wrap;
  gap: var(--sm);
}
.shop-toolbar select {
  background: var(--charcoal);
  color: var(--bone);
  border: 1px solid rgba(232, 230, 227, 0.1);
  padding: 10px var(--sm);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  border-radius: var(--radius-md);
}
@media (max-width: 992px) {
  .shop-toolbar {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .shop-toolbar,
  .shop-toolbar > div,
  .shop-toolbar .d-flex {
    width: 100%;
  }
  .sort-select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .sticky-atc .btn-tamasic {
    width: 100%;
  }
}


/* ---------- SHOP (extended) ---------- */
.result-count {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.sort-select {
  background: var(--charcoal);
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  border-radius: var(--radius-md);
}
.sort-select:focus {
  border-color: var(--crimson);
}
.view-toggle {
  display: flex;
  gap: 4px;
}
.view-btn {
  width: 36px;
  height: 36px;
  background: var(--charcoal);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  border-radius: var(--radius-md);
}
.view-btn.active {
  border-color: var(--crimson);
  color: var(--crimson-text);
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  background: rgba(140, 0, 15, 0.1);
  border: 1px solid var(--border-crimson);
  color: var(--crimson-text);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.active-filter button {
  background: none;
  border: none;
  color: var(--crimson-text);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  border-radius: var(--radius-pill);
}

/* Shop filter wrap — plain layout wrapper, no overflow scroll */
.shop-filter-wrap {
  overflow: visible;
}

/* Shop mobile filter panel */
.shop-filter-panel {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85vw;
  max-width: 340px;
  height: 100vh;
  background: var(--charcoal);
  border-right: 1px solid rgba(232, 230, 227, 0.06);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
  transition: left 0.35s var(--ease);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  box-shadow: var(--shadow-panel);
}
.shop-filter-panel.open {
  left: 0;
  visibility: visible;
  pointer-events: auto;
}
.shop-filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(232, 230, 227, 0.06);
  flex-shrink: 0;
}
.shop-filter-panel-title {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bone);
  font-family: var(--font-body);
}
.shop-filter-panel-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--crimson-dark) transparent;
}
.shop-filter-panel-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(232, 230, 227, 0.06);
  flex-shrink: 0;
}
