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

:root {
  --bg: #020617;
  --bg-inner: #020617;
  --card: #02081f;
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: #1f2937;
  --accent: #22c55e;
  --accent-soft: rgba(34,197,94,0.16);
  --accent-dark: #16a34a;
  --danger: #ef4444;
  --radius-lg: 18px;
  --radius-xl: 26px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%);
  color: var(--text);
}

body {
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: inherit;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(3,7,18,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(31,41,55,0.9);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1.06rem;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  position: relative;
  padding-bottom: 3px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #3b82f6);
  transition: width 0.18s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 16px;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  background: rgba(15,23,42,0.85);
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text);
}

.cart-button--ghost {
  background: transparent;
  border-color: transparent;
}

.cart-count {
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(34,197,94,0.15), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(59,130,246,0.2), transparent 60%);
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 2.6rem;
  padding: 2.6rem 0 2.8rem;
}

.hero-kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-size: 2.35rem;
  line-height: 1.15;
}

.accent {
  color: var(--accent);
}

.hero-sub {
  margin: 0 0 1.4rem;
  color: var(--muted);
  max-width: 32rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #22c55e, #3b82f6);
  color: #020617;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(22,163,74,0.55);
  text-decoration: none;
}

.btn-full {
  width: 100%;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* SHOP */
.shop-section {
  padding: 2.6rem 0 3.1rem;
  background: #020617;
}

.shop-inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
}

.shop-sidebar {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 1.45rem 1.3rem;
  border: 1px solid var(--border);
  align-self: flex-start;
}

.sidebar-title {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.sidebar-link {
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.8rem;
  margin-bottom: 0.3rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--muted);
}

.sidebar-link.active,
.sidebar-link:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.sidebar-note {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.sidebar-note ul {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.3rem;
  margin-bottom: 0.7rem;
}

.shop-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

#resultsCount {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.shop-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.sort-select {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem;
}

.shop-banner {
  background: rgba(15,23,42,0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55,65,81,0.9);
  padding: 0.7rem 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

/* products grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.product-card {
  background: var(--card);
  border-radius: 22px;
  padding: 1.1rem 1.05rem 1.05rem;
  border: 1px solid rgba(31,41,55,0.9);
  box-shadow: 0 18px 40px rgba(15,23,42,0.9);
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-badge {
  position: absolute;
  top: 0.85rem;
  left: 1rem;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-weight: 600;
}

.product-image-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.7rem;
}

/* Modern vial illustration */
.product-image {
  position: relative;
  width: 90px;
  height: 150px;
  margin: 0 auto;
  background: transparent !important;
}

.product-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background:
    radial-gradient(circle at 22% 12%, rgba(255,255,255,0.9), transparent 55%),
    radial-gradient(circle at 80% 25%, rgba(255,255,255,0.5), transparent 60%),
    linear-gradient(to bottom, #e5f2ff 0%, #e0ecff 40%, #bfdcff 75%, #93c5fd 100%);
  border: 1.6px solid rgba(148,163,184,0.9);
  box-shadow:
    0 18px 40px rgba(15,23,42,0.95),
    inset 0 -40px 0 #38bdf8,
    inset 0 -8px 12px rgba(15,23,42,0.25);
}

.product-image::after {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 18px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(to bottom, #e5e7eb, #d1d5db);
  box-shadow: 0 4px 8px rgba(15,23,42,0.5);
}

.product-title {
  font-size: 0.94rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.product-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-weight: 700;
  font-size: 0.98rem;
}

.product-price span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* FAQ */
.faq-section {
  padding: 2.9rem 0 3.1rem;
  background: #020617;
  border-top: 1px solid var(--border);
}

.faq-section h2 {
  margin: 0 0 1.5rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.05rem;
  border: 1px solid var(--border);
}

.faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* CONTACT */
.contact-section {
  padding: 2.8rem 0 3.2rem;
  background: #020617;
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.2rem;
  font-size: 0.9rem;
}

.contact-list li {
  margin-bottom: 0.35rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.email-format {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

.email-format pre {
  background: #020617;
  border-radius: 0.75rem;
  padding: 0.65rem 0.8rem;
  overflow-x: auto;
  font-size: 0.78rem;
}

.contact-form {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--border);
}

.form-row {
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.25rem;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #020617;
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
}

/* Cart drawer & modal */
.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  width: 360px;
  max-width: 100%;
  height: 100%;
  background: #020617;
  box-shadow: -20px 0 45px rgba(15,23,42,0.95);
  transform: translateX(105%);
  transition: transform 0.22s ease-out;
  z-index: 60;
  border-left: 1px solid var(--border);
}

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

.cart-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart-drawer-header {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem;
}

.cart-footer {
  padding: 1rem 1.15rem 1.25rem;
  border-top: 1px solid var(--border);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}

.cart-item-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.cart-item-remove {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
}

.cart-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-note {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 70;
}

.modal.open {
  pointer-events: auto;
  opacity: 1;
}

.modal-dialog {
  background: #020617;
  border-radius: var(--radius-xl);
  padding: 1.7rem 1.6rem 1.45rem;
  max-width: 480px;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(15,23,42,0.95);
  position: relative;
}

.product-modal-dialog {
  max-width: 520px;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.3rem;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 55;
}

.backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* product modal – no image version */
.product-modal-body--no-image {
  display: block;
}

/* ========================= */
/* CHECKOUT PAGE – LIGHT UI  */
/* ========================= */

.checkout-body {
  background: #f5f5f5;
  color: #111827;
}

.checkout-body .site-header {
  background: #020617;
  border-bottom: 1px solid #111827;
}

.checkout-main {
  padding: 2.2rem 0 3.2rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.checkout-title {
  margin: 0 0 1.1rem;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.checkout-section-title {
  margin-top: 1.4rem;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.checkout-coupon {
  font-size: 0.86rem;
  margin: 0 0 0.8rem;
}

.checkout-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-row-checkbox {
  margin-top: 0.4rem;
}

.form-row-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* override inputs ONLY on checkout page to be white bubbles */
.checkout-body .checkout-form .form-row input,
.checkout-body .checkout-form .form-row textarea,
.checkout-body .checkout-form .form-row select {
  background: #ffffff;
  border-radius: 3px;
  border: 1px solid #d4d4d4;
  color: #111827;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.03);
}

.checkout-body .checkout-form .form-row textarea {
  min-height: 90px;
}

.shipping-details {
  margin-top: 0.8rem;
  padding-top: 1rem;
  border-top: 1px dashed #d4d4d4;
  display: none;
}

.shipping-details.visible {
  display: block;
}

/* ORDER SUMMARY */
.checkout-column--summary {
  align-self: flex-start;
}

.order-summary {
  background: #ffffff;
  border-radius: 0;
  border: 1px solid #d4d4d4;
  padding: 1.4rem 1.3rem 1.6rem;
  font-size: 0.86rem;
}

.order-summary h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.order-summary-row--heading {
  font-weight: 600;
  border-bottom-width: 2px;
}

.order-summary-row--total {
  font-weight: 700;
}

.order-summary-items {
  padding: 0.4rem 0;
}

.order-summary-item-line {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.order-summary-item-title {
  font-size: 0.86rem;
}

.order-summary-item-meta {
  font-size: 0.78rem;
  color: #6b7280;
}

.order-summary-shipping {
  font-size: 0.82rem;
}

/* Payment section */
.order-summary-payment {
  margin-top: 1.1rem;
}

.checkout-payment-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  margin: 0 0 0.25rem;
}

.checkout-payment-label img {
  width: 22px;
  height: 22px;
  border-radius: 999px;
}

.checkout-note {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  color: #6b7280;
}

/* BTCPay button styling – big black bar */
.btcpay-form {
  width: 100%;
}

.btcpay-button-primary {
  width: 100%;
  padding: 0.95rem 1rem;
  border: none;
  background: #000000;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.btcpay-button-primary:hover {
  background: #111111;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 2.1rem;
  }

  .shop-inner {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.9rem;
  }

  .sidebar-title,
  .sidebar-note {
    display: none;
  }

  .sidebar-link {
    width: auto;
    white-space: nowrap;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    margin-top: 1.5rem;
  }
}