/* ============================================================
   shop.css — Shop Archive Page Styles
   Gold: #D1B042 | Deep Black backgrounds
   ============================================================ */

/* PAGE HERO */
.tmi-page-hero {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-gold);
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
}
.tmi-page-hero__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.tmi-page-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 600;
  color: var(--text-white);
  line-height: var(--lh-heading);
}
.tmi-page-hero__sub {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: var(--lh-body);
}
.tmi-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.tmi-breadcrumb a {
  font-family: var(--font-ui);
  font-size: var(--fs-caption);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 200ms ease;
}
.tmi-breadcrumb a:hover { color: var(--color-gold); }
.tmi-breadcrumb span {
  font-size: var(--fs-caption);
  color: var(--text-muted);
}
.tmi-breadcrumb span:last-child { color: var(--text-secondary); }

/* SHOP LAYOUT */
.tmi-shop { padding: var(--space-12) 0 var(--space-24); }
.tmi-shop__layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-10); align-items: start; }

/* SIDEBAR */
.tmi-shop-sidebar {
  position: sticky;
  top: calc(40px + 72px + 1rem);
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xs);
  padding: var(--space-6);
}
.tmi-shop-sidebar__inner { display: flex; flex-direction: column; gap: var(--space-6); }
.tmi-filter-group { display: flex; flex-direction: column; gap: var(--space-3); border-bottom: 1px solid var(--border-subtle); padding-bottom: var(--space-6); }
.tmi-filter-group:last-child { border-bottom: none; padding-bottom: 0; }
.tmi-filter-group__title {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.tmi-filter-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 200ms ease;
}
.tmi-filter-check:hover { color: var(--text-cream); }
.tmi-filter-check input[type="checkbox"] {
  accent-color: var(--color-gold);
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.tmi-filter-count {
  margin-left: auto;
  font-size: var(--fs-caption);
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}
.tmi-filter-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-gold);
  color: var(--text-cream);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  padding: var(--space-3) var(--space-4);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D1B042' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.tmi-sidebar-trust {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--color-gold-muted-bg);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xs);
}
.tmi-sidebar-trust svg { color: var(--color-gold); flex-shrink: 0; margin-top: 2px; }
.tmi-sidebar-trust p { font-family: var(--font-body); font-size: var(--fs-caption); color: var(--text-secondary); line-height: 1.5; }

/* SHOP MAIN */
.tmi-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}
.tmi-shop-toolbar__count { font-family: var(--font-body); font-size: var(--fs-body-sm); color: var(--text-secondary); }
.tmi-shop-toolbar__count strong { color: var(--text-cream); }
.tmi-shop-toolbar__right { display: flex; align-items: center; gap: var(--space-4); }

/* Category quick-filter pills */
.tmi-shop-cats { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-6); }
.tmi-shop-cat {
  font-family: var(--font-ui);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 200ms ease;
  border-radius: var(--radius-xs);
}
.tmi-shop-cat:hover, .tmi-shop-cat--active { background: var(--color-gold); color: var(--text-on-gold); border-color: var(--color-gold); }

/* View toggle */
.tmi-view-toggle { display: flex; gap: 2px; border: 1px solid var(--border-gold); border-radius: var(--radius-xs); overflow: hidden; }
.tmi-view-btn { padding: var(--space-2) var(--space-3); color: var(--text-muted); cursor: pointer; transition: all 200ms ease; background: none; border: none; }
.tmi-view-btn--active { background: var(--color-gold); color: var(--text-on-gold); }

/* Filter toggle (mobile) */
.tmi-filter-toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-gold);
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  background: none;
  border-radius: var(--radius-xs);
  transition: all 200ms ease;
}
.tmi-filter-toggle:hover { color: var(--color-gold); border-color: var(--color-gold); }

/* Product Grid */
.tmi-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.tmi-product-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* PRODUCT CARD */
.tmi-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xs);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.tmi-product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--border-gold-hover); }

/* Product card image */
.tmi-product-card__img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.tmi-product-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-luxury); }
.tmi-product-card:hover .tmi-product-card__img-wrap img { transform: scale(1.05); }

/* Quick action buttons overlay */
.tmi-product-card__actions {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 250ms ease, transform 250ms ease;
}
.tmi-product-card:hover .tmi-product-card__actions { opacity: 1; transform: translateX(0); }
.tmi-product-card__action {
  width: 34px;
  height: 34px;
  background: rgba(6,5,3,0.90);
  border: 1px solid var(--border-gold);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 200ms ease;
  border-radius: var(--radius-xs);
}
.tmi-product-card__action:hover { background: var(--color-gold); color: var(--text-on-gold); border-color: var(--color-gold); }

/* Product badges */
.tmi-product-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}
.tmi-product-badge--season { background: var(--color-gold); color: var(--text-on-gold); }
.tmi-product-badge--luxury { background: #6B4C11; color: var(--color-gold-light); border: 1px solid var(--color-gold-dark); }
.tmi-product-badge--new { background: #1A4A2A; color: #5CDB88; }
.tmi-product-badge--sale { background: #4A1A1A; color: #F98282; }

/* Product card body */
.tmi-product-card__body { padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.tmi-product-card__cat { font-family: var(--font-ui); font-size: 0.6rem; font-weight: 700; letter-spacing: var(--ls-wider); color: var(--color-gold); text-transform: uppercase; }
.tmi-product-card__name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--text-cream); line-height: var(--lh-tight); }
.tmi-product-card__name a { color: inherit; transition: color 200ms ease; }
.tmi-product-card__name a:hover { color: var(--color-gold); }
.tmi-product-card__species { font-family: var(--font-body); font-size: var(--fs-caption); color: var(--text-muted); }
.tmi-product-card__price {
  font-family: var(--font-ui);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--color-gold);
  margin-top: auto;
}
.tmi-product-card__price--por { font-family: var(--font-display); font-style: italic; font-size: 0.9rem; color: var(--text-secondary); }
.tmi-product-card__price--was { font-size: var(--fs-body-sm); color: var(--text-muted); font-weight: 400; }
.tmi-product-card__price-row { display: flex; align-items: baseline; gap: var(--space-3); margin-top: auto; }
.tmi-product-card__ctas { margin-top: var(--space-3); }

/* Load more */
.tmi-shop__loadmore { text-align: center; margin-top: var(--space-12); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.tmi-shop__page-info { font-family: var(--font-body); font-size: var(--fs-caption); color: var(--text-muted); }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .tmi-shop__layout { grid-template-columns: 220px 1fr; }
  .tmi-product-grid { grid-template-columns: repeat(2, 1fr); }
  .tmi-product-grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .tmi-shop__layout { grid-template-columns: 1fr; }
  .tmi-shop-sidebar { display: none; position: fixed; inset: 0; z-index: var(--z-modal); border-radius: 0; overflow-y: auto; }
  .tmi-shop-sidebar.is-open { display: block; }
  .tmi-filter-toggle { display: flex; }
  .tmi-product-grid { grid-template-columns: repeat(2, 1fr); }
  .tmi-product-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .tmi-product-grid { grid-template-columns: 1fr; }
  .tmi-product-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
