/* ============================================================
   Chrono24 Replica — main.css
   Static demo: deep teal + amber, Inter typography
   ============================================================ */

:root {
  --teal: #0e3634;
  --teal-deep: #0a2928;
  --teal-soft: #174845;
  --accent: #f26a1b;
  --accent-dark: #d95a10;
  --bg: #ffffff;
  --bg-alt: #f5f5f1;
  --ink: #1d2424;
  --muted: #68706d;
  --line: #e6e6e0;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 30, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 30, 30, 0.1);
  --shadow-lg: 0 24px 60px rgba(10, 30, 30, 0.28);
  --ease: 180ms ease-out;
  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.i {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i-sm {
  width: 16px;
  height: 16px;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--ease), color var(--ease),
    border-color var(--ease), transform var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-soft);
}

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

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

.btn-outline {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-ghost {
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--accent);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
  margin-top: 4px;
}

.icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex: 0 0 auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  color: var(--ink);
  transition: background var(--ease), color var(--ease);
}

.icon-btn:hover {
  background: var(--bg-alt);
  color: var(--teal);
}

.link-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
}

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

/* ---------------- Topbar ---------------- */

.topbar {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  color: inherit;
  font-weight: 500;
  transition: background var(--ease), color var(--ease);
}

.topbar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.topbar-link .i {
  width: 15px;
  height: 15px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.wordmark {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wordmark span {
  color: var(--accent);
}

.wordmark-light {
  color: #fff;
  font-size: 22px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 12px;
}

.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.main-nav a:hover {
  color: var(--teal);
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.burger {
  display: none;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8, 28, 27, 0.92) 0%,
    rgba(10, 40, 38, 0.68) 45%,
    rgba(10, 40, 38, 0.25) 100%
  );
}

.hero-inner {
  position: relative;
  padding: 104px 24px 120px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfe3dd;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 620px;
}

.hero-sub {
  margin-top: 18px;
  max-width: 540px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-search {
  margin-top: 34px;
  display: flex;
  align-items: center;
  max-width: 720px;
  background: #fff;
  border-radius: var(--radius);
  padding: 6px;
  gap: 6px;
  box-shadow: var(--shadow-lg);
}

.hero-search-icon {
  display: flex;
  align-items: center;
  padding-left: 12px;
  color: var(--muted);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.hero-search-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.hero-chips {
  margin-top: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
}

.hero-chips button {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: background var(--ease), border-color var(--ease);
}

.hero-chips button:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

/* ---------------- Stats ---------------- */

.stats {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 34px;
  padding-bottom: 34px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal);
}

.stat span {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------------- Sections ---------------- */

.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.section-head-center {
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------------- Brand grid ---------------- */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.brand-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: background var(--ease), color var(--ease),
    border-color var(--ease), transform var(--ease);
}

.brand-cell:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

.brand-monogram {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.brand-cell:hover .brand-monogram {
  color: var(--accent);
}

.brand-name {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

/* ---------------- Product grid ---------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease),
    border-color var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d8d8d0;
}

.product-media {
  position: relative;
  background: var(--bg-alt);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease);
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 4px;
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: color var(--ease), background var(--ease);
}

.fav-btn .i {
  width: 17px;
  height: 17px;
}

.fav-btn:hover,
.fav-btn.active {
  color: var(--accent);
}

.fav-btn.active .i {
  fill: var(--accent);
}

.product-info {
  padding: 16px 16px 18px;
}

.product-info h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.product-ref {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.product-meta {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.product-price {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------------- Category grid ---------------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease);
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 26, 25, 0.88) 0%,
    rgba(8, 26, 25, 0.25) 55%,
    rgba(8, 26, 25, 0) 100%
  );
}

.category-label {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: #fff;
}

.category-label strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.category-label small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------------- Sell band ---------------- */

.sell-band {
  background: var(--teal);
  color: #fff;
}

.sell-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 58px;
  padding-bottom: 58px;
}

.sell-inner h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sell-inner p {
  margin-top: 8px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15.5px;
}

/* ---------------- Features ---------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature {
  text-align: left;
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform var(--ease), box-shadow var(--ease),
    border-color var(--ease);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d8d8d0;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--teal);
  margin-bottom: 18px;
}

.feature-icon .i {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-size: 16.5px;
  font-weight: 700;
}

.feature p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------------- Magazine ---------------- */

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.editorial {
  text-align: left;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform var(--ease), box-shadow var(--ease);
}

.editorial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.editorial-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.editorial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease);
}

.editorial:hover .editorial-media img {
  transform: scale(1.04);
}

.editorial-tag {
  display: inline-block;
  margin: 18px 20px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.editorial h3 {
  margin: 8px 20px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.editorial > p {
  margin: 10px 20px 0;
  font-size: 14px;
  color: var(--muted);
}

.editorial-date {
  display: block;
  margin: 16px 20px 22px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 52px;
}

.footer-desc {
  margin-top: 14px;
  font-size: 14px;
  max-width: 300px;
}

.newsletter {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  max-width: 340px;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter input:focus {
  border-color: var(--accent);
}

.newsletter .btn {
  padding: 10px 18px;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--ease);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-social {
  display: flex;
  gap: 18px;
}

.footer-social button {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--ease);
}

.footer-social button:hover {
  color: var(--accent);
}

/* ---------------- Modal ---------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 30, 30, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--ease), visibility var(--ease);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--ease), transform var(--ease);
}

.modal-card.show {
  opacity: 1;
  transform: translateY(0);
}

.modal-wide {
  max-width: 900px;
}

.modal-tall {
  max-width: 620px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  transition: background var(--ease), color var(--ease);
}

.modal-wide .modal-close {
  background: rgba(15, 30, 30, 0.08);
  color: #fff;
}

.modal-close:hover {
  background: var(--accent);
  color: #fff;
}

.modal-head {
  padding: 30px 30px 0;
}

.modal-head h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-right: 40px;
}

.modal-sub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.modal-body {
  padding: 22px 30px 30px;
}

.modal-body p {
  font-size: 15px;
  color: var(--ink);
}

.modal-foot {
  padding: 0 30px 30px;
  display: flex;
  justify-content: flex-end;
}

/* search form inside modal */

.search-form {
  display: flex;
  gap: 10px;
  margin: 20px 30px 0;
}

.search-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  font: inherit;
  font-size: 14.5px;
  outline: none;
}

.search-form input:focus {
  border-color: var(--teal);
}

/* search result rows */

.sr-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sr-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  transition: border-color var(--ease), background var(--ease);
}

.sr-row:hover {
  border-color: var(--teal);
  background: var(--bg-alt);
}

.sr-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.sr-text {
  flex: 1;
  min-width: 0;
}

.sr-text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}

.sr-text small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

.sr-price {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.sr-empty {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 2px;
}

/* ---------------- Product modal ---------------- */

.pm {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.pm-media {
  background: var(--bg-alt);
  min-height: 420px;
}

.pm-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-info {
  padding: 34px 30px 30px;
}

.pm-certified {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 4px;
}

.pm-info h2 {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 800;
}

.pm-info h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.pm-ref {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.pm-specs {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.pm-specs dt {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pm-specs dd {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
}

.pm-price {
  margin-top: 22px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pm-price span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.pm-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pm-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

/* register prompt inside guest product modal */

.register-prompt {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 14px;
  border-radius: var(--radius);
  background: #fdf3ea;
  border: 1px solid #f7d6bd;
}

.register-prompt-icon {
  display: flex;
  align-items: flex-start;
  color: var(--accent);
  flex: 0 0 auto;
}

.register-prompt-icon .i {
  width: 22px;
  height: 22px;
}

.register-prompt-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #8a3c0d;
  line-height: 1.35;
}

.register-prompt-text p {
  margin-top: 4px;
  font-size: 12.5px;
  color: #9c6a4e;
  line-height: 1.45;
}

.pm-signin {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
}

.text-link {
  font-size: inherit;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-link:hover {
  color: var(--accent-dark);
}

/* signed-in welcome strip */

.pm-welcome {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.pm-welcome-avatar {
  display: flex;
  align-items: center;
  color: var(--teal);
}

.pm-welcome-avatar .i {
  width: 20px;
  height: 20px;
}

.pm-welcome strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------- Auth modal ---------------- */

.auth-form {
  padding-bottom: 14px;
}

.auth-check {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  line-height: 1.45;
}

.auth-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.auth-switch {
  padding: 0 30px 28px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

/* ---------------- Account modal ---------------- */

.acct-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.acct-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--teal);
  flex: 0 0 auto;
}

.acct-avatar .i {
  width: 24px;
  height: 24px;
}

.acct-user strong {
  font-size: 16px;
  font-weight: 700;
}

.acct-user p {
  font-size: 13px;
  color: var(--muted);
}

.acct-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 10px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 500;
  transition: background var(--ease), color var(--ease);
}

.acct-row:hover {
  background: var(--bg-alt);
  color: var(--teal);
}

/* ---------------- Forms (sell) ---------------- */

.sell-form {
  padding: 22px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sell-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.sell-form input,
.sell-form select {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
  outline: none;
  background: #fff;
}

.sell-form input:focus,
.sell-form select:focus {
  border-color: var(--teal);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ---------------- Menu list ---------------- */

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-row {
  text-align: left;
  padding: 13px 12px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--ease), color var(--ease);
}

.menu-row:hover {
  background: var(--bg-alt);
  color: var(--teal);
}

/* ---------------- Toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 200;
  transform: translate(-50%, 20px);
  background: var(--teal-deep);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 100px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
  max-width: calc(100vw - 40px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1024px) {
  .brand-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .main-nav {
    display: none;
  }

  .burger {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .topbar-right .topbar-link:nth-child(-n + 2) {
    display: none;
  }

  .header-sell {
    display: none;
  }

  .hero-inner {
    padding: 72px 24px 84px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-search {
    flex-wrap: wrap;
    padding: 10px;
  }

  .hero-search input {
    flex-basis: 100%;
    order: 3;
    padding: 8px 6px;
  }

  .hero-search-select {
    border-left: none;
    margin-left: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-info {
    padding: 12px;
  }

  .product-price {
    font-size: 15px;
  }

  .magazine-grid {
    grid-template-columns: 1fr;
  }

  .sell-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pm {
    grid-template-columns: 1fr;
  }

  .pm-media {
    min-height: 280px;
  }

  .pm-specs {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-form {
    margin: 18px 20px 0;
  }

  .modal-head {
    padding: 24px 20px 0;
  }

  .modal-body {
    padding: 18px 20px 24px;
  }

  .sell-form {
    padding: 18px 20px 24px;
  }

  .auth-switch {
    padding: 0 20px 24px;
  }
}
