:root {
  --teal: #2aa9c9;          /* Main blue/teal */
  --teal-dark: #1f8fa9;
  --dark-bg: #2f2f2f;       /* Main background */
  --dark-panel: #3a3a3a;    /* Panels / cards */
  --white: #ffffff;
  --muted-white: #e6e6e6;
  --divider: #2aa9c9;
}
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--dark-bg);
  color: var(--white);
}

h1, h2, h3, legend {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

a {
  color: var(--teal);
  text-decoration: none;
}
.header {
  background: #222222;
  padding: .75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 6px; /* reduced from big spacing */
  height: 150px; /* force compact header */
  box-sizing: border-box;
}

/* Left side (logo + title) */
.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Fix HUGE logo */
.logo {
  height: 420px; /* 👈 key fix */
  width: auto;
  object-fit: contain;
}

/* Text sizing */
.header h1 {
  font-size: 28px;
  margin: 0;
}

/* Login link */
.header-login a {
  font-size:18px;
  text-decoration: none;
  color: #fff;
  padding-right: 30px;
}


.brand {
  font-family: 'Oswald', sans-serif;
  font-size: 2.4rem;
  letter-spacing: 2px;
}

.top-links {
  margin-top: .5rem;
  font-size: .95rem;
  opacity: .9;
}

.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--dark-panel);
  border-radius: 6px;
}
fieldset {
  border: none;
  border-top: 3px solid var(--divider);
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

legend {
  padding-right: 1rem;
  font-size: 1.1rem;
  color: var(--white);
}

label {
  display: block;
  margin-bottom: .75rem;
  font-weight: 600;
}

input, select {
  width: 100%;
  padding: .6rem;
  margin-top: .25rem;
  border-radius: 4px;
  border: none;
  background: #222;
  color: var(--white);
}
.item-option {
  display: grid;
  grid-template-columns: 24px 1fr 90px;
  align-items: center;
  gap: 10px;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.item-name {
  font-family: 'Oswald', sans-serif;
  letter-spacing: .5px;
}

.item-qty {
  background: #111;
}
button,
.primary {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: .75rem 1.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover {
  background: var(--teal-dark);
}
.stat-card {
  background: #222;
  padding: 12px 14px;
  border-left: 5px solid var(--teal);
  border-radius: 6px;
  min-height: 100px;
}

.stat-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.stat-value {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  color: var(--teal);
  margin: 0;
  line-height: 1.1;
}

.page-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.content {
  flex: 1;
  padding: 2rem 2.5rem;
  background: #2b2b2b;
}

.breadcrumbs {
  color: var(--teal);
  font-size: .9rem;
  margin-bottom: 1rem;
}
.app-layout {
  display: flex;
  min-height: calc(100vh - 120px);
}

.sidebar {
  width: 220px;
  background: #1e1e1e;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar a {
  display: block;
  padding: .75rem 1rem;
  margin-bottom: .5rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  font-size: 24px;
  color: white;
  text-decoration: none;
  border-left: 4px solid transparent;
}

.nav-main a:hover,
.admin-menu a:hover {
  background: #222;
}

/* Push admin section to bottom */
.nav-admin {
  margin-top: auto;
}

/* Admin button */
.admin-toggle {
  width: 100%;
  background: #222;
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  text-align: left;
}

.admin-toggle:hover {
  background: #222;
}

/* Dropdown menu */
.admin-menu {
  display: none;
  background: #1a1a1a;
  padding-left: 10px;
}

/* Show dropdown on hover */
.nav-admin:hover .admin-menu {
  display: block;
}
.sidebar a:hover,
.sidebar a.active {
  background: #262626;
  border-left-color: var(--teal);
}
.orders-toolbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.orders-toolbar input,
.orders-toolbar select {
  background: #1f1f1f;
  color: white;
  border: none;
  padding: .6rem .75rem;
  border-radius: 4px;
}
.table-card {
  background: #1f1f1f;
  border-radius: 6px;
  padding: 1rem;
}
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.orders-table th {
  text-align: left;
  padding: .75rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--teal);
}

.orders-table td {
  padding: .75rem;
  border-bottom: 1px solid rgba(224, 3, 3, 0.05);
}
/* Stock table logos */
.orders-table td:first-child {
  text-align: center;
  vertical-align: middle;
}

.orders-table td img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}


.orders-table tr:hover {
  background: rgba(255,255,255,0.03);
}
.orders-page .status {
  padding: .25rem .6rem;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: .75rem;
}

.orders-page .status.pending {
  background: #3a2f1c;
  color: #f0c674;
}

.orders-page .status.confirmed {
  background: #1e3a2a;
  color: #6fcf97;
}

.orders-page .status.completed {
  background: #3a1e1e;
  color: #eb5757;
}

.action-btn {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: .4rem .75rem;
  font-family: 'Oswald', sans-serif;
  cursor: pointer;
}

.action-btn:hover {
  background: var(--teal);
  color: black;
}
.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--teal);
}
.order-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}
.card {
  background: #1f1f1f;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}
.items-table {
  width: 100%;
  border-collapse: collapse;
}

.items-table th {
  text-align: left;
  padding: .5rem;
  border-bottom: 2px solid var(--teal);
  font-family: 'Oswald', sans-serif;
}

.items-table td {
  padding: .5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.order-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

button.danger {
  background: #a83232;
  color: white;
  border: none;
  padding: .75rem 1.25rem;
  font-family: 'Oswald', sans-serif;
  cursor: pointer;
}

button.danger:hover {
  background: #c0392b;
}
.order-card.pending { border-left: 6px solid orange; }
.order-card.completed { border-left: 6px solid green; }
.order-card.denied { border-left: 6px solid red; }
.status.pending { color: orange; font-weight: 600; }
.status.completed { color: green; font-weight: 600; }
.status.denied { color: red; font-weight: 600; }

.btn-approve { color: green; cursor: pointer; }
.btn-deny { color: red; cursor: pointer; }
.qty-input {
  width: 70px;
}

.price-input {
  width: 90px;
}
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.approve-btn {
  background: #2ecc71;
  color: white;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
}

.approve-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}
@media print {
  body * {
    visibility: hidden;
  }

  .content,
  .content * {
    visibility: visible;
  }

  .sidebar,
  .top-header,
  .approve-btn,
  .print-btn {
    display: none !important;
  }

  .content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}
.receipt {
  max-width: 600px;
  margin: auto;
  font-family: monospace;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
}

.receipt-table th,
.receipt-table td {
  border-bottom: 1px dashed #000;
  padding: 6px 0;
  text-align: left;
}

.receipt-footer {
  text-align: center;
  margin-top: 20px;
}
.order-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.complete-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
}

.complete-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}
/*
Order-html
/*
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #140c1f;
  color: #fff;
}

.page {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 24px;
}

/* ================================
   ORDER PAGE – A&B SUPPLIES THEME
================================ */

/* Page layout */
.page {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  padding: 2rem 2.5rem;
  background: var(--dark-bg);
}

/* Products grid */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  flex: 1;
  /* ✅ LEFT-ALIGNED */
  max-width: none;
  margin: 0;

  padding-left: 2.5rem;
  padding-right: 2.5rem;
}


/* Product card */
.products .card {
  background: var(--dark-panel);
  border-radius: 6px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
}

/* Product image */
.products .card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;

  background: linear-gradient(180deg,#101019, #110e16);
  border-radius: 4px;

  max-height: 150px;
  padding: 6px;
  margin-bottom: 0.75rem;
}

/* Product title */
.products .card h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin: 0 0 0.25rem;
}

/* Price */
.products .price {
  font-size: 0.9rem;
  color: var(--muted-white);
  margin-bottom: 0.75rem;
}

/* Quantity controls */
/* === FINAL FIX: CENTER QTY INPUT PERFECTLY === */

.qty {
  display: grid;
  grid-template-columns: 40px 64px 40px;
  align-items: center;
}

/* Hard reset input box model */
.qty-input {
  box-sizing: border-box;

  width: 64px;
  height: 32px;              /* EXACTLY same as buttons */

  padding: 0;                /* remove inherited padding */
  margin: 0;                 /* remove inherited margin */

  background: #111;
  color: var(--white);

  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;

  text-align: center;
  font-size: 0.9rem;

  line-height: 32px;         /* 🔥 THIS is the centering key */
  font-variant-numeric: tabular-nums;
}

/* Remove browser number controls */
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input[type="number"] {
  appearance: textfield;
}



.qty button {
  width: 40px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--teal);
  background: transparent;
  color: var(--teal);

  border-radius: 4px;
  font-size: 18px;
  line-height: 1;

  cursor: pointer;
}

.qty button:hover {
  background: var(--teal);
  color: #000;
}

.qty-input[type="number"] {
  appearance: textfield;
}
/* Cart panel */
.cart {
  position: fixed;

  /* ✅ START BELOW HEADER */
  top: 150px;

  right: .5rem;
  padding-right: 2rem;
  width: 370px;
  height: calc(100vh - 150px - 2rem);

  background: var(--dark-panel);
  border-radius: 6px;
  padding: 1.25rem;

  display: flex;
  flex-direction: column;

  border-left: 4px solid #406f91;
}


/* Cart items */
.cart-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 240px;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.cart-item .qty {
  display: grid;
  grid-template-columns: 44px 44px 72px 44px;
  align-items: center;
  gap: 10px;

  justify-self: end;
    /* ✅ ADD THIS */
  margin-right: 16px;
}

.cart-item span {
  white-space: normal;
  line-height: 1.3;
}




/* Cart total */
.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  margin-top: 1rem;
}

/* Checkout button */
.cart-item button {
  height: 36px;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}
.remove-btn {
  opacity: 0.7;
}

.remove-btn:hover {
  opacity: 1;
  color: #c00;
}


.checkout-btn:hover {
  background: var(--teal-dark);
}
/* ================================
   CHECKOUT MODAL
================================ */

#checkoutOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.checkout-modal {
  background: var(--dark-panel);
  padding: 2rem;
  width: 360px;
  border-radius: 6px;
  border-left: 4px solid var(--teal);
}

.checkout-modal h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.checkout-modal label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.checkout-modal input {
  width: 100%;
  margin-top: 0.25rem;
}

.checkout-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.secondary-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 4px;
}
#logout {
  position: absolute;
  right: 20px;
  top: 20px;
}
.orders-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}
/* =========================
   AUTH FORM WIDTH SYNC
========================= */
.auth-page {
  min-height: 100vh;
  background: radial-gradient(circle at top, #1a1a1a, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, sans-serif;
}

.auth-card {
  background: var(--teal-dark);
  border-radius: 12px;
  padding: 30px;
  
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 20px;
  opacity: 0.8;
}

.auth-form label {
  display: block;
  margin-bottom: 15px;
  font-size: 16px;
  width: 100%;

}

.auth-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Labels define the width */
.auth-form label {
  width: 300px;          /* 🔥 SAME as button */
  margin-bottom: 15px;
  text-align: left;
}

/* Inputs fill label width */
.auth-form input {
  width: 100%;
  box-sizing: border-box;
}

/* Button for login */
.auth-form .primary-btn {
  width: 300px;
}

.auth-form input {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border-radius: 6px;
  border: none;
  background: #1f1f1f;
  color: #fff;
}

.auth-form input:focus {
  outline: 2px solid #444;
}

.primary-btn {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  font-weight: bold;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #fff;
  color: #000;
}

.primary-btn:hover {
  opacity: 0.9;
}

.auth-error {
  margin-top: 15px;
  text-align: center;
  color: #ff4d4d;
  font-size: 14px;
}
/* ===== User Info ===== */
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== Role Badge ===== */
.role-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Admin */
.role-badge.admin {
  background: #dc2626; /* red */
  color: #fff;
}

/* Staff */
.role-badge.staff {
  background: #2563eb; /* blue */
  color: #fff;
}
/* ===== Logout Button ===== */
#logout {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

#logout:hover {
  background: #dc2626;
}
/* =========================
   STOCK TABLE
========================= */

.stock_table {
  width: 100%;
  border-collapse: collapse;
}

.stock_thead {
  background: #111;
}

.stock_th,
.stock_td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #222;
}

.stock_row {
  display: table-row;
}

.stock_tbody {
  display: table-row-group;
}

.stock_table img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
/* =========================
   STOCK TREND SPARKLINE
========================= */
/* =========================
   STOCK TREND INDICATOR
========================= */

.stock_trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  min-width: 120px;
}

.trend-arrow {
  font-size: 16px;
  font-weight: bold;
}

.trend-percent {
  min-width: 32px;
}

.stock_trend.up {
  color: #2ecc71;
}

.stock_trend.down {
  color: #e74c3c;
}

.trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.stock_trend-bar {
  width: 5px;
  height: 14px;
  background: currentColor;
  border-radius: 2px;
}
.stat-card.alert {
  border-left: 5px solid #f39c12;
}

.stat-card.danger {
  border-left: 5px solid #e74c3c;
}

.stat-value.small {
  font-size: 16px;
  font-weight: normal;
}

.stat-sub {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}
.stat-card.leaderboard {
  grid-column: span 2;
}

.leaderboard-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.leaderboard-list li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px dashed #ddd;
}

.leaderboard-list li span {
  font-weight: 600;
}
.dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-row {
  display: grid;
  gap: 16px;
}

/* Column presets */
.dashboard-row.cols-1 {
  grid-template-columns: 1fr;
}

.dashboard-row.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.dashboard-row.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.dashboard-row.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Mobile safety */
@media (max-width: 768px) {
  .dashboard-row {
    grid-template-columns: 1fr !important;
  }
}
/* =========================
   BLACK MARKET THEME
========================= */

:root {
  --bm-bg: #0a0a0a;
  --bm-panel: #121212;
  --bm-border: #2a2a2a;
  --bm-text: #e6e6e6;
  --bm-muted: #9b9b9b;
  --bm-accent: #b00020;
  --bm-accent-soft: rgba(176, 0, 32, 0.4);
}

/* ===== BASE ===== */

body {
  background: radial-gradient(circle at top, #111 0%, var(--bm-bg) 60%);
  color: var(--bm-text);
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: 0.02em;
}

/* ===== HEADER ===== */

.header_BM {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid var(--bm-border);
  background: linear-gradient(to bottom, #111, #0b0b0b);
}

.header_BM h1 {
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  color: var(--bm-accent);
  text-shadow: 0 0 12px var(--bm-accent-soft);
}

.header\.login_BM span {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--bm-muted);
  opacity: 0.8;
}

/* ===== PAGE LAYOUT ===== */

.page_BM {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  padding: 2rem;
}

/* ===== NOTICE ===== */

.notice_BM {
  grid-column: 1 / -1;
  padding: 1rem 1.5rem;
  background: linear-gradient(145deg, #0f0f0f, #151515);
  border: 1px dashed var(--bm-accent);
  color: var(--bm-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ===== PRODUCTS ===== */

.products_BM {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card_BM {
  background: linear-gradient(160deg, #141414, #0f0f0f);
  border: 1px solid var(--bm-border);
  padding: 1.2rem;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card_BM::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(176, 0, 32, 0.05),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.card_BM:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(176, 0, 32, 0.2);
}

.card_BM:hover::before {
  opacity: 1;
}

.card_BM h4 {
  margin-bottom: 0.5rem;
  color: var(--bm-text);
  font-weight: 500;
}

.card_BM p {
  font-size: 0.85rem;
  color: var(--bm-muted);
  line-height: 1.4;
}

.price_BM {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bm-accent);
  text-shadow: 0 0 6px var(--bm-accent-soft);
}

/* ===== SIDE PANEL ===== */

.cart_BM {
  background: linear-gradient(160deg, #0e0e0e, #151515);
  border: 1px solid var(--bm-border);
  padding: 1.5rem;
  color: var(--bm-muted);
  font-size: 0.85rem;
}

.cart_BM h3 {
  color: var(--bm-accent);
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}

/* ===== FOOTER ===== */

.footer_BM {
  text-align: center;
  padding: 1.2rem;
  font-size: 0.75rem;
  color: var(--bm-muted);
  opacity: 0.6;
}

/* ===== SUBTLE ANIMATIONS ===== */

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.header_BM h1 {
  animation: flicker 6s infinite;
}

/* ===== MOBILE ===== */

@media (max-width: 900px) {
  .page_BM {
    grid-template-columns: 1fr;
  }
}
/* =========================
   BLACK MARKET – ORDER CLONE
========================= */

/* PRODUCTS GRID */
.products_BM {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;

  /* MATCH NORMAL LAYOUT */
  max-width: none;
  margin: 0;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

/* PRODUCT CARD */
.products_BM .card_BM {
  /* keep BM colors */
  background: linear-gradient(160deg, #141414, #0f0f0f);
  border: 1px solid #2a2a2a;

  /* copied structure */
  border-radius: 6px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
}

/* PRODUCT IMAGE */
.products_BM .card_BM img,
.product-icon_BM {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;

  /* same sizing & spacing */
  max-height: 150px;
  padding: 6px;
  margin-bottom: 0.75rem;
  border-radius: 4px;

  /* keep BM background */
  background: linear-gradient(180deg, #101019, #110e16);
}

/* PRODUCT TITLE */
.products_BM .card_BM h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.5px;

  /* same spacing */
  margin: 0 0 0.25rem;
}

/* DESCRIPTION (BM ONLY, optional) */
.products_BM .card_BM p {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0 0 0.5rem;
  opacity: 0.7;
}

/* PRICE */
.products_BM .price_BM {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;

  /* keep BM color */
  color: #b00020;
}


/* =========================
   CART (TROLLEY)
========================= */

.cart_BM {
  position: fixed;
  top: 120px;
  right: 2.5rem;

  width: 440px;
  height: calc(100vh - 120px - 2rem);

  background: #0e0e0e;
  border-left: 4px solid #b00020;
  border-radius: 6px;
  padding: 1.25rem;

  display: flex;
  flex-direction: column;
}

/* CART ITEMS */
.cart_BM .cart-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart_BM .cart-item {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 240px;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

/* QTY CONTROLS */
.cart_BM .qty {
  display: grid;
  grid-template-columns: 44px 44px 72px 44px;
  gap: 10px;
  justify-self: end;
}

.cart_BM button {
  height: 36px;
  border: none;
  border-radius: 4px;
  background: #1a1a1a;
  color: #eee;
  cursor: pointer;
}

.cart_BM button:hover {
  background: #2a2a2a;
}

/* REMOVE */
.cart_BM .remove-btn {
  opacity: 0.6;
}

.cart_BM .remove-btn:hover {
  opacity: 1;
  color: #c00;
}

/* INPUT */
.cart_BM .qty-input {
  width: 100%;
  text-align: center;
  background: #000;
  border: 1px solid #333;
  color: #eee;
}

/* TOTAL */
.cart_BM .cart-total {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-weight: 600;
}

/* CHECKOUT */
.cart_BM .checkout-btn {
  margin-top: 1rem;
  background: #b00020;
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
  cursor: pointer;
}

.cart_BM .checkout-btn:hover {
  background: #8a0018;
}
.stock {
  font-size: 0.9rem;
  margin: 4px 0;
  font-weight: bold;
}

.stock.available {
  color: #1fa34a; /* green */
}

.stock.pending {
  color: orange;
}
.deposit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.deposit-card {
  background: var(--card-bg, #1e1e1e);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.deposit-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}

.deposit-card h3 {
  margin-bottom: 10px;
  font-family: 'Oswald', sans-serif;
}

.current-stock {
  margin-bottom: 10px;
  font-size: 14px;
  opacity: 0.8;
}

.deposit-input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
}

.deposit-btn {
  width: 100%;
  padding: 8px;
  cursor: pointer;
}

/* =================================
   GLOBAL MOBILE RESPONSIVE FIXES
================================= */

@media (max-width: 1000px) {

  /* Layout becomes vertical */
  .app-layout {
    flex-direction: column;
  }

  /* Sidebar becomes horizontal menu */
  .sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .sidebar a {
    font-size: 16px;
    padding: 10px 12px;
  }

  /* Content spacing */
  .content {
    padding: 1.5rem;
  }

  /* Header shrink */
  .brand {
    font-size: 1.8rem;
  }

}


/* =================================
   TABLE SCROLL ON MOBILE
================================= */

@media (max-width: 900px) {

  .table-card {
    overflow-x: auto;
  }

  .orders-table,
  .items-table,
  .stock_table {
    min-width: 650px;
  }

}


/* =================================
   DASHBOARD MOBILE
================================= */

@media (max-width: 900px) {

  .dashboard-row.cols-4 {
    grid-template-columns: repeat(2,1fr);
  }

  .dashboard-row.cols-3 {
    grid-template-columns: repeat(2,1fr);
  }

}


/* =================================
   PRODUCT GRID MOBILE
================================= */

@media (max-width: 768px) {

  .products {
    grid-template-columns: repeat(2,1fr);
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .products_BM {
    grid-template-columns: repeat(2,1fr);
    padding-left: 1rem;
    padding-right: 1rem;
  }

}


/* =================================
   CART MOBILE
================================= */

@media (max-width: 900px) {

  .cart,
  .cart_BM {
    position: relative;
    width: 100%;
    right: auto;
    top: auto;
    height: auto;
    margin-top: 20px;
  }

}


/* =================================
   ORDER PAGE MOBILE
================================= */

@media (max-width: 768px) {

  .page,
  .page_BM {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

}


/* =================================
   HEADER MOBILE
================================= */

@media (max-width: 600px) {

  .header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .top-header {
    padding: 1.5rem 1rem;
  }

  .brand {
    font-size: 1.6rem;
  }

}


/* =================================
   STAT CARDS MOBILE
================================= */

@media (max-width: 600px) {

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

}
/* SweetAlert container tweaks */
.swal2-popup {
  border-radius: 12px;
  padding: 20px;
  font-family: inherit;
}

/* Custom inputs */
.custom-input {
  width: 100%;
  padding: 12px 14px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #444;
  background: #1e1e1e;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

/* Focus effect */
.custom-input:focus {
  border-color: var(--teal); /* gold accent */
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
}

/* Placeholder color */
.custom-input::placeholder {
  color: #aaa;
}

/* Buttons */
.swal2-confirm {
  background: var(--teal) !important;
  color: #000 !important;
  font-weight: 600;
  border-radius: 8px !important;
}

.swal2-cancel {
  background: #333 !important;
  color: #fff !important;
  border-radius: 8px !important;
}

/* Title */
.swal2-title {
  font-weight: 700;
}

/* Dark background */
.swal2-popup {
  background: var(--dark-panel);
  color: #fff;
}

@media print {
  body.printing * {
    visibility: hidden;
  }

  body.printing #printable-receipt,
  body.printing #printable-receipt * {
    visibility: visible;
  }

  body.printing #printable-receipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white;
  }
}