/* PyroPrice — Custom Styles */
:root {
  --pyro-red: #e63946;
  --pyro-gold: #f4a522;
  --pyro-dark: #1a1a2e;
  --pyro-darker: #0f0f1a;
}

/* Admin bar */
.admin-bar {
  background: #1a1a1a;
  height: 36px;
  font-size: 0.82rem;
  border-bottom: 2px solid var(--pyro-gold);
}
.admin-bar-link {
  color: #ccc;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.admin-bar-link:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Nav */
.pyro-nav {
  background: var(--pyro-darker);
  border-bottom: 2px solid var(--pyro-red);
}

/* Hero */
.pyro-hero {
  background: linear-gradient(135deg, var(--pyro-darker) 0%, #1e0a2e 40%, #2a0a0a 100%);
  border-bottom: 3px solid var(--pyro-gold);
  padding: 5rem 0;
}
.fw-black { font-weight: 900 !important; }

/* Category cards */
.pyro-cat-card {
  border-radius: 14px;
  border: 1px solid #e9ecef;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  cursor: pointer;
}
.pyro-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(230,57,70,0.14) !important;
  border-color: var(--pyro-gold);
}
.pyro-cat-icon { font-size: 2.5rem; line-height: 1; }
.pyro-badge {
  background: var(--pyro-gold);
  color: #1a1a2e;
  font-weight: 700;
  padding: 0.3em 0.8em;
  border-radius: 20px;
  font-size: 0.78rem;
}

/* Admin edit button on cards */
.admin-edit-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(26,26,26,0.75);
  color: var(--pyro-gold);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.75rem;
  text-decoration: none;
  transition: background 0.15s;
  backdrop-filter: blur(4px);
}
.admin-edit-btn:hover { background: var(--pyro-red); color: #fff; }

/* Product cards */
.pyro-product-card {
  border-radius: 12px;
  border: 1px solid #e9ecef;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  overflow: hidden;
}
.pyro-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.13) !important;
}
.pyro-product-card:hover .pyro-product-overlay {
  opacity: 1;
}
.pyro-product-img-wrap { position: relative; overflow: hidden; }
.pyro-product-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  display: block;
  transition: transform 0.25s;
}
.pyro-product-card:hover .pyro-product-img { transform: scale(1.04); }
.pyro-product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}
.pyro-product-placeholder {
  height: 160px;
  background: linear-gradient(135deg, #1a1a2e, #2d1b3d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}
.pyro-desc-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price */
.pyro-price { color: var(--pyro-red); }
.pyro-link { color: var(--pyro-red); text-decoration: none; }
.pyro-link:hover { text-decoration: underline; }

/* Buttons */
.pyro-btn { background: var(--pyro-red); color: #fff; border: none; font-weight: 600; }
.pyro-btn:hover { background: #c1121f; color: #fff; }
.pyro-accent { color: var(--pyro-gold); }

/* Login page */
.pyro-login-bg { background: linear-gradient(135deg, var(--pyro-darker), #2d1b3d); }

/* Footer */
.pyro-footer { background: #f1f3f5; border-top: 1px solid #dee2e6; }

/* Admin sidebar */
.admin-body { background: #f8f9fa; }
.admin-sidebar {
  background: var(--pyro-darker);
  color: #e0e0e0;
  min-height: 100vh;
  border-right: 2px solid var(--pyro-red);
}
.admin-nav-link {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.75rem;
  color: #c0c0c0;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.admin-nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-nav-link.active { background: var(--pyro-red); color: #fff; }

/* Modal image */
#modalImage { border-radius: 10px; }
