:root {
  --tz-primary: #2043F5;
  --tz-primary-dark: #101d63;
  --tz-accent: #20f5ae;
  --tz-ink: #152238;
  --tz-muted: #64748b;
  --tz-soft: #eefaf7;
  --tz-border: #dbe8e5;
}

body {
  color: var(--tz-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
}

a { color: var(--tz-primary); }
a:hover { color: var(--tz-primary-dark); }

.btn-primary {
  --bs-btn-bg: var(--tz-primary);
  --bs-btn-border-color: var(--tz-primary);
  --bs-btn-hover-bg: var(--tz-primary-dark);
  --bs-btn-hover-border-color: var(--tz-primary-dark);
}

.text-primary { color: var(--tz-primary) !important; }
.bg-primary { background-color: var(--tz-primary) !important; }
.bg-soft { background-color: var(--tz-soft); }
.border-soft { border-color: var(--tz-border) !important; }

.site-header {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(219, 232, 229, .9);
}

.home-hero-slider {
  position: relative;
  overflow: hidden;
  background: #0b0f1a;
}

.home-hero-carousel .carousel-item,
.home-hero-carousel .home-hero-slide {
  height: 400px;
}

.home-hero-slide {
  position: relative;
  width: 100%;
}

.home-hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero-slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 18, .8) 0%, rgba(6, 10, 18, .6) 45%, rgba(6, 10, 18, .85) 100%);
}

.home-hero-slide-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.home-hero-copy-inner {
  max-width: 640px;
  color: #fff;
}

.home-hero-headline {
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .6rem;
}

.home-hero-subheadline {
  font-size: clamp(1rem, .9rem + .5vw, 1.25rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: .4rem;
}

.home-hero-description {
  color: rgba(255, 255, 255, .88);
  margin-bottom: .4rem;
}

.home-hero-features {
  color: var(--tz-accent);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .75rem;
}

.home-hero-tagline {
  color: rgba(255, 255, 255, .75);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

.home-hero-actions .btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, .6);
}

.home-hero-carousel .carousel-control-prev,
.home-hero-carousel .carousel-control-next {
  width: 4rem;
  opacity: .85;
}

.home-hero-carousel .carousel-indicators {
  margin-bottom: 1rem;
}

.home-hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, .5);
  border: 0;
}

.home-hero-carousel .carousel-indicators .active {
  background-color: #fff;
}

.icon-tile {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--tz-soft);
  color: var(--tz-primary);
  font-size: 1.25rem;
}

.stats-strip {
  border-top: 1px solid var(--tz-border);
  border-bottom: 1px solid var(--tz-border);
  background: var(--tz-soft);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--tz-primary-dark);
  line-height: 1;
}

.cta-banner {
  border-radius: 24px;
  background: linear-gradient(135deg, var(--tz-primary) 0%, var(--tz-primary-dark) 60%, var(--tz-accent) 130%);
  color: #fff;
}

.cta-banner .btn-outline-primary {
  --bs-btn-color: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-color: var(--tz-primary-dark);
}

.card {
  border-color: var(--tz-border);
  border-radius: 14px;
}

.product-card img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f8fafc;
}

.category-hero {
  position: relative;
  overflow: hidden;
}

.category-hero.has-cover {
  min-height: 320px;
  display: flex;
  align-items: center;
  background: #0b0f1a;
}

.category-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.category-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 18, .72) 0%, rgba(6, 10, 18, .55) 45%, rgba(6, 10, 18, .8) 100%);
}

.category-hero-copy {
  position: relative;
  z-index: 2;
}

.category-hero.has-cover .category-hero-copy h1,
.category-hero.has-cover .category-hero-copy p {
  color: #fff;
}

.category-card {
  position: relative;
  overflow: hidden;
}

.category-card.has-cover {
  min-height: 240px;
  background: #0b0f1a;
  border-color: transparent;
}

.category-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}

.category-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 18, .35) 0%, rgba(6, 10, 18, .6) 50%, rgba(6, 10, 18, .88) 100%);
}

.category-card-body {
  position: relative;
  z-index: 2;
}

.category-card.has-cover .category-card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-card.has-cover .category-card-body .icon-tile {
  margin-bottom: auto !important;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  backdrop-filter: blur(6px);
}

.category-card.has-cover h3,
.category-card.has-cover p {
  color: #fff !important;
}

.category-card.has-cover p {
  opacity: .85;
}

.category-card.has-cover:hover .category-card-img {
  transform: scale(1.05);
}

.admin-shell {
  min-height: 100vh;
  background: #f8fafc;
}

.admin-sidebar {
  background: #16213a;
  color: #cbd5e1;
  min-height: 100vh;
}

.admin-sidebar a {
  color: #cbd5e1;
  border-radius: 10px;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.admin-content-card {
  background: #fff;
  border: 1px solid var(--tz-border);
  border-radius: 14px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--tz-primary);
  box-shadow: 0 0 0 .25rem rgba(15, 118, 110, .15);
}

[dir="rtl"] .navbar-nav,
[dir="rtl"] .ms-auto {
  margin-left: 0 !important;
}

@keyframes tz-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes tz-fade-down {
  from {
    opacity: 0;
    transform: translate3d(0, -18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes tz-slide-start {
  from {
    opacity: 0;
    transform: translate3d(-24px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes tz-slide-end {
  from {
    opacity: 0;
    transform: translate3d(24px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes tz-scale-in {
  from {
    opacity: 0;
    transform: scale(.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tz-soft-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(15, 118, 110, .08);
  }
}


@media (prefers-reduced-motion: no-preference) {
  .site-page .site-header {
    animation: tz-fade-down .55s ease both;
  }

  .site-page .navbar-brand img {
    animation: tz-scale-in .55s ease both .08s;
  }

  .site-page.animations-ready [data-animate] {
    opacity: 0;
    will-change: opacity, transform;
  }

  .site-page.animations-ready [data-animate].is-visible {
    animation-duration: .72s;
    animation-timing-function: cubic-bezier(.22, 1, .36, 1);
    animation-fill-mode: both;
    animation-delay: var(--tz-animate-delay, 0s);
  }

  .site-page.animations-ready [data-animate="fade-up"].is-visible {
    animation-name: tz-fade-up;
  }

  .site-page.animations-ready [data-animate="fade-down"].is-visible {
    animation-name: tz-fade-down;
  }

  .site-page.animations-ready [data-animate="slide-start"].is-visible {
    animation-name: tz-slide-start;
  }

  .site-page.animations-ready [dir="rtl"] [data-animate="slide-start"].is-visible,
  [dir="rtl"] .site-page.animations-ready [data-animate="slide-start"].is-visible {
    animation-name: tz-slide-end;
  }

  .site-page.animations-ready [data-animate="scale-in"].is-visible {
    animation-name: tz-scale-in;
  }

  .site-page .card,
  .site-page .btn,
  .site-page .icon-tile {
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
  }

  .site-page .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(21, 34, 56, .10);
  }

  .site-page .btn:hover {
    transform: translateY(-1px);
  }

  .site-page .card:hover .icon-tile,
  .site-page .product-card:hover .icon-tile {
    animation: tz-soft-pulse 1.1s ease both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-page.animations-ready [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .site-page .card,
  .site-page .btn,
  .site-page .icon-tile,
  .category-card-img {
    transition: none !important;
  }
}

@media (max-width: 991.98px) {
  .home-hero-carousel .carousel-item,
  .home-hero-carousel .home-hero-slide {
    height: clamp(560px, 130vw, 720px);
  }

  .home-hero-headline {
    font-size: clamp(1.3rem, 1.1rem + 2vw, 1.9rem);
  }

  .admin-sidebar { min-height: auto; }
}

@media (max-width: 575.98px) {
  .home-hero-copy-inner {
    max-width: 100%;
  }

  .home-hero-actions {
    flex-direction: column;
  }

  .home-hero-actions .btn {
    width: 100%;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-end: 1.5rem;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.75rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

@media (max-width: 575.98px) {
  .whatsapp-float {
    bottom: 1rem;
    inset-inline-end: 1rem;
    width: 3.1rem;
    height: 3.1rem;
    font-size: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
}
