/* Probably Peter Shop Stylesheet */
:root {
  --pp-primary: #111827;
  --pp-primary-hover: #1f2937;
  --pp-accent: #dc2626; /* Japanese vermilion / red accent */
  --pp-accent-hover: #b91c1c;
  --pp-bg: #f9fafb;
  --pp-card-bg: #ffffff;
  --pp-border: #e5e7eb;
  --pp-text: #1f2937;
  --pp-text-muted: #6b7280;
  --pp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pp-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--pp-font);
  color: var(--pp-text);
  background-color: var(--pp-bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Top Bar ── */
.top-bar {
  background-color: #111827;
  color: #d1d5db;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.currency-select-form select {
  background: #1f2937;
  color: #fff;
  border: 1px solid #374151;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}

/* ── Main Navigation ── */
.header-main {
  background: #ffffff;
  border-bottom: 1px solid var(--pp-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #111827;
}

.brand-logo .shop-badge {
  background: var(--pp-accent);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.search-form {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.55rem 2.5rem 0.55rem 1rem;
  border: 1px solid var(--pp-border);
  border-radius: 9999px;
  background: #f3f4f6;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.search-input:focus {
  border-color: #111827;
  background: #fff;
}

.search-button {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pp-text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.nav-link {
  color: var(--pp-text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover {
  color: var(--pp-accent);
}

.cart-badge {
  background: var(--pp-accent);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-weight: 700;
}

/* ── Category Bar ── */
.category-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--pp-border);
  font-size: 0.85rem;
  overflow-x: auto;
  white-space: nowrap;
}

.category-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  gap: 1.5rem;
}

.category-nav-link {
  color: var(--pp-text-muted);
  font-weight: 500;
  transition: color 0.15s;
}

.category-nav-link:hover, .category-nav-link.active {
  color: var(--pp-accent);
}

/* ── Layout Containers ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  flex: 1;
  width: 100%;
}

/* ── Flash Messages ── */
.messages-container {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 0 1rem;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-error, .alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Hero Banner ── */
.hero-banner {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fff;
  border-radius: 12px;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-block;
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.4);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

/* ── Value Props Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.feature-box {
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-icon {
  font-size: 1.5rem;
}

.feature-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: 0.8125rem;
  color: var(--pp-text-muted);
}

/* ── Section Header ── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--pp-border);
  padding-bottom: 0.5rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.section-link {
  font-size: 0.85rem;
  color: var(--pp-accent);
  font-weight: 600;
}

/* ── Product Card Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07);
}

.product-thumb-wrap {
  aspect-ratio: 1 / 1;
  background: #f3f4f6;
  position: relative;
  overflow: hidden;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-thumb {
  transform: scale(1.05);
}

.badge-featured {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--pp-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.product-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 0.75rem;
  color: var(--pp-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.25rem;
  color: #111827;
}

.product-ja-name {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
}

.product-price {
  font-size: 1.125rem;
  font-weight: 800;
  color: #111827;
}

.btn-add-cart {
  background: #111827;
  color: #fff;
  border: none;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-add-cart:hover {
  background: var(--pp-accent);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: #111827;
  color: #fff;
}

.btn-primary:hover {
  background: var(--pp-accent);
}

.btn-accent {
  background: var(--pp-accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--pp-accent-hover);
}

.btn-secondary {
  background: #fff;
  color: var(--pp-text);
  border-color: var(--pp-border);
}

.btn-secondary:hover {
  background: #f3f4f6;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

.btn-block {
  width: 100%;
}

/* ── Forms & Cards ── */
.card {
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--pp-border);
  padding-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-control, .form-select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  border: 1px solid var(--pp-border);
  border-radius: 6px;
  background: #fff;
  color: var(--pp-text);
  outline: none;
}

.form-control:focus, .form-select:focus {
  border-color: #111827;
}

.otp-input {
  font-family: var(--pp-font-mono);
  font-size: 1.75rem;
  letter-spacing: 0.5rem;
  text-align: center;
  padding: 0.75rem;
}

/* ── Tables ── */
.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th {
  text-align: left;
  padding: 0.75rem;
  background: #f9fafb;
  border-bottom: 2px solid var(--pp-border);
  font-weight: 600;
}

.table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--pp-border);
  vertical-align: middle;
}

/* ── Order Status Badges ── */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-PENDING_REVIEW { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.status-INVOICED { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.status-PAID { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.status-PROCESSING { background: #ede9fe; color: #5b21b6; border: 1px solid #ddd6fe; }
.status-SHIPPED { background: #cffafe; color: #155e75; border: 1px solid #a5f3fc; }
.status-CANCELLED { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Footer ── */
.footer {
  background: #111827;
  color: #9ca3af;
  font-size: 0.8125rem;
  padding: 3rem 1rem 2rem;
  margin-top: auto;
  border-top: 1px solid #1f2937;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #1f2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Mobile adjustments ── */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .search-form {
    max-width: 100%;
  }
  .hero-title {
    font-size: 1.75rem;
  }
}
