:root {
  --primary: #ff7a7a;
  --primary-dark: #dc5b5b;
  --accent: #f7d9d9;
  --secondary: #f5f3ef;
  --surface: #ffffff;
  --surface-soft: #fff8f7;
  --muted: #6c6b79;
  --heading: #1d1d2f;
  --border: #ece8e6;
  --success: #1d8f5d;
  --warning: #ed9c38;
  --danger: #d94d4d;
  --shadow: 0 18px 45px rgba(32, 15, 15, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #eef1f4;
  color: var(--heading);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  background: #131921;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.amazon-shell {
  background: #f4f4f4;
}

.amazon-header {
  background: #131921;
}

.top-strip {
  background: #131921;
  color: white;
}

.top-strip-inner {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.amazon-brand {
  color: white;
  padding: 8px 10px;
}

.brand-image {
  display: block;
  width: 110px;
  height: auto;
  object-fit: contain;
}

.location-label {
  display: flex;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.76rem;
  line-height: 1.2;
}

.location-label strong {
  color: white;
  font-size: 0.9rem;
}

.search-box {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  min-height: 42px;
}

.search-box select {
  width: 120px;
  border: none;
  border-right: 1px solid #ececec;
  background: #f3f3f3;
  padding: 0 12px;
  color: #555;
  height: 100%;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 14px;
  color: #222;
}

.search-box button {
  border: none;
  background: #f3a847;
  color: #1b1b1b;
  height: 100%;
  padding: 0 18px;
  font-weight: 700;
}

.nav-strip {
  background: #232f3e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-strip-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 42px;
}

.nav-strip-inner a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--heading);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.amazon-btn {
  background: white;
  color: #111;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
}

.amazon-cart {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
  padding: 0.88rem 1.3rem;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(180deg, #ffd978, #f4b825);
  color: #1f1f1f;
  box-shadow: 0 12px 20px rgba(244, 184, 37, 0.25);
}

.btn-secondary {
  background: #edf2f7;
  color: var(--heading);
}

.btn-light {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--heading);
}

.btn-block {
  width: 100%;
}

.cart-button {
  position: relative;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.empty-state {
  color: var(--muted);
  line-height: 1.8;
}

.filter-group input,
.filter-group select,
.field-group input,
.field-group select,
.field-group textarea,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  color: var(--heading);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.message-box {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.message-box.success {
  background: rgba(29, 143, 93, 0.08);
  color: var(--success);
  border-color: rgba(29, 143, 93, 0.2);
}

.message-box.error {
  background: rgba(217, 77, 77, 0.06);
  color: var(--danger);
  border-color: rgba(217, 77, 77, 0.2);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.total-row {
  font-size: 1.2rem;
  font-weight: 800;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: white;
  font-size: 1.5rem;
  color: var(--heading);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 11, 10, 0.45);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 30px));
  max-height: 90vh;
  overflow: auto;
  background: white;
  border-radius: 26px;
  padding: 30px 24px 20px;
  box-shadow: var(--shadow);
}

.small-panel {
  width: min(560px, calc(100% - 30px));
}

.large-panel {
  width: min(820px, calc(100% - 30px));
}

.close-modal {
  position: absolute;
  right: 18px;
  top: 18px;
}
