:root {
  --primary: #16a34a;
  --primary-soft: rgba(22, 163, 74, 0.14);
  --bg: #020617;
  --bg-card: rgba(15, 23, 42, 0.98);
  --border-soft: rgba(148, 163, 184, 0.35);
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --danger: #f97373;
}

*,
*::before,
*::after { box-sizing: border-box; }

body.page {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(56,189,248,0.16), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(22,163,74,0.23), transparent 55%),
    #020617;
  color: var(--text-main);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.site-header.glass {
  backdrop-filter: blur(18px);
  background: linear-gradient(to right, rgba(15,23,42,0.92), rgba(15,23,42,0.75));
}
.hero {
  background:
    linear-gradient(135deg, rgba(15,23,42,0.9), rgba(37,99,235,0.7)),
    url("images/logo.webp") center/cover no-repeat;
}
.hero-inner {
  max-width: 540px;
  width: 100%;
  min-height: 240px;          /* tweak to match logo height */
  display: flex;
  flex-direction: column;
  justify-content: center;    /* vertically center text in this block */
}

.hero-inner h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.6rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-inner p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 38rem;    /* keep paragraph from getting too wide */
}

.hero-inner .btn-primary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  background: #facc15;
  color: #111827;
  font-weight: 600;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 18px;
  text-transform: uppercase;
}

.nav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 14px;
  position: relative;
  padding-bottom: 4px;
}

.nav a.active,
.nav a:hover {
  color: #e5e7eb;
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(to right, #22c55e, #0ea5e9);
}

.cart-link {
  font-weight: 600;
}

/* Layout */
.section {
  max-width: 1120px;
  margin: 32px auto;
  padding: 0 18px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title {
  font-size: 24px;
  margin: 0 0 4px;
}

.section-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

/* Buttons */
.btn,
.btn.primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s ease-out;
}

.btn.primary,
.btn {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #0b1120;
  box-shadow: 0 18px 45px rgba(34,197,94,0.32);
}

.btn.primary:hover,
.btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 20px 55px rgba(34,197,94,0.42);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: #22c55e;
  background: rgba(15,23,42,0.9);
}

.btn.full {
  width: 100%;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at 0 0, rgba(34,197,94,0.12), transparent 55%), var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 50px rgba(15,23,42,0.6);
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid rgba(148,163,184,0.16);
}

.product-info {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-info h3 {
  margin: 0;
  font-size: 15px;
}

.product-info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.price {
  font-weight: 700;
  font-size: 15px;
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.5);
}

/* Toolbar */
.products-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.products-toolbar input,
.products-toolbar select {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(46, 133, 255, 0.6);
  background: rgba(15,23,42,0.96);
  color: var(--text-main);
  font-size: 13px;
}

.products-toolbar input::placeholder {
  color: rgba(148,163,184,0.8);
}

/* Cart */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}

.cart-item img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  font-size: 13px;
}

.cart-item-details strong {
  display: block;
  margin-bottom: 4px;
}

.cart-item-qty input {
  width: 60px;
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.96);
  color: var(--text-main);
  font-size: 13px;
}

.cart-summary-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: radial-gradient(circle at 100% 0, rgba(34,197,94,0.22), transparent 55%), var(--bg-card);
  border: 1px solid rgba(74,222,128,0.45);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}

/* Checkout */
.section-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.checkout-summary-card {
  padding: 14px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  font-size: 14px;
}

.form-card {
  padding: 16px 16px 18px;
  border-radius: 18px;
  background: radial-gradient(circle at 0 0, rgba(56,189,248,0.24), transparent 55%), var(--bg-card);
  border: 1px solid rgba(59,130,246,0.5);
}

.form-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.form-card label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

.form-card input,
.form-card textarea {
  width: 100%;
  margin-top: 4px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.65);
  background: rgba(15,23,42,0.96);
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
}

.form-card textarea {
  border-radius: 14px;
  min-height: 70px;
  resize: vertical;
}

.status-text {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

/* Success */
.success-card {
  max-width: 480px;
  margin: 40px auto 0;
  padding: 22px 20px;
  border-radius: 22px;
  background: radial-gradient(circle at 0 0, rgba(34,197,94,0.28), transparent 60%), var(--bg-card);
  border: 1px solid rgba(34,197,94,0.7);
  box-shadow: 0 24px 60px rgba(22,163,74,0.55);
}

/* Footer */
.site-footer {
  max-width: 1120px;
  margin: 20px auto 0;
  padding: 14px 18px 24px;
  font-size: 12px;
  color: var(--text-soft);
  border-top: 1px solid rgba(148,163,184,0.2);
}

/* Helpers */
.center { text-align: center; }

/* Mobile */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .section-two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}
