@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root{
    --ink:#1c2430;
    --gray:#5a6472;
    --line:#e7e9ec;
    --accent:#22418e;
    --bg:#ffffff;
  }

  *{margin:0;padding:0;box-sizing:border-box}
  html{scroll-behavior:smooth}
  body{font-family:'Poppins',sans-serif; background:var(--bg); min-height:200vh; color:var(--ink);}

  /* ---------- ANNOUNCEMENT BAR (auto-sliding) ---------- */
  .announce{
    position:relative;
    height:38px;
    overflow:hidden;
    border-bottom:1px solid var(--line);
  }
  .announce-item{
    position:absolute;
    left:0;
    right:0;
    top:0;
    padding:9px 16px;
    text-align:center;
    font-size:12.5px;
    font-weight:400;
    color:var(--gray);
    letter-spacing:0.2px;
    opacity:0;
    transform:translateY(14px);
    transition:opacity .5s ease, transform .5s ease;
    pointer-events:none;
  }
  .announce-item.active{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }

  /* ---------- HEADER ---------- */
  header{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(255,255,255,0.92);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
    transition:box-shadow .35s ease;
  }
  header.scrolled{ box-shadow:0 6px 24px rgba(20,25,35,0.06); }

  .wrap{
    max-width:1360px;
    margin:0 auto;
    padding:14px 32px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
  }

  /* ---------- LOGO ---------- */
  .logo{
    display:flex;
    align-items:center;
    flex-shrink:0;
  }
  .logo img{
    height:46px;
    width:auto;
    display:block;
    transition:opacity .3s ease;
  }
  .logo:hover img{ opacity:0.85; }

  /* ---------- NAV ---------- */
  nav{ flex:1; display:flex; justify-content:center; }

  nav ul{
    display:flex;
    list-style:none;
    gap:38px;
    align-items:center;
  }

  nav li{ position:relative; }

  nav a{
    text-decoration:none;
    color:var(--ink);
    font-weight:500;
    font-size:13px;
    letter-spacing:1.2px;
    text-transform:uppercase;
    position:relative;
    padding:6px 0;
    transition:color .25s ease;
  }

  nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:1.5px;
    background:var(--ink);
    transform:scaleX(0);
    transform-origin:left;
    transition:transform .3s cubic-bezier(.4,0,.2,1);
  }

  nav a:hover{ color:var(--ink); }
  nav a:hover::after{ transform:scaleX(1); }

  .offer-link{ color:var(--accent) !important; }
  .offer-link::after{ background:var(--accent) !important; }

  /* ---------- ACTIONS ---------- */
  .actions{
    display:flex;
    gap:22px;
    align-items:center;
    flex-shrink:0;
  }

  .icon{
    position:relative;
    color:var(--ink);
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    width:22px;
    height:22px;
    transition:opacity .25s ease, transform .25s ease;
  }
  .icon:hover{ opacity:0.6; transform:translateY(-1px); }
  .icon svg{ width:20px; height:20px; }

  .badge{
    position:absolute;
    top:-8px;
    right:-9px;
    background:var(--accent) !important;
    color:#ffffff !important;
    font-size:10px;
    font-weight:700;
    width:16px;
    height:16px;
    line-height:16px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:'Poppins',sans-serif;
    border:1.5px solid #ffffff;
  }

  /* ---------- TOGGLE (mobile) ---------- */
  .toggle{
    display:none;
    width:34px;
    height:34px;
    border:none;
    background:none;
    cursor:pointer;
    position:relative;
    flex-shrink:0;
  }
  .toggle span{
    position:absolute;
    left:5px;
    right:5px;
    height:1.5px;
    background:var(--ink);
    border-radius:2px;
    transition:transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease, top .35s ease;
  }
  .toggle span:nth-child(1){ top:11px; }
  .toggle span:nth-child(2){ top:17px; }
  .toggle span:nth-child(3){ top:23px; }
  .toggle.open span:nth-child(1){ top:17px; transform:rotate(45deg); }
  .toggle.open span:nth-child(2){ opacity:0; }
  .toggle.open span:nth-child(3){ top:17px; transform:rotate(-45deg); }

  /* ---------- DEMO PAGE CONTENT ---------- */
  .demo{
    max-width:760px;
    margin:70px auto;
    padding:0 32px;
    text-align:center;
    color:var(--gray);
  }
  .demo h1{ color:var(--ink); font-weight:600; font-size:26px; margin-bottom:12px; }
  .demo p{ font-weight:300; line-height:1.7; font-size:14.5px; }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width:980px){
    .wrap{
      padding:12px 20px;
      gap:14px;
    }

    .logo{ order:1; }
    .logo img{ height:36px; }

    .actions{
      order:2;
      gap:0;
      margin-left:auto;
      margin-right:14px;
    }
    .actions .icon{ display:none; }
    .actions .icon.cart-icon{
      display:flex;
      width:26px;
      height:26px;
    }
    .actions .icon.cart-icon svg{ width:24px; height:24px; }

    .toggle{
      display:block;
      order:3;
    }

    nav{
      position:fixed;
      top:0;
      right:0;
      height:100vh;
      width:min(320px, 82vw);
      background:#fff;
      border-left:1px solid var(--line);
      box-shadow:-16px 0 40px rgba(0,0,0,0.08);
      padding:100px 30px 40px;
      transform:translateX(100%);
      transition:transform .45s cubic-bezier(.4,0,.2,1);
      overflow-y:auto;
      z-index:999;
      justify-content:flex-start;
    }
    nav.open{ transform:translateX(0); }

    nav ul{ flex-direction:column; align-items:flex-start; gap:22px; }
    nav a{ font-size:14px; }

    .scrim{
      position:fixed;
      inset:0;
      background:rgba(20,25,35,0.25);
      opacity:0;
      visibility:hidden;
      transition:opacity .4s ease, visibility .4s ease;
      z-index:998;
    }
    .scrim.show{ opacity:1; visibility:visible; }
  }

  @media (max-width:480px){
    .announce-item{ font-size:11px; padding:8px 12px; }
    .logo img{ height:30px; }
    .wrap{ padding:10px 16px; gap:10px; }
    .actions{ margin-right:10px; }
  }

  /* ---------- SEARCH BOX ---------- */
  .icon.searchbtn{ border:none; background:none; cursor:pointer; padding:0; }

  .search-box{
    max-height:0;
    overflow:hidden;
    background:#fff;
    border-bottom:1px solid transparent;
    transition:max-height .4s cubic-bezier(.4,0,.2,1), border-color .4s ease;
  }
  .search-box.open{
    max-height:84px;
    border-bottom-color:var(--line);
  }
  .search-form{
    max-width:1360px;
    margin:0 auto;
    padding:20px 32px;
    display:flex;
    align-items:center;
    gap:14px;
  }
  .search-form input[type="text"]{
    flex:1;
    border:none;
    outline:none;
    font-family:'Poppins',sans-serif;
    font-size:15px;
    color:var(--ink);
    background:transparent;
  }
  .search-form input[type="text"]::placeholder{ color:var(--gray); }
  .search-form button{
    border:none;
    background:none;
    cursor:pointer;
    color:var(--ink);
    display:flex;
    align-items:center;
    flex-shrink:0;
  }
  .search-form button svg{ width:20px; height:20px; }

  @media (max-width:480px){
    .search-form{ padding:16px 20px; gap:10px; }
  }

  @media (prefers-reduced-motion: reduce){
    *{ transition-duration:0.01ms !important; animation-duration:0.01ms !important; }
  }