:root {
  --radius: 0.5rem;
  --background: #fbfcf8;
  --foreground: #17372c;
  --surface: #eef5ed;
  --card: #ffffff;
  --card-foreground: #17372c;
  --popover: #ffffff;
  --popover-foreground: #17372c;
  --primary: #1f6b4f;
  --primary-foreground: #ffffff;
  --secondary: #eaf3f5;
  --secondary-foreground: #214956;
  --muted: #f0f3ed;
  --muted-foreground: #607168;
  --accent: #1f6b4f;
  --accent-foreground: #ffffff;
  --accent-2: #de765f;
  --border: #dce5dc;
  --input: #dce5dc;
  --ring: #64a88b;
  --gradient-brand: linear-gradient(120deg, #1f6b4f 0%, #3b8f70 58%, #de765f 100%);
  --shadow-card: 0 2px 5px rgba(23, 55, 44, 0.06), 0 12px 28px rgba(23, 55, 44, 0.08);
  --shadow-pop: 0 16px 44px rgba(23, 55, 44, 0.16);
}

.dark {
  --background: #13231e;
  --foreground: #f7faf7;
  --surface: #1b3028;
  --card: #20372e;
  --card-foreground: #f7faf7;
  --popover: #20372e;
  --popover-foreground: #f7faf7;
  --primary: #79c59f;
  --primary-foreground: #10251d;
  --secondary: #29443a;
  --secondary-foreground: #f7faf7;
  --muted: #29443a;
  --muted-foreground: #b4c8bd;
  --accent: #79c59f;
  --accent-foreground: #10251d;
  --accent-2: #ee9b88;
  --border: rgba(255, 255, 255, 0.14);
  --input: rgba(255, 255, 255, 0.18);
  --ring: #79c59f;
}

body {
  background:
    linear-gradient(rgba(31, 107, 79, 0.025) 1px, transparent 1px),
    var(--background);
  background-size: 100% 44px;
}

header > div {
  min-height: 68px;
}

.thimara-brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}

.thimara-wordmark {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 44px;
  letter-spacing: 0;
}
.thimara-wordmark__ar {
  color: var(--foreground);
  font: 800 22px/1.25 'Cairo', sans-serif;
}
.thimara-wordmark__en {
  color: #de765f;
  font: 700 12px/1.2 'Cairo', sans-serif;
}
.dark .thimara-wordmark__en { color: #ee9b88; }
@media (min-width: 640px) {
  .thimara-wordmark { display: inline-flex; }
}

.pet-hero {
  min-height: 510px;
  display: flex;
  align-items: center;
  isolation: isolate;
  border-radius: 8px !important;
  border-color: rgba(31, 107, 79, 0.2) !important;
  background-image:
    linear-gradient(90deg, rgba(251, 252, 248, 0.02) 24%, rgba(251, 252, 248, 0.82) 58%, rgba(251, 252, 248, 0.98) 100%),
    url("./assets/pet-hero-cozy.webp");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-card);
}

.dark .pet-hero {
  background-image:
    linear-gradient(90deg, rgba(19, 35, 30, 0.05) 20%, rgba(19, 35, 30, 0.84) 60%, rgba(19, 35, 30, 0.98) 100%),
    url("./assets/pet-hero-cozy.webp");
}

.pet-hero > div:first-child {
  display: none;
}

.pet-hero > .relative {
  width: min(100%, 640px);
  padding: 24px 0;
}

.pet-hero h1 {
  max-width: 580px;
  color: #17372c;
  text-wrap: balance;
}

.dark .pet-hero h1 {
  color: #f7faf7;
}

.pet-hero p {
  color: #3f5d51 !important;
  font-weight: 600;
}

.dark .pet-hero p {
  color: #d5e3db !important;
}

.pet-hero a,
.gradient-brand {
  border-radius: 8px !important;
}

#catalog {
  scroll-margin-top: 88px;
}

#catalog aside > div,
#catalog section a,
[role="dialog"] aside,
[role="dialog"] form {
  border-radius: 8px !important;
}

#catalog section a img {
  transition: transform 0.35s ease;
}

#catalog section a:hover img {
  transform: scale(1.035);
}

#catalog section a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ring) 45%, transparent);
  outline-offset: 2px;
}

.thimara-related-products article > a:first-child {
  aspect-ratio: 16 / 9;
}

.thimara-related-products article > a:first-child img {
  object-fit: contain;
}

.pet-trust-strip {
  max-width: 80rem;
  margin: 20px auto 0;
  padding: 0 16px;
}

.pet-trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.pet-trust-strip__item {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: var(--card);
  color: var(--foreground);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.pet-trust-strip__mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e8f3ec;
  color: #1f6b4f;
  font-size: 0.75rem;
}

@media (max-width: 767px) {
  .pet-hero {
    min-height: 620px;
    align-items: flex-start;
    padding: 28px 22px 300px !important;
    background-image:
      linear-gradient(180deg, rgba(251, 252, 248, 0.98) 0%, rgba(251, 252, 248, 0.86) 44%, rgba(251, 252, 248, 0.04) 72%),
      url("./assets/pet-hero-mobile-cozy.webp");
    background-position: center;
  }

  .dark .pet-hero {
    background-image:
      linear-gradient(180deg, rgba(19, 35, 30, 0.98) 0%, rgba(19, 35, 30, 0.84) 46%, rgba(19, 35, 30, 0.08) 74%),
      url("./assets/pet-hero-mobile-cozy.webp");
  }

  .pet-hero h1 {
    font-size: 2.2rem !important;
    line-height: 1.25 !important;
  }

  .pet-hero p {
    line-height: 1.75 !important;
  }

  .pet-trust-strip__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pet-trust-strip__item {
    min-height: 70px;
    font-size: 0.75rem;
  }
}

@media (max-width: 420px) {
  .pet-hero {
    min-height: 650px;
    padding-inline: 18px !important;
  }

  .pet-trust-strip__item {
    flex-direction: column;
    gap: 5px;
  }
}
