/* =========================
   BASE RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: rgb(209, 219, 221);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

/* =========================
   NAVBAR — MOBILE BASE
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.2rem;
  background: rgb(12, 12, 12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 2000;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* =========================
   HAMBURGER BUTTON
========================= */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2100;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #f1f5f9;
  border-radius: 3px;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.is-active span:nth-child(1) { transform: translateY(7.75px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7.75px) rotate(-45deg); }

/* =========================
   MOBILE NAV PANEL
========================= */
#main-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 56px;
  max-height: calc(100vh - 56px);
  background: rgba(10, 14, 20, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 1999;
}

#main-nav.nav-open {
  display: block;
  animation: navSlideDown 0.22s ease forwards;
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 0;
  padding: 0.5rem 0;
}

nav ul li { position: relative; }

nav ul li a {
  display: block;
  padding: 0.88rem 1.5rem;
  color: #e2e8f0;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  -webkit-tap-highlight-color: transparent;
}

nav ul li a:hover,
nav ul li a:active {
  background: rgba(255, 60, 0, 0.09);
  color: #ff7a40;
  box-shadow: none;
}

.dropdown > a.bossd {
  color: #7c8fa6;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  padding: 0.75rem 1.5rem 0.35rem;
  border-bottom: none;
  cursor: default;
  pointer-events: none;
}

.dropdown-menu {
  position: static;
  display: block;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 0;
  padding: 0 0 0.6rem;
  min-width: unset;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: auto;
}

.dropdown-menu li a {
  display: block;
  padding: 0.55rem 1.5rem 0.55rem 2.5rem;
  color: #7c8fa6;
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: none;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:active { color: #ff9040; background: none; }

.bossd { position: relative; z-index: 2001; }

#cart-count {
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
}

/* =========================
   MAIN + CONTENT LAYOUT
========================= */
main { flex: 1; }

.content {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

/* =========================
   FILTER TOGGLE BUTTON
========================= */
#filter-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 0.75rem;
  letter-spacing: 0.3px;
  -webkit-tap-highlight-color: transparent;
}

#filter-toggle:hover { background: #d16e11; }

#filter-toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.75rem;
}

#filter-toggle.is-open #filter-toggle-icon {
  transform: rotate(180deg);
}

/* =========================
   FILTER PANEL
========================= */
.filter {
  display: none;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.filter.filter-open {
  display: block;
  animation: filterSlideDown 0.22s ease forwards;
}

@keyframes filterSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.filter h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #111;
  font-weight: 700;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.filter select,
.filter input[type="number"] {
  width: 100%;
  padding: 0.6rem;
  margin: 0.5rem 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

#apply-filters {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: #111;
  color: white;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
}

#apply-filters:hover { background: #d16e11; }

/* =========================
   PRICE FILTER — RANGE SLIDER
========================= */
.price-filter {
  margin-top: 0.5rem;
}

.range-slider {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

/* Single visible track — sits below both thumbs */
.slider-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  background: #d1d5db;
  border-radius: 999px;
  z-index: 0;           /* BELOW the inputs so thumbs render on top */
  pointer-events: none;
}

/* Both inputs overlaid on the track */
#min-range,
#max-range {
  position: absolute;
  left: 0;
  width: 100%;
  height: 5px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  border-radius: 999px;
  outline: none;
  margin: 0;
  padding: 0;
  border: none;
  z-index: 2;           /* CHANGED: above .slider-track so thumbs are visible */
}

/* Webkit thumbs */
#min-range::-webkit-slider-thumb,
#max-range::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: grab;
  transition: background 0.2s ease, transform 0.15s ease;
}

#min-range::-webkit-slider-thumb:active,
#max-range::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  background: #d16e11;
}

/* Firefox thumbs */
#min-range::-moz-range-thumb,
#max-range::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: grab;
  transition: background 0.2s ease, transform 0.15s ease;
}

#min-range::-moz-range-thumb:active,
#max-range::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  background: #d16e11;
}

/* Firefox: hide native track on both */
#min-range::-moz-range-track,
#max-range::-moz-range-track {
  background: transparent;
  border: none;
}

/* Price number inputs row */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.price-inputs label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  width: fit-content;

}

.price-inputs input[type="number"] {
  width: 75px !important;
  padding: 0.4rem 0.5rem !important;
  margin: 0 !important;
  font-size: 0.85rem;
  text-align: center;
  width: fit-content;
}

/* =========================
   DISPLAY GRID
========================= */
.display-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 500px;
}

/* =========================
   SEARCH BAR
========================= */
.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: 1.5rem 0;
  z-index: 50;
}

.form {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #111;
  border-radius: 50px;
  padding: 4px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.form input#search {
  flex: 1;
  border: none;
  padding: 0.72rem 1rem;
  font-size: 0.92rem;
  outline: none;
  background: transparent;
  min-width: 0;
}

.form button#submit {
  padding: 0.72rem 1.1rem;
  background: #111;
  color: #fff;
  border-radius: 50px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.88rem;
  flex-shrink: 0;
}

/* SKU SUBPANEL */
.sku-subpanel {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  border: 1px solid #eee;
  padding: 1rem;
  display: none;
  z-index: 100;
}

.search-wrapper:focus-within .sku-subpanel {
  display: block;
  animation: slideDown 0.2s ease-out;
}

.subpanel-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #888;
  font-weight: 800;
  margin-bottom: 0.8rem;
  padding-left: 0.5rem;
}

.sku-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

.sku-item:hover { background: #f8f9fa; }
.sku-item img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.sku-details { display: flex; flex-direction: column; }
.sku-name { font-weight: 600; font-size: 0.9rem; }
.sku-price { color: #d16e11; font-weight: 700; font-size: 0.85rem; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================
   SECTION HEADERS
========================= */
#p5 {
  width: 100%;
  text-align: left;
  margin: 1.8rem 0 0.8rem 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #111;
  border-left: 4px solid #111;
  padding-left: 1rem;
}

/* =========================
   PRODUCT GRID — MOBILE
========================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  width: 100%;
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  transition: 0.3s;
  overflow: hidden;
  border: 1px solid #eee;
  text-align: left;
}

.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 18px rgba(0,0,0,0.08); }
.product-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

.product-card p {
  padding: 0 0.75rem;
  margin: 0.28rem 0;
}

#p1 { font-size: 0.68rem; font-weight: 800; color: #999; text-transform: uppercase; margin-top: 0.75rem; }
#p2 { font-size: 0.9rem; font-weight: 700; color: #111; }
#p3 { font-size: 0.78rem; color: #666; height: 2.4rem; overflow: hidden; }
#p4 { font-size: 0.95rem; font-weight: 800; color: #111; margin-bottom: 0.5rem; }

.viewbutton {
  display: block;
  width: calc(100% - 1.5rem);
  margin: 0.4rem 0.75rem 0.75rem 0.75rem;
  background: #111;
  color: #fff;
  padding: 0.6rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.82rem;
}

.viewbutton:hover { background: #d16e11; }

/* =========================
   EMPTY STATE
========================= */
.no-results-container {
  text-align: center;
  padding: 5rem 1rem;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  margin: 1rem;
}

.no-results-container a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: #111;
  color: #fff;
  border-radius: 6px;
}




/* =========================
   SHOW MORE BUTTON
========================= */
#showmorecontainer {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 1.5rem 0 2rem;
}

.show-more-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.5rem;
  background: #111;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Animated shimmer sweep on hover */
.show-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.show-more-btn:hover::before {
  left: 130%;
}

.show-more-btn:hover {
  background: #d16e11;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(209, 110, 17, 0.35);
}

.show-more-btn:active {
  transform: translateY(0px) scale(0.97);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Arrow icon appended via pseudo-element */
.show-more-btn::after {
  content: "↓";
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.show-more-btn:hover::after {
  transform: translateY(3px);
}


/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  padding: 2rem;
  background: #0d1117;
  color: #94a3b8;
  margin-top: auto;
}

/* =========================
   TABLET POLISH  (480px – 767px)
========================= */
@media (min-width: 480px) {

  .content { padding: 1.2rem 1.5rem; }

  .product-grid { gap: 1.1rem; }

  .product-card p { padding: 0 1rem; }

  #p1 { font-size: 0.72rem; }
  #p2 { font-size: 1rem; }
  #p3 { font-size: 0.82rem; }
  #p4 { font-size: 1.05rem; }

  .viewbutton {
    width: calc(100% - 2rem);
    margin: 0.5rem 1rem 1rem 1rem;
    font-size: 0.88rem;
    padding: 0.65rem;
  }

  .form input#search { padding: 0.78rem 1.3rem; font-size: 0.98rem; }
  .form button#submit { padding: 0.78rem 1.4rem; }

  #p5 { font-size: 1.35rem; }
}

/* =========================
   DESKTOP  (768px+)
========================= */
@media (min-width: 768px) {

  .navbar { padding: 0 2rem; }

  .hamburger { display: none; }

  #main-nav {
    display: flex !important;
    position: static;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border: none;
    max-height: none;
    overflow: visible;
    top: auto;
    animation: none !important;
    align-items: center;
  }

  nav ul {
    flex-direction: row;
    gap: 1.2rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
  }

  nav ul li { position: relative; border-bottom: none; }

  nav ul li a {
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block;
    border-bottom: none;
    text-transform: none;
    letter-spacing: 0;
  }

  nav ul li a:hover {
    background: linear-gradient(90deg, #e7b9b9, #d16e11);
    color: #fff;
    box-shadow: 0 0 10px rgba(209, 110, 17, 0.5);
  }

  .dropdown > a.bossd {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    padding: 0.5rem 0.8rem;
    border-bottom: none;
    cursor: pointer;
    pointer-events: auto;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(24, 29, 37, 0.97);
    backdrop-filter: blur(10px);
    border-radius: 0 0 8px 8px;
    padding: 0.6rem 0;
    min-width: 160px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    visibility: hidden;
    z-index: 3000;
    border-bottom: none;
  }

  .dropdown-menu li a {
    display: block;
    padding: 0.6rem 1rem;
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: none;
    text-transform: none;
    letter-spacing: 0;
    padding-left: 1rem;
  }

  .dropdown-menu li a:hover {
    background: linear-gradient(90deg, #d16e11, #e7b9b9);
    color: #fff;
  }

  #filter-toggle { display: none; }

  .filter {
    display: block !important;
    animation: none !important;
    flex: 0 0 250px;
    height: fit-content;
    position: sticky;
    top: 80px;
    margin-bottom: 0;
  }

  .content {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
  }

  .display-grid {
    flex: 1;
    min-width: 0;
  }

  .search-wrapper {
    margin: 2rem 0;
    max-width: 650px;
  }

  .form input#search { padding: 0.8rem 1.5rem; font-size: 1rem; }
  .form button#submit { padding: 0.8rem 1.8rem; }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .product-card p { padding: 0 1.2rem; margin: 0.4rem 0; }

  #p1 { font-size: 0.75rem; margin-top: 1rem; }
  #p2 { font-size: 1.1rem; }
  #p3 { font-size: 0.85rem; height: 2.5rem; }
  #p4 { font-size: 1.2rem; margin-bottom: 0.8rem; }

  .viewbutton {
    width: calc(100% - 2.4rem);
    margin: 0.5rem 1.2rem 1.2rem 1.2rem;
    padding: 0.75rem;
    font-size: 1rem;
  }

  #p5 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
  }
}

@media (min-width: 768px) {
  .show-more-btn {
    padding: 0.95rem 3rem;
    font-size: 1rem;
  }
}