:root {
  --tc-primary: #bf0618;
  --tc-primary-dark: #830414;
  --tc-dark: #151515;
  --tc-text: #2f2f2f;
  --tc-soft: #f7f7f7;
  --tc-border: #e3e3e3;
  --tc-ok: #0f7b48;
  --tc-off: #9f2f2f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  color: var(--tc-text);
  background: #fff;
}

html {
  font-size: 15px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-main {
  min-height: 55vh;
}

.container-fluid {
  width: min(1400px, 96%);
  margin: 0 auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: #fff;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.preloader-dots {
  display: flex;
  gap: 8px;
}

.preloader-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--tc-primary);
  animation: dotPulse 0.9s infinite ease-in-out;
}

.preloader-dots span:nth-child(2) {
  animation-delay: 0.12s;
}

.preloader-dots span:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes dotPulse {
  0%,
  100% {
    transform: scale(0.7);
    opacity: 0.6;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.top-strip {
  background: linear-gradient(90deg, #111 0%, #1f1f1f 100%);
  color: #fff;
  font-size: 0.9rem;
}

.top-strip-inner {
  min-height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.top-strip a {
  color: #fff;
  font-weight: 700;
}

.site-header-main {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.05);
}

.header-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tc-dark);
  font-weight: 800;
}

.site-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.main-nav a,
.main-nav button {
  border: 0;
  background: transparent;
  color: var(--tc-dark);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
}

.main-nav a.active,
.main-nav a:hover,
.main-nav button:hover {
  color: var(--tc-primary);
}

.cta-nav {
  background: var(--tc-primary);
  color: #fff !important;
  padding: 11px 15px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.cta-nav:hover {
  background: var(--tc-primary-dark);
}

.menu-dropdown {
  position: relative;
}

.menu-dropdown-content {
  position: absolute;
  top: 135%;
  left: 0;
  width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  display: grid;
  gap: 2px;
}

.menu-dropdown:hover .menu-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-dropdown-content a {
  border-radius: 8px;
  padding: 9px 10px;
}

.menu-dropdown-content a:hover {
  background: #f6f6f6;
}

.mobile-nav-toggle {
  border: 0;
  background: #f0f0f0;
  color: #111;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 14px;
  font-weight: 700;
  display: none;
}

.header-search-wrap {
  padding-bottom: 14px;
}

.header-search {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.header-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 0.98rem;
}

.header-search button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--tc-primary);
  color: #fff;
  padding: 0 20px;
  font-weight: 700;
}

.header-search button:hover {
  background: var(--tc-primary-dark);
}

.autocomplete-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: calc(100% - 108px);
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.09);
  overflow: hidden;
  z-index: 10;
}

.autocomplete-results a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.autocomplete-results a small {
  color: #777;
}

.autocomplete-results a:hover {
  background: #f8f8f8;
}

.breadcrumbs-wrap {
  border-bottom: 1px solid #efefef;
  background: #fff;
}

.breadcrumbs-list {
  margin: 0;
  padding: 11px 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.87rem;
  color: #666;
}

.breadcrumbs-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: #aaa;
}

.hero-main {
  position: relative;
  overflow: hidden;
  padding: 68px 0 30px;
  background:
    radial-gradient(circle at 85% 10%, rgba(191, 6, 24, 0.17) 0%, transparent 40%),
    linear-gradient(160deg, #fafafa 0%, #f2f2f2 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.hero-content h1 {
  margin: 0 0 14px;
  color: #111;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 900;
  max-width: 16ch;
}

.hero-content p {
  margin: 0;
  max-width: 62ch;
  color: #555;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 700;
  font-size: 0.92rem;
}

.btn-primary {
  background: var(--tc-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--tc-primary-dark);
}

.btn-outline {
  border: 1px solid #d5d5d5;
  color: #111;
  background: #fff;
}

.btn-outline:hover {
  border-color: #bbb;
}

.btn-whatsapp {
  background: #137f3c;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #0f6a32;
}

.hero-stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 12px;
}

.hero-stat {
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 14px;
  padding: 14px;
}

.hero-stat strong {
  display: block;
  color: #111;
  font-size: 1.2rem;
}

.hero-visual {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.08);
  padding: 14px;
}

.hero-visual img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-fade {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f2f2f2;
}

.hero-fade-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero-fade-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-fade-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hero-fade-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 3px;
  background: rgba(17, 17, 17, 0.55);
  color: #fff;
  border-radius: 10px;
  padding: 9px 11px;
  backdrop-filter: blur(2px);
}

.hero-fade-caption strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.hero-fade-caption small {
  font-size: 0.76rem;
  opacity: 0.88;
}

.hero-fade-dots {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.hero-fade-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.hero-fade-dots button.active {
  background: #fff;
}

.section-block {
  padding: 62px 0;
}

.section-block.light {
  background: #fafafa;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title h2 {
  margin: 0;
  color: #111;
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  font-weight: 900;
}

.section-title p {
  margin: 0;
  max-width: 65ch;
}

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

.category-box {
  display: block;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
}

.category-box h3 {
  margin: 0 0 8px;
  color: #111;
  font-weight: 800;
  font-size: 1.05rem;
}

.category-box p {
  margin: 0;
  color: #666;
  font-size: 0.92rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 18px;
}

.products-grid.list-view {
  grid-template-columns: 1fr;
}

.product-card {
  border: 1px solid #ebebeb;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.product-card-media {
  background: #f5f5f5;
  display: block;
}

.product-card-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-card-content {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.product-card-sku {
  margin: 0;
  font-size: 0.8rem;
  color: #747474;
}

.product-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: #111;
}

.product-card-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.product-card-meta .price {
  font-weight: 800;
  color: #111;
}

.stock {
  font-size: 0.8rem;
  font-weight: 700;
}

.stock.in {
  color: var(--tc-ok);
}

.stock.out {
  color: var(--tc-off);
}

.product-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card-actions .btn {
  min-height: 38px;
  font-size: 0.84rem;
}

.product-card-list {
  grid-template-columns: 220px 1fr;
  grid-template-rows: none;
}

.product-card-list .product-card-media img {
  height: 100%;
  min-height: 220px;
}

.products-carousel {
  position: relative;
}

.products-carousel .swiper-slide {
  height: auto;
}

.product-mini-slide {
  height: 100%;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.product-mini-media img {
  width: 100%;
  aspect-ratio: 1 / 0.8;
  object-fit: cover;
}

.product-mini-content {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.product-mini-content h3 {
  margin: 0;
  color: #111;
  font-size: 1rem;
  line-height: 1.3;
}

.seo-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.seo-copy-card {
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.seo-copy-card h3 {
  margin-top: 0;
  color: #111;
  font-size: 1.05rem;
  font-weight: 800;
}

.seo-copy-card p {
  margin-bottom: 0;
}

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

.trust-card {
  background: linear-gradient(170deg, #fff 0%, #f7f7f7 100%);
  border: 1px solid #eaeaea;
  border-radius: 14px;
  padding: 18px;
}

.trust-card h3 {
  margin: 0 0 8px;
  color: #111;
  font-size: 1.03rem;
  font-weight: 800;
}

.trust-card p {
  margin: 0;
  color: #666;
}

.quote-box {
  border: 1px solid #e9e9e9;
  border-radius: 16px;
  padding: 20px;
  background: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.quote-grid .full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.85rem;
  color: #333;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  border: 1px solid #dbdbdb;
  border-radius: 10px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.95rem;
  width: 100%;
}

.field textarea {
  min-height: 130px;
  padding: 10px 12px;
  resize: vertical;
}

.form-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: #666;
}

.form-feedback {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
}

.form-feedback.ok {
  background: #e8f7ee;
  color: #0a6d35;
}

.form-feedback.error {
  background: #fdecec;
  color: #932727;
}

.page-header {
  padding: 40px 0 20px;
}

.page-header h1 {
  margin: 0 0 8px;
  color: #111;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 900;
}

.page-header p {
  margin: 0;
  color: #666;
  max-width: 75ch;
}

.tools-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.tools-left,
.tools-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tools-bar input,
.tools-bar select {
  min-height: 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0 11px;
}

.view-toggle a {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.view-toggle a.active {
  border-color: var(--tc-primary);
  color: var(--tc-primary);
}

.pagination {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.pagination .active {
  border-color: var(--tc-primary);
  background: var(--tc-primary);
  color: #fff;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 28px;
  padding: 25px 0 35px;
}

.product-gallery {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.product-gallery-main-link {
  display: block;
  max-width: 560px;
  margin: 0 auto;
  cursor: zoom-in;
}

.product-gallery-main img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid #e9e9e9;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-gallery-hint {
  margin: 8px auto 0;
  max-width: 560px;
  text-align: center;
  font-size: 0.84rem;
  color: #666;
}

.product-gallery-thumbs {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(6, minmax(60px, 1fr));
  gap: 8px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.product-gallery-thumbs button {
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.product-gallery-thumbs button img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: 9px;
}

.product-gallery-thumbs button.active {
  border-color: var(--tc-primary);
}

.product-detail-info h1 {
  margin: 0 0 8px;
  color: #111;
  font-size: clamp(1.6rem, 2.7vw, 2.35rem);
  font-weight: 900;
}

.product-meta-inline {
  margin: 0;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-meta-inline strong {
  color: #222;
}

.product-price-main {
  margin: 12px 0;
  color: #111;
  font-weight: 900;
  font-size: 1.35rem;
}

.product-description {
  line-height: 1.7;
}

.product-detail-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.tc-lightbox-open {
  overflow: hidden;
}

.tc-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tc-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.tc-lightbox img {
  max-width: min(1600px, 96vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.tc-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.site-footer {
  margin-top: 55px;
  background: #121212;
  color: #e2e2e2;
}

.footer-top {
  padding: 42px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 22px;
}

.footer-top h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.04rem;
  font-weight: 800;
}

.footer-top p,
.footer-top li,
.footer-top a {
  color: #cbcbcb;
  font-size: 0.9rem;
}

.footer-top ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}

.footer-bottom {
  border-top: 1px solid #292929;
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
}

.admin-wrap {
  width: min(1180px, 96%);
  margin: 24px auto;
}

.admin-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.admin-stat {
  border: 1px solid #ececec;
  border-radius: 11px;
  padding: 14px;
  background: #fafafa;
}

.admin-stat strong {
  display: block;
  color: #111;
  font-size: 1.6rem;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #ececec;
  text-align: left;
  padding: 10px;
  vertical-align: top;
  font-size: 0.9rem;
}

th {
  color: #333;
  font-size: 0.78rem;
  text-transform: uppercase;
}

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

  .footer-top {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    max-width: 560px;
  }
}

@media (max-width: 920px) {
  .mobile-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-inner {
    grid-template-columns: auto auto;
  }

  .main-nav {
    position: absolute;
    left: 2%;
    right: 2%;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .main-nav.open {
    display: flex;
  }

  .menu-dropdown-content {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 1px solid #f0f0f0;
    box-shadow: none;
  }

  .hero-grid,
  .categories-grid,
  .products-grid,
  .trust-grid,
  .seo-copy-grid,
  .admin-grid,
  .quote-grid,
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .autocomplete-results {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .top-strip-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 8px 0;
    min-height: 0;
  }

  .site-logo span {
    display: none;
  }

  .header-search {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .categories-grid,
  .products-grid,
  .trust-grid,
  .seo-copy-grid,
  .footer-top,
  .hero-stats,
  .admin-grid,
  .quote-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .product-card-list {
    grid-template-columns: 1fr;
  }

  .product-card-list .product-card-media img {
    min-height: 0;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
    text-align: center;
  }

  .product-gallery-thumbs {
    grid-template-columns: repeat(4, minmax(58px, 1fr));
  }
}
