/* TEDY TWA visual v6 — crisp system-credit line, lifted above the phone navigation
   bar, and natural (not over-processed) hero photo colour. */
@import url("./tedy-video-reference-v4.css?v=20261122-premium4");

html, body {
  color-scheme: only light !important;
  forced-color-adjust: none !important;
  -webkit-color-adjust: exact !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
}

#page-home.home-page,
#page-home.home-page * { forced-color-adjust: none !important; }

/* ------------------------------------------------------------------
   1) PHOTO COLOUR: remove the stacked 1.24 brightness / 1.18 saturate
      boost so skin tones and whites stay natural.
   ------------------------------------------------------------------ */
#page-home.home-page .home-hero {
  filter: brightness(1.02) saturate(1.02) contrast(1.0) !important;
}
#page-home.home-page .home-hero img {
  filter: brightness(1.06) saturate(1.03) contrast(1.01) !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}
#page-home.home-page .home-masthead {
  filter: brightness(1.18) saturate(1.16) contrast(1.03) drop-shadow(0 10px 18px rgba(255,185,25,.16)) !important;
  opacity: 1 !important;
}

/* Installed shell and Samsung dark-mode WebView: keep the app as bright as
   Chrome, but never blow out the photograph. */
/* R76: same author palette in all display modes. */

body[data-tedy-bright] #page-home.home-page .home-hero img {
  filter: brightness(1.06) saturate(1.03) contrast(1.01) !important;
}
body[data-tedy-bright] #page-home.home-page .home-masthead {
  filter: brightness(1.18) saturate(1.16) contrast(1.03) drop-shadow(0 10px 18px rgba(255,185,25,.16)) !important;
}

/* ------------------------------------------------------------------
   2) SYSTEM CREDIT: solid gold on a dark gold-edged pill.
      The old gradient-filled text with wide glow and hairline stroke is
      what made this line look blurred on phones.
   ------------------------------------------------------------------ */
#page-home.home-page .home-quick-links .eyebrow.tedy-system-credit {
  display: inline-block !important;
  max-width: 100% !important;
  margin: 0 auto 10px !important;
  padding: 6px 14px !important;
  background: linear-gradient(180deg, rgba(43,28,5,.97), rgba(11,8,2,.98)) !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #ffe9ae !important;
  color: #ffe9ae !important;
  font-size: clamp(15px, 4vw, 19px) !important;
  font-weight: 800 !important;
  font-style: normal !important;
  letter-spacing: .01em !important;
  line-height: 1.3 !important;
  text-align: center !important;
  text-decoration: none !important;
  border: 1px solid rgba(255,214,120,.50) !important;
  border-radius: 999px !important;
  box-shadow: 0 0 10px rgba(255,170,40,.18), inset 0 1px 0 rgba(255,240,190,.18) !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.85) !important;
  -webkit-text-stroke: 0 !important;
  filter: none !important;
}

/* Wide screens only: the premium gold gradient stays crisp at this size. */
@media (min-width: 641px) {
  #page-home.home-page .home-quick-links .eyebrow.tedy-system-credit {
    background: linear-gradient(100deg, #f4bd47 0%, #ffe49a 30%, #fff9d9 50%, #ffd15b 72%, #ecab2e 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.5), 0 0 10px rgba(255,193,60,.24) !important;
  }
}

/* ------------------------------------------------------------------
   3) LAYOUT: lift the credit fully onto the first screen and keep it
      clear of the Android navigation bar.
   ------------------------------------------------------------------ */
@media (max-width: 640px) {
  #page-home.home-page {
    padding-top: 2px !important;
    padding-bottom: 12px !important;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  }
  #page-home.home-page .home-masthead {
    width: 93% !important;
    aspect-ratio: 941 / 424 !important;
  }
  #page-home.home-page .home-hero {
    aspect-ratio: 1.06 !important;
    margin-top: 4px !important;
    padding: 5px !important;
  }
  #page-home.home-page .home-hero img {
    object-position: center 47% !important;
    border-width: 2px !important;
    border-radius: 15px !important;
  }
  #page-home.home-page .home-quick-links {
    margin-top: 10px !important;
    padding: clamp(10px, 2.8vw, 14px) clamp(10px, 2.8vw, 15px) 26px !important;
    padding-bottom: calc(clamp(10px, 2.8vw, 14px) + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 16px !important;
  }
  #page-home.home-page .home-quick-links h2 { font-size: clamp(19px, 5.4vw, 23px) !important; }
  #page-home.home-page .home-quick-links p { font-size: clamp(13px, 3.5vw, 15px) !important; }
}

/* Short app windows (status bar plus 3-button navigation on many Android phones). */
@media (max-width: 640px) and (max-height: 820px) {
  #page-home.home-page .home-masthead { width: 88% !important; }
  #page-home.home-page .home-hero { aspect-ratio: 1.22 !important; }
  #page-home.home-page .home-quick-links { margin-top: 8px !important; }
  #page-home.home-page .home-quick-links .eyebrow.tedy-system-credit { margin-bottom: 8px !important; }
}

@media (prefers-reduced-motion: reduce) {
  #page-home.home-page .home-masthead::after,
  #page-home.home-page .home-hero::after { animation: none !important; }
}

/* ==================================================================
   v7 additions (bright9) — unified deep-black canvas, the products
   button moved up into the space freed by the removed heading, richer
   metallic gold on every gold-coloured text, and a more premium
   surface treatment across the app.
   ================================================================== */

/* 4) ONE CONTINUOUS BLACK. The old warm brown halo sat only in the side
      strips next to the masthead artwork, which is why the top corners
      looked lighter than the middle. */
:root { --t-black:#040302; --t-black-soft:#070503; --t-gold-hi:#fff3cd; --t-gold:#f6cd6b; --t-gold-deep:#c8912f; }

html, body { background: var(--t-black) !important; }

#page-home.home-page {
  background:
    radial-gradient(ellipse 58% 22% at 50% 40%, rgba(255,186,64,.085), transparent 74%),
    radial-gradient(ellipse 70% 20% at 50% 86%, rgba(233,160,52,.06), transparent 76%),
    linear-gradient(180deg, #030201 0%, #040302 34%, #060504 62%, #030201 100%) !important;
}
#page-home.home-page::before {
  height: 100% !important;
  inset: 0 !important;
  background:
    repeating-linear-gradient(135deg, rgba(255,226,152,.018) 0 1px, transparent 1px 8px),
    radial-gradient(ellipse at 50% 46%, transparent 42%, rgba(0,0,0,.42) 100%) !important;
}

#page-home.home-page .home-masthead {
  filter: brightness(1.04) saturate(1.05) contrast(1.02) !important;
  background-color: var(--t-black) !important;
}
#page-home.home-page .home-hero {
  box-shadow: 0 0 0 3px #040302, 0 0 0 5px rgba(240,182,66,.58), 0 0 34px rgba(255,196,78,.26), 0 18px 40px rgba(0,0,0,.92) !important;
}
#page-home.home-page .home-quick-links {
  background: linear-gradient(180deg, rgba(10,8,5,.985), rgba(3,2,1,.995)) !important;
  border-color: rgba(255,214,120,.46) !important;
  box-shadow: inset 0 1px 0 rgba(255,241,196,.15), 0 0 20px rgba(255,182,64,.09), 0 14px 30px rgba(0,0,0,.88) !important;
}
@media (max-width: 640px) {
  #page-home.home-page .home-masthead { width: 100% !important; }
}

/* 5) THE "ምርቶቻችን" ACTION NOW SITS WHERE THE OLD HEADING WAS. */
#page-home.home-page .home-quick-links > div:first-child { margin-bottom: 0 !important; }
#page-home.home-page .home-quick-links .quick-actions {
  margin: 0 0 12px !important;
  display: flex !important;
  justify-content: center !important;
}
#page-home.home-page #exploreProducts.gold-btn {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(100%, 330px) !important;
  min-height: 54px !important;
  padding: 0 20px !important;
  font-size: clamp(16px, 4.5vw, 20px) !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
  line-height: 1.2 !important;
  color: #1b1204 !important;
  background-image: linear-gradient(112deg, #ffeaae 0%, #f3ca6f 18%, #d9a13c 36%, #fff4cf 52%, #e8b850 70%, #c58f2b 88%, #ffeaae 100%) !important;
  background-size: 260% 100% !important;
  background-position: 0% 0 !important;
  border: 1px solid rgba(255,241,198,.88) !important;
  border-radius: 15px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.62),
    inset 0 -2px 4px rgba(120,74,10,.42),
    0 0 0 1px rgba(0,0,0,.55),
    0 8px 20px rgba(0,0,0,.72),
    0 0 26px rgba(255,190,70,.22) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.34) !important;
  animation: tedy-gold-sweep 7s ease-in-out infinite !important;
}
#page-home.home-page #exploreProducts.gold-btn:active { transform: translateY(1px) scale(.995) !important; }

@keyframes tedy-gold-sweep {
  0%, 42% { background-position: 0% 0; }
  72%, 100% { background-position: 118% 0; }
}

/* 6) GOLD TEXT: real metallic gradient on large display headings, solid
      bright gold on the small labels so nothing ever smears. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .page-heading h1,
  #catalogTitle, #detailName, #orderPageTitle,
  #page-home.home-page .empty-state h2 {
    background-image: linear-gradient(100deg, #f2c055 0%, #ffe6a2 26%, #fffbe6 46%, #ffd473 68%, #e0a838 100%) !important;
    background-size: 260% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #f4c964 !important;
    text-shadow: none !important;
    animation: tedy-gold-sweep 8s ease-in-out infinite !important;
  }
}
.page-heading .eyebrow,
#page-home.home-page .home-promises span,
#page-home.home-page .quick-location,
#page-home.home-page .tedy-dashboard-footer,
.product-card .card-code,
#homeCategoryChooser button small {
  color: #ffdd92 !important;
  -webkit-text-fill-color: #ffdd92 !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.8) !important;
  -webkit-text-stroke: 0 !important;
  font-weight: 800 !important;
}

/* 7) PREMIUM SURFACES: category chooser, product cards, search field. */
#homeCategoryChooser {
  gap: 8px !important;
  margin-top: 4px !important;
}
#homeCategoryChooser button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 11px 12px !important;
  background-image: linear-gradient(180deg, rgba(28,20,7,.96), rgba(7,5,2,.98)) !important;
  border: 1px solid rgba(255,206,102,.44) !important;
  border-radius: 13px !important;
  color: #ffe6ab !important;
  box-shadow: inset 0 1px 0 rgba(255,241,196,.14), 0 6px 14px rgba(0,0,0,.7) !important;
}
#homeCategoryChooser button:hover,
#homeCategoryChooser button:focus-visible {
  border-color: rgba(255,232,163,.86) !important;
  box-shadow: inset 0 1px 0 rgba(255,247,214,.24), 0 0 16px rgba(255,196,84,.28), 0 8px 18px rgba(0,0,0,.75) !important;
}
#homeCategoryChooser button span { font-weight: 800 !important; letter-spacing: .01em !important; }
#homeCategoryChooser button small { opacity: .9 !important; }

.product-card {
  background-image: linear-gradient(158deg, #12100a 0%, #060505 54%, #0d0a06 100%) !important;
  border: 1px solid rgba(214,160,60,.55) !important;
  box-shadow: inset 0 1px 0 rgba(255,240,190,.10), 0 8px 20px rgba(0,0,0,.82) !important;
}
.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(255,225,146,.9) !important;
  box-shadow: 0 0 18px rgba(255,193,70,.24), inset 0 1px 0 rgba(255,245,205,.18), 0 12px 26px rgba(0,0,0,.9) !important;
}
.product-card .product-image-frame { border-color: rgba(255,214,120,.42) !important; }
.product-card h3 { color: #fff4d8 !important; text-shadow: 0 1px 1px rgba(0,0,0,.75) !important; }

.catalog-tools input,
#productSearch {
  background: rgba(9,7,4,.96) !important;
  border: 1px solid rgba(255,206,102,.46) !important;
  color: #ffeec2 !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.7) !important;
}
.catalog-tools input:focus,
#productSearch:focus {
  border-color: rgba(255,232,163,.92) !important;
  box-shadow: 0 0 14px rgba(255,196,84,.24), inset 0 1px 3px rgba(0,0,0,.7) !important;
  outline: none !important;
}

/* Wide screens: the system credit keeps its gold gradient, now with a slow
   metallic sweep instead of a soft glow. */
@media (min-width: 641px) {
  #page-home.home-page .home-quick-links .eyebrow.tedy-system-credit {
    background-image: linear-gradient(100deg, #f2c055 0%, #ffe6a2 26%, #fffbe6 46%, #ffd473 68%, #e0a838 100%) !important;
    background-size: 260% 100% !important;
    text-shadow: none !important;
    animation: tedy-gold-sweep 8s ease-in-out infinite !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #page-home.home-page #exploreProducts.gold-btn,
  .page-heading h1, #catalogTitle, #detailName, #orderPageTitle,
  #page-home.home-page .home-quick-links .eyebrow.tedy-system-credit { animation: none !important; }
}

/* ==================================================================
   v7.1 - cascade hardening. The production layer also targets
   body[data-tedy-bright] #page-home.home-page .home-masthead, so these
   rules repeat that specificity and are therefore decisive.
   The masthead artwork is now full-bleed on phones: with no side strip
   left at all, the top band reads as one continuous black.
   ================================================================== */

body[data-tedy-bright] #page-home.home-page .home-masthead,
#page-home.home-page .home-masthead {
  filter: brightness(1.05) saturate(1.06) contrast(1.02) !important;
  background-color: #040302 !important;
  background-size: 100% 100% !important;
}

body[data-tedy-bright] #page-home.home-page .home-hero img,
#page-home.home-page .home-hero img {
  filter: brightness(1.06) saturate(1.03) contrast(1.01) !important;
}

/* keep the woven texture below the artwork so the top band stays pure black */
#page-home.home-page::before {
  top: 26% !important;
  height: 74% !important;
  inset-inline: 0 !important;
  background: repeating-linear-gradient(135deg, rgba(255,226,152,.016) 0 1px, transparent 1px 8px) !important;
  opacity: 1 !important;
}

@media (max-width: 640px) {
  body[data-tedy-bright] #page-home.home-page .home-masthead,
  #page-home.home-page .home-masthead {
    width: 100vw !important;
    max-width: 100vw !important;
    aspect-ratio: 941 / 400 !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
}

@media (max-width: 640px) and (max-height: 820px) {
  body[data-tedy-bright] #page-home.home-page .home-masthead,
  #page-home.home-page .home-masthead {
    aspect-ratio: 941 / 372 !important;
  }
}


/* ==================================================================
   v7.2 - very short windows (small phones, split screen, in-app tabs).
   Keeps both the gold system credit and the "ምርቶቻችን" action entirely
   above the Android navigation bar instead of letting the button touch
   the bottom edge.
   ================================================================== */
@media (max-width: 640px) and (max-height: 700px) {
  body[data-tedy-bright] #page-home.home-page .home-masthead,
  #page-home.home-page .home-masthead {
    aspect-ratio: 941 / 330 !important;
  }
  #page-home.home-page .home-hero {
    aspect-ratio: 1.45 !important;
    margin-top: 2px !important;
    padding: 4px !important;
  }
  #page-home.home-page .home-quick-links {
    margin-top: 8px !important;
  }
  #page-home.home-page .home-quick-links .eyebrow.tedy-system-credit {
    margin-bottom: 7px !important;
    padding: 5px 12px !important;
  }
  #page-home.home-page #exploreProducts.gold-btn {
    min-height: 48px !important;
  }
}
