* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
  font-family: "Lato", Arial, Helvetica, sans-serif;
}

:root {
  --bg-color: #080808;
  --second-bg-color: #131313;
  --text-color: #fff;
  --main-color: #22e03b;
}

/* para sa product section */
:root {
  --hero-img: url("../Images/VapeSmoke2.jpg"); /* change to your hero image */
  --hero-height-compact: 120px; /* adjust to taste (90-140px) */
  --accent: #22e03b;
  --muted: #8a8a8a;
  --filter-panel-top: 0px;

  --tile-bg: #131313;
  --shadow: rgba(0, 0, 0, 0.08);
  --card-radius: 10px;
  --gap: 28px;
}

/* Navbar */

#logo {
  display: flex;
  align-items: center;
  margin-right: auto;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-color);
  transition: transform 0.3s ease-in-out;
  text-shadow: 0 0 15px var(--main-color);
}

#logo:hover {
  transform: scale(1.05);
}

#logo img {
  height: 55px;
  width: 55px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 10px var(--main-color);
}

#logo span {
  font-family: "Oxygen", sans-serif;
  font-size: 2rem;
  color: var(--main-color);
  font-weight: 700;
}

.logo_contain {
  margin-right: auto;
  display: flex;
  margin-right: auto;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 90px;
  width: 100%;
  padding: 0.7rem 5% 0.8rem;
  background: rgba(0, 0, 0, 0.836);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  z-index: 999;
}

.navbar_container {
  display: flex;
  margin-top: 8px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-height: 55px;
}

.navbar_menu {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-left: auto;
}

/* Navbar links small */

.navbar_btn .navbar_links {
  font-size: 0.95rem;
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
}

.navbar_btn .navbar_links:hover {
  color: var(--main-color);
  border-bottom-color: var(--main-color);
}

/* search bar */

.input-box {
  position: relative;
  width: 50px;
  height: 50px;
  margin: 0;
  margin-bottom: 10px;
  margin-left: 25px;
  background-color: #000000;
  border-radius: 25px;
  display: flex;
  align-items: center;
  transition: width 0.4s ease-in-out;
  overflow: hidden;
}

.input-box:hover,
.input-box:focus-within {
  width: 350px;
}

.input-box input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 20px 0 50px;
  font-size: 16px;
  color: #333;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.input-box:hover input,
.input-box:focus-within input {
  opacity: 1;
}

.input-box .search {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-box .search-icon {
  font-size: 20px;
  margin-left: 5px;
}

.input-box .close-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #000;
  cursor: pointer;
  display: none;
}

.input-box input:not(:placeholder-shown) ~ .close-icon {
  display: block;
}

.navbar_btn {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar_shop {
  border-radius: 100px;
  border: solid transparent;
  padding: 10px;
  transition: 0.3s ease;
}

.navbar_shop:hover {
  background-color: var(--main-color);
  border-color: var(--main-color);
}

.button {
  display: inline-block;
  padding: 0.5rem 1.8rem;
  background: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
  border-radius: 4rem;
  font-size: 1rem;
  color: black;
  font-weight: 500;
  border: 2px solid transparent;
  transition: 0.3s ease-in-out;
  margin-bottom: 10px;
}

.button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--main-color);
}

/* Hamburger */

.navbar_toggle {
  display: none;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--main-color);
  transition: all 0.3s ease-in-out;
}

/* Responsive media query navbar with hamburger toggle */

/* For tablets and phones */
@media (max-width: 768px) {
  .navbar_container {
    flex-wrap: wrap;
  }

  /* Hide the menu by default */
  .navbar_menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    display: none;
    transition: all 0.3s ease;
    z-index: 998;
  }

  /* Show when active */
  .navbar_menu.active {
    display: flex;
  }

  /* Show the hamburger button */
  .navbar_toggle {
    display: block;
    cursor: pointer;
    z-index: 999;
  }

  /* Hamburger lines */
  .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--main-color);
    transition: all 0.3s ease-in-out;
  }

  /* Animate to X when active */
  .navbar_toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .navbar_toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .navbar_toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Page base */

html {
  scroll-behavior: smooth;
}

body {
  background: #0b0b0b;
  color: #fff;
}

/*<<<<< Product section >>>>>*/

.products-section {
  padding: 48px 5%;
  max-width: 1300px;
  margin: 0 auto;
}

/* Sa taas ng mga products para sa filter and search */
/* PRODUCTS CONTROLS (top of product list) */
.products-controls {
  width: 100%;
  margin: 0 45px 22px -45px;
  display: flex;
  justify-content: center; /* center the inner row */
}
.controls-inner {
  width: 90%;
  max-width: 1300px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Filter button on left */
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted, #bdbdbd);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-btn i {
  color: var(--muted, #bdbdbd);
  font-size: 14px;
}
.filter-btn:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-4%);
  color: var(--main-color);
  border-color: rgba(34, 224, 59, 0.15);
}

/* Spacer: keeps search aligned right */
.controls-spacer {
  flex: 1 1 auto;
}

/* Filter panel interior styles */
.filter-panel {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 360px; /* adjust width as needed */
  max-width: 92%;
  z-index: 1200;
  transform: translateX(-110%); /* push off-screen at start */
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.6);
  /* background is provided by .filter-panel-inner (white),
     keep panel itself transparent so inner scroll works */
  background: transparent;
  pointer-events: auto;
  will-change: transform;
}

/* when open, slide into view */
.filter-panel.open {
  transform: translateX(0);
}

/* scrim (overlay) - initially hidden */
.filter-scrim {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  z-index: 1190;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

/* scrim visible when open */
.filter-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.filter-panel-inner {
  padding: 18px 20px;
  color: #111;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
  background: var(--second-bg-color); /* white interior like screenshot */
}

/* header */
.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  margin-bottom: 6px;
}
.filter-panel-header h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 1px;
  font-weight: 800;
  color: #111;
}
.filter-close {
  background: transparent;
  border: 0;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}

/* sections */
.filter-section {
  padding: 14px 0;
}
.filter-title {
  font-size: 0.95rem;
  margin: 0 0 10px 0;
  color: var(--main-color);
  font-weight: 700;
  border-left: 4px solid transparent;
  padding-left: 6px;
}
.filter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* checkbox rows */
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dad9d9;
  font-size: 0.95rem;
  cursor: pointer;
}
.filter-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  color: var(--accent); /* modern browsers */
}

/* separator */
.filter-sep {
  border: 0;
  height: 1px;
  background: #eee;
  margin: 12px 0;
}

/* price range */
.price-range-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.range-values {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: #e0e0e0;
  font-size: 0.95rem;
}
.range-sliders {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 0;
}

/* make the focused/active input sit above the other */
.range-sliders input[type="range"]:focus,
.range-sliders input[type="range"].active {
  z-index: 4;
  outline: none;
}

/* style the two overlapping range inputs to create a double slider look */
.range-sliders input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  height: 6px;
  background: transparent;
  pointer-events: all;
  z-index: 2;
}

/* track (invisible) */
.range-sliders input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
}
.range-sliders input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent;
}

/* thumb */
.range-sliders input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #131313;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 3;
}
.range-sliders input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--main-color);
  border: 2px solid #ffffff;
  z-index: 3;
  cursor: grab;
}

/* Safari/older: make sure the thumb is visible */
.range-sliders input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.03);
}

/* The colored selected track between the two thumbs */
.range-track-highlight {
  position: absolute;
  height: 6px;
  top: 48%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 0%
  ); /* will be set in JS */
  border-radius: 6px;
  z-index: 1;
}

/* actions */
.filter-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

/* FILTER button — primary (green) */
.btn-filter {
  background: transparent;
  border: 2px solid #111;
  padding: 10px 18px;
  border-radius: 28px;
  font-weight: 800;
  cursor: pointer;
  color: var(--main-color);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease,
    transform 0.12s ease;
}

/* hover / active / focus for FILTER */
.btn-filter:hover,
.btn-filter:active {
  background: var(--main-color);
  color: #fff;
  box-shadow: 0 10px 30px rgba(34, 224, 59, 0.12);
  transform: translateY(-2%);
  border-color: rgba(34, 224, 59, 0.95);
}

/* keyboard focus visible */
.btn-filter:focus-visible {
  outline: 3px solid rgba(34, 224, 59, 0.18);
  outline-offset: 3px;
}

/* RESET button — subtle gray hover */
.btn-reset {
  background: transparent;
  border: 1px solid #ddd;
  padding: 10px 18px;
  border-radius: 28px;
  cursor: pointer;
  color: #919191;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease,
    transform 0.12s ease;
}

/* hover / active / focus for RESET */
.btn-reset:hover,
.btn-reset:active {
  background: #f3f3f3;
  color: #666;
  border-color: #d1d1d1;
  transform: translateY(-2%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* keyboard focus visible for reset */
.btn-reset:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.06);
  outline-offset: 3px;
}

/* small responsive tweaks */
@media (max-width: 900px) {
  .filter-panel-inner {
    padding: 16px;
  }
  .filter-panel {
    width: 92%;
    left: 4%;
    border-radius: 8px;
  }
}

/* keep both thumbs accessible on small devices */
@media (pointer: coarse) {
  .range-sliders input[type="range"]::-webkit-slider-thumb,
  .range-sliders input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
  }
}

/* Product Hero (All Products) */

.products-hero {
  position: relative;
  width: 100%;
  background: var(--hero-img) center/cover no-repeat fixed;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 24px;
}

/* dark gradient overlay so text remains readable */
.products-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.75));
  z-index: 1;
}

/* inner container to keep same content width as products-section */
.products-hero .hero-inner {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1300px;
  text-align: center;
  padding: 28px 0;
}

.products-hero h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 1px;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  font-weight: 800;
}

.products-hero p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

/* tweak spacing below hero to match the previous header gap */
.products-section {
  padding-top: 0;
}

/* small responsive hero tweaks */
@media (max-width: 900px) {
  :root {
    --hero-height: 220px;
  }
  .products-hero {
    background-attachment: scroll;
    min-height: var(--hero-height);
  }
  .products-hero h1 {
    font-size: 1.6rem;
  }
  .products-hero p {
    font-size: 0.95rem;
  }
}

/* Animation para sa all product at sa p element nya */

.products-hero .hero-inner {
  opacity: 0;
  will-change: opacity;
  animation: heroFadeContainer 0.60s ease forwards;
  animation-delay: 0.05s; /* container fades first */
}

/* title & paragraph: slide up + fade with staggered delays (seconds) */
.products-hero .hero-inner h1,
.products-hero .hero-inner p {
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
  animation: heroFadeMove 0.80s cubic-bezier(.2,.9,.25,1) forwards;
}

/* delays (in seconds) — adjust numbers if you want faster/slower */
.products-hero .hero-inner h1 {
  animation-delay: 0.25s; /* 0.25s */
}
.products-hero .hero-inner p {
  animation-delay: 0.55s; /* 0.55s */
}

/* keyframes */
@keyframes heroFadeContainer {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes heroFadeMove {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .products-hero .hero-inner,
  .products-hero .hero-inner h1,
  .products-hero .hero-inner p {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  align-items: start;
  margin-bottom: 20px;
  margin-top: 20px;
}

/* card */
.product-card {
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.product-inner {
  background: var(--tile-bg);
  border-radius: var(--card-radius);
  padding: 16px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 28px var(--shadow);
  overflow: visible;
}

/* media / image frame */
.product-media {
  position: relative;
  background: transparent;
  border-radius: 8px;
  padding: 18px;
  height: 220px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.02);
}

.product-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* badges */
.badge {
  position: absolute;
  z-index: 6;
  font-weight: 700;
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.82rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.badge.stock {
  left: 12px;
  top: 12px;
  background: linear-gradient(180deg, #18c43a, #0f9a2a);
}
.badge.sold {
  left: 12px;
  top: 12px;
  background: rgba(90, 90, 90, 0.92);
}
.badge.sale {
  right: 12px;
  top: 12px;
  background: #942e2e;
}
/* body */

.product-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.product-title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
  font-weight: 700;
  color: #25922e;
  min-height: 2.6em;
}

.product-desc {
  margin: 0;
  color: #7a7979;
  font-size: 0.92rem;
  height: 2.2em;
  overflow: hidden;
  opacity: 0.95;
}

/* price */
/* === price + quantity aligned on one row === */
.price-quantity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 10px;
}

.price {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.price-current {
  color: #d33;
  font-weight: 900;
  font-size: 1.02rem;
}

.price-old {
  color: #777;
  text-decoration: line-through;
  font-size: 0.92rem;
}

/* Quantity */
/* beside price */
.quantity-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  background: #1a1a1a;
  color: #22e03b;
  border: 1px solid rgba(34, 224, 59, 0.4);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.qty-btn:hover {
  background: #22e03b;
  color: #000;
  transform: scale(1.1);
}

.qty-input {
  width: 38px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 3px 0;
  outline: none;
  appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* actions: hidden until hover */
.product-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}

/* base button (add smooth transitions) */
.btn {
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;

  /* transitions in seconds */
  transition: background-color 0.18s ease, color 0.18s ease,
    transform 0.12s ease, box-shadow 0.18s ease;
  will-change: transform, background-color, color;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Add / Cart button (neutral) */
.btn-cart {
  background: #f4f4f4;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.04);
  width: 50%;
}

/* Buy button (primary) */
.btn-buy {
  background: var(--accent, #22c55e); /* fallback green if --accent missing */
  color: #fff;
  width: 50%;
}

/* Default: show text, hide icon */
.btn-cart .fa-solid,
.btn-buy .fa-solid {
  display: none;
  opacity: 0;
  transform: translateX(-6px); /* slight slide-in effect */
  transition: opacity 1s ease, transform 1s ease;
}

.btn-cart span, 
.btn-buy span {
  display: inline-block;
  transition: opacity 0.01s ease;
}


.btn-cart:not(.sold):hover {
  background: #9e9e9e; /* gray on hover */
  color: #fff;
  transform: translateY(-3%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  outline: none;
}

/* Reveal the cart & buy icon smoothly */
.btn-cart:not(.sold):hover .fa-solid,
.btn-buy:not(.sold):hover .fa-solid {
  display: inline-block;
  opacity: 1;
  transform: translateX(0); /* slide back into place */
  padding-left: 25px;
}

.btn-cart:not(.sold):hover span,
.btn-buy:not(.sold):hover span {
  opacity: 0; /* hide text smoothly */
}

.btn-buy:not(.sold):hover {
  background: var(
    --main-color,
    #22e03b
  ); /* green hover, uses --main-color if set */
  color: #061e06;
  transform: translateY(-3%);
  box-shadow: 0 14px 36px rgba(34, 224, 59, 0.18);
  outline: none;
}

/* Keep sold/disabled buttons visually static and clearly disabled */
.btn.btn-cart.sold,
.btn.btn-buy.sold,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

/* small keyboard focus enhancement for accessibility */
.btn:focus {
  box-shadow: 0 0 0 4px rgba(34, 224, 59, 0.12);
}
/* lift on hover for whole tile */
.product-card:hover .product-inner {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(76, 187, 62, 0.6);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* sold overlay purely visual */
.product-inner.sold .product-media::after {
  content: "Sold out";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.45));
  padding: 12px 8px;
  border-radius: 6px;
  text-align: center;
  pointer-events: none;
  font-size: 1rem;
}

/* Responsive media query sa products grid */

/* 📱 Mobile (portrait & small screens, below 640px) */
@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    margin: 10px;
  }

  .product-inner {
    min-height: 360px;
    padding: 12px;
  }

  .product-media {
    height: 140px; /* smaller image height */
    padding: 10px;
  }

  .product-media img {
    max-width: 120px;
  }

  .product-title {
    font-size: 0.95rem;
  }

  .price-current {
    font-size: 0.9rem;
  }

  .btn {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .quantity-box {
    gap: 4px;
  }
}

/* 📲 Tablets (641px–1023px) */
@media (min-width: 641px) and (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 16px;
  }

  .product-inner {
    min-height: 400px;
    padding: 14px;
  }

  .product-media {
    height: 160px; /* smaller image height for tablets */
    padding: 12px;
  }

  .product-media img {
    max-width: 150px;
  }

  .product-title {
    font-size: 1rem;
  }

  .price-current {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.88rem;
  }
}

/* 💻 Laptops (1024px and above) */
@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 20px;
  }

  .product-inner {
    min-height: 420px;
  }

  .product-media {
    height: 220px;
  }

  .product-media img {
    max-width: 200px;
  }

  .product-title {
    font-size: 1.05rem;
  }

  .btn {
    font-size: 0.9rem;
  }
}

/* small utility */

.muted {
  color: #ffffff;
  font-size: 0.9rem;
}

hr.hr1,
hr.hr2 {
  border: 1px solid rgb(54, 54, 54);
}

/* <<<<< Page >>>>> */

.products-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 36px 0 24px;
  padding: 18px 0 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pg-btn {
  background: transparent;
  border: none;
  color: #666;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.pg-btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.pg-btn:hover:not(:disabled) {
  transform: translateY(-3%);
  color: var(--accent, #ff2d2d);
}

/* page number list */
.pg-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* number item button */
.pg-list button {
  min-width: 36px;
  height: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
  color: #444;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s ease;
}
.pg-list button:hover {
  transform: translateY(-4%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.pg-list button[aria-current="true"] {
  background: transparent;
  color: var(--main-color); /* active color like screenshot */
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: none;
}

/* ellipsis item (non-interactive) */
.pg-list .pg-ellipsis {
  padding: 0 6px;
  color: #999;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
}

/* Page content area below the pagination */
.products-page-content {
  width: 100%;
  background: transparent;
  padding: 30px 5% 80px;
}
.page-content-inner {
  max-width: 1200px;
  margin: 0 auto;
  color: #444;
  line-height: 1.6;
}
.page-content-inner h2 {
  margin-top: 0;
  color: #222;
  font-size: 1.4rem;
}

/* <<<<< Auth Modal / Sign In Modal >>>>> */

.auth-scrim{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 1200;
}

.auth-modal{
  position: fixed; inset: 0;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  z-index: 1201;
  transition: opacity .25s ease;
}

.auth-modal.open,
.auth-scrim.open{ opacity: 1; pointer-events: auto; }

.auth-card{
  width: min(560px, 92vw);
  background: #0b0b0b;
  color: var(--text-color);
  border-radius: 20px;
  padding: 30px 26px 26px;
  box-shadow: 0 0 24px rgba(34,224,59,.35), 0 0 60px rgba(34,224,59,.25);
  border: 1px solid rgba(34,224,59,.25);
  transform: translateY(16px) scale(.98);
  animation: authIn .28s ease forwards;
  position: relative;
}

/* Two-up grid for first/last name (collapses on small screens) */
.auth-grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 0 22px;
}

/* Small helper text */
.auth-hint{
  display:block;
  color:#bdbdbd;
  margin-top:6px;
  font-size:12px;
}

/* Wrapper to hold input + icon */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px; /* Space for the eye icon */
}

.password-wrapper button {
  position: absolute;
  right: 10px;  /* Position the eye icon inside the input */
  background: none;
  border: none;
  font-size: 20px;
  color: #ccc;
  cursor: pointer;
}

.password-wrapper button:hover {
  color: #fff;
}

/* Change eye icon when password is visible */
.password-wrapper input[type="text"] {
  color: #fff;
}

/* Tweak inputs inside grid to align with your labels spacing */
.auth-grid-2 .auth-input{ margin: 0; }

/* File input appearance already styled; add a nudge to match screenshot */
.auth-input-file{
  margin: 10px 22px 0 22px;   /* standard horizontal margin */
  transform: translateX(-8px);/* slight left shift “as shown” */
}

/* File name line */
.file-name{
  color:#ccc;
  display:block;
  margin-top:6px;
}

#login-error p {
  color: rgb(0, 0, 0);
  font-size: 14px;
  margin-top: 5px;
  font-weight: bold;
}



@keyframes authIn{ to{ transform: translateY(0) scale(1); } }

.auth-close{
  position: absolute; top: 10px; right: 16px;
  background: transparent; border: 0; color: #aaa; font-size: 22px; cursor: pointer;
}

.auth-close:hover{ color: #fff; }

.auth-view{ display: none; }
.auth-card[data-view="login"]   .auth-login{ display: block; }
.auth-card[data-view="register"] .auth-register{ display: block; }


.auth-view h2{
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 32px;
  letter-spacing: .5px;
  color: var(--text-color);
  text-shadow: 0 0 6px rgba(34,224,59,.25);
}

.auth-input{ 
  position: relative;
  display: block; 
  margin: 14px 22px; 
}


/* Inline login error under password field */

.auth-error{
  display:none;           
  color:#ff6b6b;          
  font-size:12.5px;
  margin:6px 22px 0 22px; 
  text-align:right;       
}

/* Facebook-like error under the password input */

.auth-input .auth-error{
  position: static;          
  display: none;             
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #d93025; 
  background: #fde7e9;      
  color: #d93025;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
}

/* ensure any earlier absolute rule loses — keep this after previous rules */

.auth-input > .auth-error { position: static; right: auto; bottom: auto; transform: none; margin: 8px 0 0 0; }


.auth-input span{
  display: block; font-size: 14px; color: #cfcfcf; margin-bottom: 6px;
}

.auth-input input,
.auth-input textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid #3a3a3a;
  color: #fff;
  padding: 10px 4px 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  font-family: inherit;
  font-size: 14px;
  resize: none;
}


.auth-input input[type="file"] {
  border: 1px solid #3a3a3a;
  padding: 8px;
  background-color: #121212;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}


.auth-input input:focus{
  border-bottom-color: var(--main-color);
  box-shadow: 0 6px 18px -12px var(--main-color);
}

.auth-input input,
.auth-input textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid #3a3a3a;
  color: #fff;
  padding: 10px 4px 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  font-family: inherit;
  font-size: 14px;
  resize: none;
}

.auth-input textarea:focus {
  border-bottom-color: var(--main-color);
  box-shadow: 0 6px 18px -12px var(--main-color);
}
/* Flex row so the link can sit on the right */
.auth-remember-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin:6px 22px 8px; /* top / sides / bottom – matches the reference image */
}

/* Remove extra margins inside the row (Para nakalined up sya sa left side) */
.auth-remember{ margin:0 !important; } 

.auth-remember{
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; margin: 6px 22px 8px;
  color: #d8d8d8;
}

/* Push the link to the right and keep style */
.auth-forgot{
  margin-left:auto;
  font-size:14px;
  color:var(--main-color);
  font-weight:700;
  text-decoration:none;
}
.auth-forgot:hover{ text-decoration:underline; }

.auth-remember input{ width: 16px; height: 16px; accent-color: #18c43a; }

.send-code-btn {
  background: rgba(34, 224, 59, 0.9);
  box-shadow: 0 0 25px var(--main-color);
  border-radius: 0.8rem;
  font-size: 12px;
  color: black;
  font-weight: 500;
  border: 2px solid transparent;
  padding: 4px 12px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.send-code-btn:hover:enabled {
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--main-color);
}

.send-code-btn:disabled {
  background: #555;
  color: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

/* Log In */
.auth-primary{
  width: calc(100% - 44px);
  margin: 6px 22px 0;
  border: 0; border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  color: #000;
  background: var(--main-color);
  box-shadow: 0 0 22px rgba(34,224,59,.65);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.auth-primary:hover{ transform: translateY(-1px); box-shadow: 0 0 36px rgba(34,224,59,.9); }

.auth-switch{
  margin: 14px 0 4px; text-align: center; color: #cfcfcf;
}

.auth-switch a{ color: var(--main-color); font-weight: 700; }
.auth-switch a:hover{ text-decoration: underline; }



/* Small screen */
@media (max-width: 480px){
  .auth-card{ width: min(92vw, 560px); border-radius: 16px; padding: 20px 18px 18px; }
  .auth-grid-2{
    grid-template-columns: 1fr;
    margin: 0 12px;
    gap: 10px;
  }
  .auth-view h2{ font-size: 26px; margin-bottom: 24px; }
  .auth-input{ margin: 12px 12px; }
  .auth-primary{ width: calc(100% - 24px); margin: 6px 12px 0; }
}

/* Layout sa sign up modal */
/* 2-column grid like the sketch */
.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px; /* row x col gap */
}
.signup-grid .full { grid-column: 1 / -1; }
.email-password-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px; /* match signup-grid spacing */
  grid-column: 1 / -1; /* span full width of the grid */
}



/* inputs look like lines */
.auth-input input,
.auth-input textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 10px 0;
  color: #eaeaea;
  outline: none;
}
.auth-input span { display:block; margin-bottom:6px; color:#cfcfcf; font-size:0.95rem; }

/* password eye button */
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 44px; }
.password-wrapper button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: #bfbfbf; cursor: pointer;
}

/* file inputs long and full width */
.auth-input-file input[type="file"] {
  width: 100%;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 10px;
}
.file-name { display:block; margin-top:6px; opacity:0.7; font-size:0.85rem; }

/* mobile: stack into single column */
@media (max-width: 640px) {
  .signup-grid { grid-template-columns: 1fr; }
}

/* center the modal, dim background */
.auth-modal-overlay{
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,.55);
  padding: 16px; 
  z-index: 1000;
}

/* the card size: narrower and shorter */
.auth-card{
  width: clamp(560px, 62vw, 820px); 
  max-height: 86vh;
  border-radius: 18px;
  background: #0f1011;
  box-shadow: 0 12px 40px rgba(31, 167, 31, 0.5);
  overflow: hidden;
}

/* scroll only the inner content, not the whole page */
.auth-card__body{
  max-height: calc(86vh - 70px);
  overflow: auto;
  padding: 24px;
}

/* tighter layout like your sketch */
.signup-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px 16px;
}
.signup-grid .full{ grid-column: 1 / -1; }

/* Dropdown Styling (Register Form) */

.auth-input select {
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-border, #444);
  color: var(--color-text, #fff);
  font-size: 1rem;
  appearance: none;   /* remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

/* Hover + Focus state */
.auth-input select:hover,
.auth-input select:focus {
  border-color: var(--color-accent, #00ff88);
  color: var(--color-text-focus, #fff);
}

/* Option styling inside dropdown */
.auth-input select option {
  background: #111; /* dropdown background */
  color: #fff;      /* option text color */
  padding: 0.5rem;
}

.auth-input span{ margin-bottom: 4px; font-size: .92rem; }
.auth-input input, .auth-input textarea{ padding: 8px 0; }

/* full-width button */
.w-100{ width: 100%; margin: auto;}

/* mobile: stack to single column */
@media (max-width: 640px){
  .auth-card{ width: min(92vw, 560px); }
  .signup-grid{ grid-template-columns: 1fr; }
}

/* Only vertical scroll inside the modal body */
.auth-card__body{
  overflow-y: auto;
  overflow-x: hidden;
}

/* Prevent any child from forcing horizontal overflow */
.signup-grid{ min-width: 0; }
.signup-grid > *{ min-width: 0; }
.auth-input input,
.auth-input textarea,
.auth-input-file input[type="file"]{
  max-width: 100%;
  display: block;
}
.email-password-row .auth-input {
  margin: 0;
}

/* Make hint text smaller so it doesn’t push row height too much */
.email-password-row .auth-hint {
  font-size: 0.8rem;
  line-height: 1.2;
  margin-top: 4px;
  opacity: 0.8;
}


.file-name{ overflow-wrap: anywhere; } /* long filenames wrap */

/* Make the Y-axis scrollbar green */
.auth-card__body{
  scrollbar-width: thin;                 /* Firefox */
  scrollbar-color: #22c55e transparent;  /* thumb / track */
}

/* Chrome/Edge/WebKit */
.auth-card__body::-webkit-scrollbar{
  width: 10px;
}
.auth-card__body::-webkit-scrollbar-track{
  background: transparent;
}
.auth-card__body::-webkit-scrollbar-thumb{
  background: linear-gradient(#22c55e,#16a34a);
  border-radius: 10px;
  border: 2px solid #0f1011; /* matches modal bg */
}
.auth-card__body::-webkit-scrollbar-corner{
  background: transparent;
}

/* Footer */

footer {
  width: 100%;
  background: rgb(0, 0, 0);
  color: #fff;
  padding: 35px 0 30px;
  font-size: 13px;
  line-height: 20px;
}

ul li {
  list-style: none;
  margin-bottom: 12px;
}

ul li a {
  text-decoration: none;
  color: white;
}

.footer-content {
  transform: translateY(-20px);
}

.follow h3 {
  margin: 18px 0 10px;
  color: var(--text-color);
}

/* ---------- Footer layout (replace old footer rules) ---------- */
#site-footer {
  background: #000;
  color: #fff;
  padding: 40px 0 30px;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 1.5;
}

/* main row wrapper: keep centered and use flex to place columns */
#site-footer .row {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start; /* ensure columns align from the top */
  justify-content: space-between;
  gap: 30px;
  box-sizing: border-box;
}

/* explicit column widths so columns sit like the screenshot */
#site-footer .col1 {
  /* newsletter + social — left */
  flex: 0 0 46%;
  min-width: 260px;
  padding: 8px 12px 0 0;
  text-align: left;
}
#site-footer .col2 {
  /* products — center */
  flex: 0 0 22%;
  min-width: 180px;
  padding: 8px 12px;
  text-align: left;
}
#site-footer .col3 {
  /* links — right */
  flex: 0 0 22%;
  min-width: 160px;
  padding: 8px 12px;
  text-align: left;
}

/* Social icon */
#site-footer .social .fab {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 20px;
  color: #22e03b;
  border: 2px solid #22e03b;
  transition: all 0.3s ease;
}

#site-footer .social .fab:hover {
  color: #fdfffe;
  background-color: var(--main-color);
  box-shadow: 0 0 8px var(--main-color);
  transform: translateY(-10%) scale(1.1);
}

/* Lists and headings (ensure h2 lines up with list items) */
#site-footer h2,
#site-footer h3 {
  margin: 0 0 12px 0;
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.15;
}

/* Remove default list indentation so li items align flush under heading */
#site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#site-footer ul li {
  margin-bottom: 8px;
}
#site-footer ul li a {
  text-decoration: none;
  color: #a9a9a9;
}

/* subtle hover */
#site-footer ul li a:hover {
  color: #fff;
  text-decoration: underline;
}

/* horizontal rule + copyright */
#site-footer hr {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin: 22px auto 12px;
  width: 92%;
}
#site-footer .copyright {
  width: 100%;
  text-align: center;
  color: #8f8f8f;
  font-size: 12px;
  margin-top: 8px;
}

/* Responsive media query footer */

/* Footer Small screen: stack columns and center */

@media (max-width: 880px) {
  #site-footer .row {
    flex-direction: column;
    align-items: center;
  }
  #site-footer .col1,
  #site-footer .col2,
  #site-footer .col3 {
    flex: 1 1 100%;
    min-width: 0;
    text-align: center;
    padding: 8px 0;
  }
  #site-footer ul {
    text-align: center;
  }
}


