:root {
  --bg: #f5fbfa;
  --panel: #ffffff;
  --ink: #13332f;
  --muted: #4e6d68;
  --brand: #0f7f72;
  --brand-2: #0aa38f;
  --line: #d7ece8;
  --shadow: 0 10px 30px rgba(6, 76, 67, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, #dff4f0, var(--bg));
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

input[type="search"] {
  flex: 1;
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
}

.admin-link {
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  background: linear-gradient(135deg, #0e7468, #149f8b);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.hero p {
  margin: 0;
  max-width: 760px;
  line-height: 1.6;
}

.catalog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 28px;
}

.grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.card-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: #e8f4f2;
}

.card-body {
  padding: 12px;
}

.sku {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9rem;
}

.name {
  margin: 6px 0;
  font-size: 1rem;
}

.spec,
.desc {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.9rem;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.qty {
  min-width: 16px;
  text-align: center;
}

.cart-btn {
  margin-left: auto;
  border: 0;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
}

.pulse {
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  from {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  to {
    transform: scale(1);
  }
}

.admin-wrap {
  max-width: 700px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.upload-box {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.upload-box button {
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.status {
  min-height: 1.5rem;
  color: var(--brand);
}

@media (max-width: 680px) {
  .topbar {
    flex-wrap: wrap;
  }

  input[type="search"] {
    max-width: 100%;
    width: 100%;
    order: 3;
  }
}
