/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --bg: #f8faf9;
  --ink: #0f1a12;
  --panel: #ffffff;
  --panel-muted: #f1f5f2;
  --line: #e2e8e4;
  --line-strong: #ced7d0;
  --brand: #10b981;
  --brand-muted: #d1fae5;
  --brand-strong: #047857;
  --warn: #ef4444;
  --warn-muted: #fee2e2;
  --accent: #6366f1;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }
html, body, #__next {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .kicker { font-family: 'Space Grotesk', sans-serif; }

.shell {
  width: min(1400px, 96vw);
  margin: 0 auto;
  padding: 24px 0 40px;
  display: grid;
  grid-gap: 20px;
  gap: 20px;
  animation: fade-in 300ms ease-out;
}

/* Dashboard Layout */
.dashboard-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.dashboard-sidebar {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
}

.dashboard-main {
  padding: 32px;
  background: var(--bg);
  min-width: 0;
}

.dashboard-main > * {
  max-width: 100%;
}

.dashboard-main p,
.dashboard-main span,
.dashboard-main small {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.muted {
  color: #64748b;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mobile-copy {
  display: block;
  max-width: 100%;
  white-space: normal;
  line-height: 1.45;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link:hover {
  background: var(--panel-muted);
  color: var(--ink);
}

.nav-link.active {
  background: var(--brand-muted);
  color: var(--brand-strong);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
}

.hero {
  background: linear-gradient(135deg, var(--brand-strong) 0%, #064e3b 100%);
  color: white;
  border: none;
}

.hero .kicker { color: var(--brand-muted); }

.kicker {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .7rem;
  font-weight: 700;
  color: var(--brand);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title h2 { margin: 0; font-size: 1.5rem; }

.mobile-top-nav {
  display: none;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-solid { background: var(--brand-strong); color: white; }
.btn-solid:hover { background: #065f46; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--panel-muted); border-color: var(--line-strong); }

.btn-danger { background: var(--warn-muted); color: var(--warn); border-color: transparent; }
.btn-danger:hover { background: #fee2e2; border-color: #fecaca; }

input, select {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 10px 14px;
  background: white;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-muted);
}

.form-group {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

.grid-cols-2 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 20px; gap: 20px; }
.grid-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 20px; gap: 20px; }

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-gap: 20px;
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrap {
  aspect-ratio: 63/88;
  background: var(--panel-muted);
  position: relative;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 16px;
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.card-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--panel-muted);
  color: #64748b;
}

.price-tag {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-strong);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-label { font-size: 0.65rem; text-transform: uppercase; color: #94a3b8; font-weight: 700; }
.stat-value { font-size: 0.9rem; font-weight: 600; }

.mobile-stack-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-row > * {
  margin-top: 0 !important;
}

/* Table styling */
.table-container {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

table { width: 100%; border-collapse: collapse; min-width: 640px; }
th { background: var(--panel-muted); padding: 12px 16px; text-align: left; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #64748b; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }

/* Existing Animations */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .dashboard-container { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; }
  .dashboard-main { padding: 14px; }
  .mobile-top-nav { display: flex; }
  .panel { padding: 16px; border-radius: 14px; }
  .section-title { flex-direction: column; align-items: stretch; gap: 10px; }
  .grid-cols-2 { grid-template-columns: 1fr; gap: 12px; }
  .grid-cols-3 { grid-template-columns: 1fr; gap: 10px; }
  .inventory-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
  .modal-panel { width: min(96vw, 1000px); max-height: 94vh; }
  .modal-header { padding: 14px; }
  .modal-body { padding: 14px; }
}

@media (max-width: 768px) {
  .shell { width: 100%; padding: 10px 16px 24px; gap: 12px; }
  .dashboard-main { padding: 16px; }
  .panel { padding: 12px; border-radius: 12px; }
  .dashboard-main .panel,
  .dashboard-main .table-container,
  .dashboard-main .card {
    margin-inline: 2px;
  }
  .btn { padding: 10px 12px; font-size: 0.85rem; }
  .table-container { border-radius: 12px; }
  table { min-width: 560px; }
  th, td { padding: 10px 10px; font-size: 0.82rem; }
  .location-grid { grid-template-columns: 1fr; }
  .form-grid { gap: 10px; }
  .badge { font-size: 0.72rem; padding: 4px 8px; }
  .mobile-stack-between { flex-direction: column; align-items: stretch; gap: 8px; }
  .search-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .search-row select { width: 100% !important; }
  .card-content { padding: 12px; }
  .card-title { font-size: 1rem; }
  .price-tag { font-size: 1.05rem; }
  .modal-panel { width: 96vw; max-height: 95vh; }
  .modal-header h2 { font-size: 1.1rem; margin: 0; }
  .modal-body { padding: 12px; }
}

@media (max-width: 480px) {
  .shell { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .dashboard-main { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .section-title h1 { font-size: 1.35rem; margin: 0; }
  .kicker { font-size: .62rem; }
  input, select { padding: 9px 10px; font-size: 0.9rem; }
  table { min-width: 520px; }
}

/* Maintain some specific overrides for binder/catalog from old CSS but cleaned up */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
}

.modal-panel {
  width: min(1000px, 98vw);
  max-height: 90vh;
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success { background: var(--brand-muted); color: var(--brand-strong); }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #e0e7ff; color: #3730a3; }

/* Customer Catalog / Binder Experience */
.catalog-app-shell {
  min-height: 100vh;
  background: #0f172a;
  color: white;
  padding-bottom: 80px; /* Space for sticky footer */
}

.catalog-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.8);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.binder-container {
  padding: 8px;
  max-width: 500px;
  margin: 0 auto;
}

.binder-surface {
  background: #1e293b;
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  border: 3px solid #334155;
  position: relative;
}

.binder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
  gap: 8px;
  aspect-ratio: 3/4;
}

.pocket {
  background: #0f172a;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s;
}

.pocket:active { transform: scale(0.95); }

.pocket-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.pocket-price {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(16, 185, 129, 0.9);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.binder-controls {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.page-btn {
  background: #334155;
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.page-btn:active:not(:disabled) { background: var(--brand); }

.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.cart-summary {
  display: flex;
  flex-direction: column;
}

.cart-label { font-size: 0.7rem; text-transform: uppercase; color: #94a3b8; font-weight: 700; letter-spacing: 0.05em; }
.cart-value { font-size: 1.1rem; font-weight: 700; color: var(--brand); }

.checkout-btn {
  background: var(--brand);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.snipe-grid .card-img-wrap {
  aspect-ratio: 63 / 88;
}

.snipe-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.snipe-grid-two .card-img-wrap {
  aspect-ratio: 63 / 88;
}

.snipe-search-wrap {
  position: relative;
}

.snipe-suggest-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 60;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
  max-height: 260px;
  overflow-y: auto;
}

.snipe-suggest-row {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

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

.snipe-suggest-row:hover {
  background: var(--panel-muted);
}

.snipe-suggest-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.snipe-suggest-thumb {
  width: 38px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.snipe-suggest-thumb-empty {
  display: grid;
  place-items: center;
  color: #94a3b8;
  background: var(--panel-muted);
}

@media (max-width: 768px) {
  .snipe-grid {
    grid-template-columns: 1fr;
  }
  .snipe-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .snipe-grid-two .card-content {
    padding: 10px;
  }
  .snipe-grid-two .stats-row {
    gap: 4px;
  }
  .snipe-grid-two .stat-value {
    font-size: 0.78rem;
  }
}

/* Detailed Modal Overrides */
.immersive-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  animation: slide-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-close-strip {
  height: 5px;
  width: 40px;
  background: #334155;
  border-radius: 99px;
  margin: 12px auto;
}

.immersive-content {
  flex: 1 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  overflow-y: auto;
  width: 100%;
}

.detail-img {
  width: 100%;
  max-width: 280px;
  max-height: 40vh;
  object-fit: contain;
  filter: drop-shadow(0 15px 20px rgba(0,0,0,0.5));
  flex-shrink: 0;
}

.detail-info {
  text-align: center;
  width: 100%;
  flex-shrink: 0;
}

.detail-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 4px; }
.detail-meta { color: #94a3b8; font-size: 0.85rem; }

.detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  margin: 12px 0;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 10px;
  gap: 10px;
  width: 100%;
  padding-bottom: 20px;
}

.add-btn {
  background: var(--brand);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  width: 100%;
}

.back-btn {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  padding: 12px;
  border-radius: 16px;
  font-weight: 600;
  width: 100%;
}

