/* Global box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
  }
  
  html, body {
    margin: 0;
    padding: 0;
    background: #f5efe7;
    font-family: "TikTok Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "slnt" 0,
        "wdth" 100;
  }
  
  /* =========================================================
     HEADER — mobile-first
     base: phones (hamburger + search | logo | basket + account)
     768px+: tablets & desktops (links | logo | icons)
     ========================================================= */
  header {
    width: 100%;
    background-color: #212121;
  }

  #header {
    width: 100%;
  }

  /* 3 columns: side columns share the free space, logo always stays centered */
  #header_menu {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
  }

  #header_menu > a {
    justify-self: center;
    text-decoration: none;
  }

  /* "header" prefix beats the global .logo rule in accountstyle.css */
  header .logo {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1;
    white-space: nowrap;
    color: #d38f12;
  }

  .logo .honey {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
  }

  .logo .art {
    font-family: 'Cinzel', serif;
    font-weight: 700;
  }

  /* ---------- Left: hamburger + search (phones) ---------- */
  #section-0 {
    display: flex;
    justify-self: start;
    align-items: center;
    gap: 4px;
  }

  #hamburger,
  #mobile-search {
    width: 40px;           /* touch target */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  #hamburger img {
    width: 28px;
    height: auto;
  }

  #mobile-search img {
    width: 24px;
    height: auto;
  }

  /* ---------- Left: page links (tablets & desktops) ---------- */
  #section-1 {
    display: none;
    justify-self: start;
    gap: 10px;
  }

  #section-1 a {
    position: relative;
    margin: 10px;
    text-decoration: none;
    font: inherit;
    font-size: 16px;
    color: #ECE6D4;
  }

  #section-1 a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 0;
    background-color: #ECE6D4;
    transition: width 0.3s ease;
  }

  #section-1 a:hover::after {
    width: 100%;
  }

  /* ---------- Right: icons ---------- */
  #section-2 {
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 4px;
  }

  #section-2 button {
    width: 40px;           /* touch target */
    height: 40px;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  #section-2 .desktop-search {
    display: none;         /* phones use #mobile-search on the left */
  }
  #search-icon {
    width: 26px;
    height: auto;
  }
  #basket-icon {
    width: 26px;
    height: auto;
  }
  #account-icon {
    width: 22px;
    height: auto;
  }

  /* ---------- Smallest phones: the icons need the margin's space ---------- */
  @media (max-width: 359px) {
    #section-2 button {
      margin: 0;
    }
  }

  /* ---------- Tablets & desktops ---------- */
  @media (min-width: 768px) {
    #header_menu {
      padding: 10px 20px;
    }

    header .logo {
      font-size: clamp(34px, 4vw, 48px);
    }

    #section-0 {
      display: none;
    }

    #section-1 {
      display: flex;
    }

    #section-2 {
      gap: 10px;
    }

    #section-2 .desktop-search {
      display: flex;
    }
    #search-icon {
      width: 30px;
    }
    #basket-icon {
      width: 30px;
    }
    #account-icon {
      width: 25px;
    }
  }




/* Sidebar */
#sidebar {
  position: fixed;
  top: 0;
  left: -250px; /* hide initially */
  width: 250px;
  height: 100%;
  background-color: #000;
  color: white;
  z-index: 1002;
  padding: 20px;
  transition: left 0.3s ease;
}

/* Overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* dark transparent */
  z-index: 1000;
  display: none; /* hidden by default */
}

#sidebar div img {
  width: 20px;
}
#sidebar {
  display: flex;
  flex-direction: column;
  z-index: 9999;
}
#sidebar {
  display: flex;
  gap: 10px;
}

#sidebar a {
  margin: 10px;
  text-decoration: none;
  font: inherit;
  font-size: 16px;
  color: #ECE6D4;
}

#sidebar a {
  position: relative;
  text-decoration: none;
}

#sidebar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background-color: #ECE6D4;
  transition: width 0.3s ease;
}

#sidebar a:hover::after {
  width: 100%;
}

/* Show states */
#sidebar.active {
  left: 0;
}

#overlay.active {
  display: block;
}


/* Basket design================================ */
.basket-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.basket-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 400px;
  max-width: 100%;
  height: 100%;
  background: #fff;
  z-index: 100;
  transition: right 0.3s ease;
  box-shadow: -2px 0 5px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.basket-panel.open {
  right: 0;
}

/* basket div1----------------------------- */
#basket-heading {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px black solid;
}
.basket-panel button {
  padding: 0px;
  margin: 0px;
  transition: all 0.5s ease;
}
#basket-heading button {
  width: 32px;
  height: 32px;
  font-size: 16px;
  background: #d69c1c;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
#basket-heading button:hover{
  transform: scale(1.2);
}
#basket-heading span {
  display: block;
    font-size: 1.17em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}
.basket-icon .badge {
  background-color: red;
  color: white;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 12px;
  margin-left: 5px;
}
/* basket div2---------------------------------- */
.free-sheeping-block {
  padding: 16px;
  border-bottom: 1px solid black;
}
.free-sheeping-success {
  display: none;
}
/* progress element --------- */
progress {
  width: 95%;
  height: 8px;
  border: none;
  background: transparent;
  border-radius: 999px;
  appearance: none; /* Remove default styles */
}

/* WebKit (Chrome, Safari) */
progress::-webkit-progress-bar {
  background-color: #eee;
  border-radius: 999px;
}

progress::-webkit-progress-value {
  background-color: black;
  border-radius: 999px;
}

/* Firefox */
progress::-moz-progress-bar {
  background-color: black;
  border-radius: 999px;
}

.cart-summary {
  margin: 0 1.5%;
  display: flex;
  justify-content: space-between;
}
#checkout-form{
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.checkout-btn {
  width: 80%;
  color: #fff;
  background-color: #212121;
  height: 40px;
  border: none;
  border-radius: 2%;
  cursor: pointer;
}

/* Basket messages ("Added to your basket", "No more in stock"); fade away by themselves */
#basket-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9000;
  padding: 12px 20px;
  border-radius: 10px;
  background: #212121;
  color: #ECE6D4;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  animation: basket-toast 3s ease forwards;
  pointer-events: none;
}
@keyframes basket-toast {
  0%, 85% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

/* Cards (products, posts): the title is a real link that stretches over the whole card,
   so "open in new tab", keyboard and search engines work. Buttons sit above it. */
.product,
.post,
.viewedProduct {
  position: relative;
}
.card-link {
  color: inherit;
  text-decoration: none;
}
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card-link:focus-visible {
  outline: none;
}
.card-link:focus-visible::after {
  outline: 2px solid #d38f12;
  outline-offset: 2px;
  border-radius: 12px;
}
.product form,
.post .see-more {
  position: relative;
  z-index: 1;
}
