/* ══════════════════════════════
   BASE
══════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body.has-agv-header {
  background: #fff !important;
  font-family: 'Mulish', sans-serif;
  color: #111;
  margin: 0;
}

.isicon { vertical-align: middle; }

/* ══════════════════════════════
   BREADCRUMB
══════════════════════════════ */
.breadcrumb {
  font-family: 'Source Code Pro', monospace;
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: none;
  padding: 0;
  margin: 0;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #999;
}
.breadcrumb-item a {
  color: #555;
  text-decoration: none;
}
.breadcrumb-item a:hover { color: #111; }
.breadcrumb-item.active { color: #111; }

/* ══════════════════════════════
   PAGE TITLE
══════════════════════════════ */
.page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.01em;
  color: #111;
}
.page-title .count {
  font-weight: 300;
  color: #888;
}

/* ══════════════════════════════
   FILTER / SORT BAR
══════════════════════════════ */
.filter-bar {
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: .75rem 0;
}
.filter-bar .btn-filter {
  font-family: 'Source Code Pro', monospace;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid #ccc;
  background: #fff;
  color: #111;
  padding: .35rem .9rem;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: background .15s, border-color .15s;
}
.filter-bar .btn-filter:hover { background: #f5f5f5; border-color: #999; }
.filter-bar .btn-filter.active { background: #111; color: #fff; border-color: #111; }
.filter-bar select {
  font-family: 'Source Code Pro', monospace;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: .35rem .7rem;
  background: #fff;
  color: #111;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23111' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .5rem center;
  padding-right: 1.75rem;
}

/* ══════════════════════════════
   FAMILY SECTION HEADER
══════════════════════════════ */
.family-header {
  border-top: 2px solid #111;
  padding-top: 1rem;
}
.family-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
}
.family-header a {
  font-family: 'Source Code Pro', monospace;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid #111;
  padding-bottom: 1px;
  transition: opacity .15s;
}
.family-header a:hover { opacity: .55; }

/* ══════════════════════════════
   PRODUCT CARD
══════════════════════════════ */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid transparent;
  transition: border-color .2s;
}
.product-card:hover { border-color: #e0e0e0; }

.product-card .img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f7f7;
}
.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}
.product-card:hover .img-wrap img { transform: scale(1.04); }

/* Wishlist */
.btn-wishlist {
  position: absolute;
  top: .6rem;
  right: .6rem;
  z-index: 2;
  background: #fff;
  border: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
  transition: box-shadow .15s;
}
.btn-wishlist:hover { box-shadow: 0 2px 8px rgba(0,0,0,.18); }

/* Label badge */
.product-label {
  position: absolute;
  top: .6rem;
  left: .6rem;
  z-index: 2;
  font-family: 'Source Code Pro', monospace;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .2rem .5rem;
  background: #111;
  color: #fff;
  border-radius: 1px;
}
.product-label.sale { background: #c0392b; }
.product-label.new  { background: #27ae60; }

/* Color swatches */
.color-swatches {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: .5rem;
}
.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15);
  cursor: pointer;
  transition: transform .15s;
}
.swatch:hover { transform: scale(1.2); }
.swatch.active { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #111; }

/* Card body */
.card-body-inner {
  padding: .75rem .5rem .5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: .25rem;
}
.product-name {
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
  text-decoration: none;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name:hover { color: #555; }
.product-variant {
  font-family: 'Source Code Pro', monospace;
  font-size: .62rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 1px;
}
.product-price {
  font-size: .95rem;
  font-weight: 800;
  margin-top: auto;
  padding-top: .5rem;
}
.product-price .old {
  font-size: .75rem;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
  margin-right: .3rem;
}
.product-price .sale-price { color: #c0392b; }

/* Compare */
.compare-check {
  font-family: 'Source Code Pro', monospace;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: .4rem;
}
.compare-check input { accent-color: #111; width: 13px; height: 13px; cursor: pointer; }
.compare-check label { cursor: pointer; }

/* ══════════════════════════════
   QUICK ADD (hover)
══════════════════════════════ */
.quick-add-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 .5rem .5rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.product-card:hover .quick-add-wrap {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.btn-quick-add {
  width: 100%;
  background: #111;
  color: #fff;
  border: none;
  padding: .55rem 0;
  font-family: 'Source Code Pro', monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
}
.btn-quick-add:hover { background: #333; }

/* ══════════════════════════════
   PAGINATION
══════════════════════════════ */
.pagination .page-link {
  font-family: 'Source Code Pro', monospace;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: #111;
  border-color: #e0e0e0;
  border-radius: 2px;
  padding: .45rem .8rem;
}
.pagination .page-item.active .page-link {
  background: #111;
  border-color: #111;
  color: #fff;
}
.pagination .page-link:hover { background: #f5f5f5; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 576px) {
  .filter-bar .hide-xs { display: none; }
  .family-header h2 { font-size: 1.15rem; }
}