:root {
  --green:      #09af11;
  --green-dk:   #067a0b;
  --green-dim:  rgba(9,175,17,0.12);
  --forest:     #0d1f06;
  --dark:       #0e0e0e;
  --panel:      #141f0f;
  --card:       #1a2e10;
  --border:     rgba(9,175,17,0.15);
  --text:       #e8ede4;
  --muted:      rgba(232,237,228,0.55);
  --radius:     20px;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Poppins', sans-serif;
  --shadow-sm:  0 8px 24px rgba(0,0,0,0.25);
  --shadow-md:  0 16px 40px rgba(0,0,0,0.35);
  --shadow-lg:  0 24px 56px rgba(0,0,0,0.45);
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.6;
  padding-top: 62px;
}

/* ── GRAIN OVERLAY ────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url;
  opacity: 0.025;
}

/* ============================================================
   NAVBAR - PRECISE GRID ALIGNMENT
   ============================================================ */
   .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 26, 14, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: 0.4s;
    box-shadow: var(--shadow);
    z-index: 1000;
    
    /* Use grid with minmax for balanced columns */
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }
  
  /* ── LOGO (left) ──────────────────────────────────────────── */
  .logo-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    justify-self: start;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .logo img {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .logo span {
    font-weight: 600;
    color: var(--green);
    font-size: 0.95rem;
    white-space: nowrap;
  }
  
  /* ── NAV LINKS (center) ──────────────────────────────────── */
  .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    justify-self: center;
    margin: 0;
  }
  
  .nav-links a {
    padding: 0.4rem 0.6rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
  }
  
  .nav-links a:hover {
    color: var(--green);
    background: rgba(9,175,17,0.08);
  }
  
  .nav-links a.active {
    color: var(--green);
  }
  
  /* ── NAV RIGHT ICONS ──────────────────────────────────────── */
  .nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    justify-self: end;
    min-width: 120px; /* Match the approximate width of the logo */
  }
  
  .nav-right .icon-img-btn,
  .nav-right .cart-icon {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
  }
  
  .nav-right .icon-img-btn:hover,
  .nav-right .cart-icon:hover {
    background: rgba(255,255,255,0.05);
  }
  
  .nav-right .nav-icon-img,
  .nav-right .cart-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  /* ── CART BADGE ──────────────────────────────────────────── */
  .cart-icon {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    background: red;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  
  .cart-badge.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  #cart-count.pop {
    transform: scale(1.4);
    transform-origin: top right;
  }
  
  /* ── NOTIFICATION BADGE ──────────────────────────────────── */
  .account-icon {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .account-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }
  
  .notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    background: red;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  
  .notification-badge.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  .notification-count.pop {
    transform: scale(1.4);
    transform-origin: top right;
  }
  
  /* ── MOBILE MENU BUTTON ──────────────────────────────────── */
  .menu-btn {
    display: none;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
  }
  
  .menu-btn:hover {
    background: rgba(255,255,255,0.05);
  }
  
  .menu-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  /* ── MOBILE SLIDE MENU ───────────────────────────────────── */
  .slide-menu {
    position: fixed;
    top: 0; left: -280px;
    width: 260px; height: 100%;
    background: rgba(13, 26, 14, 0.85);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(4px);
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    gap: 1.5rem;
    transition: left 0.3s ease;
    z-index: 1001;
  }
  .slide-menu.show { left: 0; }
  .slide-menu a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.2s;
  }
  .slide-menu a:hover,
  .slide-menu a.active { color: var(--green); }
  
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
  }
  .overlay.show { opacity: 1; visibility: visible; backdrop-filter: blur(3px); }
  


/* =========================================================
   HERO BANNER
   ========================================================= */

.store-hero {
  text-align: center;
  padding: 70px 5% 40px;
  position: relative;
  border-bottom: 2px solid #19ff00;
  transition: background 0.3s ease;
  background:
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
    url("../images/storebanner.jpg") center / cover no-repeat;
}

.store-hero h1 {
  color: white;
  font-size: 16px;
}

.store-hero p {
  color: #bfc9bf;
  font-size: 12px;
}

/* ============================================================
   CATEGORY BUTTONS
   ============================================================ */
.category-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 25px 0;
  padding: 0 2rem;
  padding-bottom: 6px;
  padding-top: 8px;
  position: sticky;
  top: 52px;
  z-index: 999;
  background: rgba(13, 26, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.4s;
  
}

.category-btn {
  display: inline-block;
  background: #12921d;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  
  transition: background 0.3s ease, transform 0.2s ease;
}

.category-btn:hover,
.category-btn.active {
  background: #17d811;
}

/* HORIZONTAL SCROLL ON MOBILE (show ~2.5 buttons) */
@media (max-width: 768px) {
  .category-buttons {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
  }
  .category-buttons::-webkit-scrollbar { display: none; }
  .category-btn {
    flex: 0 0 auto;
    margin-right: 10px;
    min-width: calc((100% / 2.5) - 10px);
    text-align: center;
  }
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-items: center;
  margin-top: 20px;
  margin-bottom: 60px;
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-items: center;
  margin-top: 20px;
  margin-bottom: 60px;
}

.product-card {
  width: 280px;
  background: var(--card-bg);
  border: 2px solid #12921d;
  border-radius: 10px;
  padding: 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 2px;
}

.product-card text {
  text-align: center;
  text-size-adjust: 9;
  letter-spacing: 1px;
}

.product-card .price {
  position: absolute;
  top: 18px;
  left: -5px;
  background: #12921d;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  width: 52px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ADD TO CART BUTTON */
.add-btn {
  background: linear-gradient(to bottom, #12921d, #0a8a0a);
  border: none;
  border-radius: 20px;
  color: white;
  padding: 8px 20px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 2px;
  transition: transform 0.2s ease;
}

.add-btn:hover { transform: translateY(-2px); }

/* Responsive grid (original) */
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(280px, 320px));
  }
}

@media (min-width: 940px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(280px, 320px));
  }
}

@media (min-width: 1200px) {
  .product-grid {
    justify-content: center;
  }
}
.add-btn:hover { transform: translateY(-2px); }

/* ============================================================
   STORE GRID
   ============================================================ */
   .store-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .product-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
    row-gap: 20px;
    column-gap: 10px;
    margin-top: 20px;
    margin-bottom: 60px;
  }
  
  /* ≥640px → 2 cards per row */
  @media (min-width: 640px) {
    .product-grid {
      grid-template-columns: repeat(2, minmax(280px, 320px));
    }
  }
  
  /* ≥940px → 3 cards per row */
  @media (min-width: 940px) {
    .product-grid {
      grid-template-columns: repeat(3, minmax(280px, 320px));
    }
  }
  
  /* ≥1200px → centered on extra-large screens */
  @media (min-width: 1200px) {
    .product-grid {
      justify-content: center;
    }
  }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
    background: #0d1a0e;
    padding: 2rem 1rem;
    text-align: center;
    border-top: 1px solid #1a3a1a;
    margin-top: 2rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.socials img {
    width: 28px;
    height: 28px;
    transition: opacity 0.2s;
}

.socials img:hover { opacity: 0.7; }

footer p {
    font-size: 12px;
    color: #6f8f72;
}

  /* ── RESPONSIVE NAV ──────────────────────────────────────── */
  @media (max-width: 959px) {
    .navbar {
      grid-template-columns: 1fr auto;
      gap: 0.5rem;
    }
    
    .nav-links {
      display: none !important;
    }
    
    .menu-btn {
      display: flex !important;
      align-items: center;
      justify-content: center;
    }
    
    .nav-right {
      min-width: auto;
    }
  }
  
  @media (min-width: 960px) {
    .menu-btn {
      display: none !important;
    }
    .nav-links {
      display: flex !important;
    }
  }
  
/* ============================================================
   RESPONSIVE NAV VISIBILITY
   ============================================================ */
   @media (max-width: 959px) {
    .desktop-links { display: none !important; }
    .menu-btn { display: flex !important; }
  }
  
  @media (min-width: 960px) {
    .menu-btn { display: none !important; }
    .desktop-links { display: flex !important; }
  }

 /* ── LARGE SCREENS (above 1300px) ────────────────────────── */
 @media (min-width: 1300px) {
  .dashboard-container {
    padding: 0 2rem;
  }
  
  /* Desktop: add horizontal padding to match content */
  .navbar {
    padding-left: calc(2rem + (100% - 1300px) / 2);
    padding-right: calc(2rem + (100% - 1300px) / 2);
  }
}