:root {
  --accent: #0066ff;
  --accent-dark: #0050c9;
  --ink: #14181f;
  --ink-soft: #5a6270;
  --band-bg: #101623;
  --band-ink: #eef1f6;
  --border: #e3e7ee;
  --bg: #ffffff;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 680px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.logo img {
  height: 34px;
  width: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.contact-info {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.contact-info a {
  color: var(--ink-soft);
}

.contact-info a:hover {
  color: var(--accent);
}

/* Hero */

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: linear-gradient(rgba(8, 11, 18, 0.68), rgba(8, 11, 18, 0.68)), url("assets/library-splash.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 60px 24px;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  max-width: 780px;
  margin: 0 auto;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.photo-credit {
  position: absolute;
  bottom: 10px;
  right: 16px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.42);
}

.photo-credit a {
  color: rgba(255, 255, 255, 0.5);
}

/* Specializing band */

.specializing {
  background: var(--band-bg);
  color: var(--band-ink);
  padding: 36px 24px;
  text-align: center;
}

.specializing .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 1.4rem;
  font-weight: 500;
}

.specializing img {
  height: 32px;
  width: auto;
}

/* Products */

.products {
  padding: 64px 24px;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: 2rem;
  margin: 0 0 10px;
}

.section-heading p {
  color: var(--ink-soft);
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.product-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  background: #fff;
  color: inherit;
}

.product-card:hover {
  box-shadow: 0 10px 24px rgba(20, 24, 31, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card-body {
  padding: 18px 20px 22px;
}

.product-card-body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.product-price {
  color: var(--accent-dark);
  font-weight: 700;
  margin: 0 0 12px;
}

.product-card-body .details-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.product-card:hover .details-link {
  text-decoration: underline;
}

.products-footer {
  text-align: center;
  margin-top: 40px;
}

.see-more {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
}

.bulk-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 14px;
}

.bulk-note a {
  color: var(--ink-soft);
  text-decoration: underline;
}

/* Contact page (About + Contact two-column layout) */

.contact-page {
  padding: 64px 24px;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-section h2 {
  font-size: 1.8rem;
  margin: 0 0 20px;
}

.about-section p {
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.contact-box {
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  background: #f7f9fc;
}

.contact-box h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.contact-box p {
  margin: 0;
  color: var(--ink-soft);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  margin-top: 18px;
}

.contact-links a {
  color: var(--accent-dark);
  font-weight: 600;
}

.contact-box .bulk-note {
  text-align: left;
  margin-top: 22px;
}

@media (max-width: 760px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
}

/* Shipping page */

.shipping-page {
  padding: 64px 24px;
}

.shipping-page h1 {
  font-size: 1.9rem;
  margin: 0 0 28px;
}

.shipping-page h2 {
  font-size: 1.2rem;
  margin: 32px 0 10px;
}

.shipping-page h2:first-of-type {
  margin-top: 0;
}

.shipping-page p {
  color: var(--ink-soft);
  margin: 0 0 8px;
}

/* Product detail page */

.product-detail {
  padding: 48px 24px 32px;
}

.product-not-found {
  text-align: center;
  padding: 64px 24px;
}

.product-not-found p {
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Gallery */

.product-gallery {
  position: sticky;
  top: 24px;
}

.gallery-main {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f7f9fc;
}

.gallery-main img,
.gallery-main video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #f7f9fc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb-video {
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.gallery-thumb.active {
  border-color: var(--accent);
}

.gallery-disclosure {
  color: var(--ink-soft);
  opacity: 0.7;
  font-size: 0.76rem;
  margin: 14px 0 0;
  line-height: 1.5;
}

/* Summary */

.product-summary h1 {
  font-size: 1.9rem;
  margin: 0 0 8px;
}

.product-tagline {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 18px;
}

.product-detail-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}

.condition-line {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 24px;
  line-height: 1.6;
}

.product-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

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

.btn-secondary {
  background: #ffffff;
  color: var(--accent-dark);
  border: 2px solid var(--accent);
}

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

.product-summary .bulk-note {
  text-align: left;
  margin-top: 20px;
}

/* Detail sections */

.detail-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.detail-section h2 {
  font-size: 1.4rem;
  margin: 0 0 16px;
}

.detail-section h3 {
  font-size: 1.05rem;
  margin: 24px 0 10px;
}

.product-description {
  color: var(--ink-soft);
  max-width: 720px;
}

.table-scroll {
  overflow-x: auto;
}

.specs-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.specs-table th,
.specs-table td,
.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td:last-child,
.data-table th:last-child {
  white-space: normal;
}

.specs-table th {
  color: var(--ink-soft);
  font-weight: 500;
  width: 220px;
  white-space: nowrap;
}

.data-table thead th {
  color: var(--ink-soft);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.table-note {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 12px;
}

.included-list,
.plain-list {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.included-list li,
.plain-list li {
  margin-bottom: 8px;
}

.shipping-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 28px;
}

.disclosure-box {
  background: #fff8ec;
  border: 1px solid #f0d9a6;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 32px;
}

.disclosure-box h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.disclosure-box p {
  margin: 0;
  color: var(--ink-soft);
}

/* Tabs */

.product-tabs {
  max-width: 780px;
}

.tab-list {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}

.tab-trigger {
  background: none;
  border: none;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-trigger:hover {
  color: var(--ink);
}

.tab-trigger.active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  font-size: 1.05rem;
  margin: 28px 0 10px;
}

.tab-panel h3:first-child {
  margin-top: 0;
}

/* FAQ accordion */

.faq-section {
  max-width: 780px;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.faq-question:hover {
  color: var(--accent-dark);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 0.15s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s ease;
}

.faq-answer p {
  overflow: hidden;
  margin: 0;
  color: var(--ink-soft);
  padding-right: 24px;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-answer p {
  padding-bottom: 18px;
}

@media (max-width: 760px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }
}

/* Contact Us footer section (index & products pages) */

.contact-section {
  background: #f7f9fc;
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 56px;
}

.contact-section h2 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.contact-section .contact-links {
  flex-direction: row;
  justify-content: center;
  gap: 28px;
}

.site-footer {
  padding: 20px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0 0 6px;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav ul {
    gap: 18px;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 50vh;
  }
}
