/*  ======================================================================
    1 | FONTS
    =================================================================== */
@font-face{font-family:'Nunito';src:url('/static/Nunito-VariableFont_wght.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Nunito';src:url('/static/Nunito-Italic-VariableFont_wght.ttf') format('truetype');font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:'Raleway';src:url('/static/Raleway-VariableFont_wght.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Raleway';src:url('/static/Raleway-Italic-VariableFont_wght.ttf') format('truetype');font-weight:100 900;font-style:italic;font-display:swap}

/*  ======================================================================
    2 | CSS-CUSTOM-PROPS (Design-Tokens)
    =================================================================== */
:root{
  --top-bar-h: 3vh;
  /* TYPO */
  --font-primary:'Nunito',sans-serif;
  --font-secondary:'Raleway',sans-serif;

  /* COLORS */
  --icon-color:#FFD400;
  --icon-color-hover:rgba(255,212,0,.80);

  --button-color:#FFD400;
  --button-color-hover:rgba(255,212,0,.80);
  --button-text-color:#1D1D1B;

  --cta-button-color:#FFD400;
  --cta-button-color-hover:rgba(255,212,0,.80);
  --cta-button-text-color:#1D1D1B;

  --color-bg-general-first:#fff;
  --color-bg-general-second:#f9f9f9;

  --color-bg-info-header:#1D1D1B;
  --color-fg-info-header:#fff;

  --navbar-bg-color:#fff;
  --navbar-text-color:#1D1D1B;

  --welcome-bg-color:#fff;
  --welcome-text-color:#1D1D1B;

  --footer-bg-color:#f8f8f8;
  --footer-text-color:#1D1D1B;

  /* NAVBAR */
  --nav-height:92px;
}

/*  ======================================================================
    3 | RESET, BASE, UTILS
    =================================================================== */
*,*::before,*::after{box-sizing:border-box}
html,body{
  margin:0;
  font-family:var(--font-primary);
  color:var(--footer-text-color);
  background:#fff;
  line-height:1.6;
}

/* headings */
h1,h2,h3,h4,h5,h6{font-family:var(--font-secondary);margin:0 0 .5em}

/* links */
a{color:inherit;text-decoration:none}
a:hover,a:focus{text-decoration:underline}

/* media */
img,video{max-width:100%;height:auto;display:block}

/* fluid-type */
h1{font-size:clamp(1.8rem,5vw,2.4rem)}
h2{font-size:clamp(1.4rem,4vw,1.9rem)}
p,input,select,button{font-size:clamp(.9rem,2.7vw,1rem)}

/* container */
.container{max-width:1200px;margin:0 auto;padding:0 1rem}

/* sr-only */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/*  ======================================================================
    4 | GLOBAL COMPONENTS
    =================================================================== */
.btn{display:inline-block;font-family:var(--font-secondary);padding:.5em 1em;border:none;cursor:pointer}

.cart-thumb{width:48px;height:48px;object-fit:cover;border-radius:6px}
@media(max-width:600px){.cart-thumb{width:64px;height:64px}}

/*  ======================================================================
    5 | NAVBAR
    =================================================================== */
.navbar {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
  z-index: 1000;                   /* über der top-bar (z-index:900) */
  width: 100%;
  background: var(--navbar-bg-color);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.navbar-container{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
}

/* ­──── ROW 1 (always visible) ──── */
.nav-row.top-row{
  height:48px;
  padding:0 1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.navbar-logo{font-family:var(--font-primary);font-size:1.5rem}
.navbar-icons{
  display:flex;
  gap:1.2rem;
  align-items:center;
  font-size:1.25rem;
}
.navbar-icons a{color:var(--footer-text-color);position:relative}
.count{
  position:absolute;
  top:-6px;
  right:-8px;
  background:var(--icon-color);
  color:#fff;
  font-size:.65rem;
  padding:2px 4px;
  border-radius:50%;
}

/* ­──── ROW 2 (only ≤ 900 px) ──── */
.nav-row.mobile-row{display:none;padding:.5rem 1rem;gap:.75rem}
.burger,.close-drawer{background:none;border:none;font-size:1.8rem;color:var(--footer-text-color)}
.search-wrap{flex:1;position:relative}
.search-wrap i{position:absolute;left:.8rem;top:50%;transform:translateY(-50%);opacity:.6}
#mobileSearch{
  width:100%;
  padding:.55rem .8rem .55rem 2.4rem;
  border:2px solid var(--icon-color);
  border-radius:6px;                    /* rechteckig / leicht rund */
  font-family:var(--font-primary);
  font-size:1rem;
}

/* search result list */
#searchResultsMobile{
  position:absolute;
  top:calc(100% + 4px);
  left:0;
  right:0;
  background:#fff;
  border:2px solid var(--icon-color);   /* kompletter Rahmen */
  max-height:260px;
  overflow-y:auto;
  z-index:1020;
  list-style:none;
  margin:0;
  padding:0;
}
#searchResultsMobile:empty{
  display:none;                         /* keine Linie, wenn leer */
  border:none;
}
#searchResultsMobile li{display:flex;gap:10px;padding:.6rem;cursor:pointer}
#searchResultsMobile li:hover{background:#f6f6f6}
#searchResultsMobile img{width:48px;aspect-ratio:1;object-fit:cover;border-radius:6px}
#searchResultsMobile .name{font-weight:600}

/* ­──── FILTER BAR (desktop) ──── */
.filter-bar{
  height:44px;
  padding:0 .5rem;
  display:flex;
  align-items:center;
  gap:.5rem;
  overflow-x:auto;
  border-top:1px solid rgba(0,0,0,.04);
}
.filter-bar button{
  background:none;
  border:none;
  font:inherit;
  padding:.4rem .9rem;
  border-radius:999px;
  cursor:pointer;
  white-space:nowrap;
  transition:background .15s;
}
.filter-bar button:hover{background:rgba(0,0,0,.07)}
.filter-bar button.active{background:var(--icon-color);color:#fff}
.filter-bar .filter-sep{
  margin:0 .8rem;
  color:var(--footer-text-color);
  opacity:.6;
  user-select:none;
  pointer-events:none;
  font-size:1rem;
}

/* ­──── OFF-CANVAS DRAWER ──── */
.nav-drawer{
  position:fixed;
  inset:0 auto 0 0;
  width:260px;
  height:100%;
  background:var(--navbar-bg-color);
  display:flex;
  flex-direction:column;
  gap:1.2rem;
  padding:calc(var(--nav-height) + 1rem) 1.5rem 1.5rem;
  transform:translateX(-100%);
  transition:transform .3s ease;
  overflow-y:auto;
  z-index:1010;
}
.nav-drawer.open{transform:none}

.nav-drawer .filter-bar {
  display: flex !important;
  flex-direction: column;   /* untereinander */
  align-items: stretch;     /* volle Breite */
  padding: 0;               /* bündig links/rechts */
  border: none;             /* keine obere Linie im Drawer */
}

/* Trennstriche (|) ausblenden */
.nav-drawer .filter-sep {
  display: none;
}

/* ► Buttons im Drawer */
.nav-drawer .filter-bar button {
  width: 100%;
  text-align: left;
  padding: .75rem 0;
  border: none;
  border-bottom: 1px solid #eee;
  background: none;
  font-size: 1.05rem;
}
.nav-drawer .filter-bar button:hover {
  background: rgba(0,0,0,.07);
}
.nav-drawer .filter-bar button.active {
  background: var(--icon-color);
  color: #fff;
}

/*  ======================================================================
    6 | INFO-HEADER (TOP-BAR)
    =================================================================== */
.top-bar{
  position:static;       /* scrollt normal weg */
  z-index:900;           /* liegt unter der .navbar */
}

/*  ======================================================================
    7 | BREAKPOINTS
    =================================================================== */
@media(max-width:900px){
  .burger{display:block}
  #openSearch{display:none}      /* desktop-modal-Suche ausblenden */
  .filter-bar{display:none}
  .nav-row.mobile-row{display:flex}
  body.lock{height:100vh;overflow:hidden}
}

@media(max-width:600px){
  body{padding-inline:.875rem}
  .top-bar,.navbar,.hero,.footer{
    margin-inline:-.875rem;
    width:calc(100% + 1.75rem);
  }
  .container{padding:0 .75rem}

  table{display:block;overflow-x:auto}
  form{grid-template-columns:1fr!important}
  .btn,.btn-yellow,.checkout-btn,button{
    width:100%;
    text-align:center;
    font-size:1rem;
  }
  .filter-bar{gap:.25rem}

    .navbar {
    top: 0 !important;
  }
}