:root {
  --gold: #c9a227;
  --gold-light: #e6c75a;
  --dark: #1e293b;
  --success: #16a34a;
  --danger: #dc2626;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: var(--bg);
  color: #334155;
}

.shop-header {
  background: linear-gradient(
    135deg,
    var(--gold),
    var(--gold-light)
  );
  color: white;
  text-align: center;
  padding: 25px 15px;
  box-shadow: 0 3px 12px rgba(0,0,0,.15);
}

.shop-name {
  font-size: 24px;
  font-weight: 700;
}

.shop-subtitle {
  margin-top: 5px;
  opacity: .9;
}

#content {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.center-screen {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.state-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  max-width: 400px;
  width: 100%;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #eee;
  border-top: 4px solid var(--gold);
  border-radius: 50%;
  margin: auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-icon {
  font-size: 60px;
  color: var(--danger);
}

.success-icon {
  font-size: 60px;
  color: var(--success);
}

.info-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,.05);
}

.info-card h3 {
  margin: 0 0 18px;
  color: var(--dark);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 15px;
}

.info-item {
  background: #f8fafc;
  padding: 12px;
  border-radius: 10px;
}

.info-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.info-value {
  font-weight: 600;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.items-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

.items-table th {
  background: var(--gold);
  color: white;
  white-space: nowrap;
}

.items-table th,
.items-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.items-table tr:hover {
  background: #fafafa;
}

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

.summary-box {
  background: linear-gradient(
    135deg,
    #fff8e1,
    #fff
  );
  border: 1px solid #f5e7a0;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.summary-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}

.summary-label {
  margin-top: 5px;
  font-size: 13px;
  color: #64748b;
}