/* ==========================================
   GLOBAL RESET
========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0b0f14;
  color: #e5e7eb;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1250px;
  margin: auto;
  padding: 0 20px;
}

/* ==========================================
   LOGO
========================================== */
.logo {
  font-size: 26px;
  font-weight: 900;
  user-select: none;
}

.logo-white { color: #ffffff; }
.logo-green { color: #4ef58a; }

.glow-green {
  text-shadow: 0 0 10px #4ef58a, 0 0 20px #4ef58a;
}

/* ==========================================
   NAVBAR
========================================== */
.nav {
  width: 100%;
  background: #0f141a;
  border-bottom: 1px solid rgba(78,245,138,0.18);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-inner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nav-center {
  text-align: center;
  width: 100%;
}

.nav-right {
  position: absolute;
  right: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ==========================================
   NAV BUTTONS (LOGIN, SIGNUP, CART)
========================================== */
.nav-rect-btn {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 10px 16px;
  border-radius: 14px;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);

  cursor: pointer;
  color: #fff;
  font-weight: 600;
  font-size: 14px;

  backdrop-filter: blur(4px);
  transition: 0.18s;
}

.nav-rect-btn:hover {
  background: rgba(255,255,255,0.1);
}

.nav-accent-btn {
  background: rgba(78,245,138,0.18);
  border-color: rgba(78,245,138,0.4);
}

.nav-accent-btn:hover {
  background: rgba(78,245,138,0.28);
}

/* Cart button special */
.nav-cart {
  width: 48px;
  padding: 10px;
  justify-content: center;
}

.nav-rect-btn svg {
  width: 18px;
  height: 18px;
  stroke: white;
}

/* Cart dot */
.cart-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  background: #4ef58a;
  border-radius: 50%;
  display: none;
  box-shadow: 0 0 10px #4ef58a;
}

/* ==========================================
   🔥 NEW ACCOUNT + LOGOUT BUTTONS (WITH SVG)
========================================== */
.nav-account-btn,
.nav-logout-btn {
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;

  display: flex;
  align-items: center;
  gap: 8px;

  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: 0.2s ease;
}

/* SVG icons */
.nav-account-btn svg,
.nav-logout-btn svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  opacity: 0.85;
  transition: 0.2s ease;
}

/* Green hover for Account */
.nav-account-btn:hover {
  background: rgba(78, 245, 138, 0.18);
  border-color: rgba(78, 245, 138, 0.45);
  color: #4ef58a;
}

.nav-account-btn:hover svg {
  stroke: #4ef58a;
  opacity: 1;
}

/* Red hover for Logout */
.nav-logout-btn:hover {
  background: rgba(255, 60, 60, 0.18);
  border-color: rgba(255, 60, 60, 0.45);
  color: #ff6b6b;
}

.nav-logout-btn:hover svg {
  stroke: #ff6b6b;
  opacity: 1;
}

/* Spacing next to Cart */
.nav-right .nav-account-btn,
.nav-right .nav-logout-btn {
  margin-left: 4px;
}

/* ==========================================
   PREMIUM MARQUEE
========================================== */
.marquee {
  width: 100%;
  overflow: hidden;
  padding: 6px 0;
  background: rgba(15,20,26,0.85);
  border-bottom: 1px solid rgba(78,245,138,0.15);
}

.marquee-inner {
  display: inline-flex;
  gap: 22px;
  padding-left: 100%;
  align-items: center;
  animation: marqueeScroll 15s linear infinite;
}

.marquee-pill {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;

  padding: 6px 16px;
  border-radius: 10px;

  background: rgba(16,24,32,0.75);
  border: 1px solid rgba(78,245,138,0.35);
  color: #d7fbe6;

  box-shadow:
    0 0 6px rgba(78,245,138,0.28),
    inset 0 0 6px rgba(78,245,138,0.15);

  white-space: nowrap;
  backdrop-filter: blur(5px);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ==========================================
   FOOTER
========================================== */
.footer {
  margin-top: 80px;
  padding: 40px 0;
  background: #0f141a;
  border-top: 1px solid rgba(78,245,138,0.18);
}

.footer-inner {
  max-width: 1250px;
  text-align: center;
  margin: auto;
}

.footer-brand {
  font-size: 28px;
  font-weight: 900;
}

.footer-green {
  color: #4ef58a;
  text-shadow: 0 0 10px #4ef58a;
}

.footer-text {
  color: #aeb6c1;
  font-size: 14px;
  margin-top: 6px;
}

/* ==========================================
   CART DRAWER
========================================== */
.cart-drawer {
  width: 390px;
  position: fixed;
  top: 0;
  right: -390px;
  height: 100vh;

  background: #0d1117;
  padding: 28px;

  border-left: 1px solid rgba(78,245,138,0.25);
  box-shadow: -4px 0 22px rgba(0,0,0,0.4);

  transition: 0.28s ease;
  z-index: 9999;
}

.cart-drawer.open {
  right: 0;
}

/* Header */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.cart-title {
  font-size: 22px;
  font-weight: 900;
}

.cart-clear {
  font-size: 14px;
  color: #ff6b6b;
  cursor: pointer;
  opacity: 0.8;
}

.cart-clear:hover {
  opacity: 1;
}

/* Cart Items */
.cart-item {
  background: #0f141a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;

  padding: 14px;
  margin-bottom: 14px;

  display: flex;
  gap: 14px;
  align-items: center;
  transition: 0.25s ease;
}

.cart-item:hover {
  border-color: rgba(78,245,138,0.35);
  box-shadow: 0 0 12px rgba(78,245,138,0.15);
}

.cart-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-info {
  flex: 1;
}

.cart-name {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.cart-price {
  color: #4ef58a;
  font-weight: 900;
  font-size: 15px;
}

/* Quantity Controls */
.cart-qty-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 32px;
  height: 32px;

  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;

  cursor: pointer;
  transition: 0.15s ease;
}

.qty-btn:hover {
  background: rgba(255,255,255,0.14);
}

.cart-remove {
  background: rgba(255,60,60,0.25) !important;
  border-color: rgba(255,60,60,0.4) !important;
}

.cart-remove:hover {
  background: rgba(255,60,60,0.35) !important;
}

/* Footer Section */
.cart-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.cart-total-line {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 12px;
}

/* BUY Button */
.checkout-btn {
  width: 100%;
  padding: 16px;
  background: #4ef58a;
  color: #0b0f14;

  border-radius: 12px;
  font-size: 17px;
  font-weight: 900;

  cursor: pointer;
  border: none;
  transition: 0.2s ease;
}

.checkout-btn:hover {
  opacity: 0.92;
}

/* ==========================================
   CHECKOUT PAGE BUTTON FIX
========================================== */
.secure-btn {
  width: 100%;
  padding: 16px;

  background: #4ef58a;
  color: #0b0f14;

  border-radius: 12px;
  font-size: 17px;
  font-weight: 900;

  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.secure-btn:hover {
  opacity: 0.92;
}

/* Utility */
.hidden {
  display: none !important;
}

/* ==========================================
   IMPORTANT FIXES FOR BUTTON CLICK ISSUES
========================================== */
footer,
.footer,
#footer {
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.premium-checkout,
.checkout-container {
  position: relative;
  z-index: 2;
}

.modern-modal.hidden {
  pointer-events: none !important;
  opacity: 0 !important;
}

/* ==========================================
   FIX: CART OVERLAY CLOSING
========================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  z-index: 9000 !important;
  pointer-events: auto !important;
}

.cart-drawer {
  z-index: 9999 !important;
}

/* ==========================================
   ⭐ FLY-TO-CART IMAGE ANIMATION
========================================== */
.fly-img {
  position: fixed;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none;
  z-index: 20000;
  transition: transform 0.9s cubic-bezier(.2,.85,.4,1), opacity 0.9s ease;
}

/* ==========================================
   ⭐ BOUNCE ANIMATION WHEN IMAGE LANDS
========================================== */
@keyframes cartBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* ==========================================
   ⭐ WHITE TRAIL PARTICLES
========================================== */
.fly-particle {
  position: fixed;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  z-index: 19999;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.5s ease;
}

/* ==========================================
   DESKTOP: hide hamburger wrapper (desktop untouched)
========================================== */
@media (min-width: 761px) {
  .nav-hamburger-wrapper,
  .nav-toggle-label {
    display: none !important;
  }
}

/* ============================================================
   MOBILE-ONLY NAVBAR FIXES
============================================================ */
@media (max-width: 760px) {

  .nav-inner {
    height: 60px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* center logo */
  .nav-center {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* square hamburger left */
  .nav-hamburger-wrapper {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 46px !important;
    height: 46px !important;
    z-index: 99999 !important;
  }

  #navToggle {
    display: none !important;
  }

  .nav-toggle-label {
    width: 46px !important;
    height: 46px !important;
    background: rgba(255,255,255,0.07) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: none !important;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    width: 24px !important;
    height: 3px !important;
    background: white !important;
    border-radius: 4px !important;
    content: "" !important;
  }

  .nav-toggle-label span::before { transform: translateY(-7px) !important; }
  .nav-toggle-label span::after  { transform: translateY(7px) !important; }

  /* cart icon right */
  .nav-cart {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    background: rgba(255,255,255,0.07) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important;
  }

  /* dropdown becomes vertical menu on LEFT */
  .nav-right {
    position: absolute !important;
    top: 62px !important;
    left: 0 !important;
    right: 0;
    width: 100% !important;
    background: #0f141a !important;
    padding: 18px 0 !important;
    border-top: 1px solid rgba(255,255,255,0.10) !important;
    display: none;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    z-index: 9999 !important;
  }

  #navToggle:checked ~ .nav-right {
    display: flex !important;
  }

  .nav-right .nav-rect-btn {
    width: auto !important;
    margin-left: 18px !important;
    margin-right: 18px !important;
    justify-content: flex-start !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
  }
}


/* ==========================================
   GLOBAL: HIDE NAV TOGGLE CHECKBOX (NO BLUE TICK)
========================================== */
#navToggle {
  display: none !important;
}

/* ==========================================
   DESKTOP CART ENHANCEMENT (FAR-LEFT IN BUTTON ROW)
========================================== */
@media (min-width: 761px) {
  .nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* Make cart more visible and first in order */
  .nav-cart {
    order: -1;
    width: 60px;
    padding: 10px;
    background: rgba(78,245,138,0.16);
    border-color: rgba(78,245,138,0.6);
    box-shadow: 0 0 12px rgba(78,245,138,0.4);
  }

  .nav-cart svg {
    width: 22px;
    height: 22px;
  }
}


/* ==========================================
   TWEAKS: DESKTOP CART SLIGHTLY RIGHT, MOBILE HAMBURGER FAR LEFT
========================================== */

/* PC only: nudge cart a bit to the right within the button row */
@media (min-width: 761px) {
  .nav-cart {
    margin-left: 6px; /* tiny nudge to the right */
  }
}

/* Mobile only: move hamburger wrapper to the far left edge */
@media (max-width: 760px) {
  .nav-hamburger-wrapper {
    left: 4px !important; /* closer to screen edge */
  }
}


/* ==========================================
   FINAL TWEAKS: POSITION HAMBURGER & CART
========================================== */

/* Desktop: move cart a bit further right from other buttons */
@media (min-width: 761px) {
  .nav-cart {
    margin-left: 14px !important;
  }
}

/* Mobile: force the hamburger trigger itself to the far left */
@media (max-width: 760px) {
  .nav-toggle-label {
    position: absolute !important;
    left: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
}
