.tsdr-store {
  --tsdr-bg: #f4f7fb;
  --tsdr-card: #fff;
  --tsdr-text: #172033;
  --tsdr-muted: #657087;
  --tsdr-line: #dfe5ef;
  --tsdr-blue: #1677ff;
  --tsdr-orange: #ff5a1f;
  --tsdr-orange-dark: #d94712;
  color: var(--tsdr-text);
  font-family: inherit;
  max-width: 1180px;
  margin: 0 auto;
}

.tsdr-store * {
  box-sizing: border-box;
}

.tsdr-affiliate-notice {
  padding: 14px 16px;
  margin-bottom: 28px;
  border: 1px solid #ffd5af;
  border-radius: 12px;
  background: #fff5ea;
  color: #7b3b12;
  font-size: .93rem;
}

.tsdr-store-hero {
  padding: 34px 0 28px;
}

.tsdr-kicker {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #0d5fc3;
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.tsdr-store-hero h1 {
  margin: 15px 0 10px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.05em;
}

.tsdr-store-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--tsdr-muted);
  font-size: 1.08rem;
}

.tsdr-store-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 6px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tsdr-line);
}

.tsdr-sort-control {
  display: grid;
  grid-template-columns: auto minmax(190px, 230px);
  align-items: center;
  gap: 10px;
  color: var(--tsdr-muted);
  font-size: .88rem;
  font-weight: 700;
}

.tsdr-sort-control select {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--tsdr-line);
  border-radius: 7px;
  background: #fff;
  color: var(--tsdr-text);
  font: inherit;
}

.tsdr-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  max-height: none !important;
  overflow: visible !important;
}

.tsdr-category-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 13px 15px;
  border: 1px solid var(--tsdr-line);
  border-left: 4px solid transparent;
  border-radius: 7px;
  background: #fff;
  color: #263248;
  box-shadow: 0 5px 16px rgba(25, 42, 70, .055);
  font: inherit;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.tsdr-category-button:hover {
  border-color: #b9c9df;
  border-left-color: var(--tsdr-blue);
  color: #10233f;
  box-shadow: 0 9px 22px rgba(25, 42, 70, .1);
  transform: translateY(-2px);
}

.tsdr-category-button.is-active {
  border-color: #10233f;
  border-left-color: var(--tsdr-orange);
  background: #10233f;
  color: #fff;
  box-shadow: 0 10px 24px rgba(16, 35, 63, .18);
}

.tsdr-category-label {
  min-width: 0;
}

.tsdr-category-count {
  flex: 0 0 auto;
  min-width: 32px;
  padding: 4px 7px;
  border-radius: 4px;
  background: #edf2f8;
  color: #52627a;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.tsdr-category-button.is-active .tsdr-category-count {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.tsdr-result-count {
  margin: 0;
  color: var(--tsdr-muted);
  font-size: .92rem;
  font-weight: 700;
}

.tsdr-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tsdr-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--tsdr-line);
  border-radius: 20px;
  background: var(--tsdr-card);
  box-shadow: 0 10px 28px rgba(25, 42, 70, .07);
  transition: transform .18s ease, box-shadow .18s ease;
}

.tsdr-product-card[hidden] {
  display: none;
}

.tsdr-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(25, 42, 70, .13);
}

.tsdr-product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef3f9;
}

.tsdr-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.tsdr-no-image {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--tsdr-muted);
}

.tsdr-badge {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(11, 18, 32, .88);
  color: #fff;
  font-size: .72rem;
  font-weight: 850;
}

.tsdr-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 19px;
}

.tsdr-product-category {
  margin: 0 0 7px;
  color: var(--tsdr-blue);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.tsdr-product-body h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.28;
  letter-spacing: -.02em;
}

.tsdr-product-description {
  margin: 11px 0 0;
  color: var(--tsdr-muted);
  font-size: .93rem;
}

.tsdr-product-body ul {
  display: grid;
  gap: 7px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  color: #39445a;
  font-size: .9rem;
}

.tsdr-product-body li {
  display: flex;
  gap: 7px;
}

.tsdr-product-body li span {
  color: #14804a;
  font-weight: 900;
}

.tsdr-product-footer {
  margin-top: auto;
  padding-top: 18px;
}

.tsdr-price {
  margin: 0 0 10px;
  color: var(--tsdr-muted);
  font-size: .82rem;
}

.tsdr-product-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 12px 15px;
  border-radius: 11px;
  background: var(--tsdr-orange);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  transition: background .18s ease, transform .18s ease;
}

.tsdr-product-button:hover {
  background: var(--tsdr-orange-dark);
  transform: translateY(-1px);
}

.tsdr-empty {
  padding: 36px;
  border: 1px dashed var(--tsdr-line);
  border-radius: 18px;
  background: #fff;
  color: var(--tsdr-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .tsdr-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tsdr-product-grid {
    grid-template-columns: 1fr;
  }
}


.tsdr-admin-diagnostic {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 2px solid #dba617;
  border-radius: 12px;
  background: #fff8d8;
  color: #5c4500;
}
.tsdr-admin-diagnostic ul {
  margin: 10px 0;
  padding-left: 22px;
}
.tsdr-admin-diagnostic a {
  font-weight: 700;
}

@media (max-width: 720px) {
  .tsdr-store-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .tsdr-sort-control {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .tsdr-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .tsdr-categories {
    grid-template-columns: 1fr;
  }
}

/* SEO category and product pages */
.tsdr-seo-page {
  padding: 42px 20px 72px;
}

.tsdr-seo-container {
  width: 100%;
}

.tsdr-product-body h2 a,
.tsdr-product-body h3 a,
.tsdr-product-body h4 a,
.tsdr-product-category a {
  color: inherit;
  text-decoration: none;
}

.tsdr-product-body h2 a:hover,
.tsdr-product-body h3 a:hover,
.tsdr-product-body h4 a:hover,
.tsdr-product-category a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tsdr-product-details {
  display: block;
  margin: 0 0 9px;
  color: var(--tsdr-blue);
  text-align: center;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 750;
}

.tsdr-product-details:hover {
  text-decoration: underline;
}

.tsdr-breadcrumbs {
  margin: 0 0 28px;
  color: var(--tsdr-muted);
  font-size: .88rem;
}

.tsdr-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tsdr-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 7px;
  opacity: .5;
}

.tsdr-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.tsdr-breadcrumbs a:hover {
  color: var(--tsdr-blue);
}

.tsdr-taxonomy-header {
  max-width: 850px;
  margin: 0 0 34px;
}

.tsdr-taxonomy-header h1,
.tsdr-single-content h1 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.tsdr-taxonomy-intro,
.tsdr-single-description {
  color: var(--tsdr-muted);
  font-size: 1.05rem;
}

.tsdr-taxonomy-intro p {
  margin: 0 0 12px;
}

.tsdr-single-product {
  padding: 10px 0 20px;
}

.tsdr-single-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.tsdr-single-image {
  overflow: hidden;
  border: 1px solid var(--tsdr-line);
  border-radius: 22px;
  background: #fff;
}

.tsdr-single-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.tsdr-single-content .tsdr-kicker {
  text-decoration: none;
}

.tsdr-single-highlights {
  display: grid;
  gap: 9px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.tsdr-single-highlights li {
  display: flex;
  gap: 9px;
}

.tsdr-single-highlights span {
  color: #14804a;
  font-weight: 900;
}

.tsdr-single-price {
  margin: 22px 0 12px;
}

.tsdr-single-cta {
  max-width: 360px;
}

.tsdr-disclaimer,
.tsdr-product-meta {
  color: var(--tsdr-muted);
  font-size: .83rem;
}

.tsdr-disclaimer {
  max-width: 600px;
  margin-top: 12px;
}

.tsdr-product-meta {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--tsdr-line);
}

.tsdr-related {
  margin-top: 64px;
}

.tsdr-related h2,
.tsdr-related-categories h2 {
  margin-bottom: 22px;
  font-size: 1.7rem;
}

.tsdr-related-categories {
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--tsdr-line);
}

.tsdr-related-categories > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tsdr-related-categories a {
  padding: 9px 13px;
  border: 1px solid var(--tsdr-line);
  border-radius: 999px;
  background: #fff;
  color: var(--tsdr-text);
  text-decoration: none;
  font-weight: 700;
}

.tsdr-related-categories a:hover {
  border-color: var(--tsdr-blue);
  color: var(--tsdr-blue);
}

.tsdr-related-categories span {
  opacity: .65;
}

.tsdr-seo-page .navigation.pagination {
  margin-top: 36px;
}

.tsdr-seo-page .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tsdr-seo-page .page-numbers {
  padding: 8px 12px;
  border: 1px solid var(--tsdr-line);
  border-radius: 9px;
  background: #fff;
  color: var(--tsdr-text);
  text-decoration: none;
}

.tsdr-seo-page .page-numbers.current {
  border-color: var(--tsdr-blue);
  background: var(--tsdr-blue);
  color: #fff;
}

@media (max-width: 800px) {
  .tsdr-single-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tsdr-seo-page {
    padding: 28px 16px 54px;
  }
}
