/* === Dzen Auto — Design Tokens === */
/* Source: dzen-auto-quality-parts/src/index.css */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --brand: 130 45% 38%;
  --brand-light: 130 35% 92%;
  --brand-dark: 130 50% 22%;
  --brand-foreground: 0 0% 100%;
  --background: 40 10% 98%;
  --foreground: 220 20% 14%;
  --card: 0 0% 100%;
  --card-foreground: 220 20% 14%;
  --popover: 0 0% 100%;
  --popover-foreground: 220 20% 14%;
  --primary: 130 45% 38%;
  --primary-foreground: 0 0% 100%;
  --secondary: 220 14% 96%;
  --secondary-foreground: 220 20% 14%;
  --muted: 220 10% 94%;
  --muted-foreground: 220 10% 46%;
  --accent: 130 35% 92%;
  --accent-foreground: 130 50% 22%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 13% 90%;
  --input: 220 13% 90%;
  --ring: 130 45% 38%;
  --radius: 0.5rem;
  --status-excellent: 130 60% 40%;
  --status-good: 45 80% 50%;
  --status-fair: 25 80% 50%;
  --status-instock: 130 45% 38%;
  --status-outofstock: 0 0% 60%;
  --sidebar-background: 0 0% 98%;
  --sidebar-foreground: 240 5.3% 26.1%;
  --sidebar-primary: 130 45% 38%;
  --sidebar-primary-foreground: 0 0% 98%;
  --sidebar-accent: 130 35% 95%;
  --sidebar-accent-foreground: 130 50% 22%;
  --sidebar-border: 220 13% 91%;
  --sidebar-ring: 130 45% 38%;
  --surface-warm: 35 20% 96%;
  --surface-cool: 210 15% 97%;
  --surface-brand: 130 35% 96%;
  --shadow-sm: 0 1px 2px 0 hsl(220 20% 14% / 0.04);
  --shadow-md: 0 4px 12px -2px hsl(220 20% 14% / 0.08);
  --shadow-lg: 0 12px 32px -4px hsl(220 20% 14% / 0.12);
  --shadow-brand: 0 4px 16px -2px hsl(130 45% 38% / 0.2);
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

.font-heading {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

.font-body {
  font-family: 'DM Sans', system-ui, sans-serif;
}

.cat-paw-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%234a8c57' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='25' r='4'/%3E%3Ccircle cx='22' cy='18' r='2.5'/%3E%3Ccircle cx='38' cy='18' r='2.5'/%3E%3Ccircle cx='20' cy='25' r='2.5'/%3E%3Ccircle cx='40' cy='25' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}

.brand-gradient {
  background: linear-gradient(135deg, hsl(var(--brand-dark)), hsl(var(--brand)), hsl(var(--status-excellent)));
}

#container > header {
  position: sticky;
  top: 0;
  z-index: 1030;
}

#container > header .nav-link,
#container > header .btn {
  border-radius: var(--radius);
}

#container > header .nav-link:hover,
#container > header .nav-link:focus {
  color: hsl(var(--brand-dark)) !important;
  background-color: hsl(var(--brand-light));
}

#dzen-mobile-nav .btn {
  justify-content: flex-start;
}

footer h5,
footer h6 {
  font-family: var(--font-heading);
}

.dzen-breadcrumb {
  --bs-breadcrumb-divider-color: hsl(var(--muted-foreground));
  --bs-breadcrumb-item-active-color: hsl(var(--foreground));
}

.dzen-breadcrumb a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
}

.dzen-breadcrumb a:hover {
  color: hsl(var(--brand));
}

.dzen-section-card {
  background: linear-gradient(180deg, hsl(var(--card)), hsl(var(--surface-warm)));
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.dzen-badge--brand {
  color: hsl(var(--brand-foreground));
  background: hsl(var(--brand));
}

.dzen-badge--condition {
  color: hsl(var(--accent-foreground));
  background: hsl(var(--accent));
}

.dzen-empty-state {
  background: linear-gradient(180deg, hsl(var(--surface-brand)), hsl(var(--card)));
  border: 1px dashed hsl(var(--border));
  border-radius: 1.25rem;
}

.dzen-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dzen-product-card:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--brand) / 0.35);
  box-shadow: var(--shadow-md);
}

.dzen-product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: hsl(var(--surface-cool));
  overflow: hidden;
}

.dzen-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dzen-product-card__badges {
  position: absolute;
  inset: 0 auto auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem;
}

.dzen-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.dzen-product-card__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.35;
}

.dzen-product-card__title a {
  color: hsl(var(--foreground));
  text-decoration: none;
}

.dzen-product-card__title a:hover {
  color: hsl(var(--brand));
}

.dzen-product-card__text {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
}

.dzen-product-card__price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.dzen-price-box {
  padding: 1rem 1.25rem;
  background: hsl(var(--surface-brand));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
}

.dzen-product-price {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
}

.dzen-product-gallery__hero {
  background: hsl(var(--surface-cool));
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  padding: 1rem;
}

.dzen-trust-card {
  height: 100%;
  padding: 1rem;
  background: hsl(var(--surface-brand));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
}

.dzen-product-page .table th {
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  width: 42%;
}

.dzen-brand-page #product-list .col {
  display: flex;
}

.dzen-brand-page #product-list .dzen-product-card {
  width: 100%;
}

.dzen-brand-page .input-group-text {
  background: hsl(var(--surface-cool));
  border-color: hsl(var(--border));
}

.dzen-content {
  font-size: 1rem;
  line-height: 1.75;
}

.dzen-content h2,
.dzen-content h3,
.dzen-content h4 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--foreground));
}

.dzen-content p:last-child {
  margin-bottom: 0;
}

#information-contact .form-control,
#account-login .form-control {
  border-radius: 0.9rem;
  border-color: hsl(var(--border));
  padding: 0.85rem 1rem;
}

#information-contact .accordion-button:not(.collapsed),
#account-login .nav-pills .btn.btn-success,
#account-login .nav-pills .btn.active {
  background: hsl(var(--brand));
  color: hsl(var(--brand-foreground));
  border-color: hsl(var(--brand));
}

#account-login .nav-pills .btn {
  border-radius: 999px;
}

#error-not-found .display-1 {
  line-height: 1;
}

@media (max-width: 991.98px) {
  .dzen-catalog-page aside {
    position: static !important;
  }
}

/* ── Homepage module ────────────────────────────────────────────── */

.dzen-home-hero {
  min-height: 520px;
  background: hsl(var(--foreground));
}

.dzen-home-hero__media {
  position: absolute;
  inset: 0;
}

.dzen-home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dzen-home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, hsl(220 20% 14%) 0%, hsl(220 20% 14% / 0.92) 48%, hsl(220 20% 14% / 0.62) 100%);
}

.dzen-home-hero .container {
  position: relative;
  z-index: 1;
}

.dzen-brand-tile {
  height: 100%;
  padding: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  color: inherit;
}

.dzen-brand-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px hsl(220 20% 14% / 0.12);
  border-color: hsl(var(--brand) / 0.3);
}

.dzen-brand-tile--highlight {
  background: hsl(130 45% 38% / 0.08);
  border-color: hsl(var(--brand) / 0.2);
}

.dzen-advantage-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.dzen-advantage-card:hover {
  box-shadow: 0 4px 16px hsl(220 20% 14% / 0.12);
  border-color: hsl(var(--brand) / 0.24);
}

.dzen-advantage-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, hsl(130 45% 28%), hsl(130 45% 38%));
}

.dzen-advantage-card__cat {
  position: absolute;
  right: -0.25rem;
  bottom: -0.25rem;
  width: 4.5rem;
  opacity: 0.14;
}

.dzen-brand-gradient {
  background: linear-gradient(135deg, hsl(130 45% 28%), hsl(130 45% 38%));
}

.dzen-surface-warm {
  background: hsl(40 10% 95%);
}

.dzen-work-step {
  padding: 1.5rem;
  background: linear-gradient(180deg, hsl(var(--card)), hsl(40 10% 95%));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
}

.dzen-work-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, hsl(130 45% 28%), hsl(130 45% 38%));
}

.dzen-work-step__cat {
  max-width: 5rem;
  opacity: 0.78;
}

/* ── Homepage fixes ─────────────────────────────────────────────── */

/* py-lg-6 utility (Bootstrap only goes to 5) */
@media (min-width: 992px) {
  .py-lg-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
}

/* Hero: ensure explicit height so absolute media fills correctly */
.dzen-home-hero {
  height: 560px;
}

/* Hero: brand-accent span uses Bootstrap text-success — override to lighter brand */
.dzen-home-hero h1 .text-success {
  color: hsl(130 60% 72%) !important;
}

/* Brand tiles: headings inside <a> should not inherit link color */
.dzen-brand-tile h3,
.dzen-brand-tile p {
  color: hsl(var(--foreground));
}
.dzen-brand-tile:hover h3 {
  color: hsl(var(--brand));
}
.dzen-brand-tile--highlight h3 {
  color: hsl(var(--brand-dark));
}

/* Work steps: cat images fixed small size */
.dzen-work-step__cat {
  display: block;
  width: 4rem;
  max-width: 4rem;
  height: auto;
  margin: 0 auto;
  opacity: 0.8;
}

/* Advantage cards: cat images should not break card layout */
.dzen-advantage-card {
  min-height: 160px;
}
.dzen-advantage-card__cat {
  pointer-events: none;
}

/* Service CTA section */
.dzen-brand-gradient {
  background: linear-gradient(135deg, hsl(var(--brand-dark)), hsl(var(--brand)));
}
