/* Shop / category archive — clean catalog layout */
body.woocommerce-shop,
body.tax-product_cat,
body.tax-product_tag {
  background: #fff;
}

.tf-shop {
  background: #fff;
  color: #111;
  padding: 1.5rem 0 4rem;
}

.tf-shop__inner {
  max-width: 1400px;
}

.tf-shop-breadcrumb {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.tf-shop-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tf-shop-breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.35rem;
  color: #9ca3af;
}

.tf-shop-breadcrumb a:hover {
  color: #111;
}

.tf-shop__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.tf-shop__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #111;
  font-family: Inter, system-ui, sans-serif;
}

.tf-shop__toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.tf-shop__toolbar-right .woocommerce-result-count {
  margin: 0;
  font-size: 0.875rem;
  color: #374151;
}

.tf-shop__toolbar-right .woocommerce-ordering {
  margin: 0;
}

.tf-shop__toolbar-right .woocommerce-ordering select {
  appearance: none;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0.55rem 2rem 0.55rem 0.75rem;
  font-size: 0.875rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.65rem center;
  min-width: 11rem;
}

.tf-shop-featured {
  margin-bottom: 2.5rem;
}

.tf-shop-featured__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .tf-shop-featured__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tf-shop-featured__card {
  display: block;
  color: inherit;
}

.tf-shop-featured__card:hover {
  color: var(--tf-primary);
}

.tf-shop-featured__media {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f3f4f6;
  margin-bottom: 0.75rem;
}

.tf-shop-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tf-shop-featured__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.tf-shop-featured__name {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  color: #111;
}

.tf-shop-featured__desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
  color: #6b7280;
}

.tf-shop__layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 992px) {
  .tf-shop__layout {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
  }
}

.tf-shop__sidebar {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding-right: 0.5rem;
}

.tf-shop-nav__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: #111;
}

.tf-shop-nav ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.tf-shop-nav li {
  margin-bottom: 0.65rem;
}

.tf-shop-nav a {
  font-size: 0.9rem;
  color: #374151;
}

.tf-shop-nav li.is-active a,
.tf-shop-nav a:hover {
  color: #111;
  font-weight: 600;
}

.tf-shop-filter {
  border-top: 1px solid #e5e7eb;
  padding: 0.85rem 0;
}

.tf-shop-filter__title {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tf-shop-filter__title::-webkit-details-marker {
  display: none;
}

.tf-shop-filter__title::after {
  content: '▾';
  font-size: 0.75rem;
  color: #6b7280;
}

.tf-shop-filter[open] .tf-shop-filter__title::after {
  transform: rotate(180deg);
}

.tf-shop-filter__list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.tf-shop-filter__list li {
  margin-bottom: 0.5rem;
}

.tf-shop-filter__list a {
  font-size: 0.875rem;
  color: #4b5563;
}

.tf-shop-filter__list li.is-active a {
  color: #111;
  font-weight: 600;
}

.tf-shop__main ul.products,
.tf-shop-grid.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  width: 100%;
}

@media (min-width: 768px) {
  .tf-shop__main ul.products,
  .tf-shop-grid.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tf-shop__main ul.products::before,
.tf-shop__main ul.products::after,
.tf-shop-grid.products::before,
.tf-shop-grid.products::after {
  display: none !important;
  content: none !important;
}

.tf-shop__main ul.products li.product,
.tf-shop-grid.products li.product,
.tf-shop-card {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: none !important;
  list-style: none;
}

.tf-shop-card__media {
  position: relative;
  background: #f9fafb;
  overflow: hidden;
  border-radius: 4px;
}

.tf-shop-card__media img,
.tf-shop-card__link img {
  width: 100%;
  height: auto;
  max-height: 420px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.tf-shop-card:hover .tf-shop-card__media img {
  transform: scale(1.02);
}

.tf-shop-card__wishlist {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 1rem;
  color: #111;
  pointer-events: none;
}

.tf-shop-card__quick {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  border-radius: 999px;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}

.tf-shop-card:hover .tf-shop-card__quick {
  opacity: 1;
  transform: translateY(0);
}

.tf-shop-card__body {
  padding: 0.85rem 0 0;
}

.tf-shop-card__badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
}

.tf-shop-card__title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.tf-shop-card__title a {
  color: #111;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
  max-height: 2.7em;
}

.tf-shop-card__subtitle {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tf-shop-card__price {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
}

.tf-shop-card__price del {
  color: #9ca3af;
  font-weight: 400;
  margin-right: 0.35rem;
}

.tf-shop-card__price ins {
  text-decoration: none;
  color: #dc2626;
}

.tf-shop__main .woocommerce-pagination {
  margin-top: 2.5rem;
  text-align: center;
}

.tf-shop__main .woocommerce-pagination ul {
  border: none;
}

.tf-shop__main .woocommerce-info,
.tf-shop__main .woocommerce-no-products-found {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  color: #6b7280;
}

/* ── Mobile shop ── */
@media (max-width: 767px) {
  .tf-shop {
    padding: 1rem 0 3rem;
  }

  .tf-shop__toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }

  .tf-shop__title {
    font-size: 1.65rem;
  }

  .tf-shop__toolbar-right {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .tf-shop__toolbar-right .woocommerce-ordering {
    flex: 1;
  }

  .tf-shop__toolbar-right .woocommerce-ordering select {
    width: 100%;
    min-width: 0;
  }

  .tf-shop__sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    margin-bottom: 0.5rem;
  }

  .tf-shop-featured {
    margin-bottom: 1.5rem;
  }

  .tf-shop-featured__grid {
    gap: 0.85rem;
  }

  .tf-shop-featured__name {
    font-size: 0.88rem;
  }

  .tf-shop__main ul.products,
  .tf-shop-grid.products {
    gap: 0.85rem 0.65rem;
  }

  .tf-shop-card__body {
    padding-top: 0.65rem;
  }

  .tf-shop-card__title {
    font-size: 0.85rem;
  }

  .tf-shop-card__quick {
    opacity: 1;
    transform: none;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
}
