/* === MechaPenz — Japanese Zen Theme === */

:root {
  --bg: #f5f0e8;
  --bg-card: #faf7f2;
  --ink: #2c2c2c;
  --ink-light: #5a5a5a;
  --wood: #8b7355;
  --stone: #9a9a8a;
  --indigo: #4a5568;
  --gold: #c9b458;
  --border: #e0d8cc;
  --shadow: rgba(44, 44, 44, 0.06);
}

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

body {
  font-family: "Noto Sans JP", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

/* === Header === */

.site-header {
  text-align: center;
  padding: 3rem 1rem 1.5rem;
}

.site-header h1 {
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--wood);
  text-transform: uppercase;
}

.site-header .subtitle {
  font-size: 0.85rem;
  color: var(--stone);
  letter-spacing: 0.15em;
  margin-top: 0.3rem;
}

/* === Decorative divider === */

.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2rem;
}

/* === Navigation Tabs === */

.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  border-bottom: 1px solid var(--border);
}

.nav-tab {
  background: none;
  border: none;
  padding: 0.8rem 2rem;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--stone);
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.nav-tab::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-tab:hover {
  color: var(--wood);
}

.nav-tab.active {
  color: var(--ink);
}

.nav-tab.active::after {
  width: 100%;
}

/* === Sections === */

.collection-section {
  display: none;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  animation: fadeIn 0.4s ease;
}

.collection-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-card.fade-in {
  animation: fadeIn 0.4s ease;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--wood);
  text-align: center;
  margin-bottom: 0;
}

/* === Brand Filter Dropdown === */

.brand-filter-wrap {
  position: absolute;
  right: 0;
}

.brand-filter {
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 2rem 0.4rem 0.8rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239a9a8a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  transition: border-color 0.2s ease;
}

.brand-filter:focus {
  outline: none;
  border-color: var(--gold);
}

.brand-filter:hover {
  border-color: var(--wood);
}

/* === Product Cards === */

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 4px 20px var(--shadow);
}

.product-info {
  padding: 0.7rem 1.5rem;
  padding-right: 3rem;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  height: 2.4rem;
  font-size: 0.85rem;
  line-height: 16px;
}

.product-field {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.product-field .field-icon {
  display: block;
  width: 16px !important;
  height: 16px !important;
  max-width: 16px;
  max-height: 16px;
  min-width: 16px;
  min-height: 16px;
  object-fit: contain;
  margin-left: 8px;
  margin-right: 0.35rem;
  flex-shrink: 0;
  flex-grow: 0;
  flex-basis: 16px;
  vertical-align: middle;
  opacity: 0.55;
}

.product-field .field-logo {
  width: auto;
  height: 16px;
  object-fit: contain;
  margin-right: 0.6rem;
  flex-shrink: 0;
  vertical-align: middle;
}

.field-logo-spacer {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 0.6rem;
  flex-shrink: 0;
}

.product-field-separator {
  width: 1px;
  height: 14px;
  background: var(--border);
  margin: 0 0.8rem;
  flex-shrink: 0;
}

/* === Info Icon === */

.info-link {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  opacity: 0.6;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.info-link:hover {
  opacity: 1;
  background: var(--gold);
  color: var(--bg-card);
}

.product-brand {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
}

.product-model {
  font-size: 0.85rem;
  color: var(--indigo);
}

.product-detail {
  font-size: 0.85rem;
  color: var(--stone);
}

.product-color {
  font-size: 0.85rem;
  color: var(--wood);
  font-style: italic;
}

.product-quantity {
  font-size: 0.75rem;
  color: var(--stone);
  background: var(--border);
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.3rem;
}

/* === Product Image === */

.product-image-wrap {
  padding: 0.5rem 1.5rem 1rem;
  background: var(--bg-card);
}

.product-image-wrap img {
  width: 100%;
  max-width: 750px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* === Placeholder === */

.placeholder {
  width: 100%;
  max-width: 750px;
  height: 175px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ede8df 0%, #e5dfd4 100%);
  border-radius: 4px;
  color: var(--stone);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.placeholder svg {
  width: 40px;
  height: 40px;
  margin-right: 0.8rem;
  opacity: 0.4;
}

/* === Footer === */

.site-footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  font-size: 0.75rem;
  color: var(--stone);
  letter-spacing: 0.1em;
}

/* === Responsive === */

@media (max-width: 600px) {
  .site-header h1 {
    font-size: 1.6rem;
    letter-spacing: 0.2em;
  }

  .nav-tab {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .product-info {
    padding: 0.5rem 1rem;
    padding-right: 2.8rem;
    height: auto;
    min-height: 2.4rem;
    flex-wrap: wrap;
    gap: 0.3rem 0;
  }

  .product-field-separator {
    display: none;
  }

  .product-image-wrap {
    padding: 0.4rem 0.8rem 0.8rem;
  }

  .collection-section {
    padding: 0 1rem 2rem;
  }
}
