/* =========================================================
   DARK / CHARCOAL THEME
   ---------------------------------------------------------
   - main background: #0b0b0d (near black)
   - panels: #16171b / #1e1f24
   - text: light gray
   - accent: muted teal (#ffffff) + amber for disclaimers
   ========================================================= */

/* ---------- RESET / BASE ---------- */
* {
  margin: 0;                 /* remove default margin */
  padding: 0;                /* remove default padding */
  box-sizing: border-box;    /* predictable sizing */
}

html, body {
  height: 100%;              /* allow full height */
}

body {
  font-family: "Satoshi", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;       /* white background */
  color: #e5e7eb;            /* light gray text */
  line-height: 1.5;          /* readability */
}

/* Make all form controls use Satoshi as well */
button,
input,
select,
textarea {
  font-family: "Satoshi", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* used on pages that need to hide before auth check */
.prehide {
  display: none;
}

/* generic hide utility */
.hidden {
  display: none !important;
}


/* =========================================================
   HEADER / NAV
   ---------------------------------------------------------
   - minimal gradient, mostly black
   - neutral links
   ========================================================= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.7rem;
  background: radial-gradient(circle at top, #131315 0%, #0b0b0d 100%);
  border-bottom: 1px solid rgba(229, 231, 235, 0.02);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo-area h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f3f4f6;            /* almost white */
  letter-spacing: 0.01em;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #ffffff;            /* neutral light gray */
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.35rem 0.55rem;
  border-radius: 9999px;
  transition: background 0.12s ease, color 0.12s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  background: rgba(209, 213, 219, 0.08); /* subtle gray hover */
  color: #ffffff;
}

/* small pill on the right for auth status */
.auth-status {
  font-size: 0.75rem;
  color: #f3f4f6;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(243, 244, 246, 0.05);
  white-space: nowrap;
}

/* =========================================================
   DISCLAIMER BAR
   ---------------------------------------------------------
   - amber on black, but darkened so it’s not bright
   ========================================================= */
.global-disclaimer {
  background: rgba(133, 130, 130, 0.2);           /* dark amber overlay */
  padding: 0.55rem 1.7rem;
  border-bottom: 1px solid rgba(133, 130, 130, 0.2);
  font-size: 0.80rem;
  color: #000000;
  text-align: center;
}

/* =========================================================
   MAIN WRAPPER
   ========================================================= */
.main-content {
  max-width: 1280px;        /* center column width */
  margin: 1.5rem auto;      /* center on page */
  padding: 0 1.5rem;        /* side padding */
}

.main-content1 {   /* Only controls headings color */
  max-width: 1100px;        /* center column width */
  margin: 1.5rem auto;      /* center on page */
  padding: 0 1.5rem;        /* side padding */
}


/* =========================================================
   HERO SECTION (HOME)
   ---------------------------------------------------------
   - dark panel, not blue
   ========================================================= */
.hero-section {
  background: #16171b;      /* charcoal panel */
  border: 1px solid rgba(229, 231, 235, 0.015);
  border-radius: 1rem;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.hero-section h1 {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
  color: #ffffff;           /* bright for heading */
}

.hero-section p {
  color: #cbd5e1;           /* slate gray text */
  font-size: 0.9rem;
}

/* =========================================================
   AUTH SECTION (REGISTER / SIGN IN)
   ---------------------------------------------------------
   - dark card
   - muted teal accents
   ========================================================= */
.auth-section {
  background: #16171b;
  border: 1px solid rgba(229, 231, 235, 0.02);
  border-radius: 1rem;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.auth-section h2 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: #f3f4f6;
}

.auth-section p {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 0.7rem;
}

/* tabs */
.auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.auth-tab {
  flex: 1;
  background: rgba(15, 15, 17, 0.4);
  border: none;
  border-radius: 9999px;
  padding: 0.38rem 0.5rem;
  font-size: 0.80rem;
  cursor: pointer;
  color: #d1d5db;
  transition: background 0.12s ease;
}

.auth-tab:hover {
  background: rgba(209, 213, 219, 0.08);
}

.active-tab {
  background: #ffffff;      /* muted teal accent */
  color: #0b0b0d;           /* dark text on teal */
}

/* form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.auth-form label {
  font-size: 0.73rem;
  color: #e5e7eb;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(229, 231, 235, 0.05);
  border-radius: 0.4rem;
  font-size: 0.80rem;
  background: #0f1013;
  color: #e5e7eb;
}

.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
  outline: none;
  border: 1px solid #ffffff;
}

.inline-checkbox {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.7rem;
  color: #cbd5e1;
}

.auth-form button {
  background: #ffffff;
  color: #0b0b0d;
  border: none;
  border-radius: 0.4rem;
  padding: 0.42rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: opacity 0.12s ease;
}

.auth-form button:hover {
  opacity: 0.9;
}

.auth-note {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 0.4rem;
}

/* =========================================================
   AGE GATE (MODAL) – DARK / BLACK
   ========================================================= */
.overlay-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(7, 7, 7, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
}

.age-box {
  background: #131315;
  border: 1px solid rgba(229, 231, 235, 0.04);
  border-radius: 0.9rem;
  padding: 1.6rem 1.4rem;
  max-width: 520px;
  width: 92%;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.55);
}

.age-box-scroll {
  max-height: 82vh;
  overflow-y: auto;
}

.age-box h1 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.age-box p {
  font-size: 0.75rem;
  color: #cbd5e1;
}

/* disclaimer inside age gate */
.age-disclaimer-block {
  background: rgba(148, 163, 184, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.09);
  padding: 0.6rem 0.55rem;
  border-radius: 0.45rem;
  margin: 0.7rem 0 0.85rem 0;
  font-size: 0.7rem;
  line-height: 1.4;
}

#age-confirm-btn {
  margin-top: 0.6rem;
  background: #ffffff;
  color: #0b0b0d;
  border: none;
  border-radius: 0.35rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.73rem;
  cursor: pointer;
}

.age-note {
  margin-top: 0.4rem;
  font-size: 0.67rem;
  color: #9ca3af;
}

/* =========================================================
   PRODUCT CARDS – DARK
   ========================================================= */
.product-card {
  background: #16171b;
  border: 1px solid rgba(229, 231, 235, 0.016);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.product-card h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: #f3f4f6;
}

.product-tagline {
  margin-bottom: 0.7rem;
  font-size: 0.75rem;
  color: #cbd5e1;
}

/* details panels */
details {
  background: #101115;
  border: 1px solid rgba(229, 231, 235, 0.02);
  border-radius: 0.4rem;
  padding: 0.38rem 0.5rem;
  margin-bottom: 0.5rem;
}

details summary {
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 500;
  color: #e5e7eb;
}

details p {
  font-size: 0.7rem;
  margin-top: 0.25rem;
  color: #cbd5e1;
  white-space: pre-line;
}

/* product disclaimer under each card */
.product-disclaimer {
  font-size: 0.65rem;
  color: #fca5a5;
  margin-top: 0.4rem;
  line-height: 1.3;
}

.add-to-cart {
  margin-top: 0.55rem;
  background: rgba(13, 148, 136, 0.06);
  border: 1px solid #ffffff;
  color: #e5e7eb;
  border-radius: 0.35rem;
  padding: 0.32rem 0.7rem;
  font-size: 0.68rem;
  cursor: pointer;
  transition: background 0.1s ease;
}

.add-to-cart:hover {
  background: #ffffff;
  color: #0b0b0d;
}

/* =========================================================
   CART PAGE – DARK
   ========================================================= */
.cart-subtext {
  font-size: 0.72rem;
  color: #000000;
  margin-bottom: 1rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #16171b;
  border: 1px solid rgba(229, 231, 235, 0.015);
  border-radius: 0.6rem;
  padding: 0.65rem 0.75rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.cart-item-info h3 {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.cart-item-info p {
  font-size: 0.65rem;
  color: #d1d5db;
}

.cart-item-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.cart-line-total {
  font-size: 0.73rem;
  font-weight: 600;
  color: #f3f4f6;
}

.cart-remove-btn {
  background: rgba(248, 113, 113, 0.04);
  border: 1px solid #ef4444;
  color: #fecaca;
  border-radius: 0.3rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.65rem;
  cursor: pointer;
}

.cart-remove-btn:hover {
  background: #ef4444;
  color: #0b0b0d;
}

.cart-summary {
  background: #16171b;
  border: 1px solid rgba(229, 231, 235, 0.01);
  border-radius: 0.5rem;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;   /* stack total, form, button */
  gap: 1.25rem;
  align-items: stretch;     /* children take full width */
}


.cart-total {
  font-size: 0.78rem;
  font-weight: 600;
}

.checkout-btn {
  align-self: flex-end;      /* push button to the right */
  background: #ffffff;
  color: #0b0b0d;
  border: none;
  border-radius: 0.35rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.74rem;
  cursor: pointer;
}


.checkout-btn:hover {
  opacity: 0.9;
}

.cart-message {
  background: rgba(127, 29, 29, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 0.5rem;
  padding: 0.55rem 0.6rem;
  font-size: 0.85rem;
  color: #000000;
  text-align: center;   /* center the text */
  width: 100%;          /* make the box span the full parent width */
}

/* Only for the blocked message bar on products page */
#blocked-message {
  display: block;      /* ensure it behaves like a full-width block */
  width: 100%;         /* stretch to the section width */
  text-align: center;  /* center the message + link */
}




/* =========================================================
   ABOUT PAGE – DARK
   ========================================================= */
main h1 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

main h2 {
  font-size: 1rem;
  margin: 1rem 0 0.35rem 0;
}

main p {
  font-size: 0.74rem;
  color: #d1d5db;
  margin-bottom: 0.55rem;
}

.black-p {      /* controls some p text need to edit */
  font-size: 0.90rem;
  color: #000000;
  margin-bottom: 0.55rem;
}

main ul {
  margin-left: 1rem;
  margin-bottom: 0.55rem;
}

main li {
  font-size: 0.72rem;
  color: #d1d5db;
  margin-bottom: 0.3rem;
}

.about-list {
  font-size: 0.90rem;
  color: #000000;
  margin-bottom: 0.3rem;
}

.about-h1 {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
  color: #000000;
  text-align: center;
}

.about-h2 {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
  color: #000000;
  text-align: center;
}
.left-h1 {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
  color: #000000;
  text-align: left;
}

.left-h2 {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
  color: #000000;
  text-align: left;
}

/* =========================================================
   FOOTER – DARK
   ========================================================= */
.site-footer {
  background: #131315;
  border-top: 1px solid rgba(229, 231, 235, 0.02);
  text-align: center;
  padding: 1rem 1.4rem;
  font-size: 0.80rem;
  color: #9ca3af;
  margin-top: 2rem;
}

/* ADD-ONLY: header logo polish */
.logo-img { width:200px; height:60px; object-fit:cover; display:block; filter:drop-shadow(0 0 8px rgba(0,0,0,.25)); transition:transform .12s ease; }
.logo-link:hover .logo-img { transform: translateY(-1px); }


/* ADD-ONLY: hero banner styling for home page */
.hero-section{
  position:relative;
  background:#16171b url("assets/img/hero-lab.jpg") center/cover no-repeat;
  padding:120px 16px;
  text-align:center;
  border-bottom:1px solid rgba(229,231,235,.06);
  border-radius: 1rem;
  overflow: hidden;
}
.hero-section::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(11,11,13,.55), rgba(11,11,13,.75));
  border-radius: inherit;
}
.hero-section > *{ position:relative; z-index:1; }


/* SMALLER SCREENS  */
/* ===== Mobile polish (≤ 600px) ===== */
@media (max-width: 600px) {
  /* Header: reduce padding; keep black bg if you set it */
  .site-header { padding: 8px 12px; }
  .site-header { flex-wrap: wrap; }

    /* Center header content on mobile */
  .site-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .logo-area,
  .main-nav,
  .auth-status {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .main-nav ul {
    justify-content: center;
  }

  .auth-status {
    text-align: center;
  }


   main img {
    max-width: 100%;   /* never overflow horizontally */
    height: auto;      /* preserve aspect ratio */
    display: block;    /* removes inline whitespace */
    margin: 0 auto 12px;

  }

   #products-toolbar {
    margin: 0 auto !important;
  }

  /* Nav: allow wrapping so items don’t overflow */
  .main-nav ul { flex-wrap: wrap; gap: 6px; }
  .main-nav a { padding: 6px 10px; }

  /* Hero: sensible vertical space without giant banners */
  .hero-section { padding: 32px 12px; text-align: center; }
  .hero-section .main-content { padding: 0; }

  /* Auth form: full-width but readable */
  .auth-form { width: 100%; max-width: none; padding: 20px 14px; }

  /* Product grid: keep cards readable on narrow screens */
  .grid { grid-template-columns: 1fr; gap: 12px; }  /* one per row */
  .product-card {
    display: block;             /* stack image above text on mobile */
    padding: 14px;
  }
  
  /* Collapsibles: easier tapping area */
  details { padding: 10px; }
  details > summary { padding: 10px; }

  /* Cart items: stacked layout */
  .cart-item { padding: 14px; }
  .cart-item-info p { margin: 6px 0; }

  /* Footer: stack links; ensure touch targets are comfortable */
  .footer-links { gap: 10px; }
}

/* === Products grid: responsive squares === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* exactly 2 per row */
  gap: 1rem;                             /* a bit more breathing room */
}


/* Square variant of your existing product-card */
.product-card.square {
  display: flex;
  flex-direction: column;
  min-height: auto;   /* was 620px */
  padding: 0.75rem;    /* tighten card interior (was 0.85rem if present) */
}

/* Larger, true-square image (overrides the fixed 160×160 thumb) */
.product-card.square .product-img {
  width: 60%;                 /* <— reduce from 100% to 88% */
  aspect-ratio: 2 / 3;        /* portrait box (keeps full bottle) */
  object-fit: contain;        /* no cropping */
  object-position: center top;
  background: #101115;
  border-radius: 0.55rem;
  border: 1px solid rgba(229,231,235,0.016);
  margin: 0 auto .75rem;      /* center the slightly smaller image */
}


/* Push controls to bottom so cards align */
.product-card.square .buy-row {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .6rem;
  align-items: center;
}

/* Quantity input sized for your scale */
.product-card.square .qty-input {
  width: 100%;
  max-width: 96px;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(229,231,235,0.05);
  border-radius: 0.8rem;
  background: #0f1013;
  color: #e5e7eb;
  font-size: 0.9rem;
}

/* Shared quantity input styling (products + cart) */
.qty-input {
  text-align: center;          /* center the number */
  border-radius: 0.8rem;
  border: 1px solid rgba(229,231,235,0.05);
}

/* Remove native number spinners so the rounded box looks clean */
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
} 


/* Keep your existing .add-to-cart colors/hover */
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card.square .qty-input { max-width: 82px; }
}



/* Products page: sidebar (search) + main grid layout */
.products-layout {
  display: grid;
  grid-template-columns: 1fr;         /* mobile: stack */
  gap: 1rem;
}

/* When we hide the sidebar, let the products section use full width */
.products-layout.no-sidebar {
  grid-template-columns: 1fr !important;
}


@media (min-width: 960px) {
  .products-layout {
    grid-template-columns: 280px 1fr; /* desktop: left sidebar, right grid */
    align-items: start;
  }
  /* keep sidebar inputs full width */
  #products-toolbar input[type="search"],
  #products-toolbar button { width: 100%; }
}



/* Cart checkout shipping layout */
.checkout-shipping {
  width: 100%;               /* use full width of cart-summary */
  max-width: 100%;           /* no extra constraint */
  margin: 0;                 /* let .cart-summary control spacing */
  padding: 1.75rem 2.25rem;
  border-radius: 12px;
  background-color: #16171b; /* same as cart item / summary box */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.checkout-shipping h2 {
  margin: 0 0 0.25rem;
  font-size: 1.3rem;
}

.checkout-shipping .shipping-note {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.shipping-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
}

.shipping-grid label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.shipping-grid input[type="text"],
.shipping-grid input[type="tel"] {
  margin-top: 0.25rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #444;
  background-color: #181818;
  color: #f5f5f5;
  width: 100%;
}

/* Single-column on small screens */
@media (max-width: 768px) {
  .checkout-shipping {
    padding: 1rem 1.2rem;
  }
  .shipping-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== Admin Orders Page ===== */

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

.admin-message {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #fbbf24;
}

.orders-table-wrapper {
  margin-top: 1.5rem;
  background: #16171b;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table thead {
  background: #1f2025;
}

.admin-table th,
.admin-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.admin-table th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-table tbody tr:hover {
  background: rgba(36, 37, 44, 0.9);
}

.admin-table code {
  font-size: 0.75rem;
}

.admin-empty {
  padding: 1rem 0.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.admin-actions-cell {
  white-space: nowrap;
}

/* small buttons */
.btn-small {
  display: inline-block;
  background: #e5e7eb;
  color: #111827;
  border: none;
  border-radius: 9999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  cursor: pointer;
  margin-right: 0.25rem;
}

.btn-small:hover:not(:disabled) {
  opacity: 0.9;
}

.btn-small:disabled {
  opacity: 0.4;
  cursor: default;
}

.btn-danger {
  background: #b91c1c;
  color: #f9fafb;
}



/* ===== Account menu in header ===== */

.header-account {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}

.account-menu-toggle {
  display: inline;
  border: none;
  background: none;
  color: #e5e7eb;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0 0 0.15rem; /* small left pad so it doesn't crowd the text */
}

.account-menu-toggle:hover {
  background: none;
  color: #ffffff;
}


.account-menu {
  position: absolute;
  top: 110%;
  right: 0;
  min-width: 180px;
  background: #16171b;
  border-radius: 0.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  padding: 0.35rem 0;
  z-index: 40;
}

.account-menu.hidden {
  display: none;
}

.account-menu-item {
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  background: none;
  border: none;
  color: #e5e7eb;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

/* make sure links stay non-underlined in all states */
.account-menu-item:link,
.account-menu-item:visited,
.account-menu-item:hover,
.account-menu-item:active {
  text-decoration: none;
}

.account-menu-item:hover:not(:disabled) {
  background: #1f2937;
}

.account-menu-item:disabled {
  opacity: 0.5;
  cursor: default;
}

.account-menu-danger {
  color: #fecaca;
}

/* ===== Account page ===== */

.account-main {
  max-width: 1100px;
  margin: 2.5rem auto 3rem;
  padding: 0 1.5rem;
}

.account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (max-width: 900px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
}

.account-card {
  background: #16171b;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(229, 231, 235, 0.02);
}

.account-card h2 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.account-note {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.85rem;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
}

.account-field {
  font-size: 0.9rem;
}

.account-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  opacity: 0.65;
  margin-bottom: 0.1rem;
}

.account-value {
  font-weight: 500;
}

/* Change password form */

.change-password-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.change-password-form input[type="password"] {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #0f1013;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.change-password-message {
  min-height: 1rem;
  font-size: 0.8rem;
  margin: 0.25rem 0;
}

.change-password-message.error {
  color: #fca5a5;
}

.change-password-message.success {
  color: #6ee7b7;
}

.btn-primary {
  margin-top: 0.5rem;
  background: #ffffff;
  color: #0b0b0d;
  border: none;
  border-radius: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Orders list */

.account-orders-section {
  margin-top: 2rem;
}

.account-message {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.account-orders-wrapper {
  margin-top: 1rem;
  background: #16171b;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.account-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.account-orders-table th,
.account-orders-table td {
  padding: 0.5rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(55, 65, 81, 0.6);
}

.account-orders-table thead {
  background: #1f2025;
}

.account-orders-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-orders-table tbody tr:hover {
  background: rgba(36, 37, 44, 0.9);
}

.account-orders-actions {
  white-space: nowrap;
}

/* Status badges */

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-badge.status-pending {
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
}

.status-badge.status-paid {
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
}

.status-badge.status-shipped {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.status-badge.status-cancelled {
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
}

/* Modal for order details */

.order-detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.order-detail-modal.hidden {
  display: none;
}

.order-detail-panel {
  position: relative;
  background: #16171b;
  border-radius: 0.75rem;
  padding: 1.5rem 1.75rem;
  max-width: 640px;
  width: 95%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.order-detail-close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  border: none;
  background: none;
  color: #e5e7eb;
  font-size: 1.1rem;
  cursor: pointer;
}

.order-detail-header h2 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.order-detail-sub {
  font-size: 0.85rem;
  opacity: 0.8;
}

.order-detail-total {
  margin-top: 0.4rem;
  font-weight: 500;
}

.order-detail-section {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.order-detail-section h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.order-detail-items {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.order-detail-items th,
.order-detail-items td {
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.6);
}

/* Force account orders message text to black */
#account-orders-message {
  color: #000000 !important;
}

#verify-message {
      color: black; /* or #000000 or rgb(0, 0, 0) */
    }


    
/* ---- Products search: hide native blue clear icon ---- */
#prod-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

#prod-search::-ms-clear {
  display: none;
}

/* Optional: ensure the search field itself stays on the dark theme */
#prod-search {
  color: #e5e7eb;
  background-color: #0f1013;
  border-color: rgba(229, 231, 235, 0.08);
}




/* ===== Toast notifications ===== */

.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  max-width: 320px;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.4;
  z-index: 9999;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  color: #e5e7eb;
  background: #101115;
  border: 1px solid rgba(55, 65, 81, 0.8);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-success {
  border-color: rgba(16, 185, 129, 0.7);
}

.toast-error {
  border-color: rgba(248, 113, 113, 0.7);
}

.toast-info {
  border-color: rgba(0, 0, 0, 0.7);
  background: #101115;
}

.toast-hidden {
  display: none;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  /* Reduce side padding on the main content area */
  .page-main.account-main,
  .page-main.admin-main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .account-orders-table,
  .admin-table.orders-table {
    min-width: 520px; /* table stays readable but scrolls inside wrapper */
  }

  .account-orders-table th,
  .account-orders-table td,
  .admin-table.orders-table th,
  .admin-table.orders-table td {
    font-size: 0.72rem;
    padding: 0.35rem 0.4rem;
  }

  .about-h1,
  .about-h2,
  .black-p,
  .left-h1,
  .left-h2 {
    text-align: center;
  }
  #checkout-btn {
    display: block;              /* so margins work cleanly */
    margin-left: auto;
    margin-right: auto;          /* centers horizontally */
  }
}


.link-button {
  margin-top: 0.4rem;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: #60a5fa;
  cursor: pointer;
  text-decoration: underline;
}

.link-button:hover {
  color: #93c5fd;
}


/* ============================
   CONTACT PAGE
   ============================ */

/* Scope to body.page-contact so other pages are unaffected */
.page-contact {
  background: #ffffff;
  color: #e5e7eb;
}

/* Centered card below header/disclaimer */
.page-contact .contact-main {
  max-width: 480px;
  margin: 2.5rem auto;              /* center horizontally */
  padding: 1.5rem;
  background: #0f1013;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

/* Heading + intro text */
.page-contact .contact-main h1 {
  text-align: center;
}

.page-contact .contact-intro {
  font-size: 0.9rem;
  color: #9ca3af;
  text-align: center;
  margin-bottom: 1rem;
}

/* Form as a centered column */
.page-contact #contact-form {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;  /* center column inside card */
}

/* Each field group */
.page-contact .contact-field {
  width: 100%;
  max-width: 420px;
  margin-bottom: 0.75rem;
}

/* Labels */
.page-contact .contact-field label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Inputs + textarea full width of the column */
.page-contact .contact-field input,
.page-contact .contact-field textarea {
  display: block;
  width: 100%;
  padding: 0.5rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #050609;
  color: #e5e7eb;
  font-size: 0.95rem;
}

.page-contact .contact-field textarea {
  min-height: 140px;
  resize: vertical;
}

/* Button matches field width */
.page-contact .contact-main button[type="submit"] {
  width: 100%;
  max-width: 420px;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
}

.page-contact .contact-main button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Status message centered */
.page-contact .status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  text-align: center;
}

.page-contact .status.error {
  color: #f97373;
}

.page-contact .status.success {
  color: #4ade80;
}

/* Mobile tweak */
@media (max-width: 480px) {
  .page-contact .contact-main {
    margin: 1.5rem auto;
    padding: 1.25rem;
  }
}
