:root {
  --green:      #09af11;
  --green-dk:   #067a0b;
  --green-dim:  rgba(9,175,17,0.12);
  --forest:     #0d1f06;
  --dark:       #0e0e0e;
  --panel:      #0d1f06;
  --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;
}
/* ================= CART TABLE ================= */
.cart-container {
  padding: 40px 5% 100px; /* 100px bottom clears the fixed bottom nav */
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

.cart-table th {
  background: var(--navy, #0d1a0e);
  color: var(--green, #17EF00);
  font-weight: bold;
  padding: 12px 10px;
  text-align: center;
}

.cart-table td {
  border-bottom: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  padding: 12px 10px;
}

.cart-table td img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.cart-table td img:hover {
  transform: scale(1.08);
}

.cart-table tbody tr:hover {
  background: rgba(23, 239, 0, 0.08);
  transition: background 0.25s ease;
}

/* ================= QUANTITY CONTROLS ================= */
.qty-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  background: var(--navy, #0d1a0e);
  border: 1px solid var(--green, #17EF00);
  color: var(--green, #17EF00);
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.qty-controls button:hover {
  background: var(--green, #17EF00);
  color: var(--navy, #0d1a0e);
  transform: scale(1.1);
}

/* ================= REMOVE BUTTON ================= */
.remove-btn {
  background: transparent;
  border: 1px solid var(--green, #17EF00);
  color: var(--green, #17EF00);
  border-radius: 10px;
  padding: 5px 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.remove-btn:hover {
  background: var(--green, #17EF00);
  color: var(--navy, #0d1a0e);
  box-shadow: 0 0 8px var(--green, #17EF00);
}

/* ================= BUTTON ACTIVE GLOW (all buttons) ================= */
button:active,
a.continue-btn:active,
a.checkout-btn:active {
  box-shadow: 0 0 8px #17EF00, 0 0 20px rgba(23, 239, 0, 0.5);
  transform: scale(0.96);
}

/* ================= CART SUMMARY ================= */
.cart-summary {
  text-align: right;
  margin-top: 30px;
}

#grand-total {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--green, #0d1a0e);
  margin-bottom: 20px;
}

/* ================= STICKY CART BUTTONS (mobile) ================= */
@media (max-width: 768px) {
  .cart-summary {
    text-align: center;
  }

  #grand-total {
    display: center;
  }

  .cart-buttons {
    position: fixed;
    bottom: 7px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 16px 8px;
    background: rgba(1, 15, 3, 0.97);
    border-top: 1px solid rgba(25, 255, 0, 0.3);
    z-index: 999;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
  }

  .cart-buttons::before {
    content: attr(data-total);
    color: #06e419;
    font-weight: bold;
    font-size: 0.9rem;
  }

  .cart-buttons.hidden-bar {
    transform: translateY(100%);
    opacity: 0;
  }

  .continue-btn,
  .checkout-btn {
    flex: 1;
    padding: 8px 0;
    font-size: 13px;
    text-align: center;
    border-radius: 50px;
  }

  .cart-buttons-row {
    display: flex;
    gap: 10px;
    width: 100%;
  }

  .cart-container {
    padding-bottom: 130px;
  }
}

.cart-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.continue-btn,
.checkout-btn {
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.continue-btn {
  background: var(--white, #FFFFFF);
  color: var(--navy, #0d1a0e);
}

.continue-btn:hover {
  background: var(--green, #17EF00);
  color: var(--navy, #0d1a0e);
}

.checkout-btn {
  background: var(--green-light, #17EF00);
  color: var(--white, #FFFFFF);
}

.checkout-btn:hover {
  background: var(--green, #17EF00);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(23,239,0,0.35);
}


/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal {
  background: #fff;
  border-radius: 10px;
  padding: 30px 20px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
}
.modal h2 {
  text-align: center;
  color: #2a5d34;
  margin-bottom: 15px;
}
.modal form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal input, .modal select {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
.modal button {
  margin-top: 10px;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}
.confirm-btn {
  background: #32cd32;
  color: #fff;
}
.cancel-btn {
  background: #0fce08;
  color: #180f0d;
}
.confirm-btn:hover {
  background: #0a8a0a;
}
.cancel-btn:hover {
  background: #27bb13;
}
.success-message {
  text-align: center;
  color: #12b903;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 10px;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.fade-out { opacity: 0; transition: opacity 0.3s ease; }


  /* ===== CART TABLE MOBILE FIX ===== */
  .cart-container {
    padding: 20px 2%;
  }

  .cart-table th,
  .cart-table td {
    font-size: 12px;
    padding: 8px 4px;
    text-align: center;
  }

  .cart-table td img {
    width: 40px;
    height: 40px;
  }

  .qty-controls button {
    padding: 3px 7px;
    font-size: 12px;
  }

  .remove-btn {
    padding: 4px 8px;
    font-size: 11px;
  }


/* ── 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;
}
/* ── LARGE SCREENS (above 1300px) ────────────────────────── */
@media (min-width: 1300px) {
  /* Desktop: add horizontal padding to match content */
  .navbar {
    padding-left: calc(2rem + (100% - 1300px) / 2);
    padding-right: calc(2rem + (100% - 1300px) / 2);
  }
}

@media (max-width: 768px) {
  .cart-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .cart-summary {
    text-align: center;
  }
}

/* ── 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;
    }
  }
 