* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #0f1115;
  color: #e6e9ef;
  line-height: 1.5;
}

a {
  color: #ff5a5f;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: #e50914;
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.06s ease, filter 0.2s ease, background 0.2s ease;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(1px);
}

.btn.secondary {
  background: #1e222b;
  color: #e6e9ef;
}

.btn.ghost {
  background: transparent;
  border: 1px solid #2a2f3a;
  color: #e6e9ef;
}

.input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #2a2f3a;
  background: #0c0f14;
  color: #e6e9ef;
  outline: none;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #a8b0bd;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #171a21;
  border-radius: 12px;
  overflow: hidden;
}

.table th, .table td {
  padding: 12px;
  border-bottom: 1px solid #222734;
  text-align: left;
}

.table th {
  background: #1e222b;
  color: #a8b0bd;
  font-weight: 600;
}

header {
  background: #171a21;
  border-bottom: 1px solid #222734;
}

header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.5px;
}

nav a {
  margin-right: 14px;
}

nav a:last-child {
  margin-right: 0;
}

main {
  padding: 24px 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: #171a21;
  border: 1px solid #222734;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .thumb {
  background: #0c0f14;
  height: 180px;
  display: grid;
  place-items: center;
}

.card .body {
  padding: 12px;
  display: grid;
  gap: 6px;
}

.card .name {
  font-weight: 700;
}

.card .price {
  color: #a8b0bd;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

@media (max-width: 800px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}
.cart-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.qty {
  display: inline-flex;
  align-items: stretch;
  gap: 6px;
}

.qty .btn {
  padding: 8px 10px;
}

footer {
  background: #171a21;
  border-top: 1px solid #222734;
  color: #a8b0bd;
}

footer .inner {
  padding: 16px 0;
}

html, body {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1 0 auto;
}

.site-footer {
  margin-top: auto;
}

/* Cart page layout fix */
.table-wrap,
h2.section-title,
h2,
.notice,
p {
  padding-left: 32px;
  padding-right: 32px;
}

.table {
  margin-top: 12px;
  width: calc(100% - 64px);
  margin-left: auto;
  margin-right: auto;
}

.home-hero .container {
  text-align: center;
}

.home-hero .btn {
  display: inline-block;
  margin: 1rem auto 0;
}

.notice {
  background: #0c131d;
  border: 1px solid #1b2433;
  padding: 12px;
  border-radius: 12px;
  color: #a8b0bd;
}

.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  z-index: 9999;
}

.toast {
  background: #171a21;
  border: 1px solid #222734;
  color: #e6e9ef;
  padding: 10px 12px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.checkout-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.checkout-page h2 {
  margin-left: 8px;
  margin-bottom: 20px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: 8px;
  max-width: 400px;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 8px;
  background: #1d1f26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #e8e9ee;
}

.checkout-form textarea {
  min-height: 100px;
  resize: vertical;
}

/* Navigation (header) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #17181d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: lowercase; /* requested */
  color: #eee;
  text-decoration: none;
}

.main-nav .nav-list {
  list-style: none; /* remove bullets */
  display: flex; /* horizontal */
  gap: 28px; /* evenly spaced */
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  color: #cfcfd6;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 2px;
  display: inline-block;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e53935, transparent);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: #ff6b6b;
}

.nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Product cards and grid */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.page {
  padding: 24px 0 64px;
}

.home-hero {
  padding: 48px 0 8px;
  background: linear-gradient(180deg, rgba(229, 57, 53, 0.08), transparent 55%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.home-hero .tag {
  color: #ff8585;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}
.home-hero .headline {
  margin: 8px 0 6px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #f1f1f3;
}
.home-hero .sub {
  color: #b8bac6;
  margin-bottom: 14px;
}

.home-grid {
  padding-top: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  background: #1d1f26;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 250px auto;
}

.card .thumb {
  background: #121319;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.card .body {
  padding: 12px 14px 14px;
}

.card .name {
  color: #e8e9ee;
  font-weight: 700;
  margin-bottom: 6px;
}

.card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card .price {
  color: #ffb4b4;
  font-weight: 700;
}

.card .actions .btn {
  width: 100%;
}

.section-title {
  margin: 18px 0 12px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #e8e9ee;
}

.hover-glow {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hover-glow:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 57, 53, 0.45);
  box-shadow: 0 6px 18px rgba(229, 57, 53, 0.12), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0 32px;
  color: #a9acb8;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  color: #111216;
  background: #ff6b6b;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn.secondary {
  background: #2a2d36;
  color: #e6e7ec;
}

.btn.ghost {
  background: transparent;
  color: #e6e7ec;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.filters .btn.active {
  background: rgba(244, 107, 104, 0.9);
  color: #fff;
  box-shadow: 0 4px 20px rgba(244, 107, 104, 0.3);
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

.filters .btn:not(.active):hover {
  filter: brightness(1.15);
}

#toast-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

#toast-overlay.show {
  opacity: 1;
}

.toast-card {
  pointer-events: auto;
  background: rgb(244, 107, 104);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
  color: #000;
  font-weight: 700;
  letter-spacing: 0.01em;
  max-width: min(84vw, 520px);
  text-align: center;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35), 0 6px 16px rgba(0, 0, 0, 0.25);
  /* motion */
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  animation: toast-pop 0.22s ease forwards, toast-hold 1.2s linear 0.22s forwards, toast-out 0.16s ease 1.42s forwards;
}

@keyframes toast-pop {
  from {
    transform: translateY(12px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes toast-hold {
  from {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
}
@keyframes toast-out {
  to {
    transform: translateY(-6px) scale(0.985);
    opacity: 0;
  }
}

/*# sourceMappingURL=main.css.map */
