/* Keet Webshop UI v2 (public) */
:root {
  --ws-bg: #070a0f;
  --ws-surface: rgba(255, 255, 255, 0.06);
  --ws-surface-2: rgba(255, 255, 255, 0.09);
  --ws-border: rgba(255, 255, 255, 0.12);
  --ws-text: #eef2ff;
  --ws-muted: rgba(238, 242, 255, 0.72);
  --ws-accent: #22c55e;
  --ws-accent-2: #10b981;
  --ws-danger: #ef4444;
  --ws-warning: #f59e0b;
  --ws-focus: rgba(34, 197, 94, 0.35);
  --ws-radius: 12px;
  --ws-radius-sm: 9px;
  --ws-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --ws-max: 825px;
}

* { box-sizing: border-box; }

html {
  font-size: 75%;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ws-text);
  background:
    radial-gradient(1000px 700px at 20% -10%, rgba(34, 197, 94, 0.22), transparent 55%),
    radial-gradient(900px 600px at 95% 10%, rgba(16, 185, 129, 0.18), transparent 50%),
    radial-gradient(800px 600px at 40% 110%, rgba(99, 102, 241, 0.12), transparent 55%),
    var(--ws-bg);
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ws-focus);
  outline-offset: 2px;
}

.ws-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--ws-border);
  background: rgba(7, 10, 15, 0.75);
  backdrop-filter: blur(12px);
}

.ws-topbar-inner {
  max-width: var(--ws-max);
  margin: 0 auto;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.ws-nav-toggle{
  display: none;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--ws-border);
  background: var(--ws-surface);
  color: var(--ws-text);
  font-weight: 900;
  cursor: pointer;
}

.ws-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ws-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(16, 185, 129, 0.65));
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.22);
}
.ws-mark[src]{
  display: block;
  object-fit: contain;
  background: transparent;
}

.ws-brand-title {
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ws-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--ws-border);
  background: var(--ws-surface);
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ws-pill:hover { transform: translateY(-1px); background: var(--ws-surface-2); border-color: rgba(34, 197, 94, 0.28); }

.ws-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.95);
  color: #06210f;
  font-weight: 800;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ws-shell {
  max-width: var(--ws-max);
  margin: 0 auto;
  padding: 15px 12px 60px;
}

.ws-hero {
  border: 1px solid var(--ws-border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border-radius: var(--ws-radius);
  box-shadow: var(--ws-shadow);
  padding: 14px 12px;
}

.ws-hero h1 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}
.ws-hero p {
  margin: 0;
  color: var(--ws-muted);
  line-height: 1.35;
}

.ws-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 9px;
}

.ws-card {
  grid-column: span 12;
  border: 1px solid var(--ws-border);
  background: var(--ws-surface);
  border-radius: var(--ws-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.ws-card-inner {
  display: grid;
  grid-template-columns: 1fr;
}

.ws-media {
  position: relative;
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 165px;
  overflow: hidden;
}
.ws-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.ws-media .ws-media-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: rgba(238, 242, 255, 0.6);
  letter-spacing: 0.08em;
}

.ws-body {
  padding: 11px;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ws-title-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  min-width: 0;
}
.ws-title {
  font-weight: 900;
  margin: 0;
  font-size: 1.1rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ws-desc {
  margin: 0;
  color: var(--ws-muted);
  font-size: 0.95rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ws-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #d1fae5;
  max-width: 100%;
  white-space: normal;
}

.ws-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.ws-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--ws-muted);
  margin-bottom: 5px;
}
.ws-field input[type="text"],
.ws-field input[type="number"],
.ws-field select,
.ws-field textarea {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--ws-border);
  background: rgba(0, 0, 0, 0.18);
  color: var(--ws-text);
}
.ws-field textarea { min-height: 90px; resize: vertical; }

.ws-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.ws-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ws-border);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  overflow: hidden;
}
.ws-qty button {
  min-width: 36px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--ws-text);
  cursor: pointer;
}
.ws-qty input {
  width: 52px;
  min-height: 36px;
  border: 0;
  background: transparent;
  text-align: center;
  color: var(--ws-text);
}

.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid var(--ws-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ws-text);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  font-weight: 800;
}
.ws-btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.09); border-color: rgba(34, 197, 94, 0.25); }
.ws-btn.primary {
  border-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(16, 185, 129, 0.65));
  color: #06210f;
}
.ws-btn.primary:hover { border-color: rgba(34, 197, 94, 0.45); }
.ws-btn.danger { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.14); }

.ws-toast {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--ws-border);
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  box-shadow: var(--ws-shadow);
  font-weight: 800;
  display: none;
}
.ws-toast.show { display: inline-flex; }

.ws-footer {
  border-top: 1px solid var(--ws-border);
  background: rgba(7, 10, 15, 0.55);
  backdrop-filter: blur(10px);
  padding: 14px 12px;
  color: var(--ws-muted);
  text-align: center;
}

/* Simple split layout (checkout/cart) */
.ws-split {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
@media (min-width: 980px) {
  .ws-split {
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
  }
}

.ws-list {
  display: grid;
  gap: 8px;
}

.ws-item {
  border: 1px solid var(--ws-border);
  background: var(--ws-surface);
  border-radius: var(--ws-radius);
  padding: 9px;
  display: grid;
  gap: 8px;
}

.ws-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ws-item-title {
  font-weight: 900;
}

.ws-kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 520px) {
  .ws-kv { grid-template-columns: 1fr; }
}

.ws-k {
  color: var(--ws-muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}
.ws-v {
  font-weight: 800;
}

.ws-divider {
  height: 1px;
  background: var(--ws-border);
  width: 100%;
}

.ws-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 900;
}

/* Tables (admin + confirmations) */
.ws-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-sm);
  background: rgba(0,0,0,0.18);
}
.ws-table {
  width: 100%;
  border-collapse: collapse;
}
.ws-table th {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ws-muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--ws-border);
  background: rgba(255,255,255,0.03);
}
.ws-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--ws-text);
  vertical-align: top;
}
.ws-table tr:last-child td { border-bottom: none; }

/* Breakpoints */
@media (min-width: 860px) {
  .ws-card { grid-column: span 12; }
  .ws-card-inner { grid-template-columns: 315px 1fr; }
  .ws-media { min-height: 240px; }
  .ws-fields { grid-template-columns: 1fr 1fr; }
  .ws-field.span-2 { grid-column: span 2; }
}

@media (max-width: 760px) {
  .ws-topbar-inner{ flex-wrap: wrap; }
  .ws-nav-toggle{ display: inline-flex; align-items:center; justify-content:center; }
  .ws-nav{
    width: 100%;
    display: none;
    justify-content: flex-start;
  }
  body.ws-nav-open .ws-nav{ display:flex; }
  .ws-pill{ flex: 1 1 auto; justify-content: center; }
}

