﻿@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600&family=IBM+Plex+Mono:wght@400;600&family=Oswald:wght@400;600&family=Space+Grotesk:wght@400;600&family=Source+Serif+4:wght@400;600&family=Work+Sans:wght@300;400;600&display=swap');

:root {
  --body-font: "Work Sans", sans-serif;
  --heading-font: "Fraunces", serif;
  --ink: #1b1f24;
  --stone: #57606a;
  --paper: #ffffff;
  --mint: #d7e6e0;
  --clay: #2f8f9d;
  --shadow: rgba(21, 26, 31, 0.12);
  --header-bg: rgba(255, 255, 255, 0.9);
  --bg-gradient: linear-gradient(120deg, #f7f8f9 0%, #edf2f4 50%, #f9fbfb 100%);
  --card-border: rgba(36, 43, 50, 0.12);
  --hero-bg: #1b1f24;
  --hero-text: #f5f7f9;
  --footer-bg: #1b1f24;
  --footer-text: #f5f7f9;
  --input-bg: #ffffff;
  --input-text: #1b1f24;
  --card-radius: 20px;
  --pill-radius: 999px;
  --button-weight: 600;
  --border-weight: 1px;
}

body[data-theme="blueprint"] {
  --body-font: "IBM Plex Mono", sans-serif;
  --heading-font: "Oswald", sans-serif;
  --ink: #0b1a2a;
  --stone: #3f4c5a;
  --paper: #f2f6fb;
  --mint: #d8e6f5;
  --clay: #2b6cb0;
  --shadow: rgba(11, 26, 42, 0.2);
  --header-bg: rgba(242, 246, 251, 0.95);
  --bg-gradient: linear-gradient(120deg, #e9f1f9 0%, #d9e7f5 60%, #eef4fb 100%),
    repeating-linear-gradient(0deg, rgba(20, 60, 100, 0.08) 0, rgba(20, 60, 100, 0.08) 1px, transparent 1px, transparent 32px),
    repeating-linear-gradient(90deg, rgba(20, 60, 100, 0.08) 0, rgba(20, 60, 100, 0.08) 1px, transparent 1px, transparent 32px);
  --card-border: rgba(20, 60, 100, 0.25);
  --hero-bg: #0b1a2a;
  --hero-text: #f2f6fb;
  --footer-bg: #0b1a2a;
  --footer-text: #f2f6fb;
  --input-bg: #ffffff;
  --input-text: #0b1a2a;
  --card-radius: 6px;
  --pill-radius: 6px;
  --button-weight: 700;
  --border-weight: 2px;
}

body[data-theme="factory"] {
  --body-font: "Space Grotesk", sans-serif;
  --heading-font: "Oswald", sans-serif;
  --ink: #151617;
  --stone: #4f545a;
  --paper: #f6f4ef;
  --mint: #f1dfc6;
  --clay: #f05a28;
  --shadow: rgba(21, 22, 23, 0.22);
  --header-bg: rgba(246, 244, 239, 0.95);
  --bg-gradient: linear-gradient(120deg, #f8f6f1 0%, #ece6dc 55%, #f4f2ed 100%);
  --card-border: rgba(21, 22, 23, 0.2);
  --hero-bg: #151617;
  --hero-text: #f6f4ef;
  --footer-bg: #151617;
  --footer-text: #f6f4ef;
  --input-bg: #ffffff;
  --input-text: #151617;
  --card-radius: 4px;
  --pill-radius: 4px;
  --button-weight: 700;
  --border-weight: 2px;
}

body[data-theme="retro"] {
  --body-font: "Work Sans", sans-serif;
  --heading-font: "Source Serif 4", serif;
  --ink: #2a1b17;
  --stone: #6c5750;
  --paper: #f8f1e7;
  --mint: #ead7c3;
  --clay: #7b2c2a;
  --shadow: rgba(42, 27, 23, 0.16);
  --header-bg: rgba(248, 241, 231, 0.95);
  --bg-gradient: linear-gradient(120deg, #fbf4ea 0%, #f1e6d6 60%, #f8efe3 100%);
  --card-border: rgba(90, 58, 46, 0.22);
  --hero-bg: #2a1b17;
  --hero-text: #f8f1e7;
  --footer-bg: #2a1b17;
  --footer-text: #f8f1e7;
  --input-bg: #ffffff;
  --input-text: #2a1b17;
  --card-radius: 18px 4px;
  --pill-radius: 18px 4px;
  --button-weight: 600;
  --border-weight: 1px;
}

body[data-theme="carbon"] {
  --body-font: "Space Grotesk", sans-serif;
  --heading-font: "IBM Plex Mono", sans-serif;
  --ink: #1c1f24;
  --stone: #6b7280;
  --paper: #ffffff;
  --mint: #f2f4f7;
  --clay: #de1c1a;
  --shadow: rgba(18, 20, 23, 0.12);
  --header-bg: rgba(255, 255, 255, 0.92);
  --bg-gradient: linear-gradient(160deg, #f7f7f8 0%, #f1f2f4 45%, #ffffff 100%);
  --card-border: rgba(28, 31, 36, 0.12);
  --hero-bg: #de1c1a;
  --hero-text: #ffffff;
  --footer-bg: #1c1f24;
  --footer-text: #ffffff;
  --input-bg: #ffffff;
  --input-text: #1c1f24;
  --card-radius: 24px;
  --pill-radius: 999px;
  --button-weight: 600;
  --border-weight: 1px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--bg-gradient);
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1rem;
  color: var(--stone);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 0.45rem 0;
  position: sticky;
  top: 0;
  background: var(--paper);
  backdrop-filter: none;
  z-index: 50;
  width: 100%;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 0 5vw;
}

.brand {
  justify-self: start;
}

.nav {
  justify-self: center;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 260px;
  height: auto;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #ffffff;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  justify-content: center;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-bottom-color: var(--clay);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-button {
  border: var(--border-weight) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.search-toggle {
  display: none;
}

.icon-button svg,
.cart-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-switcher,
.search {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.search {
  position: relative;
}

.theme-switcher select,
.search input {
  border: var(--border-weight) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding: 0.4rem 0.9rem;
  border-radius: var(--pill-radius);
  font-family: inherit;
}

.search input {
  min-width: 180px;
  padding-left: 2.8rem;
  background-repeat: no-repeat;
  background-position: 0.9rem center;
  background-size: 16px 16px;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231c1f24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

.search-results {
  list-style: none;
  padding: 0.5rem;
  margin: 0.4rem 0 0;
  border-radius: 12px;
  border: var(--border-weight) solid var(--card-border);
  background: var(--paper);
  display: grid;
  gap: 0.45rem;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 20;
  box-shadow: 0 16px 30px var(--shadow);
  max-height: 260px;
  overflow: auto;
}

.search-results[hidden] {
  display: none;
}

.search-results li {
  margin: 0;
  font-size: 0.9rem;
}

.search-results .search-result {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
}

.search-results .search-result:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-results .search-result span:last-child {
  color: var(--stone);
}

.search-results a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.search-results a:hover {
  text-decoration: underline;
}

.detail-panel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: min(420px, 90vw);
  background: var(--paper);
  color: var(--ink);
  padding: 2rem;
  box-shadow: -20px 0 40px var(--shadow);
  transform: translateX(110%);
  transition: transform 0.2s ease;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.detail-panel.is-open {
  transform: translateX(0);
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 30;
}

.detail-backdrop.is-open {
  opacity: 1;
}

.detail-close {
  align-self: flex-end;
  border: none;
  background: transparent;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 60;
}

.detail-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
}

.detail-add.is-added {
  animation: pulse-add 0.6s ease;
  box-shadow: 0 0 0 0 rgba(51, 209, 204, 0.35);
}

.cart-button {
  border: var(--border-weight) solid var(--ink);
  background: var(--paper);
  padding: 0.55rem 1.1rem;
  border-radius: var(--pill-radius);
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 700;
}

main {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 2rem 6vw 5rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-hero {
  margin-top: 1rem;
  align-items: center;
  text-align: center;
}

.search-block {
  width: min(100%, 640px);
  margin: 0 auto;
}

.popular-parts .section-heading p {
  color: var(--stone);
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.popular-link {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
}

.popular-link:hover {
  border-color: rgba(222, 28, 26, 0.5);
  color: #ffffff;
}

.search-block .search-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: 1.05rem;
}


.hero-panel {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 2rem;
  border-radius: var(--card-radius);
  box-shadow: 0 25px 40px var(--shadow);
}

.hero-panel p,
.hero-panel li {
  color: var(--hero-text);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.banner-search {
  position: relative;
  z-index: 0;
  background: url("assets/banner-1.png");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 12rem 6vw;
  border-radius: 0;
  width: calc(100% + 12vw);
  margin: -2rem -6vw 0;
}

.banner-search::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.banner-search > * {
  position: relative;
  z-index: 1;
}

.banner-search .section-heading h2,
.banner-search .section-heading p,
.banner-search .search input,
.banner-search .search input::placeholder {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.banner-search .section-heading h2 {
  font-size: clamp(2.2rem, 2.6vw, 3rem);
}

.banner-search .section-heading p {
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
}

.banner-search .search input {
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  padding-left: 3rem;
}

.banner-search .hero-actions .ghost {
  background: #ffffff;
  color: #1c1f24;
  border-color: #ffffff;
}

.banner-search .hero-actions .ghost:hover {
  filter: brightness(0.95);
}

.banner-search .search {
  position: relative;
  z-index: 5;
}

.banner-search .hero-actions {
  position: relative;
  z-index: 5;
  margin-top: 0.8rem;
}

.banner-search.has-results .hero-actions {
  margin-top: 6.5rem;
}

.banner-search .search-results {
  z-index: 20;
  color: var(--ink);
}

.banner-search .hero-actions {
  z-index: 1;
}

.banner-search .search-results .search-result,
.banner-search .search-results a {
  color: var(--ink);
}

.banner-search .section-heading,
.banner-search .search {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.manufacturer-strip {
  padding: 0;
  width: calc(100% + 12vw);
  margin: -4rem -6vw 0;
}

.manufacturer-marquee {
  width: 100%;
  height: clamp(120px, 20vw, 180px);
  overflow: hidden;
  background-color: var(--paper);
  position: relative;
}

.manufacturer-track {
  display: flex;
  height: 100%;
  gap: 0;
  animation: manufacturer-scroll var(--marquee-duration, 24s) linear infinite;
  will-change: transform;
}

.manufacturer-track img {
  height: 100%;
  width: auto;
  display: block;
  flex-shrink: 0;
}

@keyframes manufacturer-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--marquee-distance, 0px)));
  }
}

.collection-grid,
.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.collection-grid article,
.product-card {
  background: var(--paper);
  border-radius: var(--card-radius);
  padding: 1.6rem;
  box-shadow: 0 12px 24px var(--shadow);
  border: var(--border-weight) solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-open {
  align-self: flex-start;
  display: inline-flex;
  border: var(--border-weight) solid var(--ink);
  padding: 0.6rem 1.3rem;
  border-radius: var(--pill-radius);
  font-weight: var(--button-weight);
}

.text-link {
  display: inline-flex;
  font-weight: 600;
  text-decoration: underline;
}

.category-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: underline;
  margin-bottom: 0.5rem;
}

.search-empty {
  font-weight: 600;
}

.product-meta {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  font-weight: 600;
  padding-top: 0.75rem;
  border-top: 1px solid var(--card-border);
  margin-top: auto;
}

.product-price {
  text-align: center;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.qty-input {
  width: 56px;
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  text-align: center;
}

.product-card h4 {
  margin-bottom: 0.2rem;
}

.product-name {
  cursor: pointer;
}

.product-name:hover {
  text-decoration: underline;
}

.product-card p {
  margin: 0;
  line-height: 1.55;
}

.product-specs {
  font-size: 0.92rem;
  color: var(--stone);
  display: grid;
  gap: 0.35rem;
}

.detail-description {
  white-space: pre-line;
  line-height: 1.6;
}

.cart-button.is-bump {
  animation: cart-bump 0.35s ease;
}

.product-card button.is-added {
  animation: pulse-add 0.6s ease;
  box-shadow: 0 0 0 0 rgba(51, 209, 204, 0.35);
}

@keyframes cart-bump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pulse-add {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(51, 209, 204, 0.35);
  }
  35% {
    transform: scale(1.08);
    box-shadow: 0 0 0 12px rgba(51, 209, 204, 0.12);
  }
  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 20px rgba(51, 209, 204, 0.06);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(51, 209, 204, 0);
  }
}

.section.split {
  display: grid;
  grid-template-columns: minmax(240px, 1fr);
  gap: 2rem;
}

.cart-callout {
  background: var(--mint);
  padding: 2rem;
  border-radius: var(--card-radius);
  display: grid;
  gap: 0.8rem;
  max-width: 420px;
  margin: 0 auto;
}

.mini-summary {
  display: grid;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.6);
}

.mini-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: min(420px, 92vw);
  background: var(--mint);
  color: var(--ink);
  padding: 1.6rem;
  box-shadow: -20px 0 40px var(--shadow);
  transform: translateX(110%);
  transition: transform 0.25s ease;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-close {
  border: none;
  background: transparent;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 60;
}

.cart-panel .summary-card {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 25;
  pointer-events: none;
}

.cart-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.summary-card {
  background: var(--mint);
  padding: 2rem;
  border-radius: var(--card-radius);
}

.cart-empty {
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.cart-items {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.6rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  font-size: 0.9rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--card-border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-details {
  display: grid;
  gap: 0.45rem;
}

.cart-item-title {
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.qty-button {
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--ink);
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.remove-item {
  color: var(--stone);
  text-decoration: underline;
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.cart-line-total {
  font-weight: 600;
  white-space: nowrap;
}

.detail-meta {
  align-items: center;
}

.detail-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.order-form {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
}

.order-form label {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-top: 0.2rem;
}

.order-form input,
.order-form textarea {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.order-form textarea {
  min-height: 90px;
  resize: vertical;
}

.order-form button {
  width: 100%;
}

.order-status {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.summary-card dl {
  margin: 0 0 1.5rem;
}

.summary-card dl div {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-weight: 600;
}

.primary,
.ghost,
.text-button,
.product-card button,
.collection-grid button {
  font-family: inherit;
  border-radius: var(--pill-radius);
  padding: 0.6rem 1.3rem;
  border: none;
  cursor: pointer;
  font-weight: var(--button-weight);
}

.primary {
  background: var(--clay);
  color: white;
}

.ghost {
  background: transparent;
  border: var(--border-weight) solid var(--ink);
  color: var(--ink);
}

.text-button {
  background: transparent;
  color: var(--hero-text);
  text-decoration: underline;
}


.header-contact a,
.footer-phone a {
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 3rem 6vw;
  background: var(--footer-bg);
  color: var(--footer-text);
  width: 100%;
  margin: 0;
}

.site-footer p {
  color: var(--footer-text);
}

.footer-imex {
  align-items: center;
  text-align: center;
}

.footer-imex .footer-block {
  display: grid;
  gap: 0.4rem;
  justify-items: center;
}

.footer-imex .footer-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.footer-imex .footer-line {
  margin: 0;
  font-size: 0.95rem;
}

.footer-imex .footer-brand img {
  width: min(280px, 80vw);
  height: auto;
}

.footer-imex a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.footer-imex a:hover {
  text-decoration: underline;
}

body[data-theme="blueprint"] .nav a {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

body[data-theme="blueprint"] .brand-mark {
  border-radius: 4px;
  border: 2px solid var(--paper);
}

body[data-theme="factory"] .site-header {
  border-bottom: 3px solid var(--clay);
}

body[data-theme="factory"] .brand-mark {
  transform: skew(-6deg);
}

body[data-theme="factory"] .collection-grid article,
body[data-theme="factory"] .product-card {
  box-shadow: none;
  border-style: solid;
}

body[data-theme="retro"] .nav a {
  font-style: italic;
}

body[data-theme="retro"] .hero-panel {
  border: 2px dashed rgba(248, 241, 231, 0.6);
}

body[data-theme="carbon"] .collection-grid article,
body[data-theme="carbon"] .product-card {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

body[data-theme="carbon"] .primary {
  box-shadow: 0 0 18px rgba(51, 209, 204, 0.45);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    padding: 0.15rem 0;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw;
    gap: 0.5rem;
  }

  .brand {
    width: auto;
  }

  .nav {
    display: none;
  }

  .header-actions {
    width: auto;
    gap: 0.45rem;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  .header-contact,
  .header-actions .search {
    display: none;
  }

  .search-toggle {
    display: grid;
  }

  .cart-button {
    width: auto;
    padding: 0.4rem 0.7rem;
    gap: 0.35rem;
  }

  .cart-label {
    display: none;
  }

  .cart-count {
    min-width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .brand-mark {
    width: min(220px, 55vw);
  }

  main {
    padding-top: 1rem;
  }

  .section {
    scroll-margin-top: 90px;
  }

  .banner-search {
    margin-top: 0;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .qty-input {
    font-size: 16px;
  }

  .category-back {
    margin-top: 0.5rem;
  }

  .part-banners img {
    height: 200px;
  }

  .product-meta {
    justify-items: stretch;
  }

  .product-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: center;
  }

  .section.split {
    grid-template-columns: 1fr;
  }

  .collection-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    width: 100%;
    padding-top: 5rem;
  }

  .cart-panel {
    width: 100%;
    padding-top: 5rem;
  }
}


.part-banners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.part-banners img {
  width: 100%;
  height: clamp(180px, 28vw, 320px);
  object-fit: cover;
  border-radius: var(--card-radius);
  box-shadow: 0 12px 24px var(--shadow);
  border: var(--border-weight) solid var(--card-border);
}


.part-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr);
  gap: 2rem;
  align-items: start;
}

.part-media {
  display: grid;
  gap: 1rem;
}

.similar-products {
  margin-top: 2.5rem;
}

.similar-products .section-heading {
  margin-bottom: 1rem;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.part-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 12px 24px var(--shadow);
  border: var(--border-weight) solid var(--card-border);
}

.part-carousel-track {
  display: flex;
  width: 200%;
  animation: partCarousel 10s ease-in-out infinite;
}

.part-carousel-slide {
  flex: 0 0 50%;
  width: 50%;
  aspect-ratio: 4 / 3;
}

.part-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-description {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.9;
}

@keyframes partCarousel {
  0%,
  45% {
    transform: translateX(0%);
  }
  55%,
  95% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

@media (max-width: 900px) {
  .part-layout {
    grid-template-columns: 1fr;
  }

  .part-carousel-slide {
    aspect-ratio: 16 / 10;
  }
}


.add-to-cart-button {
  background: var(--clay);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.add-to-cart-button:hover {
  filter: brightness(0.95);
}


.product-actions button {
  background: var(--clay);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.product-actions button:hover {
  filter: brightness(0.95);
}
