/* TEDY public website: additive, reversible visual layer. Load AFTER v4/v5.css. */
:root {
  --tedy-forest: #041e18;
  --tedy-forest-light: #0b3b2d;
  --tedy-gold: #e1bb70;
  --tedy-gold-muted: #ae8c4e;
  --tedy-ivory: #fff7e9;
}

body.tedy-v6-enabled {
  color: var(--tedy-ivory);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(40, 99, 70, .31), transparent 46%),
    radial-gradient(ellipse at 88% 45%, rgba(129, 99, 42, .09), transparent 48%),
    linear-gradient(160deg, #06251d 0%, #031912 60%, #06261d 100%);
  font-family: "Noto Sans Ethiopic", "Abyssinica SIL", "Nyala", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.tedy-v6-enabled .topbar {
  background: rgba(2, 31, 23, .97);
  border-bottom: 1px solid rgba(225, 187, 112, .49);
  box-shadow: 0 12px 36px rgba(1, 9, 7, .27);
}

.tedy-v6-enabled .brand b,
.tedy-v6-enabled .hero h1,
.tedy-v6-enabled .section h2,
.tedy-v6-enabled .card h3,
.tedy-v6-enabled .category-card h3 {
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

.tedy-v6-enabled .hero h1 em,
.tedy-v6-enabled .price,
.tedy-v6-enabled .card .meta {
  color: var(--tedy-gold);
}

.tedy-v6-enabled .btn,
.tedy-v6-enabled button,
.tedy-v6-enabled .tab,
.tedy-v6-enabled .category-card {
  -webkit-tap-highlight-color: transparent;
}

.tedy-v6-enabled .btn.gold,
.tedy-v6-enabled .btn.primary,
.tedy-v6-enabled .tab.active {
  border: 1px solid rgba(246, 215, 149, .7);
  box-shadow: 0 2px 0 rgba(255, 246, 219, .08) inset, 0 9px 22px rgba(0, 0, 0, .19);
}

.tedy-v6-enabled .hero-media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(circle at center, #1c4a37 0%, #08271d 72%);
  border: 2px solid rgba(229, 187, 107, .82);
  border-radius: clamp(18px, 3vw, 28px);
  box-shadow: 0 0 0 5px rgba(225, 187, 112, .1), 0 25px 65px rgba(0, 0, 0, .35);
}

/* Critical: image remains entirely visible, never force object-fit:cover. */
.tedy-v6-enabled .hero-media > img {
  display: block;
  position: relative !important;
  inset: auto !important;
  width: 100%;
  height: auto !important;
  max-height: 560px;
  object-fit: contain !important;
  object-position: center;
  background: rgba(0, 0, 0, .14);
}

.tedy-v6-enabled .hero-media .caption {
  position: static !important;
  margin: 10px 12px 12px;
  background: linear-gradient(110deg, #082c22, #103f2f);
  color: var(--tedy-ivory);
  border-top: 1px solid rgba(225, 187, 112, .36);
}
.tedy-v6-enabled .hero-media::after { display: none !important; }

.tedy-v6-enabled .category-card,
.tedy-v6-enabled .card {
  border: 1px solid rgba(207, 164, 90, .48);
  background: linear-gradient(155deg, #0d3529, #061f18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .23);
}

.tedy-v6-enabled .category-card > img,
.tedy-v6-enabled .card-media > img {
  object-fit: contain !important;
  object-position: center;
  background-color: #132e25;
}

.tedy-v6-enabled .category-card:hover,
.tedy-v6-enabled .card:hover {
  border-color: var(--tedy-gold);
}

.tedy-v6-enabled .category-card .content {
  background: linear-gradient(0deg, rgba(1, 25, 18, .96), rgba(1, 25, 18, .35));
}

.tedy-v6-enabled .category-card h3,
.tedy-v6-enabled .category-card small,
.tedy-v6-enabled .card-body h3 {
  color: #fff7eb;
}

.tedy-v6-enabled .panel,
.tedy-v6-enabled .hero {
  border-color: rgba(224, 186, 110, .38);
}

.tedy-v6-enabled .tedy-more-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 20px 0 36px;
}

.tedy-v6-enabled .modal-hero img,
.tedy-v6-enabled .media-preview img,
.tedy-v6-enabled .design-mini img {
  object-fit: contain !important;
  background: #11382b;
}

.tedy-v6-enabled :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #f8d18c;
  outline-offset: 3px;
}

.tedy-menu-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--tedy-gold);
  background: #06271e;
  color: var(--tedy-ivory);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.tedy-menu-backdrop[hidden], .tedy-mobile-drawer[hidden] { display: none !important; }
.tedy-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10048;
  background: rgba(0, 0, 0, .66);
}

.tedy-mobile-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10049;
  width: min(88vw, 390px);
  overflow-y: auto;
  padding: 25px 18px 40px;
  background: linear-gradient(165deg, #023326 0%, #031f17 55%, #01160f 100%);
  border-right: 3px solid var(--tedy-gold);
  box-shadow: 18px 0 45px rgba(0, 0, 0, .4);
  color: #fff8e9;
  -webkit-overflow-scrolling: touch;
}

.tedy-mobile-drawer .tedy-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(225, 187, 112, .54);
}

.tedy-mobile-drawer .tedy-drawer-brand { font-weight: 800; line-height: 1.75; font-size: 17px; }
.tedy-mobile-drawer .tedy-drawer-close {
  border: 1px solid var(--tedy-gold);
  border-radius: 12px;
  background: transparent;
  color: var(--tedy-ivory);
  font-size: 24px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.tedy-mobile-drawer .tedy-drawer-section {
  color: var(--tedy-gold);
  margin: 24px 7px 10px;
  font-weight: 800;
  font-size: 13px;
}

.tedy-mobile-drawer .tedy-drawer-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 56px;
  margin: 6px 0;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: white;
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
  background: rgba(17, 74, 54, .43);
}

.tedy-mobile-drawer .tedy-drawer-link span:first-child {
  color: var(--tedy-gold);
  font-size: 19px;
  width: 23px;
  text-align: center;
  flex-shrink: 0;
}
.tedy-mobile-drawer .tedy-drawer-link:hover,
.tedy-mobile-drawer .tedy-drawer-link:focus-visible {
  border-color: var(--tedy-gold);
  background: #144b37;
}

@media (max-width: 900px) {
  .tedy-v6-enabled .tedy-menu-trigger { display: inline-flex; }
  .tedy-v6-enabled .topbar > .container.inner { gap: 10px; }
  .tedy-v6-enabled .topbar .brand { flex: 1; min-width: 0; }
  .tedy-v6-enabled .topbar .brand b { font-size: clamp(12px, 3vw, 16px); }
  .tedy-v6-enabled .hero-media > img { max-height: none; }
  .tedy-v6-enabled .hero-media .caption { position: static; }
}

@media (max-width: 520px) {
  .tedy-v6-enabled .topbar .brand small { display: none; }
  .tedy-v6-enabled .topbar .brand img { width: 40px; height: 40px; object-fit: contain; }
  .tedy-v6-enabled .topbar .mobile-only { display: none; }
  .tedy-v6-enabled .hero-grid { gap: 22px; }
  .tedy-v6-enabled .hero-media { margin-inline: 0; }
  .tedy-v6-enabled .hero-media > img { width: 100%; object-fit: contain; }
  .tedy-v6-enabled .category-card > img { max-height: 215px; }
  .tedy-v6-enabled .card-media > img { max-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .tedy-v6-enabled *, .tedy-v6-enabled *::before, .tedy-v6-enabled *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
