/**
 * Flatlogic Ecommerce UI — adaptat Tricotur (roșu #0b8796, Inter)
 */
/* TC_RUNTIME_PROBE_20260831_FILTER_V3 */

.tc-ec-store {
  --ec-primary: var(--red, #0b8796);
  --ec-primary-dark: var(--red-dk, #075b66);
  --ec-primary-soft: var(--red-lt, #e8f8fa);
  --ec-ink: var(--ink, #111111);
  --ec-muted: var(--muted, #666666);
  --ec-line: var(--line, #e8e8e8);
  --ec-soft: var(--soft, #f8f7f5);
  --ec-white: var(--white, #ffffff);
  --ec-shadow: 0 4px 20px rgba(17, 17, 17, 0.08);
}

/* ── Shop archive (catalog + categorii) ─────────── */
.tc-shop-page {
  background: #fafafa;
  min-height: 70vh;
  padding-bottom: 80px;
  /* clip creates a fixed containing block in some engines and traps drawer stacking */
  overflow-x: hidden;
}

.tc-shop-page .tc-container {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.tc-shop-header {
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  padding: 28px 0 22px;
  margin-bottom: 36px;
}

.tc-shop-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 14px;
}

.tc-shop-breadcrumb a:hover {
  color: var(--ec-primary);
}

.tc-shop-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.tc-shop-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0d0d0d;
  line-height: 1.1;
}

.tc-shop-desc {
  margin: 8px 0 0;
  font-size: 14px;
  color: #6b7280;
  max-width: 540px;
}

.tc-shop-desc img {
  display: none;
}

.tc-shop-sort .woocommerce-ordering {
  margin: 0;
}

.tc-shop-sort select {
  height: 38px;
  min-width: 200px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  padding: 0 14px;
}

.tc-shop-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  min-width: 0;
}

.tc-shop-main {
  min-width: 0;
  width: 100%;
}

.tc-shop-page .md-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 20px;
  font-size: 13px;
  letter-spacing: 0;
}

.tc-shop-page .md-catalog-count {
  margin: 0;
  color: var(--ec-muted);
}

.tc-shop-page .md-catalog-page-size {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ec-ink);
}

.tc-shop-page .md-catalog-page-size label {
  margin: 0;
  font-weight: 500;
}

.tc-shop-page .md-catalog-page-size select,
.tc-shop-page .md-catalog-page-size button {
  height: 38px;
  border: 1px solid var(--ec-line);
  border-radius: 4px;
  background: var(--ec-white);
  color: var(--ec-ink);
  font: inherit;
  padding: 0 12px;
}

.tc-shop-page .md-catalog-page-size select {
  min-width: 88px;
}

.tc-shop-page .md-catalog-page-size.is-enhanced button {
  display: none;
}

.tc-shop-page .md-catalog-page-size select:focus-visible,
.tc-shop-page .md-catalog-page-size button:focus-visible {
  outline: 2px solid var(--ec-primary);
  outline-offset: 2px;
}

.tc-shop-sidebar {
  position: sticky;
  top: 108px;
  background: transparent;
  border: 0;
  padding: 0;
}

.admin-bar .tc-shop-sidebar {
  top: 140px;
}

.tc-sidebar-clear a {
  font-size: 12px;
  color: var(--ec-primary);
  text-decoration: underline;
}

.tc-sidebar-section {
  border-top: 1px solid #ebebeb;
  padding: 16px 0;
}

.tc-sidebar-section:first-of-type {
  border-top: none;
}

.tc-sidebar-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #374151;
  cursor: pointer;
  margin-bottom: 14px;
}

.tc-sidebar-toggle::after {
  content: '−';
  font-size: 16px;
  color: #9ca3af;
}

.tc-sidebar-toggle[aria-expanded="false"]::after {
  content: '+';
}

.tc-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tc-sidebar-list a {
  display: block;
  padding: 7px 10px;
  font-size: 13px;
  color: #374151;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}

.tc-sidebar-list a:hover,
.tc-sidebar-list a.is-active {
  background: #f3f4f6;
  color: #111;
  font-weight: 600;
}

.tc-sidebar-all {
  color: var(--ec-primary) !important;
  font-weight: 500 !important;
}

.tc-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tc-price-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tc-price-field label {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
}

.tc-price-field input {
  width: 100%;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  padding: 0 10px;
  font-size: 13px;
}

.tc-price-sep {
  color: #d1d5db;
  padding-top: 18px;
}

.tc-sidebar-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tc-sidebar-size {
  min-width: 38px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  background: #fff;
}

.tc-sidebar-size.is-on {
  background: #0d0d0d;
  color: #fff;
  border-color: #0d0d0d;
}

.tc-shop-grid,
.tc-ec-store .tc-shop-grid,
.tc-ec-store .tc-ec-products-grid,
.tc-ec-products-grid--home {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 22px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.tc-ec-products-grid--home {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .tc-ec-products-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .tc-ec-products-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tc-ec-home .tc-ec-products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tc-product-card-img {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f7f7;
}

.tc-ec-store .tc-ec-card .tc-product-card-img {
  border-radius: 10px 10px 0 0;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 100%;
  aspect-ratio: 2 / 3;
}

.tc-ec-store .tc-ec-card .tc-product-card-img img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.tc-card-color-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.tc-card-swatch.tc-swatch {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.tc-card-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tc-card-size-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: default;
  pointer-events: none;
  opacity: 0.85;
}

.tc-card-size-btn:hover:not(:disabled) {
  border-color: var(--ec-primary);
  color: var(--ec-primary);
}

.tc-card-size-btn.is-active {
  border-color: var(--ec-primary);
  background: var(--ec-primary);
  color: #fff;
}

.tc-card-size-btn:disabled,
.tc-card-size-btn.is-unavailable {
  opacity: 0.35;
  cursor: not-allowed;
}

.tc-card-swatch-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.tc-card-swatch-more:hover {
  background: #e8f8fa;
  color: var(--ec-primary);
}

.tc-card-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35em;
  color: var(--ec-primary);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.tc-card-price .tc-price-prefix {
  font-size: 0.78em;
  font-weight: 700;
  color: #374151;
}

.tc-card-price .tc-price-prefix[hidden] {
  display: none !important;
}

.tc-card-price .tc-price-note {
  flex-basis: 100%;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.2;
}

.tc-ec-store.tc-product-page .tc-product-buybox__price .tc-buybox-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4em;
}

.tc-ec-store.tc-product-page .tc-product-buybox__price .tc-price-note {
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.2;
}

.tc-ec-store.tc-product-page .tc-product-buybox__price .tc-price-prefix[hidden] {
  display: none !important;
}

.tc-shop-empty {
  padding: 60px 0;
  text-align: center;
  color: #6b7280;
}

/* ── Sidebar overrides (fără număr produse) ─────── */
.tc-sidebar-list a span {
  display: none !important;
}

/* ── Mobile filter bar ───────────────────────────── */
.tc-ec-filter-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.tc-ec-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ec-line);
  background: var(--ec-white);
  color: var(--ec-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tc-ec-filter-toggle:hover,
.tc-ec-filter-toggle[aria-expanded="true"] {
  border-color: var(--ec-primary);
  color: var(--ec-primary);
}

.tc-ec-filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
  z-index: 980;
}

.tc-ec-filter-overlay.is-on {
  display: block;
}

body.tc-ec-filter-lock {
  overflow: hidden;
}

/*
 * FABs: footer.php → #tc-float.tc-float > a.tc-fab.tc-fab-wa / .tc-fab-tel
 * (z-index 900 in main.css / components.css). Hide while filter is open.
 */
body.tc-ec-filter-lock #tc-float,
body.tc-ec-filter-lock #tc-float.tc-float {
  display: none;
}

.tc-ec-sidebar-head {
  display: none;
}

.tc-ec-sidebar-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ec-ink);
}

.tc-ec-sidebar-close {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ec-line);
  background: var(--ec-white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/*
 * Portaled mobile filter (JS appends overlay + sidebar to document.body).
 * MUST NOT depend on .tc-ec-store ancestor — that match is lost after portal.
 * Stack: page < overlay(980) < drawer(990) < quick-add/cart(10050+).
 */
@media (max-width: 992px) {
  body.tc-ec-filter-lock #tc-ec-filter-overlay,
  body.tc-ec-filter-lock #tc-ec-filter-overlay.is-on {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 980;
    background: rgba(17, 17, 17, 0.45);
  }

  body.tc-ec-filter-lock #tc-shop-sidebar,
  body.tc-ec-filter-lock #tc-shop-sidebar.is-open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(380px, 88vw);
    max-width: 400px;
    z-index: 990;
    margin: 0;
    padding: 0 20px 28px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 0;
    border-radius: 0;
    background: #fff;
    background-color: #fff;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.18);
    opacity: 1;
    filter: none;
    transform: none;
    isolation: auto;
  }

  body.admin-bar.tc-ec-filter-lock #tc-shop-sidebar,
  body.admin-bar.tc-ec-filter-lock #tc-shop-sidebar.is-open {
    top: 46px;
  }

  body.tc-ec-filter-lock #tc-shop-sidebar .tc-ec-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 -20px 8px;
    padding: 16px 20px 14px;
    background: #fff;
    border-bottom: 1px solid var(--ec-line, #ebebeb);
  }

  body.tc-ec-filter-lock #tc-shop-sidebar .tc-ec-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: static;
    flex-shrink: 0;
  }
}

.tc-price-apply {
  width: 100%;
  height: 36px;
  background: var(--ec-primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.tc-price-apply:hover {
  background: var(--ec-primary-dark);
}

.tc-shop-sort--mobile {
  display: none;
}

.tc-ec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  background: #fff;
}

.tc-ec-card__body,
.tc-ec-card__content,
.tc-ec-card__head,
.tc-ec-card__variants,
.tc-ec-card__footer,
.tc-ec-card__purchase {
  min-width: 0;
  max-width: 100%;
}

.tc-ec-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding-top: 12px;
  min-height: 0;
}

.tc-ec-card__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.tc-ec-card__head {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.tc-ec-card__variants {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

@media (min-width: 768px) {
  .tc-ec-card__head {
    min-height: 168px;
  }

  .tc-ec-card__variants {
    min-height: 124px;
  }
}

.tc-ec-card__footer {
  margin-top: auto;
  padding-top: 10px;
}

.tc-ec-card__title,
.tc-ec-store .tc-product-card .tc-ec-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tc-ec-card__title a:hover {
  color: var(--ec-primary);
}

.tc-ec-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  min-height: 18px;
}

.tc-ec-card__rating-count {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1;
}

.tc-ec-card__rating .star-rating {
  float: none;
  margin: 0;
  font-size: 14px;
  line-height: 1;
}

.tc-ec-card__rating--empty .star-rating::before {
  color: #d1d5db;
  opacity: 1;
}

.tc-ec-card__rating .star-rating span::before {
  color: #f59e0b;
}

.tc-ec-card__purchase {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.tc-ec-card__purchase .tc-card-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35em;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ec-primary);
  line-height: 1.2;
}

.tc-ec-card__purchase .tc-card-price del {
  color: var(--ec-muted);
  font-weight: 500;
  font-size: 13px;
  margin-right: 4px;
}

.tc-ec-card__purchase .tc-card-price ins {
  text-decoration: none;
}

.tc-card-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: var(--ec-primary);
  color: #fff;
  border-radius: 6px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.tc-card-cta--needs-options[disabled],
.tc-card-cta--needs-options[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
}

.tc-card-cta--needs-options.is-ready:not([disabled]) {
  opacity: 1;
  cursor: pointer;
}

.tc-card-cta-hint {
  position: relative;
  display: block;
  width: 100%;
}

.tc-card-cta-hint-note {
  display: none;
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.3;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
}

.tc-card-cta-hint:not(.is-ready) .tc-card-cta--needs-options {
  pointer-events: none;
}

.tc-card-cta-hint:not(.is-ready)::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  z-index: 5;
  max-width: min(240px, 92vw);
  padding: 8px 12px;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.tc-card-cta-hint:not(.is-ready)::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  z-index: 5;
  border: 6px solid transparent;
  border-top-color: #111827;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.tc-card-cta-hint:not(.is-ready):hover::after,
.tc-card-cta-hint:not(.is-ready):hover::before,
.tc-card-cta-hint:not(.is-ready):focus-within::after,
.tc-card-cta-hint:not(.is-ready):focus-within::before {
  opacity: 1;
  visibility: visible;
}

.tc-card-cta-hint:not(.is-ready):hover::after,
.tc-card-cta-hint:not(.is-ready):focus-within::after {
  transform: translateX(-50%) translateY(0);
}

.tc-card-cta:hover {
  background: var(--ec-primary-dark);
  color: #fff;
}

.tc-card-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.14);
}

.tc-card-cta__icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
}

.tc-card-cta__label {
  flex: 1 1 auto;
  padding: 0 12px 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-card-cta--view {
  background: #374151;
}

.tc-card-cta--view:hover {
  background: #1f2937;
}

.tc-ec-card__media-wrap {
  position: relative;
  overflow: hidden;
  background: #f7f7f7;
}

.tc-favorite-btn--card {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #6b7280;
  box-shadow: 0 2px 10px rgba(17, 17, 17, 0.12);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.tc-favorite-btn--card:hover {
  background: #fff;
  color: var(--ec-primary);
  transform: scale(1.05);
}

.tc-favorite-btn--card.is-active {
  color: var(--ec-primary);
}

.tc-favorite-btn--card.is-active svg {
  fill: var(--ec-primary);
  stroke: var(--ec-primary);
}

.tc-favorite-btn--card svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.tc-favorites-empty {
  padding: 48px 0 12px;
  text-align: center;
  color: #6b7280;
  font-size: 15px;
}

.tc-favorites-empty-actions {
  margin: 0 0 48px;
  text-align: center;
}

.tc-favorites-empty-actions .tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--ec-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.tc-favorites-empty-actions .tc-btn:hover {
  background: var(--ec-primary-dark);
  color: #fff;
}

.tc-favorites-page .tc-shop-desc {
  margin-bottom: 0;
}

.tc-ec-card:hover .tc-product-card-img img {
  transform: none;
}

.tc-ec-card__actions {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 2;
}

.tc-ec-card:hover .tc-ec-card__actions,
.tc-ec-card:focus-within .tc-ec-card__actions {
  opacity: 1;
}

.tc-ec-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ec-line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ec-ink);
  box-shadow: var(--ec-shadow);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tc-ec-card__action:hover {
  background: var(--ec-primary);
  border-color: var(--ec-primary);
  color: #fff;
}

.tc-ec-card__action svg {
  width: 18px;
  height: 18px;
}

.tc-ec-card__cat {
  display: inline-block;
  margin-bottom: 6px;
  min-height: 1.2em;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ec-muted);
}

.tc-ec-card__cat:hover {
  color: var(--ec-primary);
}

/* ── Info block ──────────────────────────────────── */
.tc-ec-info {
  border-top: 1px solid var(--ec-line);
  border-bottom: 1px solid var(--ec-line);
  background: var(--ec-white);
  padding: 28px 0;
}

.tc-ec-info__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tc-ec-info__item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 0 12px;
}

.tc-ec-info__item:not(:last-child) {
  border-right: 1px solid var(--ec-line);
}

.tc-ec-info__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ec-primary-soft);
  color: var(--ec-primary);
  flex-shrink: 0;
}

.tc-ec-info__icon svg {
  width: 22px;
  height: 22px;
}

.tc-ec-info__title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ec-ink);
}

.tc-ec-info__text {
  margin: 0;
  font-size: 13px;
  color: var(--ec-muted);
  line-height: 1.45;
}

/* ── Single product (Flatlogic accents) ──────────── */
.tc-ec-store.tc-product-page .tc-product-panel__commerce {
  border-radius: 6px;
  border-color: var(--ec-line);
  background: #fff;
  box-shadow: none;
}

.tc-ec-store.tc-product-page .tc-product-rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 12px;
}

.tc-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
  text-decoration: none;
}

.tc-stars--product {
  gap: 4px;
}

.tc-stars--card {
  gap: 2px;
}

.tc-stars .tc-star {
  display: block;
  flex: 0 0 auto;
}

.tc-product-reviews-section,
#tc-product-reviews {
  padding: 40px 0 64px;
  background: #fff;
  border-top: 1px solid var(--ec-line);
  scroll-margin-top: 96px;
}

.tc-product-reviews-section .tc-container {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.tc-product-reviews-section__title {
  margin: 0 0 24px;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--ec-ink);
}

.tc-product-reviews .woocommerce-Reviews-title,
.tc-product-reviews__list-title {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
  color: #374151;
}

.tc-product-reviews .commentlist {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.tc-product-reviews .commentlist .comment {
  border-bottom: 1px solid var(--ec-line);
  padding: 18px 0;
}

.tc-product-reviews .commentlist .star-rating {
  float: none;
  margin: 0 0 8px;
  font-size: 1rem;
  overflow: visible;
}

.tc-product-reviews .commentlist .star-rating span::before {
  color: #f59e0b;
}

.tc-product-reviews #review_form_wrapper {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--ec-line);
  border-radius: 12px;
  background: #fafafa;
}

.tc-product-reviews .comment-reply-title {
  display: block;
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ec-ink);
}

.tc-product-reviews .comment-form-rating label,
.tc-product-reviews .comment-form-comment label,
.tc-product-reviews .comment-form-author label,
.tc-product-reviews .comment-form-email label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.tc-product-reviews .comment-form-rating select,
.tc-product-reviews .comment-form input[type="text"],
.tc-product-reviews .comment-form input[type="email"],
.tc-product-reviews .comment-form textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
}

.tc-product-reviews .comment-form-rating select#rating {
  display: none !important;
}

.tc-product-reviews .comment-form p.stars,
.tc-product-reviews .comment-form .stars,
.tc-product-reviews .comment-form p.stars.tc-review-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 8px 0 16px;
  clear: none;
}

.tc-product-reviews .comment-form p.stars a,
.tc-product-reviews .comment-form .stars a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
  color: inherit;
  text-indent: 0;
  overflow: visible;
  background: none;
  position: relative;
  text-decoration: none;
  box-shadow: none;
  outline: none;
}

.tc-product-reviews .comment-form p.stars a:focus-visible,
.tc-product-reviews .comment-form .stars a:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 2px;
  border-radius: 2px;
}

.tc-product-reviews .comment-form p.stars a::before,
.tc-product-reviews .comment-form .stars a::before,
.tc-product-reviews p.stars:hover a::before,
.tc-product-reviews p.stars a:hover ~ a::before,
.tc-product-reviews p.stars.selected a::before,
.tc-product-reviews p.stars.selected a.active::before,
.tc-product-reviews p.stars.selected a.active ~ a::before,
.tc-product-reviews p.stars.selected a:not(.active)::before {
  content: none !important;
  display: none !important;
}

.tc-product-reviews .comment-form p.stars a svg,
.tc-product-reviews .comment-form .stars a svg,
.tc-product-reviews .tc-review-star {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  pointer-events: none;
}

.tc-product-reviews .form-submit .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--ec-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tc-product-reviews .form-submit .submit:hover {
  background: var(--ec-primary-dark);
}

.tc-product-reviews .woocommerce-verification-required,
.tc-product-reviews .must-log-in {
  font-size: 14px;
  color: #6b7280;
}

.tc-ec-store.tc-product-page .tc-product-rating-count {
  font-size: 15px;
  font-weight: 600;
  color: #6b7280;
}

.tc-ec-store.tc-product-page .tc-product-buybox__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4em;
  flex: 0 0 auto;
  font-size: 28px;
  font-weight: 800;
  color: var(--ec-primary);
  line-height: 1.2;
}

.tc-ec-store.tc-product-page .tc-product-buybox__price .tc-price-prefix {
  font-size: 0.78em;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
}

.tc-ec-store.tc-product-page .tc-product-buybox {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--ec-line);
  border-radius: 6px;
  background: #f4f7f8;
  margin-bottom: 12px;
}

.tc-ec-store.tc-product-page .tc-product-buybox__price .price {
  margin: 0;
  color: inherit;
}

.tc-ec-store.tc-product-page .tc-product-buybox__price del {
  color: #9ca3af;
  font-size: 0.72em;
  font-weight: 500;
}

.tc-ec-store.tc-product-page .tc-product-buybox__price ins {
  text-decoration: none;
}

.tc-ec-store.tc-product-page .tc-product-buybox__divider {
  width: 1px;
  background: #e5e7eb;
  flex-shrink: 0;
}

.tc-ec-store.tc-product-page .tc-product-buybox__meta {
  display: grid;
  gap: 6px;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.tc-ec-store.tc-product-page .tc-product-buybox__meta-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  margin: 0;
}

.tc-ec-store.tc-product-page .tc-product-buybox__meta dt {
  margin: 0;
  font-size: 12px;
  color: #5d7178;
  font-weight: 500;
}

.tc-ec-store.tc-product-page .tc-product-buybox__meta dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.tc-ec-store.tc-product-page .tc-product-buybox__meta dd.is-in-stock {
  color: #15803d;
}

.tc-ec-store.tc-product-page .tc-product-buybox__meta dd.is-order {
  color: #b45309;
}

.tc-ec-store.tc-product-page .tc-product-buybox__brand {
  color: var(--ec-primary);
}

.tc-ec-store.tc-product-page .tc-product-favorite-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #374151;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease;
}

.tc-ec-store.tc-product-page .tc-product-favorite-link svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.tc-ec-store.tc-product-page .tc-product-favorite-link:hover,
.tc-ec-store.tc-product-page .tc-product-favorite-link.is-active {
  color: var(--ec-primary);
}

.tc-ec-store.tc-product-page .tc-product-favorite-link.is-active svg {
  fill: var(--ec-primary);
  stroke: var(--ec-primary);
}

.tc-ec-store.tc-product-page .tc-product-specs-section {
  padding: 0 0 56px;
  background: #fff;
  border-top: 1px solid var(--ec-line);
}

.tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs {
  padding: 32px 0 0;
}

.tc-ec-store.tc-product-page .tc-product-specs-section .tc-container {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__shell {
  border: 1px solid var(--ec-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.06);
}

.tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__tabs {
  padding: 0 8px;
  background: #fafafa;
}

.tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__tab {
  padding: 18px 22px;
  font-size: 12px;
}

.tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__panels {
  padding: 32px 36px;
}

.tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__technical-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 32px;
}

.tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__sizes-layout.has-diagram {
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 32px;
}

.tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__table {
  font-size: 14px;
}

.tc-ec-store.tc-product-page .tc-product-panel__specs {
  display: none !important;
}

.tc-ec-store.tc-product-page .tc-product-buy button.single_add_to_cart_button,
.tc-ec-store.tc-product-page .tc-add-to-cart-btn {
  background: var(--ec-primary);
  border-color: var(--ec-primary);
  height: 52px;
  min-height: 52px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

.tc-ec-store.tc-product-page .tc-product-buy button.single_add_to_cart_button:hover,
.tc-ec-store.tc-product-page .tc-add-to-cart-btn:hover {
  background: var(--ec-primary-dark);
  border-color: var(--ec-primary-dark);
}

.tc-ec-store.tc-product-page .tc-product-commerce-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.tc-ec-store.tc-product-page .tc-product-panel__commerce .tc-product-embroidery-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 0;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ec-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.tc-ec-store.tc-product-page .tc-product-panel__commerce .tc-product-embroidery-link:hover { color: var(--ec-primary-dark); text-decoration: underline; }
.tc-product-panel__commerce .tc-product-embroidery-link svg { width: 17px; height: 17px; flex: 0 0 17px; }

.tc-ec-store.tc-product-page .tc-product-buy form.cart:not(.tc-variations-form),
.tc-ec-store.tc-product-page .tc-product-buy .tc-variation-cart-row {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.tc-product-buy .quantity input.qty { height: 52px; width: 100%; min-width: 0; text-align: center; }
.tc-ec-store.tc-product-page .tc-product-buy .quantity.md-product-quantity {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  width: 100%;
  height: 52px;
  margin: 0;
  float: none;
  border: 1px solid #cbd9dd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.tc-product-buy .md-product-quantity input.qty {
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #253b42;
  font-size: 15px;
  font-weight: 600;
  appearance: textfield;
  -moz-appearance: textfield;
}

.tc-product-buy .md-product-quantity input.qty::-webkit-inner-spin-button,
.tc-product-buy .md-product-quantity input.qty::-webkit-outer-spin-button { appearance: none; -webkit-appearance: none; margin: 0; }
.tc-product-buy .md-product-quantity input.qty:focus { outline: 0; }
.tc-product-buy .md-product-quantity:focus-within { border-color: var(--ec-primary); box-shadow: 0 0 0 3px rgba(11, 135, 150, 0.12); }
.tc-product-buy .md-qty-button { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #253b42; }
.tc-product-buy .md-qty-button svg { width: 17px; height: 17px; }
.tc-product-buy .md-qty-button:hover:not(:disabled) { background: #e8f8fa; color: var(--ec-primary); }
.tc-product-buy .md-qty-button:disabled { opacity: 0.3; cursor: not-allowed; }
.tc-ec-store.tc-product-page .tc-product-buy .quantity.md-product-quantity--hidden,
.tc-ec-store.tc-product-page .tc-product-buy .quantity:has(input.qty[type="hidden"]) { display: none; }
.tc-ec-store.tc-product-page .tc-product-buy form.cart:not(.tc-variations-form):not(:has(.quantity input.qty:not([type="hidden"]))),
.tc-ec-store.tc-product-page .tc-product-buy .tc-variation-cart-row:not(:has(.quantity input.qty:not([type="hidden"]))) { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 576px) {
  .tc-ec-store.tc-product-page .tc-product-buy form.cart:not(.tc-variations-form),
  .tc-ec-store.tc-product-page .tc-product-buy .tc-variation-cart-row { grid-template-columns: 112px minmax(0, 1fr); gap: 10px; }
  .tc-ec-store.tc-product-page .tc-product-buy .quantity.md-product-quantity { grid-template-columns: 32px minmax(0, 1fr) 32px; }
  .tc-ec-store.tc-product-page .tc-product-buy button.single_add_to_cart_button { font-size: 13px; padding: 0 8px; }
}

/* ── Cart & checkout ─────────────────────────────── */
body.woocommerce-cart .tc-main,
body.woocommerce-checkout .tc-main {
  background: var(--ec-white);
}

body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
  max-width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

body.woocommerce-cart .woocommerce table.shop_table {
  border: 1px solid var(--ec-line);
  border-radius: 0;
}

body.woocommerce-cart .woocommerce table.shop_table th,
body.woocommerce-cart .woocommerce table.shop_table td {
  border-color: var(--ec-line);
  padding: 18px 16px;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
  background: var(--ec-soft);
  border: 1px solid var(--ec-line);
  padding: 32px;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: var(--ec-primary);
  border-radius: 0;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 24px;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--ec-primary-dark);
}

body.woocommerce-checkout #place_order {
  background: var(--ec-primary);
  border-radius: 0;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1200px) {
  .tc-shop-grid,
  .tc-ec-store .tc-shop-grid,
  .tc-ec-store .tc-ec-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tc-ec-home .tc-ec-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .tc-shop-layout,
  .tc-ec-store .tc-shop-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tc-ec-filter-bar {
    display: flex;
  }

  .tc-shop-sort--mobile {
    display: block;
  }

  .tc-ec-store .tc-shop-header-row .tc-shop-sort {
    display: none;
  }

  /*
   * Closed state while sidebar is still in the shop grid.
   * Open/portaled look is owned by body.tc-ec-filter-lock rules above.
   */
  .tc-ec-store .tc-shop-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(380px, 88vw);
    max-width: 400px;
    z-index: 990;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    background: #fff;
    background-color: #fff;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.18);
    padding: 0 20px 28px;
    box-sizing: border-box;
  }

  /* Fallback if portal has not run yet — still opaque white */
  .tc-ec-store .tc-shop-sidebar.is-open {
    display: block;
    background: #fff;
    background-color: #fff;
  }

  .tc-ec-store .tc-shop-sidebar .tc-ec-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 -20px 8px;
    padding: 16px 20px 14px;
    background: #fff;
    border-bottom: 1px solid var(--ec-line, #ebebeb);
  }

  .tc-ec-store .tc-shop-sidebar .tc-ec-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: static;
    flex-shrink: 0;
  }

  .tc-ec-info__grid {
    grid-template-columns: 1fr;
  }

  .tc-ec-info__item:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--ec-line);
    padding-bottom: 18px;
  }
}

@media (max-width: 991px) {
  .tc-shop-grid,
  .tc-ec-store .tc-shop-grid,
  .tc-ec-store .tc-ec-products-grid,
  .tc-ec-home .tc-ec-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }
}

@media (max-width: 767px) {
  .tc-shop-page .tc-container {
    width: calc(100% - 24px);
    max-width: 100%;
    box-sizing: border-box;
  }

  .tc-shop-header {
    padding: 18px 0 14px;
    margin-bottom: 20px;
  }

  .tc-shop-breadcrumb {
    flex-wrap: wrap;
    row-gap: 4px;
    font-size: 11px;
    line-height: 1.45;
  }

  .tc-shop-title {
    font-size: clamp(20px, 5.5vw, 28px);
  }

  .tc-shop-grid,
  .tc-ec-store .tc-shop-grid,
  .tc-ec-store .tc-ec-products-grid,
  .tc-ec-home .tc-ec-products-grid,
  .tc-favorites-page .tc-favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 8px;
  }

  .tc-shop-grid > .tc-ec-card,
  .tc-shop-grid > .tc-product-card {
    min-width: 0;
  }

  .tc-ec-card__head,
  .tc-ec-card__variants {
    min-height: 0;
  }

  .tc-ec-card__cat {
    font-size: 9px;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
  }

  .tc-ec-card__title,
  .tc-ec-store .tc-product-card .tc-ec-card__title {
    font-size: 11px;
    min-height: calc(1.35em * 2);
    line-height: 1.3;
  }

  .tc-ec-card__rating {
    margin-bottom: 4px;
    min-height: 14px;
  }

  .tc-ec-card__rating .star-rating {
    font-size: 11px;
  }

  .tc-ec-card__rating-count {
    font-size: 11px;
  }

  .tc-ec-card__purchase .tc-card-price {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .tc-shop-grid .tc-card-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
    max-width: 100%;
  }

  .tc-shop-grid .tc-card-size-btn {
    min-width: 0;
    flex: 1 1 calc(33.333% - 4px);
    max-width: calc(33.333% - 4px);
    height: 24px;
    padding: 0 2px;
    font-size: 9px;
    border-radius: 4px;
  }

  .tc-card-color-swatches {
    gap: 4px;
    margin-bottom: 6px;
  }

  .tc-card-swatch.tc-swatch {
    width: 22px;
    height: 22px;
  }

  .tc-card-swatch-more {
    min-width: 22px;
    height: 22px;
    font-size: 9px;
  }

  .tc-card-cta {
    min-height: 34px;
    border-radius: 6px;
  }

  .tc-card-cta__icon {
    display: none;
  }

  .tc-card-cta__label {
    padding: 0 6px;
    white-space: normal;
    line-height: 1.15;
    font-size: 10px;
    text-align: center;
  }

  .tc-card-cta-hint:not(.is-ready)::after,
  .tc-card-cta-hint:not(.is-ready)::before {
    display: none !important;
  }

  .tc-card-cta-hint:not(.is-ready) .tc-card-cta-hint-note {
    display: block;
  }

  .tc-favorite-btn--card {
    width: 28px;
    height: 28px;
    top: 6px;
    right: 6px;
  }

  .tc-favorite-btn--card svg {
    width: 14px;
    height: 14px;
  }

  .tc-ec-store .tc-ec-card .tc-product-card-img {
    aspect-ratio: 2 / 3;
  }

  .tc-ec-store .tc-ec-card .tc-product-card-img img {
    aspect-ratio: auto;
    object-fit: contain;
    min-height: 0;
  }

  .tc-ec-store.tc-product-page .tc-container--product {
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
    box-sizing: border-box;
  }

  .tc-ec-store.tc-product-page .tc-product-hero {
    padding: 12px 0 28px;
  }

  .tc-ec-store.tc-product-page h1.tc-product-title,
  .tc-product-page .tc-product-panel h1.tc-product-title {
    font-size: clamp(1.05rem, 4.8vw, 1.35rem) !important;
    line-height: 1.35 !important;
  }

  .tc-product-page .tc-product-summary {
    position: static;
    top: auto;
  }

  .tc-product-page {
    --tc-pg-main-max-h: min(78vw, 400px);
  }

  .tc-pg-main {
    min-height: min(72vw, 360px);
  }

  .tc-ec-store.tc-product-page .tc-product-buybox__price,
  .tc-ec-store.tc-product-page .tc-product-buybox__price .price {
    font-size: 1.25rem;
  }

  .tc-ec-store.tc-product-page .tc-product-buybox {
    padding: 14px;
  }

  .tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__tab {
    padding: 14px 12px;
    font-size: 10px;
  }
}

@media (max-width: 576px) {
  .tc-ec-store .tc-shop-grid,
  .tc-ec-store .tc-ec-products-grid,
  .tc-favorites-page .tc-favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
  }

  .tc-ec-card__actions {
    opacity: 1;
  }
}

/* ── Paginare catalog (shadcn/ui) ───────────────── */
.tc-ec-store .tc-shop-pagination {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ec-line);
}

.tc-ec-store .tc-shop-pagination .tc-pagination {
  display: flex;
  width: 100%;
  justify-content: center;
  margin: 0 auto;
}

.tc-ec-store .tc-shop-pagination .tc-pagination__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tc-ec-store .tc-shop-pagination .tc-pagination__item {
  display: flex;
  margin: 0;
  padding: 0;
}

.tc-ec-store .tc-shop-pagination .tc-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ec-line);
  border-radius: 6px;
  background: var(--ec-white);
  color: var(--ec-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tc-ec-store .tc-shop-pagination .tc-pagination__link:hover,
.tc-ec-store .tc-shop-pagination .tc-pagination__link:focus-visible {
  background: var(--ec-soft);
  border-color: var(--ec-line);
  color: var(--ec-ink);
  outline: none;
}

.tc-ec-store .tc-shop-pagination .tc-pagination__link.is-active,
.tc-ec-store .tc-shop-pagination .tc-pagination__link[aria-current="page"] {
  background: var(--ec-primary) !important;
  border-color: var(--ec-primary) !important;
  color: #fff !important;
  font-weight: 600;
  pointer-events: none;
}

.tc-ec-store .tc-shop-pagination .tc-pagination__link--nav {
  padding: 0 10px;
}

.tc-ec-store .tc-shop-pagination .tc-pagination__link--nav svg,
.tc-ec-store .tc-shop-pagination .tc-pagination__link--nav i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tc-ec-store .tc-shop-pagination .tc-pagination__ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ec-muted);
}

.tc-ec-store .tc-shop-pagination .tc-pagination__ellipsis svg,
.tc-ec-store .tc-shop-pagination .tc-pagination__ellipsis i {
  width: 16px;
  height: 16px;
}

/* Reset WooCommerce legacy pagination if cached template */
.tc-ec-store .tc-shop-pagination nav.woocommerce-pagination ul.page-numbers {
  border: none !important;
}

.tc-ec-store .tc-shop-pagination nav.woocommerce-pagination ul.page-numbers li {
  border: none !important;
  float: none !important;
}

@media (max-width: 991px) {
  .tc-ec-store.tc-product-page .tc-product-buybox {
    flex-direction: column;
    gap: 14px;
  }

  .tc-ec-store.tc-product-page .tc-product-buybox__divider {
    width: 100%;
    height: 1px;
  }

  .tc-ec-store.tc-product-page .tc-product-specs-section .tc-container,
  .tc-product-reviews-section .tc-container {
    width: calc(100% - 32px);
    max-width: 100%;
    box-sizing: border-box;
  }

  .tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__shell {
    overflow: visible;
  }

  .tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__tabs {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
  }

  .tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__panels {
    padding: 18px 14px;
    border-radius: 0 0 12px 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__technical-grid {
    grid-template-columns: 1fr;
  }

  .tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__sizes-layout,
  .tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__sizes-layout.has-diagram {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__sizes-diagram {
    order: -1;
    min-height: 0;
    max-width: 220px;
    margin-inline: auto;
    padding: 10px;
  }

  .tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__sizes-diagram img {
    max-width: 100%;
  }

  .tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    font-size: 12px;
  }

  .tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__table th,
  .tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__table td {
    padding: 8px 6px;
  }

  .tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__table-wrap {
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--ec-line);
    border-radius: 10px;
  }

  .tc-ec-store.tc-product-page .tc-product-specs-section .tc-product-specs__description {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .tc-product-reviews-section #review_form_wrapper,
  .tc-product-reviews #review_form_wrapper {
    padding: 16px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .tc-product-reviews .comment-form input[type="text"],
  .tc-product-reviews .comment-form input[type="email"],
  .tc-product-reviews .comment-form textarea {
    box-sizing: border-box;
  }
}

/* Single product — titlu compact (override style.css / cache) */
.tc-ec-store.tc-product-page h1.tc-product-title,
.tc-product-page .tc-product-panel h1.tc-product-title {
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 0 0 8px !important;
}

/* Bloc vechi „Comandă cu broderie” — ascuns dacă rămâne pe server */
.tc-product-side-info {
  display: none !important;
}

/* ── Enterprise B2B product card (Instrument Catalog) ── */
.tc-ec-store .tc-shop-grid,
.tc-ec-store .tc-ec-products-grid,
.tc-ec-products-grid--home {
  gap: 16px;
}

.tc-ec-products-grid--home,
.tc-ec-home .tc-ec-products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tc-ec-card.tc-product-card,
.tc-ec-card--enterprise {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line, #c9d2d0);
  border-radius: var(--radius, 3px);
  background: #fff;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tc-ec-card--enterprise:hover,
.tc-ec-card--enterprise:focus-within {
  border-color: #0b8796;
  box-shadow: 0 10px 28px rgba(11, 20, 24, 0.08);
}

.tc-ec-card__media-wrap {
  position: relative;
}

.tc-ec-store .tc-ec-card .tc-product-card-img,
.tc-ec-card--enterprise .tc-product-card-img {
  aspect-ratio: 1 / 1;
  border-radius: 0;
  background: #f4f7f6;
  overflow: hidden;
}

.tc-ec-store .tc-ec-card .tc-product-card-img img,
.tc-ec-card--enterprise .tc-product-card-img img {
  padding: 18px;
  object-fit: contain;
  transition: transform 0.28s ease;
}

.tc-ec-card--enterprise:hover .tc-product-card-img img {
  transform: scale(1.04);
}

.tc-ec-card__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: static;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
  border: 0;
  background: transparent;
  color: #5c6d73;
}

.tc-ec-card__stock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.tc-ec-card__stock.is-in-stock {
  color: #075b66;
}

.tc-ec-card__stock.is-order {
  color: #52636a;
}

.tc-ec-card__stock.is-unavailable {
  color: #747e83;
}

.tc-ec-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 14px 14px 14px;
  gap: 14px;
}

.tc-ec-card__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.tc-ec-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.tc-ec-card__code {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5c6d73;
  font-variant-numeric: tabular-nums;
}

.tc-ec-card__brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink, #0b1418);
}

.tc-ec-card__cat {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0b8796;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tc-ec-card__cat:hover {
  color: #075b66;
}

.tc-ec-card__title,
.tc-ec-store .tc-product-card .tc-ec-card__title,
.tc-ec-card--enterprise .tc-ec-card__title {
  margin: 0;
  min-height: calc(1.4em * 2);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink, #0b1418);
}

.tc-ec-card__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: inherit;
}

.tc-ec-card__title a:hover {
  color: #0b8796;
}

.tc-ec-card__variants {
  min-height: 0 !important;
  margin: 2px 0 0;
}

.tc-ec-card--enterprise .tc-card-sizes {
  display: none !important;
}

.tc-ec-card--enterprise .tc-card-color-swatches {
  display: flex;
  gap: 5px;
}

.tc-ec-card--enterprise .tc-card-swatch {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid rgba(11, 20, 24, 0.14);
}

.tc-ec-card__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 0;
}

.tc-ec-card__purchase {
  display: block;
}

.tc-ec-card__purchase .tc-card-price {
  color: var(--ink, #0b1418);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tc-card-price .tc-price-note {
  display: inline-block;
  margin-left: 6px;
  color: #5c6d73;
  font-size: 11px;
  font-weight: 500;
}

.tc-ec-card--enterprise .tc-ec-card__purchase {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tc-ec-card--enterprise .tc-card-cta {
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius, 3px);
  background: #0b8796;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tc-ec-card--enterprise .tc-card-cta:hover {
  background: #075b66;
  color: #fff;
}

.tc-ec-card--enterprise .tc-card-cta__icon {
  display: inline-flex;
  width: 28px;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.12);
}

.tc-ec-card--enterprise .tc-card-cta__icon svg {
  width: 16px;
  height: 16px;
}

.tc-ec-card--enterprise .tc-card-cta__label {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

@media (max-width: 1200px) {
  .tc-ec-products-grid--home,
  .tc-ec-home .tc-ec-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tc-ec-products-grid--home,
  .tc-ec-home .tc-ec-products-grid,
  .tc-ec-store .tc-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .tc-ec-card__title,
  .tc-ec-card--enterprise .tc-ec-card__title {
    font-size: 16px;
  }

  .tc-card-cta--quote {
    font-size: 11px;
    padding: 0 10px;
  }
}
