/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Poppins", sans-serif;
  background: #020617;
  color: #e5e7eb;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ===== UTILITIES ===== */
.container {
  width: 92%;
  max-width: 1120px;
  margin: 0 auto;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.brand-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: conic-gradient(from 180deg, #ec4899, #8b5cf6, #22c55e, #f97316, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #020617;
  font-size: 18px;
}
.brand-title {
  font-weight: 600;
  font-size: 1rem;
}
.brand-subtitle {
  font-size: 0.75rem;
  color: #9ca3af;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}
.nav-links a {
  color: #e5e7eb;
  opacity: 0.9;
}
.nav-links a:hover {
  color: #f97316;
}
.nav-login {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
}
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: #0f172a;
  color: #f9fafb;
  cursor: pointer;
  font-size: 0.85rem;
}
#cart-count {
  background: #f97316;
  color: white;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* ===== HERO ===== */
.hero {
  padding: 60px 0 40px;
  background: radial-gradient(circle at top left, #1f2937 0, #020617 50%, #020617 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.hero-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero-title span {
  background: linear-gradient(90deg, #f97316, #ec4899, #22c55e, #38bdf8);
  -webkit-background-clip: text;
  color: transparent;
}
.hero-subtitle {
  font-size: 0.98rem;
  color: #9ca3af;
  max-width: 480px;
  margin-bottom: 20px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: #9ca3af;
}
.hero-badges span {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 4px 10px;
}

/* HERO CARD */
.hero-card {
  background: radial-gradient(circle at top, rgba(236,72,153,0.7), rgba(15,23,42,1));
  border-radius: 16px;
  padding: 18px 16px 16px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.8);
}
.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(248,250,252,0.3);
  margin-bottom: 8px;
}
.hero-card h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.hero-card p {
  font-size: 0.9rem;
  color: #e5e7eb;
}
.hero-price {
  margin-top: 8px;
  color: #fed7aa;
  font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}
.btn-primary {
  background: linear-gradient(135deg, #ec4899, #8b5cf6, #22c55e);
  color: #f9fafb;
}
.btn-primary:hover {
  filter: brightness(1.05);
}
.btn-ghost {
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  background: transparent;
}
.btn-ghost:hover {
  border-color: #f9fafb;
}
.btn-small {
  font-size: 0.78rem;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
}
.btn-small:hover {
  border-color: #f97316;
}

/* ===== SECTIONS ===== */
.section {
  padding: 36px 0 32px;
}
.section-dark {
  background: #020617;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.section-title {
  font-size: 1.3rem;
  font-weight: 600;
}
.section-subtitle {
  font-size: 0.9rem;
  color: #9ca3af;
}

/* ===== PRODUCTS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.product-card {
  background: #020617;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(15,23,42,0.9);
}
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.product-info {
  padding: 10px 10px 12px;
}
.product-name {
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.product-desc {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 8px;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  font-size: 0.95rem;
  color: #f97316;
  font-weight: 700;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail-inner {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 30px;
  align-items: flex-start;
}
.product-detail-img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}
.product-detail-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.product-detail-description {
  margin-bottom: 10px;
  color: #d1d5db;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}
.contact-list {
  list-style: none;
  margin-top: 12px;
  font-size: 0.9rem;
  color: #d1d5db;
}
.contact-list li {
  margin-bottom: 6px;
}
.contact-card {
  background: #020617;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 18px 16px;
}
.form-field {
  margin-bottom: 10px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148,163,184,0.4);
  background: #020617;
  color: #e5e7eb;
  font-size: 0.9rem;
}
.form-field textarea {
  resize: vertical;
}
.form-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ===== AUTH FORMS ===== */
.form-wrapper {
  padding: 50px 0;
}
.form-card {
  max-width: 420px;
  margin: 0 auto;
  background: #020617;
  border-radius: 14px;
  padding: 22px 20px 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.form-card h2 {
  margin-bottom: 8px;
}
.form-card p {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 16px;
}

/* ===== ABOUT CARD ===== */
.about-card {
  background: #020617;
  border-radius: 14px;
  padding: 20px 18px;
  border: 1px solid rgba(148,163,184,0.35);
  font-size: 0.95rem;
  color: #e5e7eb;
}
.about-card p {
  margin-bottom: 10px;
}
.about-card ul {
  margin: 10px 0 10px 18px;
  font-size: 0.9rem;
}

/* ===== CART PANEL (slide-out) ===== */
.cart-panel {
  position: fixed;
  top: 0;
  right: -360px;
  width: 320px;
  max-width: 80%;
  height: 100%;
  background: #020617;
  border-left: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: -20px 0 50px rgba(0,0,0,0.9);
  z-index: 120;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease-out;
}
.cart-panel.open {
  right: 0;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(31,41,55,1);
}
.cart-header h2 {
  font-size: 1rem;
}
.cart-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1.1rem;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding-top: 8px;
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(31,41,55,0.85);
  font-size: 0.85rem;
}
.cart-item-name {
  font-size: 0.86rem;
}
.cart-item-qty {
  font-size: 0.78rem;
  color: #9ca3af;
}
.cart-item-price {
  font-size: 0.85rem;
  color: #f97316;
  font-weight: 600;
}
.cart-footer {
  padding-top: 10px;
  border-top: 1px solid rgba(31,41,55,0.85);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cart-checkout {
  width: 100%;
}
.cart-note {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #9ca3af;
}

/* CART PAGE BOX */
.cart-card {
  max-width: 620px;
  margin: 0 auto;
  background: #020617;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(148,163,184,0.35);
}

/* ===== TOAST ===== */
#toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
}
.toast {
  background: #020617;
  color: #f9fafb;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  margin-top: 6px;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER ===== */
footer {
  padding: 18px 0 26px;
  border-top: 1px solid rgba(31,41,55,1);
  margin-top: 40px;
  font-size: 0.85rem;
  color: #9ca3af;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .product-detail-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .nav-links {
    gap: 10px;
    font-size: 0.8rem;
  }
  .hero-title {
    font-size: 1.7rem;
  }
}