/* =========================================================
   Cardboard Colosseum™ – Global Styles
   ========================================================= */

/* ---------- RESET ---------- */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--page-bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

/* ---------- THEME VARIABLES ---------- */
/* Light mode = default (bright content, dark header) */

:root {
  --page-bg: #f3f4f6;
  --card-bg: #ffffff;
  --card-bg-soft: #f9fafb;

  --header-bg: #111827;
  --header-bg-soft: #020617;
  --header-border: rgba(31, 41, 55, 0.9);

  --border-subtle: rgba(148, 163, 184, 0.45);

  --accent: #facc15;
  --accent-soft: rgba(250, 204, 21, 0.16);
  --accent-strong: #fbbf24;

  --text-main: #111827;
  --text-muted: #4b5563;
  --text-soft: #6b7280;

  --danger: #ef4444;

  --radius-sm: 0.45rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.4rem;

  --shadow-soft: 0 22px 45px rgba(15, 23, 42, 0.25);
}

/* Dark mode – full black/gold arena */

html[data-theme="dark"] {
  --page-bg: #050608;
  --card-bg: #020617;
  --card-bg-soft: #020617;

  --header-bg: #020617;
  --header-bg-soft: #000000;
  --header-border: rgba(17, 24, 39, 0.95);

  --border-subtle: rgba(55, 65, 81, 0.85);

  --text-main: #f9fafb;
  --text-muted: #e5e7eb;
  --text-soft: #9ca3af;
}

body {
  background-color: var(--page-bg);
  color: var(--text-main);
}

/* ---------- UTILITIES ---------- */

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.text-muted { color: var(--text-muted); }
.text-soft  { color: var(--text-soft); }

.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* =========================================================
   TOP BAR (HOME)
   ========================================================= */

.topbar {
  background: linear-gradient(to bottom, var(--header-bg-soft), var(--header-bg));
  border-bottom: 1px solid var(--header-border);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-left {
  display: flex;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
}

.brand-link:hover .topbar-title {
  color: var(--accent-strong);
}

.topbar-logo {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--accent-strong);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.7);
}

.topbar-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-strong);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.topbar-title .tm {
  font-size: 0.7rem;
  opacity: 0.8;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle,
.icon-btn,
.nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #020617;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7);
  transition: 150ms ease;
}

.theme-toggle:hover,
.icon-btn:hover,
.nav-icon:hover {
  transform: translateY(-1px);
  border-color: var(--accent-strong);
  background: #030712;
  color: #fefce8;
  box-shadow: 0 20px 48px rgba(250, 204, 21, 0.35);
}



/* =========================================================
   NAV ROW (HOME)
   ========================================================= */

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2rem 1rem;
  gap: 1rem;
  border-bottom: 1px solid var(--header-border);
  background: linear-gradient(to bottom, var(--header-bg), #020617);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links > a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: 120ms ease;
}

.nav-links > a:hover {
  background: rgba(31, 41, 55, 0.9);
  color: #fefce8;
  transform: translateY(-1px);
}

.nav-links > a.active {
  background: var(--accent-soft);
  border-color: rgba(250, 204, 21, 0.7);
  color: var(--accent-strong);
}

/* -------- Dropdown -------- */

.nav-dropdown {
  position: relative;
  padding-bottom: 0.4rem;
}

.nav-dropbtn {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: 120ms ease;
}

.nav-dropdown:hover .nav-dropbtn {
  background: rgba(31, 41, 55, 0.9);
  color: #fefce8;
}

.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #020617;
  border-radius: var(--radius-md);
  box-shadow: 0 22px 40px rgba(0,0,0,0.9);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem;
  display: none;
  z-index: 50;
}

.nav-dropdown-content.open,
.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.nav-dropdown-content a {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-soft);
}

.nav-dropdown-content a:hover {
  background: rgba(31, 41, 55, 0.95);
  color: #fefce8;
}

/* Search bubble */

.nav-search-bubble {
  min-width: 220px;
  max-width: 320px;
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-search-bubble input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #020617;
  color: #e5e7eb;
  font-size: 0.9rem;
}

/* =========================================================
   MAIN HEADER (INNER PAGES)
   ========================================================= */

.main-header {
  border-bottom: 1px solid var(--header-border);
  background: linear-gradient(to bottom, var(--header-bg-soft), var(--header-bg));
  padding: 0.75rem 2rem 1.1rem;
}

.nav-row-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  gap: 1rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--accent-strong);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.7);
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent-strong);
}

.nav-row-2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.nav-row-2 > a,
.nav-row-2 .dropbtn {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  background: transparent;
  transition: 120ms ease;
}

.nav-row-2 > a:hover,
.nav-row-2 .dropbtn:hover {
  background: rgba(31,41,55,0.9);
  color: #fefce8;
}

/* dropdown for inner pages */

.dropdown {
  position: relative;
  padding-bottom: 0.4rem; /* expand hover area */
}

.dropbtn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-content {
  position: absolute;
  top: 100%;   /* snug under button */
  left: 0;
  min-width: 220px;
  background: #020617;
  border-radius: var(--radius-md);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem;
  display: none;
  z-index: 50;
}

.dropdown-content.open,
.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-soft);
}

.dropdown-content a:hover {
  background: rgba(31, 41, 55, 0.95);
  color: #fefce8;
}

/* =========================================================
   CATEGORY QUICK SWITCH (PRODUCT PAGES)
   ========================================================= */

.category-switch {
  width: 100%;
  padding: 0.6rem 2rem;
  background: var(--header-bg-soft);
  border-bottom: 1px solid var(--header-border);
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.category-switch a {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #111827;
  color: #e5e7eb;
  font-size: 0.85rem;
  border: 1px solid transparent;
  transition: 120ms ease;
}

.category-switch a:hover {
  background: rgba(250, 204, 21, 0.15);
  border-color: var(--accent-strong);
  color: #fefce8;
}

.category-switch a.active {
  background: var(--accent-strong);
  color: #111827;
  font-weight: 600;
}

/* =========================================================
   HERO (HOME)
   ========================================================= */

.hero {
  position: relative;
  padding: 2.5rem 2rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2rem;
  align-items: stretch;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.7), transparent 65%);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  filter: brightness(0.85);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.75);
}

.hero-content {
  position: relative;
  background: radial-gradient(circle at top left, rgba(0, 0, 0, 0.9), transparent 55%),
              linear-gradient(to bottom right, #020617, #111827);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.8rem 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

.hero-content h2 {
  font-size: 2.3rem;
  margin-bottom: 0.6rem;
  color: var(--accent-strong);
}

.hero-content p {
  color: #e5e7eb;
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

/* hero buttons */

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease,
              background 120ms ease, border-color 120ms ease;
  text-align: center;
}

.btn-primary {
  background: var(--accent-strong);
  color: #111827;
  font-weight: 600;
  box-shadow: 0 16px 34px rgba(250, 204, 21, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--accent);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(250, 204, 21, 0.8);
  color: var(--accent-strong);
}

.btn-secondary:hover {
  background: rgba(250, 204, 21, 0.1);
}

/* =========================================================
   CATEGORIES (HOME)
   ========================================================= */

.categories {
  padding: 0 2rem 2rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
}

.category-card {
  background: #020617;
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  text-align: center;
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.95rem;
  color: #e5e7eb;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
  transition: transform 120ms ease, box-shadow 120ms ease,
              border-color 120ms ease, background 120ms ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-strong);
  box-shadow: 0 18px 40px rgba(250, 204, 21, 0.4);
}

/* =========================================================
   NEWEST ARRIVALS / FEATURED (HOME) + PRODUCT GRIDS
   ========================================================= */

.new-arrivals {
  padding: 0 2rem 2.4rem;
}

.home-events-banner {
  width: min(100%, 820px);
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  justify-items: center; /* Prevents oversized stretching when fewer items exist */
}

/* =========================================================
   UPDATED PRODUCT CARD (with 300px consistent height + new actions)
   ========================================================= */

.product-card {
  width: 220px;               /* FIXED WIDTH (prevents giant scaling) */
  max-width: 100%;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.product-card img {
  width: 100%;
  height: 300px;              /* YOUR SELECTED OPTION B SIZE */
  object-fit: cover;
  border-radius: var(--radius-sm);
}

html[data-theme="dark"] .product-card {
  background: #020617;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-strong);
  box-shadow: 0 20px 45px rgba(250, 204, 21, 0.25);
}

.price {
  font-weight: 600;
}

/* =========================================================
   PRODUCT CARD — NEW BUTTON SYSTEM
   (vertical layout: View → Add to Cart)
   ========================================================= */

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.view-btn,
.add-cart-btn {
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg-soft);
  color: var(--text-main);
  transition: 0.2s ease;
}

.view-btn:hover,
.add-cart-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent-strong);
}

/* =========================================================
   PRODUCT CARD — QUANTITY CONTROLS (+ / –)
   ========================================================= */

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.qty-btn {
  padding: 0.25rem 0.6rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg-soft);
  cursor: pointer;
  transition: 0.2s ease;
}

.qty-btn:hover {
  border-color: var(--accent-strong);
}

.qty-input {
  width: 38px;
  text-align: center;
  padding: 0.25rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
}

/* =========================================================
   SHOP PAGE
   ========================================================= */

.shop-page {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.2rem 2rem 2.5rem;
}

/* filters panel */

.filters-panel {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

html[data-theme="dark"] .filters-panel {
  background: #020617;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
}

.filters-panel h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.filters-panel label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.6rem;
  margin-bottom: 0.15rem;
}

.filters-panel select {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--card-bg-soft);
  color: var(--text-main);
  font-size: 0.85rem;
}

.products-section h2 {
  margin-bottom: 0.8rem;
}

/* =========================================================
   GENERIC PAGES / TEXT
   ========================================================= */

.about-page,
.account-page,
.contact-page,
.calendar-page {
  padding: 1.8rem 2rem 2.5rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.about-text {
  margin-top: 0.75rem;
  line-height: 1.6;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* =========================================================
   AUTH PAGES (LOGIN / REGISTER)
   ========================================================= */

.auth-page {
  padding: 1.8rem 2rem 2.5rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 1.6rem;
  align-items: stretch;
}

.auth-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem 1.9rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

html[data-theme="dark"] .auth-card {
  background: #020617;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

.auth-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.auth-card p {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin-bottom: 1.1rem;
}

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

.auth-form input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--card-bg-soft);
  color: var(--text-main);
  font-size: 0.9rem;
}

.auth-form input::placeholder {
  color: var(--text-soft);
}

.btn-primary.full-width {
  width: 100%;
  margin-top: 0.4rem;
}

.auth-switch {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  text-align: center;
}

.auth-switch a {
  color: var(--accent-strong);
}

/* side panel */

.auth-side {
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.16), transparent 60%),
              linear-gradient(to bottom right, #020617, #111827);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem 1.9rem;
  color: #e5e7eb;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

.auth-side h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--accent-strong);
}

.auth-side p {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 0.7rem;
}

.auth-side ul {
  list-style: none;
  font-size: 0.88rem;
}

.auth-side li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  color: #e5e7eb;
}

.auth-side li span {
  font-size: 0.9rem;
}

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

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

.contact-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem 1.9rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

html[data-theme="dark"] .contact-card {
  background: #020617;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--card-bg-soft);
  color: var(--text-main);
  font-size: 0.9rem;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-info {
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.12), transparent 60%),
              linear-gradient(to bottom right, #020617, #111827);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.9rem;
  color: #e5e7eb;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

.contact-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--accent-strong);
}

.contact-info p {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  margin-top: auto;
  padding: 1.6rem 2rem 1.9rem;
  border-top: 1px solid var(--header-border);
  background: linear-gradient(to top, #020617, var(--header-bg));
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.footer-grid h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  color: #9ca3af;
}

.footer-grid p {
  font-size: 0.87rem;
  color: #e5e7eb;
}

.footer-grid a {
  color: #e5e7eb;
}

.footer-grid a:hover {
  color: var(--accent-strong);
}

.footer-copy {
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: center;
}

/* simple inner-page footer */

.main-footer {
  margin-top: auto;
  padding: 1.4rem 2rem 1.6rem;
  border-top: 1px solid var(--header-border);
  background: #020617;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-content {
    order: -1;
  }

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

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

  .category-switch {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 640px) {
  .topbar,
  .nav-row,
  .main-header,
  .hero,
  .categories,
  .new-arrivals,
  .shop-page,
  .about-page,
  .auth-page,
  .contact-page,
  .calendar-page,
  .footer,
  .main-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .topbar-title {
    font-size: 1.15rem;
  }

  .nav-links {
    row-gap: 0.35rem;
  }

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

  .recommended .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    width: 100%;
  }
}

/* =========================================================
   SMALL EXTRA: EVENTS CALENDAR ROUNDING
   ========================================================= */

#events-calendar iframe {
  border-radius: 10px;
  overflow: hidden;
}

/* =========================================================
   RE-DECLARED CATEGORY SWITCH (matching your live file)
   ========================================================= */

.category-switch {
  width: 100%;
  padding: 0.6rem 2rem;
  background: var(--header-bg-soft);
  border-bottom: 1px solid var(--header-border);
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.category-switch a {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #111827;
  color: #e5e7eb;
  font-size: 0.85rem;
  border: 1px solid transparent;
  transition: 120ms ease;
}

.category-switch a:hover {
  background: rgba(250, 204, 21, 0.15);
  border-color: var(--accent-strong);
  color: #fefce8;
}

.category-switch a.active {
  background: var(--accent-strong);
  color: #111827;
  font-weight: 600;
}

/* =========================================================
   PRODUCT ACTIONS + QTY CONTROLS (already merged)
   ========================================================= */

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.view-btn,
.add-cart-btn {
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg-soft);
  color: var(--text-main);
  transition: 0.2s ease;
}

.view-btn:hover,
.add-cart-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent-strong);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.qty-btn {
  padding: 0.25rem 0.6rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg-soft);
  cursor: pointer;
}

.qty-btn:hover {
  border-color: var(--accent-strong);
}

.qty-input {
  width: 38px;
  text-align: center;
  padding: 0.25rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
}

/* =========================================================
   ACCOUNT DASHBOARD
   ========================================================= */

.account-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.6rem;
  padding: 1.8rem 2rem 2.5rem;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
}

.account-sidebar {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.6rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.account-sidebar-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent-strong);
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.account-nav button {
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--card-bg-soft);
  color: var(--text-main);
  text-align: left;
  border: 1px solid var(--border-subtle);
  transition: 0.2s ease;
}

.account-nav button:hover {
  background: var(--accent-soft);
  border-color: var(--accent-strong);
}

.account-nav button.active {
  background: var(--accent-soft);
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  font-weight: 600;
}

.logout-btn {
  margin-top: 1rem;
  background: var(--danger);
  color: white;
  text-align: center;
  border-color: transparent !important;
}

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

.account-content {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem 2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.account-section {
  display: none;
}

.account-section.active {
  display: block;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 500px;
}

.account-form label {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.account-form input {
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--card-bg-soft);
  color: var(--text-main);
}

.account-success {
  color: #22c55e;
  margin-top: 0.6rem;
}

.account-error {
  color: var(--danger);
  margin-top: 0.6rem;
}

.address-list {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

/* =====================================================
   Add to Cart Button – Light & Dark Mode Safe
===================================================== */

.add-to-cart-btn {
  display: inline-block;
  padding: 10px 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;

  background-color: #ffffff;
  color: #111111;

  border: 2px solid #fbff01;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.add-to-cart-btn:hover {
  background-color: #fbff01;
  color: #ffffff;
}

/* Dark mode override */
[data-theme="dark"] .add-to-cart-btn {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #fbff01;
}

[data-theme="dark"] .add-to-cart-btn:hover {
  background-color: #fbff01;
  color: #111111;
}

/* =====================================================
   Toast Notifications
===================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: #111;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  border-left: 4px solid #2ecc71;
  opacity: 0;
  transform: translateY(10px);
  animation: toast-in 0.3s ease forwards;
}

[data-theme="light"] .toast {
  background-color: #ffffff;
  color: #111;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

@keyframes toast-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* =====================================================
   Cart Quantity Controls
===================================================== */

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid #2ecc71;
  background: transparent;
  color: #2ecc71;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cart-qty-btn:hover {
  background-color: #2ecc71;
  color: #111;
}

.cart-qty-value {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
}

/* Dark mode */
[data-theme="dark"] .cart-qty-btn {
  color: #2ecc71;
  border-color: #2ecc71;
}

[data-theme="dark"] .cart-qty-btn:hover {
  background-color: #2ecc71;
  color: #111;
}

/* =====================================================
   Cart Count Badge
===================================================== */

.cart-icon-wrapper {
  position: relative;
}

.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: #e74c3c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.cart-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  line-height: 1;
  display: none;
}

.icon-btn { position: relative; }

/* ================= CART ITEM LAYOUT FIX ================= */

.cart-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

.cart-item-image {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-details {
  flex: 1;
}

.cart-item-price {
  font-size: 0.9rem;
  opacity: 0.85;
}

.cart-item-total {
  font-weight: 600;
  min-width: 90px;
  text-align: right;
}

/* =========================
   ACCOUNT PAGE
========================= */

.account-page {
  display: flex;
  max-width: 1200px;
  margin: 2rem auto;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
}

.account-sidebar {
  width: 220px;
  background: #111;
  color: white;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.account-sidebar h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.account-sidebar button {
  background: transparent;
  border: none;
  color: #ccc;
  text-align: left;
  padding: 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}

.account-sidebar button:hover,
.account-sidebar button.active {
  background: #222;
  color: #fff;
}

.account-sidebar .danger {
  margin-top: auto;
  background: #b91c1c;
  color: white;
}

.account-content {
  flex: 1;
  padding: 2rem;
}

.account-panel {
  display: none;
}

.account-panel.active {
  display: block;
}

.user-indicator {
  font-size: 0.85rem;
  margin-right: 1rem;
  color: var(--text-soft);
}

/* ================================
   ACCOUNT PAGE LAYOUT
================================ */

.account-page {
  display: flex;
  justify-content: center;
  padding: 4rem 1.5rem 6rem;
}

.account-wrap {
  width: 100%;
  max-width: 1100px;
}

/* Header */
.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.account-title {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.account-subtitle {
  color: #c9c9c9;
  font-size: 0.95rem;
}

.account-header-actions {
  display: flex;
  gap: 0.75rem;
}

/* Grid */
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.account-card-full {
  grid-column: 1 / -1;
}

/* Cards */
.account-card {
  background: linear-gradient(145deg, #050914, #0b1224);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 0 0 1px rgba(255, 200, 0, 0.15);
}

.account-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Rows */
.account-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.account-row:last-child {
  border-bottom: none;
}

.account-label {
  color: #aaa;
  font-size: 0.9rem;
}

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

/* Buttons */
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.account-actions .btn-primary,
.account-actions .btn-secondary {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
}

/* Muted text */
.muted {
  color: #b5b5b5;
  font-size: 0.95rem;
  line-height: 1.5;
}

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

  .account-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ================================
   ACCOUNT PAGE – LIGHT MODE FIXES
================================ */

html[data-theme="light"] .account-card {
  background: #ffffff;
  color: #111;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

html[data-theme="light"] .account-label {
  color: #555;
}

html[data-theme="light"] .account-value {
  color: #111;
}

html[data-theme="light"] .muted {
  color: #666;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden { display: none; }

.modal-content {
  background: white;
  padding: 1.5rem;
  max-width: 720px;
  width: 100%;
  border-radius: 10px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.close-btn {
  float: right;
  cursor: pointer;
  font-size: 1.5rem;
}

/* ================================
   ACCOUNT PAGE
================================ */

.account-page {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.account-header h2 {
  margin: 0;
}

.account-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.account-card {
  background: var(--card-bg, #ffffff);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.account-card.full-width {
  grid-column: 1 / -1;
}

.account-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.account-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
}

.account-row:last-child {
  border-bottom: none;
}

.account-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.address-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.address-form button {
  grid-column: 1 / -1;
}

.muted-text {
  color: #6b7280;
  font-size: 0.9rem;
}

/* ================================
   CART MODAL
================================ */

#cartModal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

#cartModal.open {
  display: block;
}

.cart-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.cart-modal {
  position: relative;
  background: #fff;
  max-width: 420px;
  margin: 15vh auto;
  padding: 1.75rem;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  text-align: center;
}

.cart-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

/* Make logout button obvious in dark mode too */
.btn-danger {
  border: none;
  cursor: pointer;
}

[data-theme="dark"] .btn-danger {
  background: #ef4444;
  color: #fff;
}

/* ================= ACCOUNT PAGE POLISH ================= */

.account-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.account-header h2 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

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

.account-card {
  padding: 1.75rem 2rem;
  border-radius: 18px;
}

.account-card.full-width {
  grid-column: 1 / -1;
}

.account-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.account-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.account-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

/* Inputs */
.account-card input {
  width: 100%;
  margin-top: 0.35rem;
}

/* Logout visibility */
.btn-danger {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
}

[data-theme="dark"] .btn-danger {
  background: #dc2626;
  color: white;
}

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

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

.cart-item-image {
  width: 80px;
  height: auto;
  border-radius: 6px;
}

.cart-price {
  font-weight: 600;
}

.low-stock {
  color: #c62828;
  font-weight: 600;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.sold-out-label {
  color: #999;
  font-weight: 600;
}

.qty-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ================= PRODUCT CARD POLISH ================= */

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.product-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* ================= SOLD OUT ================= */

.sold-out-card {
  opacity: 0.55;
}

.sold-out-card img {
  filter: grayscale(100%);
}

.sold-out-card .add-btn {
  background: #ccc;
  cursor: not-allowed;
}

/* ================= LOW STOCK ================= */

.low-stock {
  color: #c62828;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* ================= CART UI ANIMATION ================= */

.cart-ui {
  position: relative;
}

.cart-ui .qty-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: all 0.25s ease;
}

.cart-ui.active .qty-controls {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.cart-ui.active .add-btn {
  display: none;
}

.qty-controls button {
  padding: 0.4rem 0.7rem;
  font-size: 1rem;
}

/* ================= EMPTY STATE ================= */

.empty-state {
  text-align: center;
  font-size: 1.1rem;
  color: #777;
}

/* =========================================================
   PRODUCT CARD WIDTH + IMAGE VISIBILITY
========================================================= */

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
}

.product-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 240px;
}

/* =========================================================
   ADD TO CART BUTTON — RESTORED STYLE
========================================================= */

.cart-ui .add-btn {
  background: #f5c518;            /* yellow */
  color: #111;                    /* black text */
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s ease, transform 0.15s ease;
}

.cart-ui .add-btn:hover {
  background: #e0b400;
  transform: translateY(-1px);
}

/* Dark mode safety */
[data-theme="dark"] .cart-ui .add-btn {
  background: #f5c518;
  color: #000;
}

/* =========================================================
   QUANTITY CONTROLS — MATCH BUTTON STYLE
========================================================= */

.qty-controls {
  background: transparent;
}

.qty-controls button {
  background: #f5c518;
  color: #111;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.qty-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Dark mode */
[data-theme="dark"] .qty-controls button {
  background: #f5c518;
  color: #000;
}

/* =========================================================
   SOLD OUT — GREYED BUT CONSISTENT
========================================================= */

.sold-out-card {
  opacity: 0.55;
}

.sold-out-card img {
  filter: grayscale(100%);
}

.sold-out-card .add-btn {
  background: #999;
  color: #222;
  cursor: not-allowed;
}

/* =========================================================
   LOW STOCK WARNING
========================================================= */

.low-stock {
  color: #c62828;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* =========================================================
   CART UI TRANSITION (SMOOTH MORPH)
========================================================= */

.cart-ui .qty-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: all 0.25s ease;
}

.cart-ui.active .qty-controls {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.cart-ui.active .add-btn {
  display: none;
}

/* ================= SEARCH ================= */

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  z-index: 999;
}

.search-results.active {
  display: block;
}

.search-item {
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-item:hover {
  background: rgba(255, 215, 0, 0.15);
}

.search-item.helper {
  font-style: italic;
  color: var(--text-muted);
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

/* ================================
   PRODUCT DETAIL LAYOUT
================================ */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
}

.product-hero {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.product-hero img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.product-info {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.product-info h1 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
}

.product-info p#productPrice {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.product-description {
  margin-top: 1rem;
  line-height: 1.55;
  color: var(--text-soft);
  white-space: pre-line;
}

.recommended {
  grid-column: 1 / -1;
  margin-top: 1rem;
}

.recommended h2 {
  margin-bottom: 0.75rem;
}

.recommended .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1rem 2rem;
  }
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

/* ================================
   PRODUCT DETAIL LAYOUT
================================ */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
}

.product-hero {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.product-hero img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.product-info {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.product-info h1 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
}

.product-info p#productPrice {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.stock-note {
  margin: 0.15rem 0 0.5rem;
  color: var(--danger);
  font-weight: 600;
  font-size: 0.95rem;
}

.product-description {
  margin-top: 1rem;
  line-height: 1.55;
  color: var(--text-soft);
  white-space: pre-line;
}

.recommended {
  grid-column: 1 / -1;
  margin-top: 1rem;
}

.recommended h2 {
  margin-bottom: 0.75rem;
}

.recommended .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1rem 2rem;
  }
}

/* ================================
   CARD ACTIONS (HOME/SHOP)
================================ */
.card-actions-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.card-actions-row .add-to-cart-btn,
.card-actions-row .add-btn,
.card-actions-row .view-btn {
  width: 100%;
  text-align: center;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

/* ================================
   PRODUCT DETAIL LAYOUT
================================ */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
}

.product-hero {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.product-hero img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.product-info {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.product-info h1 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
}

.product-info p#productPrice {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.stock-note {
  margin: 0.15rem 0 0.5rem;
  color: var(--danger);
  font-weight: 600;
  font-size: 0.95rem;
}

.product-description {
  margin-top: 1rem;
  line-height: 1.55;
  color: var(--text-soft);
  white-space: pre-line;
}

.recommended {
  grid-column: 1 / -1;
  margin-top: 1rem;
}

.recommended h2 {
  margin-bottom: 0.75rem;
}

.recommended .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1rem 2rem;
  }
}

/* ================================
   CARD ACTIONS (HOME/SHOP)
================================ */
.card-actions-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.card-actions-row .add-to-cart-btn,
.card-actions-row .add-btn,
.card-actions-row .view-btn {
  width: 100%;
  text-align: center;
}

.product-card {
  cursor: pointer;
}

.product-card .view-btn,
.product-card .add-btn,
.product-card .add-to-cart-btn {
  cursor: pointer;
}

/* ================================
   QUICK VIEW MODAL (GLOBAL)
================================ */
#productModal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#productModal.open {
  display: flex;
}

#productModal .product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

#productModal .product-modal {
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.4rem;
  max-width: 540px;
  width: 90%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 0.5rem;
  text-align: center;
}

#productModal img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

#productModal .modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

/* ...product layout styles unchanged... */

/* ================================
   CARD ACTIONS (HOME/SHOP)
================================ */
.card-actions-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.card-actions-row .add-to-cart-btn,
.card-actions-row .add-btn,
.card-actions-row .view-btn {
  width: 100%;
  text-align: center;
}

.product-card {
  cursor: pointer;
}

.product-card .view-btn,
.product-card .add-btn,
.product-card .add-to-cart-btn {
  cursor: pointer;
}

/* ================================
   QUICK VIEW MODAL (GLOBAL)
================================ */
#productModal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#productModal.open {
  display: flex;
}

#productModal .product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

#productModal .product-modal {
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.4rem;
  max-width: 540px;
  width: 90%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 0.5rem;
  text-align: center;
}

#productModal img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

#productModal .modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}


.account-page {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1.5rem 3.5rem;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.account-header h2 {
  margin: 0;
  font-size: 1.9rem;
}

.account-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.account-card {
  background: linear-gradient(135deg, #ffffff, #f7f8fb);
  border-radius: 16px;
  padding: 1.5rem 1.65rem;
  box-shadow: 0 16px 45px rgba(0,0,0,0.08);
  border: 1px solid #eef0f6;
}

.account-card.full-width {
  grid-column: 1 / -1;
}

.account-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.account-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
}

.account-row:last-child {
  border-bottom: none;
}

.account-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.address-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.address-form button {
  grid-column: 1 / -1;
}

.account-card input {
  border: 1px solid #d9deea;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: #fff;
}

.account-card input:focus {
  outline: 2px solid rgba(255, 196, 21, 0.25);
}

.account-subtext {
  color: #6b7280;
  font-size: 0.95rem;
  margin-top: -0.35rem;
  margin-bottom: 0.75rem;
}

.muted-text {
  color: #6b7280;
}

.account-page {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1.5rem 3.5rem;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.account-header h2 {
  margin: 0;
  font-size: 1.9rem;
}

.account-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.account-card {
  background: linear-gradient(135deg, #ffffff, #f7f8fb);
  border-radius: 16px;
  padding: 1.5rem 1.65rem;
  box-shadow: 0 16px 45px rgba(0,0,0,0.08);
  border: 1px solid #eef0f6;
}

.account-card.full-width {
  grid-column: 1 / -1;
}

.account-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.account-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
}

.account-row:last-child {
  border-bottom: none;
}

.account-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.address-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.address-form button {
  grid-column: 1 / -1;
}

.account-card input {
  border: 1px solid #d9deea;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: #fff;
}

.account-card input:focus {
  outline: 2px solid rgba(255, 196, 21, 0.25);
}

.account-subtext {
  color: #6b7280;
  font-size: 0.95rem;
  margin-top: -0.35rem;
  margin-bottom: 0.75rem;
}

.muted-text {
  color: #6b7280;
}

.strong-outline {
  border: 1px solid var(--accent-strong, #f7c223);
}

/* Dark mode adjustments */
html[data-theme="dark"] .account-card {
  background: linear-gradient(135deg, #0b1221, #0f172a);
  border: 1px solid #1f2937;
  box-shadow: 0 16px 45px rgba(0,0,0,0.35);
}

html[data-theme="dark"] .account-card input {
  background: #0f172a;
  border: 1px solid #1f2937;
  color: #e5e7eb;
}

html[data-theme="dark"] .account-card input:focus {
  outline: 2px solid rgba(247, 194, 35, 0.45);
}

html[data-theme="dark"] .account-row {
  border-bottom: 1px solid #1f2937;
}

html[data-theme="dark"] .muted-text {
  color: #cbd5e1;
}

.account-page {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1.5rem 3.5rem;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.account-header h2 {
  margin: 0;
  font-size: 1.9rem;
}

.account-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.account-card {
  background: linear-gradient(135deg, #ffffff, #f7f8fb);
  border-radius: 16px;
  padding: 1.5rem 1.65rem;
  box-shadow: 0 16px 45px rgba(0,0,0,0.08);
  border: 1px solid #eef0f6;
}

.account-card.full-width {
  grid-column: 1 / -1;
}

.account-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.account-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
}

.account-row:last-child {
  border-bottom: none;
}

.account-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.address-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.address-form button {
  grid-column: 1 / -1;
}

.account-card input {
  border: 1px solid #d9deea;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: #fff;
}

.account-card input:focus {
  outline: 2px solid rgba(255, 196, 21, 0.25);
}

.account-subtext {
  color: #6b7280;
  font-size: 0.95rem;
  margin-top: -0.35rem;
  margin-bottom: 0.75rem;
}

.muted-text {
  color: #6b7280;
}

.strong-outline {
  border: 1px solid var(--accent-strong, #f7c223);
}

/* Dark mode adjustments */
html[data-theme="dark"] .account-card {
  background: linear-gradient(135deg, #0b1221, #0f172a);
  border: 1px solid #1f2937;
  box-shadow: 0 16px 45px rgba(0,0,0,0.35);
}

html[data-theme="dark"] .account-card input {
  background: #0f172a;
  border: 1px solid #1f2937;
  color: #e5e7eb;
}

html[data-theme="dark"] .account-card input:focus {
  outline: 2px solid rgba(247, 194, 35, 0.45);
}

html[data-theme="dark"] .account-row {
  border-bottom: 1px solid #1f2937;
}

html[data-theme="dark"] .muted-text {
  color: #cbd5e1;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .account-page {
    padding: 0 1rem 2.5rem;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-card {
    padding: 1.15rem 1.25rem;
  }

  .account-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .address-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .account-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-header h2 {
    font-size: 1.6rem;
  }

  .account-card h3 {
    font-size: 1.05rem;
  }

  .account-card input {
    font-size: 0.95rem;
  }
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.order-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.85rem;
  background: #fff;
}

.order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

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

.order-lines {
  margin: 0 0 0.5rem 0;
  padding-left: 1rem;
}

.order-link {
  color: var(--accent-strong);
  text-decoration: underline;
}

html[data-theme="dark"] .order-item {
  background: #0f172a;
  border-color: #1f2937;
}

html[data-theme="dark"] .order-link {
  color: #f7c223;
}

#productModal .product-modal {
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.4rem;
  max-width: 540px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 0.5rem;
  text-align: center;
}

.cart-item-right {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.remove-btn {
  border: 1px solid #ef4444;
  background: transparent;
  color: #b91c1c;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.remove-btn:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #dc2626;
}

[data-theme="dark"] .remove-btn {
  border-color: #f87171;
  color: #fca5a5;
  background: transparent;
}

[data-theme="dark"] .remove-btn:hover {
  background: rgba(248, 113, 113, 0.15);
  color: #fecdd3;
  border-color: #fb7185;
}

.cart-item-right {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.remove-btn {
  border: 1px solid #ef4444;
  background: transparent;
  color: #b91c1c;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.remove-btn:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #dc2626;
}

[data-theme="dark"] .remove-btn {
  border-color: #f87171;
  color: #fca5a5;
  background: transparent;
}

[data-theme="dark"] .remove-btn:hover {
  background: rgba(248, 113, 113, 0.15);
  color: #fecdd3;
  border-color: #fb7185;
}

/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --bg: #f8fafc;
  --text-main: #0f172a;
  --text-soft: #475569;
  --text-muted: #94a3b8;
  --card-bg: #fff;
  --card-bg-soft: #f1f5f9;
  --border-color: #e2e8f0;
  --border-subtle: #e2e8f0;
  --accent: #fbbf24;
  --accent-strong: #f59e0b;
  --accent-text: #1f2937;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* Dark theme */
html[data-theme="dark"] {
  --bg: #020617;
  --text-main: #e2e8f0;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --card-bg: #0b1224;
  --card-bg-soft: #0f172a;
  --border-color: #1f2937;
  --border-subtle: #1f2937;
  --accent: #fbbf24;
  --accent-strong: #f59e0b;
  --accent-text: #0b1224;
}

/* Resets */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hide spinners on number inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* Utility classes */
.container {
  width: min(1200px, 94%);
  margin: 0 auto;
}

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

.hidden {
  display: none !important;
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(120deg, #111827, #0b1224);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.topbar-title {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.tm {
  font-size: 0.7rem;
  opacity: 0.9;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: #111827;
  color: #fbbf24;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.22);
}

.icon-btn {
  background: #fbbf24;
  color: #111827;
  border: none;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  box-shadow: 0 12px 20px rgba(251, 191, 36, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 26px rgba(251, 191, 36, 0.45);
}

.btn-primary.sold-out {
  background: #d1d5db;
  color: #111827;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary.sold-out:hover {
  transform: none;
  background: #d1d5db;
}

/* ================================
   ACCOUNT PAGE REFINEMENT
================================ */

.account-page {
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}

.account-shell {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--card-bg, #ffffff);
  border-radius: 24px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: grid;
  gap: 2rem;
}

.account-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.account-hero-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #111827;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 12px 20px rgba(245, 158, 11, 0.25);
}

.account-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.account-hero h2 {
  margin: 0;
  font-size: 2rem;
}

.account-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.5rem;
}

.account-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

.account-card--full {
  width: 100%;
}

.account-card--orders {
  display: flex;
  flex-direction: column;
}

.account-form {
  display: grid;
  gap: 0.6rem;
}

.account-label {
  margin-top: 0.65rem;
  font-weight: 600;
  color: #374151;
}

.account-note {
  margin-top: 0.75rem;
}

.account-card input {
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
}

.orders-list {
  margin-top: 0.75rem;
}

html[data-theme="dark"] .account-shell {
  background: #0b1220;
  border: 1px solid rgba(71, 85, 105, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .account-card {
  background: linear-gradient(135deg, #0f172a, #101827);
  border: 1px solid #1f2937;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .account-eyebrow {
  color: #94a3b8;
}

html[data-theme="dark"] .account-label {
  color: #e2e8f0;
}

@media (max-width: 900px) {
  .account-shell {
    padding: 2rem 1.5rem;
  }

  .account-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .account-shell {
    padding: 1.6rem 1.25rem;
  }

  .account-hero {
    align-items: flex-start;
  }

  .account-hero h2 {
    font-size: 1.7rem;
  }
}
