/* ============================================================
   Price Motorsport Engineering, Inc. — style.css
   Racing theme: dark background, red accents, clean typography
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --red: #cc2200;
  --red-hover: #e62600;
  --orange: #ff6600;
  --text: #e8e8e8;
  --muted: #888888;
  --white: #ffffff;
  --nav-height: 64px;
  --font-main: 'Segoe UI', Arial, sans-serif;
  --font-mono: 'Courier New', monospace;
  --transition: 0.2s ease;
  --radius: 4px;
  --radius-lg: 8px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

a:hover {
  color: var(--orange);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  line-height: 1.2;
}

main {
  flex: 1;
}

/* --- Call Banner (top bar) --- */
.call-banner {
  background-color: var(--red);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.call-banner a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.call-banner a:hover {
  color: #ffddcc;
}

/* --- Header / Navigation --- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--surface);
  border-bottom: 2px solid var(--red);
  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* Logo / Nav Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.1;
  text-decoration: none;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

.nav-brand:hover {
  color: var(--white);
}

.nav-logo {
  height: 40px;
  width: auto;
  margin-right: 4px;
  vertical-align: middle;
  flex-shrink: 0;
}

.nav-brand .logo-pme {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-brand .logo-sub {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.nav-links > li > button.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: none;
  background: none;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  font-family: var(--font-main);
}

.nav-links > li > a:hover,
.nav-links > li > button.dropdown-toggle:hover {
  color: var(--white);
  background-color: rgba(204, 34, 0, 0.18);
}

.nav-links > li > a.active {
  color: var(--red);
  background-color: rgba(204, 34, 0, 0.12);
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform var(--transition);
  color: var(--muted);
}

.nav-links > li.open > button .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  min-width: 240px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 2000;
  padding: 6px 0;
}

.nav-links > li.open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 9px 18px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition), padding-left var(--transition);
}

.dropdown-menu a:hover {
  color: var(--white);
  background-color: rgba(204, 34, 0, 0.15);
  padding-left: 24px;
}

.dropdown-menu a.active {
  color: var(--red);
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero Section --- */
.hero {
  position: relative;
  background-image: url('assets/images/EP-26Web2.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--red);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.82) 0%, rgba(13,13,13,0.92) 100%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(204,34,0,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(255,102,0,0.05) 0%, transparent 55%),
    repeating-linear-gradient(
      105deg,
      transparent 0px,
      transparent 80px,
      rgba(255,255,255,0.015) 80px,
      rgba(255,255,255,0.015) 82px
    );
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 4px 14px;
  border-radius: 30px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero h1 span {
  color: var(--red);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 0 auto 28px;
  border-radius: 2px;
}

@keyframes cta-pulse {
  0%   { box-shadow: 0 4px 16px rgba(204,34,0,0.4); }
  50%  { box-shadow: 0 4px 28px rgba(204,34,0,0.75), 0 0 40px rgba(204,34,0,0.25); }
  100% { box-shadow: 0 4px 16px rgba(204,34,0,0.4); }
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--red);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(204, 34, 0, 0.4);
  animation: cta-pulse 2.5s ease-in-out infinite;
}

.hero-cta:hover {
  background-color: var(--red-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 34, 0, 0.5);
  animation: none;
}

/* --- Page Content Wrapper --- */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* --- Section headings --- */
.section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.section-title span {
  color: var(--red);
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.section-divider {
  height: 2px;
  background: linear-gradient(to right, var(--red), transparent);
  margin-bottom: 32px;
  border-radius: 2px;
}

/* --- Welcome / Info Box --- */
.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 36px;
}

.info-box p {
  margin-bottom: 10px;
  line-height: 1.7;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box .phone-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange);
}

.info-box .phone-link:hover {
  color: var(--red);
}

.info-box .note {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* --- Notice / Alert --- */
.notice {
  background: rgba(204, 34, 0, 0.08);
  border: 1px solid rgba(204, 34, 0, 0.3);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  color: #ffb8a0;
}

.notice strong {
  color: var(--orange);
}

/* --- Product Category Grid (home page) --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.product-card {
  display: block;
  position: relative;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--surface);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  z-index: 3;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(204,34,0,0.3);
  color: var(--text);
}

/* Full-bleed image */
.product-card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background-color: #111;
}

.product-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
}

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

/* Gradient overlay — darkens the bottom so text is readable */
.product-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.15) 35%,
    rgba(0,0,0,0.75) 65%,
    rgba(13,13,13,0.97) 100%
  );
  z-index: 1;
}

/* Text body sits at the bottom over the gradient */
.product-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card h3 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.product-card p {
  font-size: 0.75rem;
  color: rgba(232,232,232,0.78);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.product-card-arrow {
  font-size: 0.76rem;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 2px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.product-card:hover .product-card-arrow {
  transform: translateX(4px);
}

/* Featured card */
.product-card--featured {
  border-color: var(--red);
}

.product-card--featured::after {
  content: 'NEW';
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 4;
  text-transform: uppercase;
}

/* Cards with NO thumbnail (Miscellaneous) — solid dark surface */
.product-card--no-thumb {
  background: var(--surface);
}

.product-card--no-thumb .product-card-body {
  position: absolute;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  text-align: center;
  align-items: center;
}

/* Checkered stripe divider */
.checkered-stripe {
  height: 8px;
  background-image:
    repeating-linear-gradient(
      90deg,
      #ffffff 0px,
      #ffffff 12px,
      transparent 12px,
      transparent 24px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 12px,
      #ffffff 12px,
      #ffffff 24px
    );
  background-size: 24px 8px;
  background-position: 0 0, 0 4px;
  opacity: 0.08;
  margin: 0;
}

/* --- Photo placeholder --- */
.photo-placeholder {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--muted);
  text-align: center;
  min-height: 200px;
}

.photo-placeholder .ph-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  opacity: 0.4;
}

.photo-placeholder p {
  font-size: 0.85rem;
  font-style: italic;
}

.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.photo-row > div,
.photo-row > figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-row img {
  display: block;
  margin: 0 auto;
}

.photo-row figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
  font-style: italic;
}

.photo-single {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-single img {
  display: block;
  margin: 0 auto;
}

.photo-caption {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
  width: 100%;
  display: block;
}

/* Real photo (when image exists) */
.photo-real {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-real img {
  width: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* Real product images */
.product-img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0.5rem 0;
}

/* .photo-row figure and figcaption rules moved to photo section above */

/* --- Parts Table --- */
.parts-section {
  margin-bottom: 40px;
}

.parts-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

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

thead {
  background: #111;
}

thead th {
  padding: 13px 16px;
  text-align: left;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.015);
}

tbody tr:nth-child(even):hover {
  background: rgba(255,255,255,0.04);
}

tbody td {
  padding: 12px 16px;
  color: var(--text);
  vertical-align: top;
}

.td-partno {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--orange);
  font-weight: 600;
  white-space: nowrap;
}

.td-price {
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.td-call {
  color: var(--red);
  font-weight: 600;
  font-size: 0.88rem;
}

.td-disc {
  color: var(--muted);
  font-style: italic;
  font-size: 0.88rem;
}

/* Compatibility table (intake adapters) */
.compat-table thead th {
  font-size: 0.8rem;
}

.compat-table .td-partno {
  font-size: 0.85rem;
}

/* --- Product Page Layout --- */
.product-page-header {
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.product-page-header .breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.product-page-header .breadcrumb a {
  color: var(--muted);
}

.product-page-header .breadcrumb a:hover {
  color: var(--text);
}

.product-page-header .breadcrumb span {
  margin: 0 6px;
}

.product-page-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
}

.product-page-header h1 .page-label {
  color: var(--red);
}

/* --- Content prose --- */
.content-prose {
  max-width: 800px;
}

.content-prose p {
  margin-bottom: 16px;
  line-height: 1.75;
  color: var(--text);
}

.content-prose ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}

.content-prose ul li {
  margin-bottom: 8px;
  color: var(--text);
}

.content-prose strong {
  color: var(--white);
}

.content-prose .highlight {
  color: var(--orange);
  font-style: italic;
}

/* --- New Products page --- */
.new-product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.new-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.new-product-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.new-product-card p {
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.7;
}

.new-product-card p:last-child {
  margin-bottom: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
  transition: color var(--transition);
}

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

/* --- Spec list --- */
.spec-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 20px 0;
}

.spec-list dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 12px;
}

.spec-list dt:first-child {
  margin-top: 0;
}

.spec-list dd {
  color: var(--text);
  margin-left: 0;
  padding-left: 0;
  font-size: 0.95rem;
}

/* --- Discontinued badge --- */
.disc-badge {
  display: inline-block;
  background: rgba(136, 136, 136, 0.15);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 30px;
  border: 1px solid var(--border);
  margin-left: 8px;
}

/* --- Footer --- */
footer {
  background: var(--surface);
  border-top: 2px solid var(--red);
  padding: 40px 24px 28px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 14px;
}

.footer-col p,
.footer-col address {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
  font-style: normal;
}

.footer-col a {
  color: var(--muted);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col .footer-phone {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}

.footer-col .footer-phone:hover {
  color: var(--orange);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-nav-list a {
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-nav-list a:hover {
  color: var(--text);
}

.footer-bottom {
  max-width: 1100px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-bottom strong {
  color: var(--red);
}

/* --- Utility --- */
.text-red { color: var(--red); }
.text-orange { color: var(--orange); }
.text-muted { color: var(--muted); }
.text-white { color: var(--white); }
.font-mono { font-family: var(--font-mono); }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  :root { --nav-height: 56px; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--nav-height) + 2px);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 2px solid var(--red);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > li {
    width: 100%;
  }

  .nav-links > li > a,
  .nav-links > li > button.dropdown-toggle {
    width: 100%;
    padding: 12px 20px;
    border-radius: 0;
    justify-content: space-between;
    font-size: 0.95rem;
  }

  .dropdown-menu {
    position: static;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
    padding: 4px 0;
  }

  .dropdown-menu a {
    padding: 10px 32px;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding: 48px 20px;
  }

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

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

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

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .page-wrap {
    padding: 32px 16px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

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

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