@import url('https://fonts.googleapis.com/css2?family=Iceland&family=Zen+Dots&display=swap');

/* ==== GLOBAL VARIABLES & BASE ==== */
:root {
  --primary-cyan: #00e5ff;
  --accent-red: #ff0000;
  --accent-green: #00ff3c;
  --bg-dark: #0a0a0a;
  --panel-bg: rgba(0, 0, 0, 0.85);
  --text-light: #ffffff;
}

html, body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: "Iceland", system-ui, sans-serif;
  background-image: url(/Images/KVLT\ POOP.png);
}

/* ==== HEADER & TYPOGRAPHY ==== */
header {
  background-color: rgba(0, 0, 0, 0.739);
  border-bottom: 0.125rem solid var(--primary-cyan);
  padding: 1rem 2rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 0 1rem rgba(0, 229, 255, 0.3);
}

header h1 {
  font-family: "Manufacturing Consent", "Iceland", system-ui;
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--text-light);
  margin: 0;
  text-transform: uppercase;
  -webkit-text-stroke: 0.04rem #000000;
  text-shadow: 
    -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000,
    0 0 0.25rem var(--primary-cyan),
    0 0 0.15rem var(--primary-cyan),
    0 0 2rem #001133;
}

h2 {
  font-family:"Iceland", system-ui;
  font-size: 2rem;
  font-weight: 700;
  color: #e8e6e6;
  margin-top: 0;
  margin-left: 1rem;
  -webkit-text-stroke: black;
  text-align: center;
  border: 0.125rem solid cyan;
  background-color: #000;
}

h3 {
  font-family: "Zen Dots", system-ui;
  font-size: 1.3rem;
  font-weight: 500;
  color: rgb(0, 251, 255);
  -webkit-text-stroke: 0.0625rem rgb(0, 0, 0);
  text-shadow: 0.0625rem 0.125rem 0.0625rem #000000;
  padding: 1rem;
  border: 0.125rem solid cyan;
  border-radius: 0.75rem;
  background-color: rgba(0, 0, 0, 0.6);
  margin: 1rem 0;
}

hr {
  border: none;
  border-top: 0.125rem solid var(--primary-cyan);
  width: 100%;
  margin: 1.25rem 0;
  opacity: 0.5;
}

/* ==== MAIN CONTAINER LAYOUT ==== */
.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.panel {
  background: var(--panel-bg);
  border: 0.125rem solid var(--primary-cyan);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 0 1rem rgba(0, 229, 255, 0.2);
}

/* ==== CATALOG & CARDS ==== */
.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  background-color: rgba(0, 0, 0, 0.78);
  border: 0.125rem solid var(--primary-cyan);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-0.3125rem);
  border-color: var(--accent-red);
  box-shadow: 0 0 0.9375rem rgba(255, 0, 0, 0.5);
}

.card img {
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 0.25rem;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.card:hover img {
  filter: grayscale(0%);
}

.card h3 {
  border: none;
  background: transparent;
  font-family: "Iceland", system-ui;
  font-size: 1.5rem;
  font-weight: 150;
  color: #fc0101;
  margin: 0.5rem 0 0.25rem;
}

.card p {
  font-family: "Iceland", system-ui;
  font-size: 1.8rem;
  color: #ffffff;
  margin: 0.5rem 0 1rem;
  text-shadow: 0 0 0.5rem var(--accent-red);
}

/* ==== FORM ELEMENTS ==== */
.form-group {
  margin-bottom: 0.8rem;
}

.form-group label {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: var(--primary-cyan);
  text-shadow: 0 0 0.3rem rgba(0, 229, 255, 0.5);
}

.form-group input, 
.form-group select {
  width: 100%;
  padding: 0.6rem;
  background: #0b0b0b;
  color: var(--accent-green);
  font-family: 'Courier New', monospace;
  border: 0.0625rem solid var(--primary-cyan);
  border-radius: 0.25rem;
  box-sizing: border-box;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0.5rem var(--primary-cyan);
}

/* ==== BUTTONS ==== */
button {
  background: #000000;
  color: var(--primary-cyan);
  font-family: "Iceland", system-ui;
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
  border: 0.125rem solid var(--primary-cyan);
  padding: 0.6rem 1.2rem;
  border-radius: 0.25rem;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

button:hover {
  background: var(--primary-cyan);
  color: #000000;
  box-shadow: 0 0 0.8rem var(--primary-cyan);
}

.btn-remove {
  background: #000000;
  color: var(--accent-red);
  border: 0.0625rem solid var(--accent-red);
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  width: auto;
  margin-top: 0.25rem;
}

.btn-remove:hover {
  background: var(--accent-red);
  color: #000000;
  box-shadow: 0 0 0.6rem var(--accent-red);
}

.btn-qty {
  background: #000000;
  color: var(--primary-cyan);
  border: 0.0625rem solid var(--primary-cyan);
  padding: 0.1rem 0.5rem;
  width: auto;
  font-size: 1rem;
}

.btn-qty:hover {
  background: var(--primary-cyan);
  color: #000;
}

/* ==== CART DISPLAY ==== */
#cart-list {
  font-size: 1.2rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  border-bottom: 0.0625rem dashed var(--primary-cyan);
  padding-bottom: 0.75rem;
}

.cart-item-info {
  font-size: 1.1rem;
  max-width: 65%;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.cart-item-right {
  text-align: right;
  font-size: 1.2rem;
  color: var(--accent-green);
}

#grand-total-display {
  font-size: 1.6rem;
  color: var(--accent-green);
  text-align: center;
  border-color: var(--accent-green);
}

#paypal-button-container {
  margin-top: 1rem;
}

#status-msg {
  color: var(--accent-green);
  font-size: 1.1rem;
  text-align: center;
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   NAV BAR & AUTH DROPDOWN
   ========================================= */

#nav-bar {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

#nav-bar li {
  display: inline-block;
  font-family: monospace;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#nav-bar a,
#nav-bar a:visited,
#nav-bar a:link {
  color: #00ffff;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border: 1px solid #00ffff;
  background-color: rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease-in-out;
  display: inline-block;
}

#nav-bar a:hover {
  color: #00ff00;
  border-color: #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
  background-color: rgba(0, 255, 0, 0.1);
}

/* Pop-down Account/Login Panel */
.auth-dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  width: 250px;
  background-color: #050505;
  border: 1px solid #00ffff;
  padding: 1rem;
  z-index: 9999;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  color: #888;
  border: 1px solid #333;
  font-size: 0.9rem;
  padding: 0.3rem;
  cursor: pointer;
}

.auth-tab-btn.active {
  color: var(--primary-cyan);
  border-color: var(--primary-cyan);
  background-color: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 5px rgba(0, 229, 255, 0.3);
}

.auth-inputs input {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.6rem;
  background: #0b0b0b;
  color: var(--accent-green);
  font-family: 'Courier New', monospace;
  border: 1px solid var(--primary-cyan);
  border-radius: 0.25rem;
  box-sizing: border-box;
  outline: none;
}

.auth-inputs input:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0.4rem var(--accent-green);
}

.auth-inputs button,
#auth-user-info button {
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.5rem;
  font-size: 1.1rem;
}

#auth-user-info p {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0 0 0.8rem 0;
  text-align: center;
}

#auth-user-info strong {
  color: var(--accent-green);
}

.error-msg {
  color: var(--accent-red);
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
  margin-top: 0.6rem;
  margin-bottom: 0;
  text-align: center;
}

/* Cart Item Styling */
#nav-bar li.cart-item-nav {
  padding: 0.4rem 1rem;
  border: 1px dashed #00ffff;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: default;
}

#cart-count {
  color: #00ff00;
  text-shadow: 0 0 6px rgba(0, 255, 0, 0.5);
  margin-left: 4px;
}

/* Pop-down Account/Login Panel */
.auth-dropdown-content {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 250px;
  background-color: rgba(5, 5, 5, 0.95);
  border: 1px solid var(--primary-cyan);
  border-radius: 0.4rem;
  padding: 1rem;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  z-index: 1000;
  text-transform: none;
}

.auth-dropdown-content input {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.6rem;
  background: #0b0b0b;
  color: var(--accent-green);
  font-family: 'Courier New', monospace;
  border: 1px solid var(--primary-cyan);
  border-radius: 0.25rem;
  box-sizing: border-box;
  outline: none;
}

.auth-dropdown-content input:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0.4rem var(--accent-green);
}

.auth-buttons {
  display: flex;
  gap: 0.5rem;
}

.auth-buttons button,
#auth-user-info button {
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
}

#auth-user-info p {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0 0 0.8rem 0;
  text-align: center;
}

#auth-user-info strong {
  color: var(--accent-green);
}

.error-msg {
  color: var(--accent-red);
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
  margin-top: 0.6rem;
  margin-bottom: 0;
  text-align: center;
}