@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600..900&display=swap');

* {
  box-sizing: border-box;
}

:root {
  --shop-bg: #faf8f5;
  --shop-surface: #ffffff;
  --shop-ink: #201d19;
  --shop-muted: #8a8177;
  --shop-border: #e7e1d8;
  --shop-accent: #b5502e;
  --shop-accent-dark: #973f22;
  --shop-accent-soft: #f6e6dd;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
  padding: 0;
  color: #1a1a1a;
  background: var(--shop-bg);
}

.login-page {
  max-width: 320px;
  margin: 10vh auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.login-page h1 {
  font-size: 1.25rem;
  margin-top: 0;
}

.login-page form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-page label {
  font-size: 0.9rem;
  font-weight: 600;
}

.login-page input {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-page button {
  padding: 0.6rem;
  font-size: 1rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.login-page .error {
  color: #b00020;
  font-size: 0.9rem;
}

.admin-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.admin-page h1 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 1.75rem;
  color: var(--shop-ink);
}

.admin-badge {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--shop-accent-soft);
  color: var(--shop-accent-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.3rem;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-nav a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: var(--shop-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-nav a:hover {
  color: var(--shop-ink);
  background: var(--shop-bg);
}

.admin-nav a.active {
  background: var(--shop-ink);
  color: #fff;
}

.admin-logout-form {
  margin: 0;
}

.admin-logout-btn {
  background: transparent;
  color: var(--shop-muted);
  border: 1px solid var(--shop-border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.admin-logout-btn:hover {
  color: var(--shop-ink);
  border-color: var(--shop-accent);
}

.admin-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  padding: 0.5rem;
  color: var(--shop-ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.admin-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 1rem;
  margin-left: 1.5rem;
}

.admin-view-store-link {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: var(--shop-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.admin-view-store-link:hover {
  color: var(--shop-ink);
  background: var(--shop-bg);
}

@media (max-width: 860px) {
  .admin-site-header {
    flex-wrap: wrap;
  }

  .admin-menu-toggle {
    display: inline-flex;
  }

  .admin-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 1rem 0 0;
    gap: 1rem;
  }

  .admin-menu.open {
    display: flex;
  }

  .admin-nav {
    flex-direction: column;
  }

  .admin-nav a,
  .admin-view-store-link {
    text-align: center;
  }

  .admin-page {
    padding: 1.5rem 1.25rem 3rem;
  }

  .review-card {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .review-card-photo {
    flex: 0 0 auto;
  }
}

.error {
  background: #fdecea;
  border: 1px solid #f5c2bc;
  color: #8a1c12;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.review-card {
  display: flex;
  gap: 2rem;
  border: 1px solid var(--shop-border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--shop-surface);
}

.review-card-photo {
  flex: 0 0 220px;
}

.review-card-photo img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.review-card-photo .no-photo {
  width: 100%;
  height: 160px;
  background: var(--shop-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shop-muted);
  border-radius: 10px;
}

.ai-confidence {
  font-size: 0.8rem;
  color: var(--shop-muted);
  margin-top: 0.75rem;
}

.review-card-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.review-card-form form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.review-card-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0.35rem;
  color: var(--shop-ink);
}

.review-card-form input,
.review-card-form select,
.review-card-form textarea {
  font-weight: normal;
  font-family: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

.review-card-form input:focus,
.review-card-form select:focus,
.review-card-form textarea:focus {
  outline: none;
  border-color: var(--shop-accent);
}

.review-card-form button {
  align-self: flex-start;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--shop-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.review-card-form button:hover {
  background: var(--shop-accent-dark);
  transform: translateY(-1px);
}

.review-card-form form + form {
  margin-top: 0.5rem;
}

.review-card-form p {
  margin: 0 0 0.5rem;
  color: var(--shop-ink);
}

.admin-hint {
  font-size: 0.85rem;
  color: var(--shop-muted);
  margin-top: 1.5rem;
}

.success-banner {
  background: #eaf7ee;
  border: 1px solid #b8e0c2;
  color: #1a7a3a;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.intake-session-bar {
  background: var(--shop-surface);
  border: 1px solid var(--shop-border);
  border-radius: 14px;
  padding: 0.25rem 1.25rem;
  margin-bottom: 1.5rem;
}

.intake-session-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 0;
}

.intake-session-row + .intake-session-row {
  border-top: 1px solid var(--shop-border);
}

.intake-session-label {
  font-weight: 600;
  color: var(--shop-ink);
  font-size: 0.95rem;
}

.intake-donor-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.intake-donor-form input {
  width: 90px;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.15s ease;
}

.intake-donor-form input:focus {
  outline: none;
  border-color: var(--shop-accent);
}

.report-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  background: var(--shop-surface);
  border: 1px solid var(--shop-border);
  border-radius: 14px;
  padding: 1.25rem;
}

.report-filter-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0.35rem;
  color: var(--shop-ink);
}

.report-filter-form input,
.report-filter-form select {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.report-filter-form input:focus,
.report-filter-form select:focus {
  outline: none;
  border-color: var(--shop-accent);
}

.report-filter-form button {
  padding: 0.65rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--shop-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.report-filter-form button:hover {
  background: var(--shop-accent-dark);
  transform: translateY(-1px);
}

.report-clear-link {
  font-size: 0.85rem;
  color: var(--shop-muted);
  text-decoration: none;
  align-self: center;
}

.report-clear-link:hover {
  color: var(--shop-ink);
}

.report-summary {
  font-weight: 700;
  color: var(--shop-ink);
  margin: 0 0 1.25rem;
}

.report-truncation-note {
  font-size: 0.85rem;
  color: var(--shop-muted);
  margin-top: 0.75rem;
}

.consolidation-banner {
  background: var(--shop-accent-soft);
  border: 1px solid #ecc9b8;
  color: var(--shop-accent-dark);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.bins-table-wrap {
  border: 1px solid var(--shop-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--shop-surface);
}

.bins-table {
  width: 100%;
  border-collapse: collapse;
}

.bins-table th,
.bins-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--shop-border);
  font-size: 0.9rem;
}

.bins-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--shop-muted);
  font-weight: 600;
  background: var(--shop-bg);
}

.bins-table tbody tr:last-child td {
  border-bottom: none;
}

.suggestion-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.6rem;
  background: var(--shop-accent-soft);
  border: 1px solid #ecc9b8;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--shop-accent-dark);
}

.bin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bin-actions button {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  color: var(--shop-ink);
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.bin-actions button:hover {
  border-color: var(--shop-accent);
  color: var(--shop-accent);
}

.bin-actions a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  color: var(--shop-ink);
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.bin-actions a:hover {
  border-color: var(--shop-accent);
  color: var(--shop-accent);
}

.schedule-day {
  background: var(--shop-surface);
  border: 1px solid var(--shop-border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.schedule-day h2 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--shop-ink);
}

.schedule-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.schedule-slot button {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.schedule-slot-open button {
  background: var(--shop-accent-soft);
  border: 1px solid #ecc9b8;
  color: var(--shop-accent-dark);
}

.schedule-slot-open button:hover {
  background: var(--shop-accent);
  color: #fff;
  border-color: var(--shop-accent);
}

.schedule-slot-closed button {
  background: var(--shop-bg);
  border: 1px solid var(--shop-border);
  color: var(--shop-muted);
  text-decoration: line-through;
}

.schedule-slot-closed button:hover {
  border-color: var(--shop-muted);
  color: var(--shop-ink);
  text-decoration: none;
}

.schedule-add-form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--shop-border);
}

.schedule-add-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0.35rem;
  color: var(--shop-ink);
}

.schedule-add-form input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

.bin-create-form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.bin-create-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0.35rem;
  color: var(--shop-ink);
}

.bin-create-form input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

.bin-create-form input:focus {
  outline: none;
  border-color: var(--shop-accent);
}

.bin-create-form button {
  padding: 0.65rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--shop-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  height: fit-content;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.bin-create-form button:hover {
  background: var(--shop-accent-dark);
  transform: translateY(-1px);
}

.secondary-btn {
  padding: 0.65rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: transparent;
  color: var(--shop-muted);
  border: 1px solid var(--shop-border);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.secondary-btn:hover {
  color: var(--shop-ink);
  border-color: var(--shop-accent);
}

.admin-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.admin-hub-card {
  display: block;
  background: var(--shop-surface);
  border: 1px solid var(--shop-border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: var(--shop-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -12px rgba(32, 29, 25, 0.18);
  border-color: var(--shop-accent);
}

.admin-hub-card svg {
  color: var(--shop-accent);
  margin-bottom: 1rem;
}

.admin-hub-card h2 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--shop-ink);
}

.admin-hub-card p {
  margin: 0;
  color: var(--shop-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-header {
  background: var(--shop-surface);
  border-bottom: 1px solid var(--shop-border);
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--shop-ink);
  text-decoration: none;
}

.site-title-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-title-main {
  font-size: 1.5rem;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
}

.site-title-sub {
  font-size: 1.5rem;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  color: var(--shop-accent);
}

.site-logo {
  display: inline-block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  background-color: var(--shop-accent);
  -webkit-mask-image: url('/logo-mask.png');
  mask-image: url('/logo-mask.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav-link {
  color: var(--shop-ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}

.site-nav-link:hover {
  background: var(--shop-bg);
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--shop-ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}

.cart-link:hover {
  background: var(--shop-bg);
}

.storefront-page,
.item-page,
.about-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.about-page {
  max-width: 720px;
}

.about-page h1 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--shop-ink);
}

.about-intro {
  font-size: 1.05rem;
  color: var(--shop-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.about-section {
  margin-bottom: 2rem;
}

.about-section h2 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--shop-ink);
  margin: 0 0 0.5rem;
}

.about-section p {
  color: var(--shop-ink);
  line-height: 1.65;
  margin: 0;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.category-filter a {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--shop-border);
  background: var(--shop-surface);
  color: var(--shop-ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: capitalize;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.category-filter a:hover {
  border-color: var(--shop-accent);
  color: var(--shop-accent);
}

.category-filter a.active {
  background: var(--shop-ink);
  color: #fff;
  border-color: var(--shop-ink);
}

.empty-state {
  color: var(--shop-muted);
  text-align: center;
  padding: 4rem 1rem;
  font-size: 1.05rem;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.75rem;
}

.item-card {
  display: block;
  background: var(--shop-surface);
  border: 1px solid var(--shop-border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--shop-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -12px rgba(32, 29, 25, 0.18);
}

.item-card-photo {
  aspect-ratio: 1 / 1;
  background: var(--shop-bg);
  overflow: hidden;
}

.item-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.item-card:hover .item-card-photo img {
  transform: scale(1.06);
}

.item-card .no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shop-muted);
  font-size: 0.85rem;
}

.item-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0.9rem 1rem 0.35rem;
}

.item-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--shop-accent);
  margin: 0 1rem 1.1rem;
}

/* Sized in em so the same markup (views/partials/item-price.ejs) looks right whether
   it's dropped into the small grid-card price, the large item-detail price, or the
   cart line — each parent sets its own base font-size, these scale off of it. */
.price-original {
  font-size: 0.7em;
  font-weight: 500;
  color: var(--shop-muted);
  text-decoration: line-through;
  margin-right: 0.35em;
}

.discount-badge {
  display: inline-block;
  font-size: 0.55em;
  font-weight: 700;
  color: var(--shop-accent-dark);
  background: var(--shop-accent-soft);
  padding: 0.2em 0.55em;
  border-radius: 999px;
  margin-left: 0.5em;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  color: var(--shop-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--shop-ink);
}

.item-detail {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.item-detail-photo {
  flex: 1 1 380px;
  max-width: 480px;
}

.item-detail-photo img {
  width: 100%;
  border-radius: 16px;
  display: block;
  box-shadow: 0 16px 40px -20px rgba(32, 29, 25, 0.25);
}

.item-detail-photo .no-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--shop-surface);
  border: 1px solid var(--shop-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shop-muted);
  border-radius: 16px;
}

.item-detail-info {
  flex: 1 1 320px;
  padding-top: 0.25rem;
}

.item-detail-info h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

.item-category {
  display: inline-block;
  text-transform: capitalize;
  color: var(--shop-accent);
  background: var(--shop-accent-soft);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.item-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--shop-ink);
}

.item-description {
  margin-top: 1.5rem;
  line-height: 1.65;
  color: var(--shop-ink);
}

.item-detail-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.5rem 0 0.4rem;
}

.item-condition {
  color: var(--shop-muted);
  line-height: 1.6;
  margin: 0;
}

.add-to-cart-btn {
  margin-top: 2rem;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--shop-ink);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.add-to-cart-btn:hover {
  background: var(--shop-accent);
  transform: translateY(-1px);
}

.unavailable-note {
  background: #fdecea;
  border: 1px solid #f5c2bc;
  color: #8a1c12;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.cart-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.cart-page h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 1.75rem;
}

.cart-item {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--shop-surface);
  border: 1px solid var(--shop-border);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.15s ease;
}

.cart-item:hover {
  box-shadow: 0 8px 20px -14px rgba(32, 29, 25, 0.2);
}

.cart-item-photo {
  flex: 0 0 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
}

.cart-item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-photo .no-photo {
  width: 100%;
  height: 100%;
  background: var(--shop-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shop-muted);
  font-size: 0.7rem;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.cart-item-price {
  margin: 0;
  color: var(--shop-accent);
  font-weight: 700;
}

.cart-item-countdown {
  font-size: 0.8rem;
  color: var(--shop-muted);
  margin: 0.35rem 0 0;
}

.cart-item-countdown .countdown-value {
  color: var(--shop-accent-dark);
  font-weight: 600;
}

.cart-item-remove button {
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--shop-muted);
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.cart-item-remove button:hover {
  color: #b00020;
  border-color: #f0c2c6;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--shop-ink);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
}

.cart-subtotal {
  font-size: 1.3rem;
  font-weight: 800;
}

.checkout-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-top: 1.5rem;
}

.checkout-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0.4rem;
  flex: 1 1 260px;
  color: var(--shop-ink);
}

.checkout-form input,
.checkout-form select {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--shop-border);
  border-radius: 10px;
  font-weight: normal;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease;
}

.checkout-form input:focus,
.checkout-form select:focus {
  outline: none;
  border-color: var(--shop-accent);
}

.checkout-form-hint {
  flex: 1 1 100%;
  margin: -0.5rem 0 0;
}

.checkout-form .checkbox-label {
  flex-direction: row;
  align-items: center;
  flex: 1 1 100%;
  gap: 0.6rem;
}

.checkout-form .checkbox-label input {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  padding: 0;
  accent-color: var(--shop-accent);
}

.checkout-btn {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--shop-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.checkout-btn:hover {
  background: var(--shop-accent-dark);
  transform: translateY(-1px);
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 2rem 0 3rem;
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  text-decoration: none;
}

@media (max-width: 640px) {
  .storefront-page,
  .item-page,
  .cart-page {
    padding: 1.5rem 1.25rem 3rem;
  }

  .site-header {
    padding: 1rem 1.25rem;
  }

  .item-detail {
    gap: 2rem;
  }
}

.staff-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.staff-page h1 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  color: var(--shop-ink);
}

.order-card {
  background: var(--shop-surface);
  border: 1px solid var(--shop-border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--shop-border);
}

.order-number {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--shop-ink);
}

.order-customer {
  font-size: 0.85rem;
  color: var(--shop-muted);
}

.fulfillment-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--shop-bg);
}

.fulfillment-item:last-of-type {
  border-bottom: none;
}

.fulfillment-item-photo {
  flex: 0 0 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
}

.fulfillment-item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fulfillment-item-photo .no-photo {
  width: 100%;
  height: 100%;
  background: var(--shop-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shop-muted);
  font-size: 0.65rem;
}

.fulfillment-item-info {
  flex: 1;
  min-width: 0;
}

.fulfillment-item-title {
  margin: 0 0 0.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--shop-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fulfillment-item-bin {
  margin: 0;
  font-size: 0.85rem;
  color: var(--shop-muted);
}

.pull-btn {
  flex: 0 0 auto;
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--shop-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.pull-btn:hover {
  background: var(--shop-accent-dark);
}

.pulled-badge {
  flex: 0 0 auto;
  color: #1a7a3a;
  font-weight: 600;
  font-size: 0.9rem;
}

.decline-form {
  flex: 0 0 auto;
  margin: 0;
}

.decline-btn {
  padding: 0.45rem 0.8rem;
  background: transparent;
  color: var(--shop-muted);
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.decline-btn:hover {
  color: #b00020;
  border-color: #f0c2c6;
}

.bin-number-link {
  color: var(--shop-ink);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.bin-number-link:hover {
  color: var(--shop-accent);
  text-decoration: underline;
}

.ledger-credit {
  color: #1a7a3a;
  font-weight: 600;
}

.ledger-debit {
  color: #b00020;
  font-weight: 600;
}

.pickup-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  background: #1a7a3a;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.pickup-btn:hover {
  background: #15642f;
  transform: translateY(-1px);
}

.return-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.5rem 0 0.7rem;
}

.return-reason-input {
  flex: 1 1 160px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
}
