/* ==========================================================================
   Tailovo — shared styles for the collection pages
   (category-dogs, category-cats, deals, new-arrivals, order-confirmation,
    size-guide, pet-care-guide and the 404 page)

   Loaded AFTER theme.css and pages.css, so every rule here can override the
   shared components. The pages reuse the existing classes (tv-panel,
   tv-product-grid, tv-steps4, tv-values3, tv-shop-empty, tv-ordercode ...)
   and only add what those pages genuinely need.
   ========================================================================== */

/* ===== page hero (category pages) ===== */
.tv-pagehero {
  background: #243038;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 38px 36px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.tv-pagehero__kicker {
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 12.5px;
  margin-bottom: 10px;
}

.tv-pagehero h1 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 500;
  margin-bottom: 12px;
}

.tv-pagehero__text {
  color: #d5dde3;
  max-width: 56ch;
  margin-bottom: 20px;
}

.tv-pagehero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.tv-pagehero__stats li {
  padding-left: 14px;
  border-left: 2px solid var(--brand);
}

.tv-pagehero__stats b {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.tv-pagehero__stats span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
}

.tv-pagehero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tv-pagehero__art {
  display: grid;
  place-items: center;
  min-width: 0;
}

.tv-pagehero__art img {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.3));
}

/* On a dark hero the outline button has to stay readable. */
.tv-pagehero .tv-btn--line {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.tv-pagehero .tv-btn--line:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--brand);
  color: #fff;
}

/* ===== section headings ===== */
.tv-sectitle {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 14px;
}

.tv-sectitle h2 {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}

.tv-sectitle p {
  color: var(--muted);
  font-size: 13.5px;
}

/* ===== subcategory tiles ===== */
.tv-subcats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.tv-subcat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 14px 16px;
  color: var(--ink);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.tv-subcat:hover {
  border-color: var(--brand);
  background: #fffbeb;
}

.tv-subcat__icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff4e0;
  color: var(--brand-hover);
}

.tv-subcat__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.tv-subcat b {
  display: block;
  font-weight: 500;
  font-size: 15px;
}

.tv-subcat span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}

.tv-subcat__go {
  margin-left: auto;
  color: var(--muted);
  flex: none;
}

.tv-subcat__go svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.tv-subcat:hover .tv-subcat__go { color: var(--brand-hover); }

/* ===== collection toolbar (deals / new arrivals) ===== */
.tv-collection {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.tv-collection__side {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 16px;
  position: sticky;
  top: 12px;
  display: grid;
  gap: 18px;
}

.tv-collection__side h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.tv-collection__group {
  display: grid;
  gap: 6px;
}

.tv-collection__group > span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  font-weight: 600;
}

.tv-collection__group select {
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0 10px;
  color: var(--ink);
  width: 100%;
}

.tv-collection__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tv-collection__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tv-collection__toolbar select {
  height: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0 10px;
  color: var(--ink);
  min-width: 170px;
}

.tv-collection__reset {
  border: 1px dashed var(--line);
  background: var(--white);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  min-height: 36px;
  font-size: 12.5px;
  cursor: pointer;
}

.tv-collection__reset:hover {
  border-color: var(--brand);
  color: var(--ink);
  background: #fffbeb;
}

/* ===== flash sale banner + countdown ===== */
.tv-flash {
  background: #243038;
  color: #fff;
  border-radius: 8px;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
}

.tv-flash__kicker {
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 12.5px;
  margin-bottom: 8px;
}

.tv-flash h1 {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 8px;
}

.tv-flash p {
  color: #d5dde3;
  max-width: 52ch;
}

.tv-flash__timer {
  display: flex;
  gap: 10px;
}

.tv-flash__unit {
  min-width: 78px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
}

.tv-flash__unit b {
  display: block;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.tv-flash__unit span {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.7);
}

.tv-flash__note {
  margin-top: 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== coupon cards ===== */
.tv-coupons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.tv-coupon {
  position: relative;
  background: var(--white);
  border: 1px dashed var(--brand);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.tv-coupon__value {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.tv-coupon__code {
  font-family: "Courier New", monospace;
  font-size: 15px;
  letter-spacing: 1.4px;
  font-weight: 700;
  color: #9c610a;
  background: #fff4e0;
  border: 1px solid #f3dfb4;
  border-radius: 6px;
  padding: 8px 12px;
  text-align: center;
  user-select: all;
}

.tv-coupon p {
  color: var(--muted);
  font-size: 13px;
}

.tv-coupon__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tv-coupon__actions .tv-btn {
  flex: 1 1 auto;
  min-height: 40px;
  font-size: 13px;
}

.tv-coupon__badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--brand);
  color: #1a1a1a;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

/* ===== order confirmation ===== */
.tv-orderhero {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  padding: 26px 24px;
  text-align: center;
}

.tv-orderhero__art {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff4e0;
  color: var(--brand-hover);
}

.tv-orderhero__art svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.tv-orderhero h1 {
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.tv-orderhero p {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto;
}

.tv-ordergrid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.tv-orderpanel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 18px;
}

.tv-orderpanel h2 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}

/* The vertical delivery timeline. */
.tv-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.tv-timeline li {
  position: relative;
  padding: 0 0 20px 34px;
  min-height: 46px;
}

.tv-timeline li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  z-index: 1;
}

.tv-timeline li::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  bottom: -4px;
  width: 2px;
  background: var(--line);
}

.tv-timeline li:last-child { padding-bottom: 0; }
.tv-timeline li:last-child::after { display: none; }

.tv-timeline b {
  display: block;
  color: var(--ink);
  font-weight: 500;
}

.tv-timeline span {
  color: var(--muted);
  font-size: 13px;
}

.tv-timeline li.is-done::before { background: var(--brand); border-color: var(--brand); }
.tv-timeline li.is-done::after { background: var(--brand); }
.tv-timeline li.is-current::before { border-color: var(--brand); box-shadow: 0 0 0 4px #fff4e0; }
.tv-timeline li.is-current b { color: #9c610a; }
.tv-timeline li.is-pending b { color: var(--muted); }

.tv-orderitems {
  width: 100%;
  border-collapse: collapse;
}

.tv-orderitems th,
.tv-orderitems td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
  font-size: 13.5px;
}

.tv-orderitems th {
  color: var(--muted);
  font-weight: 500;
}

.tv-orderitems img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #f7f4ee;
  border: 1px solid var(--line);
}

.tv-orderitems__name {
  color: var(--ink);
  font-weight: 500;
}

.tv-orderitems__name:hover { color: #000; }

.tv-ordertotal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
}

.tv-ordertotal--sum {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.tv-ordermeta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.tv-ordermeta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

.tv-ordermeta dt {
  color: var(--muted);
  flex: none;
}

.tv-ordermeta dd {
  margin: 0;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

.tv-ordercta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  justify-content: center;
}

.tv-ordercta .tv-btn {
  flex: 1 1 200px;
  max-width: 280px;
}

/* ===== size guide ===== */
.tv-sizenav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tv-sizenav a {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 9px 16px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 500;
}

.tv-sizenav a:hover {
  border-color: var(--brand);
  background: #fffbeb;
}

.tv-sizeguide {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 18px;
  margin-bottom: 16px;
  scroll-margin-top: 16px;
}

.tv-sizeguide h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.tv-sizeguide > p {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 14px;
}

.tv-tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tv-sizetable {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.tv-sizetable th,
.tv-sizetable td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  font-size: 13.5px;
}

.tv-sizetable th {
  background: #fafafa;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.tv-sizetable td strong {
  color: var(--ink);
  font-weight: 600;
}

.tv-sizetable caption {
  caption-side: top;
  text-align: left;
  color: var(--muted);
  font-size: 12.5px;
  padding-bottom: 8px;
}

.tv-sizeguide__tip {
  background: #fff4e0;
  border-left: 4px solid var(--brand);
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 13.5px;
}

/* FAQ accordion (shared by the size guide and the care guide). */
.tv-faqlist {
  display: grid;
  gap: 10px;
}

.tv-faqitem {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.tv-faqitem > summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.tv-faqitem > summary::-webkit-details-marker { display: none; }

.tv-faqitem > summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  color: var(--brand-hover);
  flex: none;
}

.tv-faqitem[open] > summary::after { content: "\2212"; }
.tv-faqitem[open] > summary { border-bottom: 1px solid var(--line); }

.tv-faqitem__body {
  padding: 14px 18px 18px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ===== pet care guide ===== */
.tv-guidefilter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tv-guidefilter button {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 9px 16px;
  min-height: 40px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
}

.tv-guidefilter button:hover { border-color: var(--brand); background: #fffbeb; }

.tv-guidefilter button.is-on {
  border-color: var(--brand);
  background: var(--brand);
  color: #1a1a1a;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--brand-hover);
}

.tv-articlegrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tv-article {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tv-article__media {
  position: relative;
  background: #f7f4ee;
}

.tv-article__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.tv-article__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand);
  color: #1a1a1a;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.tv-article__body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
  flex: 1 1 auto;
}

.tv-article__body time {
  color: var(--muted);
  font-size: 12px;
}

.tv-article__body h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

.tv-article__body p {
  color: var(--muted);
  font-size: 13.5px;
}

.tv-article__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: auto;
  padding-top: 4px;
}

.tv-article__meta b {
  color: var(--ink);
  font-weight: 500;
}

.tv-article__read {
  border-top: 1px solid var(--line);
  padding: 0;
}

.tv-article__read > summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 16px;
  color: #9c610a;
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
}

.tv-article__read > summary::-webkit-details-marker { display: none; }

.tv-article__read > summary::after {
  content: "Read";
  color: var(--muted);
  font-weight: 500;
}

.tv-article__read[open] > summary::after { content: "Close"; }

.tv-article__read > div {
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 13.5px;
  display: grid;
  gap: 8px;
}

.tv-article__read ul {
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.tv-article__read a {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--brand);
}

/* ===== 404 page ===== */
.tv-404 {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  padding: 40px 28px;
  text-align: center;
}

.tv-404__art {
  width: 148px;
  height: 148px;
  margin: 0 auto 18px;
  position: relative;
  display: grid;
  place-items: center;
}

.tv-404__art svg {
  width: 148px;
  height: 148px;
}

.tv-404 h1 {
  font-size: 30px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.tv-404__lead {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 22px;
}

.tv-404__search {
  display: flex;
  max-width: 460px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
}

.tv-404__search:focus-within { border-color: var(--brand); }

.tv-404__search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
}

.tv-404__search button {
  border: 0;
  background: var(--brand);
  color: var(--ink);
  padding: 0 18px;
  cursor: pointer;
  font-weight: 600;
  min-width: 56px;
}

.tv-404__search button:hover { background: var(--brand-hover); }

.tv-404__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.tv-404__actions .tv-btn { min-width: 160px; }

.tv-404__links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.tv-404__links a {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 15px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
}

.tv-404__links a:hover { border-color: var(--brand); background: #fffbeb; }

.tv-recent {
  margin-top: 20px;
}

.tv-recent__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tv-recent__head h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}

.tv-recent__note {
  color: var(--muted);
  font-size: 13px;
}

.tv-emptyrow {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

/* ===== responsive ===== */
@media (max-width: 1199px) {
  .tv-articlegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .tv-pagehero {
    grid-template-columns: minmax(0, 1fr);
    padding: 30px 24px;
    gap: 20px;
  }
  .tv-pagehero h1 { font-size: 28px; }
  .tv-pagehero__art { order: -1; justify-items: start; }
  .tv-pagehero__art img { max-width: 190px; }

  .tv-collection { grid-template-columns: minmax(0, 1fr); }
  .tv-collection__side { position: static; }

  .tv-flash {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px 22px;
  }
  .tv-flash h1 { font-size: 25px; }

  .tv-ordergrid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .tv-articlegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .tv-flash__timer { flex-wrap: wrap; }
  .tv-flash__unit { min-width: 66px; flex: 1 1 66px; }
  .tv-flash__unit b { font-size: 25px; }

  .tv-orderhero { padding: 22px 16px; }
  .tv-orderhero h1 { font-size: 22px; }
  .tv-ordercta .tv-btn { flex: 1 1 100%; max-width: none; }

  /* The item summary table stacks so no column is cut off on a phone. */
  .tv-orderitems thead { display: none; }
  .tv-orderitems tbody,
  .tv-orderitems tr,
  .tv-orderitems td { display: block; width: 100%; }
  .tv-orderitems tr {
    border: 1px solid var(--line);
    margin-bottom: 10px;
    padding: 4px 0;
  }
  .tv-orderitems td { border-bottom: 0; padding: 6px 12px; }
  .tv-orderitems td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--muted);
    font-size: 12.5px;
  }
  .tv-orderitems td:last-child { padding-bottom: 10px; }

  /* The size tables become stacked cards: each cell carries its own
     label, so nothing has to scroll sideways. */
  .tv-sizetable { min-width: 0; }
  .tv-sizetable thead { display: none; }
  .tv-sizetable tbody,
  .tv-sizetable tr,
  .tv-sizetable td { display: block; width: 100%; }
  .tv-sizetable tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 4px 0;
  }
  .tv-sizetable td {
    border-bottom: 1px dashed var(--line);
    padding: 9px 14px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    text-align: right;
  }
  .tv-sizetable td:last-child { border-bottom: 0; }
  .tv-sizetable td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    flex: none;
  }

  .tv-sizeguide { padding: 14px 12px; }

  .tv-404 { padding: 28px 16px; }
  .tv-404 h1 { font-size: 24px; }
  .tv-404__actions .tv-btn { width: 100%; }
}

@media (max-width: 420px) {
  .tv-collection__toolbar { flex-direction: column; align-items: stretch; }
  .tv-collection__toolbar select { width: 100%; }
  .tv-pagehero__stats { gap: 12px 20px; }
}

@media (max-width: 767px) {
  .tv-subcats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .tv-subcat {
    padding: 10px 11px;
    gap: 9px;
  }
  .tv-subcat__icon {
    width: 34px;
    height: 34px;
  }
  .tv-subcat b { font-size: 13.5px; }
  .tv-subcat span { font-size: 11.5px; }
  .tv-coupons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tv-coupon { padding: 12px; }
  .tv-coupon__value { font-size: 18px; }
}

/* ==========================================================================
   DEALS & NEW ARRIVALS OVERRIDES
   - Bright white heading contrast on dark #243038 hero backgrounds
   - Zero border-radius across .tv-flash, .tv-coupon, .tv-pagehero & blocks
   ========================================================================== */
.tv-flash h1,
#tv-flash-title,
.tv-pagehero h1,
#tv-new-title {
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

.tv-flash p,
#tv-flash-summary,
.tv-pagehero__text {
  color: rgba(255, 255, 255, 0.9) !important;
}

.tv-flash,
.tv-flash__unit,
.tv-coupon,
.tv-coupon__code,
.tv-coupon__badge,
.tv-coupon__actions .tv-btn,
.tv-pagehero,
.tv-subcat,
.tv-faqitem,
.tv-orderhero,
.tv-orderpanel,
.tv-sizeguide,
.tv-article {
  border-radius: 0px !important;
}

.tv-coupon {
  border: 1px dashed var(--brand-accent) !important;
  background: #ffffff !important;
}


/* Deals clock stays hidden unless a real end date is set on the page. */
.tv-flash__timer[hidden] { display: none; }
