:root {
  --bg: #020617;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent-start: #4f46e5;
  --accent-end: #ec4899;
  --border-subtle: rgba(148, 163, 184, 0.18);
  --danger: #f97373;
}
html {
  scroll-behavior: smooth;
}

/* reset & global */

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

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #020617 0, #020617 60%, #020617 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}

/* ===========================
   NAV
   =========================== */

.dp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: radial-gradient(circle at top, #020617 0, #020617 60%, #020617 100%);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
}

.dp-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dp-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.dp-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 25% 0%, #a855f7 0, #6366f1 40%, #0ea5e9 100%);
  box-shadow: 0 0 25px rgba(129, 140, 248, 0.6);
}

.dp-logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.dp-nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.dp-nav-links a {
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.dp-nav-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* cart button */

.dp-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.4rem 0.8rem;
  background: radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.24) 0, transparent 55%),
    #020617;
  color: #f9fafb;
  font-size: 0.86rem;
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.18s ease,
    border-color 0.18s ease, background 0.18s ease;
}

.dp-cart-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 181, 253, 0.8);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9),
    0 0 18px rgba(129, 140, 248, 0.65);
}

.dp-cart-badge {
  min-width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #a3e635);
  color: #020617;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* announcement */

/* Announcement bar container */
.dp-announcement {
  width: 100%;
  display: flex;
  justify-content: center;   /* centers the pill */
  align-items: center;
  padding: 1rem 1.5rem;
  margin-top: 0.75rem;
}

/* The pill itself */
.dp-announcement .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, #2A0134,#FF69B4);
  color: #eaf1ff;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* HERO */

/* Center the entire hero section */
.dp-hero {
  width: 100%;
  min-height: 65vh;
  display: flex;
  justify-content: center;       /* center horizontal */
  align-items: center;           /* center vertical */
  text-align: center;            /* center text */
  padding: 4rem 1.5rem;
  padding-top: 2rem;
}

/* Inner wrapper centered properly */
.dp-hero-inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;        /* stack text + hero card */
  align-items: center;           /* center items */
  gap: 2rem;
}

/* Center hero text area */
.dp-hero-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* Center hero buttons */
.dp-hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.dp-hero-rotating {
  color: var(--muted);
  font-size: 1rem;
}

.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #f9fafb;
  border-color: rgba(129, 140, 248, 0.8);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.9),
    0 0 22px rgba(129, 140, 248, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.95),
    0 0 28px rgba(236, 72, 153, 0.85);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  color: var(--muted);
  border-color: rgba(148, 163, 184, 0.4);
}

.btn-ghost:hover {
  border-color: rgba(209, 213, 219, 0.9);
  color: #e5e7eb;
}

/* STORE */

.dp-store {
  margin-top: 4rem;
}

.dp-store-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-end;
  margin-bottom: 1.8rem;
}

.dp-store-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.dp-store-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dp-input-wrap input,
.dp-select-wrap select {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 0.45rem 0.9rem;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.dp-input-wrap input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.dp-featured-grid,
.dp-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}

.dp-card {
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.dp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dp-card-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(55, 65, 81, 0.8);
  min-height: 120px;
  background-size: cover;
  background-position: center;
}

.dp-card-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.dp-card-variants {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.dp-card-variants select {
  width: 100%;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(75, 85, 99, 0.9);
  color: #e5e7eb;
  font-size: 0.82rem;
}

/* pagination */

.dp-pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* stock pill */

.dp-stock-pill {
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
}

.dp-stock-pill span.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.dot.in-stock {
  background: #22c55e;
}
.dot.low-stock {
  background: #facc15;
}
.dot.out {
  background: #f97373;
}

/* CART DRAWER */

#cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 70;
}

#cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

#cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #020617;
  border-left: 1px solid rgba(30, 64, 175, 0.7);
  box-shadow: 0 0 40px rgba(15, 23, 42, 0.9);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  z-index: 80;
  display: flex;
  flex-direction: column;
}

#cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#cart-close-btn {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.1rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 0.5rem;
}

.cart-item-img {
  width: 100%;
  height: 64px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: rgba(15, 23, 42, 0.95);
}

.cart-footer {
  padding: 0.9rem 1.1rem 1.2rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* CHECKOUT */

.checkout-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: flex-start;
}

.checkout-card {
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1.25rem 1.5rem;
}

.checkout-summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.86rem;
}

.checkout-summary-line {
  display: flex;
  justify-content: space-between;
}

.checkout-totals {
  margin-top: 0.9rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding-top: 0.75rem;
  font-size: 0.9rem;
}

.checkout-totals-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.checkout-totals-row.total {
  font-weight: 600;
}

.dp-card-element {
  margin-top: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.96);
}

.checkout-form-section {
  margin-top: 0.2rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.checkout-grid input {
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  font-size: 0.85rem;
  padding: 0.45rem 0.8rem;
}

.checkout-grid input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

/* AUTH */

.dp-section {
  margin-top: 3rem;
}

.dp-section-inner {
  max-width: 600px;
  margin: 0 auto;
}

.auth-inner h1 {
  margin-bottom: 0.4rem;
}

.auth-form {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.auth-form label span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.auth-form input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
}

/* ERROR */

.dp-error {
  color: var(--danger);
  font-size: 0.8rem;
}

/* FOOTER */

.dp-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  margin-top: 3rem;
  padding: 1.5rem 1.5rem 2rem;
}

.dp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--muted);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .dp-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .dp-hero-card {
    order: -1;
  }
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  main {
    padding: 4.2rem 1rem 3rem;
  }

  .dp-nav-inner {
    flex-wrap: wrap;
    row-gap: 0.4rem;
    padding-inline: 1rem;
  }

  .dp-nav-links {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    font-size: 0.82rem;
    gap: 1rem;
  }

  .dp-cart-btn {
    margin-left: auto;
  }

  .dp-store-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dp-store-filters {
    width: 100%;
    justify-content: space-between;
  }

  .checkout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
