/* OmniShop — Brand Stylesheet
   OmniSpace 3D brand palette:
   Primary Teal:  #0A9696
   Light Teal:    #19AFAC
   Pale Teal:     #D6F0EF
   Mid Grey:      #6E6E6E
   Charcoal:      #333333
   White:         #FFFFFF
*/

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #333333;
  background: #f5f5f5;
  font-size: 14px;
  line-height: 1.6;
}

a { color: #0A9696; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.teal      { color: #0A9696; }
.charcoal  { color: #333333; }
.grey      { color: #6E6E6E; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.hidden { display: none; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.3px;
}
.btn:active { transform: scale(0.98); }
.btn-primary   { background: #0A9696; color: #fff; }
.btn-primary:hover { background: #19AFAC; color: #fff; text-decoration: none; }
.btn-secondary { background: #6E6E6E; color: #fff; }
.btn-secondary:hover { background: #555; color: #fff; text-decoration: none; }
.btn-outline   { background: transparent; color: #0A9696; border: 2px solid #0A9696; }
.btn-outline:hover { background: #0A9696; color: #fff; text-decoration: none; }
.btn-danger    { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; color: #fff; text-decoration: none; }
.btn-sm  { padding: 6px 14px; font-size: 12px; }
.btn-lg  { padding: 14px 32px; font-size: 15px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-warning  { background: #fff3cd; color: #856404; }
.badge-info     { background: #D6F0EF; color: #0A9696; }
.badge-primary  { background: #0A9696; color: #fff; }
.badge-success  { background: #d4edda; color: #155724; }
.badge-danger   { background: #f8d7da; color: #721c24; }
.badge-secondary{ background: #e2e3e5; color: #383d41; }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-danger  { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.alert-info    { background: #D6F0EF; color: #0A9696; border-left: 4px solid #0A9696; }
.alert-warning { background: #fff3cd; color: #856404; border-left: 4px solid #ffc107; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6E6E6E;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.form-control {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: #0A9696;
  box-shadow: 0 0 0 3px rgba(10,150,150,0.12);
}
textarea.form-control { min-height: 90px; resize: vertical; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  overflow: hidden;
}
.card-header {
  background: #0A9696;
  color: #fff;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 14px;
}
.card-body { padding: 20px; }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  background: #0A9696;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}
.data-table tr:nth-child(even) td { background: #f9fafa; }
.data-table tr:hover td { background: #D6F0EF; }

/* ── TOP NAV BAR ─────────────────────────────────────────────────────────── */
.topnav {
  background: #0A9696;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.topnav-logo img { height: 36px; }
.topnav-logo span {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.topnav-title {
  color: #D6F0EF;
  font-size: 13px;
  font-weight: 500;
}
.topnav-actions { display: flex; align-items: center; gap: 16px; }
.topnav-actions a {
  color: #D6F0EF;
  font-size: 13px;
  font-weight: 500;
}
.topnav-actions a:hover { color: #fff; }

/* ── CATALOG LAYOUT ──────────────────────────────────────────────────────── */
.catalog-shell {
  display: flex;
  height: calc(100vh - 58px);
  overflow: hidden;
}

/* Sidebar */
.cat-sidebar {
  width: 220px;
  min-width: 220px;
  background: #fff;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  padding: 16px 0;
}
.cat-sidebar h3 {
  font-size: 11px;
  font-weight: 700;
  color: #6E6E6E;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0 16px 8px;
  border-bottom: 1px solid #eee;
  margin-bottom: 8px;
}
.cat-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.cat-link:hover  { background: #D6F0EF; }
.cat-link.active { background: #D6F0EF; border-left-color: #0A9696; color: #0A9696; font-weight: 600; }
.cat-link .cat-icon { font-size: 14px; }
.cat-link .cat-count {
  margin-left: auto;
  background: #D6F0EF;
  color: #0A9696;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Main content */
.catalog-main {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: #f5f5f5;
}
.catalog-section { margin-bottom: 32px; }
.section-header {
  font-size: 17px;
  font-weight: 700;
  color: #0A9696;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #D6F0EF;
}

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

/* Product card */
.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10,150,150,0.15);
}
.product-img-wrap {
  position: relative;
  padding-top: 65%;
  background: #f0f0f0;
  overflow: hidden;
}
.product-img-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.no-image-placeholder {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 36px;
  background: #f8f8f8;
}
.product-info { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.product-code { font-size: 10px; color: #6E6E6E; letter-spacing: 0.5px; margin-bottom: 3px; }
.product-name { font-size: 13px; font-weight: 700; color: #333; line-height: 1.3; margin-bottom: 4px; }
.product-dims { font-size: 11px; color: #6E6E6E; margin-bottom: 6px; }
.product-price { font-size: 16px; font-weight: 800; color: #0A9696; margin-bottom: 8px; }
.product-price.poa { color: #6E6E6E; font-size: 13px; }

/* Colour switcher */
.color-switcher { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.color-btn {
  padding: 3px 10px;
  border: 1.5px solid #d0d0d0;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
  background: #fff;
  color: #555;
  transition: all 0.15s;
}
.color-btn.active { border-color: #0A9696; background: #D6F0EF; color: #0A9696; font-weight: 600; }

/* Add to order controls */
.add-to-order { margin-top: auto; }
.qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid #0A9696;
  background: #fff;
  color: #0A9696;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}
.qty-btn:hover { background: #0A9696; color: #fff; }
.qty-input {
  width: 44px;
  text-align: center;
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 600;
}
.btn-add-to-order {
  width: 100%;
  padding: 8px;
  background: #0A9696;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s;
}
.btn-add-to-order:hover { background: #19AFAC; }
.btn-add-to-order.in-order { background: #6E6E6E; }

/* ── CART / ORDER PANEL ──────────────────────────────────────────────────── */
.cart-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #0A9696;
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 200;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.15);
}
.cart-bar.hidden { display: none; }
.cart-count { font-size: 14px; font-weight: 600; }
.cart-total { font-size: 18px; font-weight: 800; }
.cart-bar .btn-checkout {
  background: #fff;
  color: #0A9696;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}
.cart-bar .btn-checkout:hover { background: #D6F0EF; }

/* ── LOGIN PAGE ──────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0A9696 0%, #19AFAC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-box {
  background: #fff;
  border-radius: 14px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  text-align: center;
}
.login-box img.logo { height: 55px; margin-bottom: 16px; }
.login-box h2 { color: #0A9696; font-size: 20px; margin-bottom: 6px; }
.login-box p.event-name { color: #6E6E6E; font-size: 13px; margin-bottom: 24px; }
.login-box .form-control { text-align: center; font-size: 16px; letter-spacing: 1px; }

/* ── CHECKOUT PAGE ───────────────────────────────────────────────────────── */
.checkout-page { max-width: 900px; margin: 30px auto; padding: 0 16px 80px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
@media (max-width: 700px) { .checkout-grid { grid-template-columns: 1fr; } }
.order-summary-table { font-size: 13px; width: 100%; border-collapse: collapse; }
.order-summary-table td { padding: 8px 0; border-bottom: 1px solid #eee; }
.order-summary-table .item-name { font-weight: 600; }
.order-summary-table .totals td { font-size: 14px; padding-top: 10px; }
.order-summary-table .grand-total { font-size: 17px; font-weight: 800; color: #0A9696; }

/* ── CONFIRMATION PAGE ───────────────────────────────────────────────────── */
.confirmation-page { max-width: 640px; margin: 60px auto; padding: 0 16px; text-align: center; }
.confirmation-icon { font-size: 64px; margin-bottom: 16px; }
.confirmation-page h1 { color: #0A9696; font-size: 26px; margin-bottom: 8px; }
.confirmation-page .order-ref { font-size: 20px; font-weight: 800; color: #333; margin-bottom: 16px; }
.confirmation-details { background: #D6F0EF; border-radius: 10px; padding: 20px; margin: 20px 0; text-align: left; }

/* ── ADMIN LAYOUT ────────────────────────────────────────────────────────── */
.admin-shell { display: flex; min-height: 100vh; width: 100%; }
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  min-width: 240px;
  background: #222;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar-header {
  background: #0A9696;
  padding: 18px 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.admin-sidebar-header small { display: block; font-size: 11px; color: #D6F0EF; font-weight: 400; margin-top: 2px; }
.admin-nav { flex: 1; padding: 12px 0; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: #ccc;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.admin-nav a:hover { background: #333; color: #fff; text-decoration: none; }
.admin-nav a.active { background: #0A9696; color: #fff; }
.admin-nav .nav-section {
  font-size: 10px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 20px 4px;
}
.admin-main {
  flex: 1;
  padding: 28px;
  background: #f5f5f5;
  overflow: auto;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.admin-topbar h1 { font-size: 20px; color: #333; font-weight: 700; }
.admin-topbar .topbar-right { display: flex; gap: 10px; align-items: center; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border-left: 4px solid #0A9696;
}
.stat-card .stat-num { font-size: 28px; font-weight: 800; color: #0A9696; }
.stat-card .stat-label { font-size: 11px; color: #6E6E6E; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; }

/* Packing list */
.packing-category { margin-bottom: 28px; }
.packing-category h3 {
  background: #0A9696;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 8px;
}

/* ── DEADLINES BANNER ────────────────────────────────────────────────────── */
.deadlines-bar {
  background: #fff8e1;
  border-top: 3px solid #ffc107;
  padding: 10px 24px;
  font-size: 12px;
  color: #333;
}
.deadlines-bar strong { color: #0A9696; }
.deadline-items { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.deadline-item { background: #fffde7; border: 1px solid #ffe082; border-radius: 4px; padding: 3px 10px; }

/* ── Print styles ─────────────────────────────────────────────────────────── */
@media print {
  .topnav, .cart-bar, .admin-sidebar, .admin-topbar .topbar-right,
  .btn, .no-print { display: none !important; }
  .admin-shell { display: block; }
  .admin-main { padding: 0; }
  body { font-size: 12px; }
  .data-table th { background: #0A9696 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
