/* ==============================================================
   IRON AMINO LABS — High-Fidelity Shop Archive & Catalog Styles
   Clinical dark-mode aesthetic with teal accents (var(--readout)).
   ============================================================== */

.ial-shop-archive-wrapper {
  background-color: #000000 !important;
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: 0;
}

/* ===== HERO / BANNER SECTION ===== */
.ial-shop-hero {
  background-color: #000000;
  border-bottom: 1px solid var(--line);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.ial-shop-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  opacity: 0.16;
  filter: drop-shadow(0 0 100px rgba(127, 231, 212, 0.25));
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

.ial-shop-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(127, 231, 212, 0.1), transparent 60%),
              linear-gradient(to right, #000000 35%, rgba(0, 0, 0, 0.65) 70%, #000000 100%);
  z-index: 2;
  pointer-events: none;
}

.ial-shop-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.ial-shop-hero-left .ial-shop-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--readout);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 6px 14px;
  background: var(--readout-dim);
  border: 1px solid rgba(127,231,212,0.15);
  border-radius: 100px;
}

.ial-shop-hero-left h1 {
  font-size: clamp(32px, 4.5vw, 52px) !important;
  font-weight: 800 !important;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #c8cacc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ial-shop-hero-left .lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--mut) !important;
  margin-bottom: 36px;
  max-width: 520px;
}

.ial-shop-hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ial-shop-hero-bullets .bullet {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, background 0.3s;
}

.ial-shop-hero-bullets .bullet:hover {
  border-color: var(--line-2);
  background: var(--elev);
}

.ial-shop-hero-bullets .bullet svg {
  flex-shrink: 0;
}

.ial-shop-hero-bullets .bullet span {
  font-family: var(--font);
  font-size: 13px;
  color: var(--ink);
}

.ial-shop-hero-bullets .bullet b {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--readout);
}

/* Right Specifications Card */
.ial-shop-hero-right .spec-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
}

.ial-shop-hero-right .spec-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--readout), rgba(127,231,212,0.2), transparent);
}

.ial-shop-hero-right .spec-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.ial-shop-hero-right .spec-row:last-child {
  border-bottom: none;
}

.ial-shop-hero-right .spec-row:first-child {
  padding-top: 0;
}

.ial-shop-hero-right .spec-row .ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--elev);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--readout);
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}

.ial-shop-hero-right .spec-row:hover .ic {
  background: var(--readout-dim);
  border-color: rgba(127,231,212,0.2);
}

.ial-shop-hero-right .spec-row .info h4 {
  font-size: 14px !important;
  font-weight: 700 !important;
  margin: 0 0 3px !important;
  color: var(--ink) !important;
}

.ial-shop-hero-right .spec-row .info p {
  font-family: var(--mono);
  font-size: 11px !important;
  margin: 0 !important;
  color: var(--mut-2) !important;
}

/* ===== FILTER & TOOLBAR SECTION ===== */
.ial-shop-toolbar-section {
  border-bottom: 1px solid var(--line);
  background: rgba(7,8,9,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.ial-shop-toolbar-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.categories-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.categories-nav .cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 100px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 12px;
  color: var(--mut);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
}

.categories-nav .cat-pill:hover {
  color: var(--ink);
  border-color: var(--line-2);
  background: var(--elev);
}

.categories-nav .cat-pill.active {
  background: var(--readout-dim) !important;
  border-color: rgba(127,231,212,0.3) !important;
  color: var(--readout) !important;
  box-shadow: 0 0 20px -4px rgba(127,231,212,0.12);
}

.categories-nav .cat-pill svg {
  flex-shrink: 0;
  color: inherit;
}

.sorting-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sorting-wrapper select {
  height: 40px;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 100px !important;
  color: var(--ink) !important;
  font-family: var(--font);
  font-size: 12px;
  padding: 0 16px !important;
  cursor: pointer;
  outline: none;
}

.search-wrapper {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  height: 40px;
  padding: 2px 4px 2px 16px;
  width: 220px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.search-wrapper:focus-within {
  border-color: var(--readout);
  box-shadow: 0 0 0 3px var(--readout-dim);
}

.search-wrapper .search-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: var(--ink) !important;
  font-family: var(--font);
  font-size: 12px;
  outline: none;
  height: 100%;
}

.search-wrapper button.search-btn,
.search-wrapper .search-btn {
  background: transparent !important;
  border: none !important;
  color: var(--mut-2) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  transition: color 0.2s !important;
  box-shadow: none !important;
  transform: none !important;
  padding: 0 !important;
}

.search-wrapper button.search-btn:hover,
.search-wrapper .search-btn:hover {
  background: transparent !important;
  color: var(--readout) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ===== PRODUCT GRID & CARDS ===== */
.ial-shop-products-section {
  padding: 48px 0 80px;
}

.ial-shop-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ial-shop-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s,
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ial-shop-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-2);
  box-shadow: 0 24px 56px -16px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(127,231,212,0.06);
}

.card-img-container {
  height: 250px;
  background: radial-gradient(circle at center, rgba(127,231,212,0.03) 0%, transparent 70%), #0a0b0d;
  border-bottom: 1px solid var(--line);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img-container img {
  max-width: 100%;
  max-height: 75%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.ial-shop-card:hover .card-img-container img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--readout-dim);
  border: 1px solid rgba(127,231,212,0.25);
  color: var(--readout);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  z-index: 5;
}

.card-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(10, 12, 14, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  color: var(--mut-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  z-index: 5;
  opacity: 0;
}

.ial-shop-card:hover .card-fav-btn {
  opacity: 1;
}

.card-fav-btn:hover,
.card-fav-btn.active {
  color: #ff5c5c;
  border-color: rgba(255,92,92,0.3);
  background: rgba(255,92,92,0.12);
  opacity: 1 !important;
}

/* Card body layout */
.card-body {
  padding: 16px 18px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.card-cat {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.card-cat a {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--readout) !important;
  background: var(--readout-dim);
  border: 1px solid rgba(127,231,212,0.15);
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
  line-height: 1.4;
  transition: border-color 0.2s, background 0.2s;
}

.card-cat a:hover {
  border-color: rgba(127,231,212,0.35);
  background: rgba(127,231,212,0.15);
}

.card-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 0 6px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
}

.card-title a {
  color: var(--ink) !important;
  transition: color 0.2s;
}

.card-title a:hover {
  color: var(--readout) !important;
}

.card-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mut-2);
  margin-bottom: 12px;
  display: block;
  letter-spacing: 0.04em;
}

.card-footer-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0 16px;
  border-top: 1px solid var(--line);
}

.card-price {
  font-family: var(--font);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}

.card-price del {
  color: var(--mut-2);
  font-size: 13px;
  font-weight: 400;
  margin-right: 6px;
}

.card-price ins {
  color: var(--readout);
  text-decoration: none;
}

.card-price .woocommerce-Price-amount {
  font-size: inherit;
  font-weight: inherit;
}

/* Button Action Row */
.card-action-row {
  padding: 0 18px 18px;
}

.card-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--elev);
  cursor: pointer;
}

.card-btn-outline:hover {
  background: var(--readout);
  color: #06201b;
  border-color: var(--readout);
  box-shadow: 0 8px 24px -8px rgba(127,231,212,0.35);
  transform: translateY(-1px);
}

.card-btn-outline svg {
  flex-shrink: 0;
  color: inherit;
}

/* ===== EMPTY STATE ===== */
.ial-shop-empty-state {
  text-align: center;
  padding: 80px 0;
}

.ial-shop-empty-state svg {
  color: var(--mut-2);
  margin-bottom: 20px;
}

.ial-shop-empty-state h3 {
  font-size: 20px !important;
  margin-bottom: 8px !important;
}

.ial-shop-empty-state p {
  color: var(--mut-2) !important;
  font-size: 14px;
}

/* ===== PAGINATION ===== */
.ial-shop-pagination-row {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.ial-shop-pagination-row nav.woocommerce-pagination ul {
  border: none;
  display: flex;
  gap: 8px;
}

.ial-shop-pagination-row nav.woocommerce-pagination ul li {
  margin: 0;
}

.ial-shop-pagination-row nav.woocommerce-pagination ul li a,
.ial-shop-pagination-row nav.woocommerce-pagination ul li span {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  font-family: var(--font) !important;
  border-radius: var(--radius) !important;
  padding: 10px 18px !important;
  transition: all 0.2s;
  display: block;
}

.ial-shop-pagination-row nav.woocommerce-pagination ul li a:hover {
  background: var(--elev) !important;
  border-color: var(--line-2) !important;
}

.ial-shop-pagination-row nav.woocommerce-pagination ul li span.current {
  background: var(--readout) !important;
  color: #06201b !important;
  border-color: var(--readout) !important;
  font-weight: 700 !important;
}

/* ===== TRUST BADGES ROW ===== */
.ial-shop-trust-badges {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #070809 0%, #0d0e10 100%);
  padding: 48px 0;
}

.ial-shop-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

.trust-badge-item:hover {
  border-color: var(--line-2);
}

.trust-badge-item svg {
  color: var(--readout);
  flex-shrink: 0;
}

.trust-badge-item h4 {
  font-size: 13px !important;
  font-weight: 700 !important;
  margin: 0 0 2px !important;
  color: var(--ink) !important;
}

.trust-badge-item p {
  font-size: 11px !important;
  margin: 0 !important;
  color: var(--mut-2) !important;
  font-family: var(--mono);
}

/* ===== STAGGER ANIMATION FOR CARDS ===== */
.ial-shop-card {
  opacity: 0;
  transform: translateY(24px);
  animation: ialCardReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes ialCardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ial-shop-card:nth-child(1) { animation-delay: 0.05s; }
.ial-shop-card:nth-child(2) { animation-delay: 0.1s; }
.ial-shop-card:nth-child(3) { animation-delay: 0.15s; }
.ial-shop-card:nth-child(4) { animation-delay: 0.2s; }
.ial-shop-card:nth-child(5) { animation-delay: 0.25s; }
.ial-shop-card:nth-child(6) { animation-delay: 0.3s; }
.ial-shop-card:nth-child(7) { animation-delay: 0.35s; }
.ial-shop-card:nth-child(8) { animation-delay: 0.4s; }
.ial-shop-card:nth-child(n+9) { animation-delay: 0.45s; }

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1200px) {
  .ial-shop-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ial-shop-hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
  }
  .ial-shop-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .ial-shop-hero {
    padding: 60px 0 50px;
  }
  .ial-shop-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ial-shop-hero-bg {
    opacity: 0.06;
    width: 100%;
    background-position: center;
  }
  .ial-shop-hero-overlay {
    background: radial-gradient(circle at center, rgba(127, 231, 212, 0.05), transparent 70%), #000000;
  }
  .ial-shop-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ial-shop-toolbar-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .sorting-nav {
    justify-content: space-between;
  }
  .search-wrapper {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .ial-shop-hero {
    padding: 40px 0;
  }
  .ial-shop-hero-left h1 {
    font-size: 28px !important;
  }
  .ial-shop-products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ial-shop-trust-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .categories-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
  }
  .categories-nav::-webkit-scrollbar {
    display: none;
  }
  .ial-shop-card:hover {
    transform: none;
  }
  .ial-shop-hero-right .spec-card {
    padding: 20px;
  }
  .ial-shop-hero-bullets .bullet {
    padding: 10px 14px;
  }
  .ial-shop-hero-bullets .bullet span {
    font-size: 12px;
  }
  .ial-shop-archive-wrapper .wrap {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .ial-shop-products-section {
    padding: 32px 0 60px;
  }
  .ial-shop-trust-badges {
    padding: 32px 0;
  }
  .ial-shop-toolbar-section {
    padding: 12px 0;
  }
}

@media (max-width: 480px) {
  .ial-shop-hero-left h1 {
    font-size: 24px !important;
  }
  .ial-shop-hero-left .lead {
    font-size: 13px;
    margin-bottom: 24px;
  }
  .card-body {
    padding: 12px 14px 0;
  }
  .card-action-row {
    padding: 0 14px 14px;
  }
  .card-img-container {
    height: 170px;
  }
  .card-price {
    font-size: 16px;
  }
  .trust-badge-item {
    padding: 16px;
    gap: 12px;
  }
  .trust-badge-item h4 {
    font-size: 12px !important;
  }
  .trust-badge-item p {
    font-size: 10px !important;
  }
  .sorting-nav {
    flex-wrap: wrap;
    gap: 8px;
  }
}

