
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: #0b0911;
  color: #fff;
  font-family: Arial, sans-serif;
}

header {
  padding: 19px 7%;
  background: #14101d;
  border-bottom: 1px solid #30213f;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: white;
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
}

.logo span, .hero span { color: #b36aff; }

button, .main-btn {
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  padding: 13px 19px;
  color: white;
  background: #9239df;
  font-weight: bold;
}

button:active { transform: scale(.97); }

.hero {
  min-height: 430px;
  padding: 75px 7%;
  background: radial-gradient(
    ellipse at 85% 40%, #48206b 0%, #1a1029 38%, #0b0911 75%
  );
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.hero-content { z-index: 1; }

.tag {
  color: #bd83ff;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: bold;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(42px, 8vw, 68px);
  line-height: 1.1;
}

.description {
  color: #aaa;
  margin: 20px 0 27px;
  font-size: 17px;
}

.hero-mark {
  font-size: clamp(150px, 25vw, 280px);
  font-weight: 900;
  color: #ffffff0b;
  -webkit-text-stroke: 3px #bd83ff55;
}

.main-btn {
  display: inline-block;
  text-decoration: none;
}

.store, .admin { padding: 55px 7%; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.section-heading h2 { font-size: 27px; }

#count {
  color: #aaa;
  font-size: 11px;
}

input, select, textarea {
  width: 100%;
  background: #191421;
  color: white;
  border: 1px solid #49305e;
  border-radius: 9px;
  padding: 14px;
  margin: 9px 0 17px;
  font: inherit;
}

input[type=file] { font-size: 12px; }
textarea { min-height: 85px; resize: vertical; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 10px 0 27px;
}

.filters button {
  background: #21172c;
  border: 1px solid #49305e;
}

.filters button.active { background: #9239df; }

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
  gap: 17px;
}

.card {
  background: #191421;
  border: 1px solid #39244b;
  border-radius: 14px;
  overflow: hidden;
  transition: .2s;
}

.card:hover {
  border-color: #a855f7;
  transform: translateY(-3px);
}

.product-image {
  width: 100%;
  height: 155px;
  object-fit: cover;
  background: #251832;
}

.card-body { padding: 17px; }
.card h3 { margin: 9px 0; }
.card p { color: #aaa; font-size: 13px; line-height: 1.5; }

.price {
  color: #c18aff;
  margin: 14px 0;
}

.card .main-btn { width: 100%; }

.empty {
  display: none;
  color: #aaa;
  text-align: center;
  padding: 30px;
}

.admin {
  background: #110d19;
  border-top: 1px solid #39244b;
}

.form-box {
  background: #191421;
  padding: 22px;
  border: 1px solid #39244b;
  border-radius: 14px;
}

.form-box h3 { margin-bottom: 20px; }
.form-box label { font-size: 13px; color: #c9b5dc; }

.full { width: 100%; margin-top: 8px; }

.secondary { background: #352442; }

.preview {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 9px;
}

.manage-title { margin: 30px 0 15px; }

.manage-item {
  padding: 15px;
  margin-bottom: 10px;
  background: #191421;
  border: 1px solid #39244b;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.manage-actions { display: flex; gap: 6px; }
.manage-actions button { padding: 9px; font-size: 11px; }
.delete { background: #9d3048; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #000d;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-box {
  width: 100%;
  max-width: 420px;
  background: #191421;
  border: 1px solid #70419a;
  border-radius: 16px;
  padding: 23px;
  position: relative;
}

.close {
  float: right;
  padding: 8px 12px;
}

.detail-image {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: 10px;
  margin: 20px 0;
}

.modal-box h2 { margin: 15px 0; }
.modal-box p { color: #aaa; line-height: 1.6; }

.hidden { display: none !important; }

footer {
  text-align: center;
  padding: 35px 15px;
  border-top: 1px solid #30213f;
  color: #aaa;
}

footer p { margin: 10px; font-size: 12px; }

@media(max-width:550px) {
  .hero { min-height: 390px; padding: 55px 6%; }
  .hero-mark { font-size: 130px; }
  .store, .admin { padding: 40px 6%; }
  .manage-item { align-items: flex-start; flex-direction: column; }
}
