/* ===== Root 3D Prints ===== */

:root {
  --color-bg: #f8f6f2;
  --color-bg-warm: #f3efe8;
  --color-bg-dark: #2c2c2c;
  --color-text: #2c2c2c;
  --color-text-light: #6b6560;
  --color-text-inv: #f8f6f2;
  --color-sage: #8faa8b;
  --color-sage-light: #c5d6c2;
  --color-sage-bg: #eef3ed;
  --color-terracotta: #c68b6e;
  --color-terracotta-light: #e8cfc0;
  --color-accent: #5a7a56;
  --color-white: #ffffff;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ===== Typography ===== */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.25rem; }

.section-tag {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-sub {
  color: var(--color-text-light);
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

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

.btn-primary:hover {
  background: #4a6a46;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(90, 122, 86, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
}

.btn-ghost:hover {
  background: var(--color-text);
  color: var(--color-text-inv);
}

.btn-sm {
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem;
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  transition: all var(--transition);
  background: linear-gradient(to bottom, rgba(248, 246, 242, 0.95) 0%, rgba(248, 246, 242, 0.7) 60%, transparent 100%);
}

.nav.scrolled {
  background: rgba(248, 246, 242, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--color-sage);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.88rem;
  font-weight: 400;
}

.nav-links a {
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-links .nav-cta {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  font-weight: 500;
}

.nav-links .nav-cta:hover {
  background: #4a6a46;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

/* ===== Hero ===== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 0;
}

.hero-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--color-bg) 0%,
    rgba(248, 246, 242, 0.7) 15%,
    rgba(248, 246, 242, 0.1) 40%,
    transparent 60%
  );
}

.hero-img-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--color-bg) 0%,
    rgba(248, 246, 242, 0.4) 20%,
    transparent 50%
  );
  z-index: 1;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 550px;
}

.hero-sub {
  color: var(--color-text-light);
  max-width: 460px;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== Featured Strip ===== */

.featured-strip {
  padding: 0 2rem;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.featured-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.featured-strip-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}

.featured-strip-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(44, 44, 44, 0.15) 100%
  );
}

.featured-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-strip-item:hover img {
  transform: scale(1.05);
}

/* ===== Why Root 3D ===== */

.why {
  padding: 8rem 2rem;
}

.why-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-sage-bg);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.why-card h3 {
  margin-bottom: 0.6rem;
}

.why-card p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ===== How It Works ===== */

.how-it-works {
  padding: 0 2rem;
}

.how-it-works-inner {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--color-bg-dark);
  border-radius: var(--radius-lg);
  padding: 4rem;
}

.how-it-works-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.how-it-works-header h2 {
  color: var(--color-text-inv);
  margin-bottom: 0.75rem;
}

.how-it-works-header p {
  color: rgba(248, 246, 242, 0.6);
  font-size: 1rem;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.how-step {
  text-align: center;
  position: relative;
}

.how-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.how-step-icon {
  color: var(--color-sage-light);
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
}

.how-step h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--color-text-inv);
  margin-bottom: 0.5rem;
}

.how-step p {
  color: rgba(248, 246, 242, 0.55);
  font-size: 0.88rem;
  line-height: 1.6;
}

.how-it-works-note {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.how-it-works-note p {
  color: rgba(248, 246, 242, 0.45);
  font-size: 0.88rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Category Sections ===== */

.category {
  padding: 8rem 2rem;
}

.category-alt {
  background: var(--color-bg-warm);
}

.category-header {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.category-header-text {
  max-width: 600px;
}

.category-header-text .section-sub {
  margin-top: 0.75rem;
}

/* Category grid with hero card */
.category-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.category-grid-3 {
  grid-template-columns: 1.2fr 1fr 1fr;
}

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

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

.category-grid-secondary {
  margin-top: 1.5rem;
}

.category-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.category-card-img {
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card {
  cursor: pointer;
}

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

.category-card-hero .category-card-img {
  min-height: 480px;
}

.category-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(
    to top,
    rgba(44, 44, 44, 0.85) 0%,
    rgba(44, 44, 44, 0.5) 50%,
    transparent 100%
  );
  color: var(--color-text-inv);
}

.category-card-overlay h3 {
  margin-bottom: 0.35rem;
}

.category-card-overlay p {
  font-size: 0.88rem;
  color: rgba(248, 246, 242, 0.75);
  line-height: 1.55;
  margin-bottom: 0.5rem;
  max-width: 320px;
}

.category-card-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-sage-light);
}

/* Category features strip */
.category-features {
  max-width: 1200px;
  margin: 2rem auto 0;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.category-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.category-feature-icon {
  color: var(--color-sage);
  font-size: 0.6rem;
}

/* Category showcase (for Rail Planters coming soon) */
.category-showcase {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
}

.category-showcase-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 450px;
}

.category-showcase-img {
  width: 100%;
  height: 100%;
}

.category-showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
  background: linear-gradient(
    to top,
    rgba(44, 44, 44, 0.9) 0%,
    rgba(44, 44, 44, 0.5) 60%,
    transparent 100%
  );
  color: var(--color-text-inv);
}

.category-showcase-overlay .section-tag {
  color: var(--color-terracotta-light);
}

.category-showcase-overlay h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.category-showcase-overlay p {
  color: rgba(248, 246, 242, 0.7);
  font-size: 0.95rem;
  max-width: 400px;
}

.category-showcase-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.showcase-detail {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  flex: 1;
}

.category-alt .showcase-detail {
  background: var(--color-white);
}

.showcase-detail h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.showcase-detail p {
  color: var(--color-text-light);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ===== Rail Attachments ===== */

.rail-attachments {
  max-width: 1200px;
  margin: 3rem auto 0;
}

.rail-attachments-title {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.rail-attachments-sub {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.rail-attachments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.rail-attachment-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.rail-attachment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

.rail-attachment-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.rail-attachment-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, var(--color-white) 0%, transparent 100%);
}

.rail-attachment-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.rail-attachment-card h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  padding: 0 1.25rem;
  margin-top: -0.25rem;
}

.rail-attachment-card p {
  color: var(--color-text-light);
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 0.25rem 1.25rem 1.25rem;
}

/* ===== Shop Filters ===== */

.shop-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.shop-filter {
  padding: 0.5rem 1.4rem;
  border-radius: 100px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.shop-filter:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.shop-filter.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 500;
}

.shop-card.hidden {
  display: none;
}

/* ===== Parallax Break ===== */

.parallax-break {
  position: relative;
  height: 50vh;
  min-height: 400px;
  overflow: hidden;
}

.parallax-img-wrapper {
  position: absolute;
  inset: -20% 0;
}

.parallax-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parallax-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44, 44, 44, 0.5);
  backdrop-filter: blur(2px);
}

.parallax-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
}

.parallax-overlay blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: var(--color-text-inv);
  max-width: 600px;
  text-align: center;
  line-height: 1.4;
}

/* ===== About ===== */

.about {
  padding: 8rem 2rem;
  background: var(--color-bg-warm);
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.about-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 60px 30px var(--color-bg-warm);
  pointer-events: none;
}

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

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.about-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-accent);
}

.about-stat-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== Shop CTA (homepage) ===== */

.shop-cta {
  padding: 6rem 2rem;
  background: var(--color-bg-warm);
  text-align: center;
}

/* ===== Climate ===== */

.climate {
  padding: 5rem 2rem;
  background: #f0f4ef;
}

.climate-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.climate-icon {
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.climate h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.climate p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.climate p strong {
  color: var(--color-text);
}

.climate-sub {
  font-size: 0.92rem !important;
  font-style: italic;
  margin-bottom: 1.5rem !important;
}

.climate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid rgba(90,122,86,0.2);
  border-radius: 100px;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

.climate-badge strong {
  color: var(--color-text);
}

/* ===== Shop ===== */

.shop {
  padding: 8rem 2rem;
}

.shop-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.shop-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.shop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.07);
}

.shop-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.shop-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, var(--color-white) 0%, transparent 100%);
}

.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.shop-card-body {
  padding: 0 1.5rem 1.5rem;
  margin-top: -0.5rem;
  position: relative;
}

.shop-card-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 0.25rem;
}

.shop-card-body h3 {
  margin-bottom: 0.25rem;
}

/* ===== Colour Picker ===== */

.colour-picker {
  margin-bottom: 1rem;
}

.colour-picker-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  display: block;
  margin-bottom: 0.4rem;
}

.colour-swatches {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.colour-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  position: relative;
}

.colour-swatch:hover {
  transform: scale(1.15);
}

.colour-swatch.active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-accent);
}

.colour-custom-link {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-accent);
  margin-top: 0.35rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.colour-custom-link:hover {
  color: #4a6a46;
}

/* Cart colour label */
.cart-item-colour {
  font-size: 0.78rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.cart-colour-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: inline-block;
  flex-shrink: 0;
}

.shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-card-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-accent);
}

.shop-note {
  max-width: 600px;
  margin: 3rem auto 0;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ===== Contact ===== */

.contact {
  padding: 8rem 2rem;
  background: var(--color-bg-dark);
  color: var(--color-text-inv);
}

.contact .section-tag {
  color: var(--color-sage-light);
}

.contact .section-sub {
  color: rgba(248, 246, 242, 0.6);
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: var(--color-text-inv);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(248, 246, 242, 0.35);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-sage);
  background: rgba(255,255,255,0.1);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ===== Footer ===== */

.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-inv);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  color: rgba(248, 246, 242, 0.5);
  margin-top: 0.75rem;
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: rgba(248, 246, 242, 0.5);
}

.footer-links a {
  display: block;
  color: rgba(248, 246, 242, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-text-inv);
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: rgba(248, 246, 242, 0.35);
}

/* ===== Cart ===== */

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-toggle {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  padding: 6px;
  transition: color var(--transition);
}

.cart-toggle:hover {
  color: var(--color-accent);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--color-bg);
  z-index: 201;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-drawer-header h3 {
  font-size: 1.2rem;
}

.cart-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  padding: 4px;
  transition: color var(--transition);
}

.cart-close:hover {
  color: var(--color-text);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.5rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.cart-item-price {
  font-size: 0.88rem;
  color: var(--color-accent);
  font-weight: 500;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: all var(--transition);
}

.cart-qty-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.cart-item-qty span {
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  padding: 4px;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.cart-item-remove:hover {
  opacity: 1;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--color-text-light);
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-shipping {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.cart-free-shipping {
  color: var(--color-accent);
  font-weight: 500;
}

.cart-shipping-hint {
  font-size: 0.78rem;
  color: var(--color-terracotta);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.cart-total span:last-child {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-accent);
}

.cart-checkout-btn {
  width: 100%;
}

.btn-added {
  background: var(--color-sage) !important;
  pointer-events: none;
}

/* ===== Scroll Animations ===== */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */

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

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

  .category-card-hero .category-card-img {
    min-height: 380px;
  }

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

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

  .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 10rem 1.5rem 4rem;
  }

  .hero-bg {
    width: 100%;
    height: 50%;
    top: 0;
  }

  .hero-img-wrapper::after {
    background: linear-gradient(
      to bottom,
      transparent 20%,
      rgba(248, 246, 242, 0.6) 50%,
      var(--color-bg) 80%
    );
  }

  .hero-content {
    margin-top: 40vh;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .featured-strip-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .featured-strip-item {
    aspect-ratio: 16 / 9;
  }

  .why {
    padding: 5rem 1.5rem;
  }

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

  .how-it-works {
    padding: 0 1.5rem;
  }

  .how-it-works-inner {
    padding: 2.5rem 1.75rem;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .category {
    padding: 5rem 1.5rem;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-grid-3,
  .category-grid-4,
  .category-grid-2 {
    grid-template-columns: 1fr;
  }

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

  .category-card-img {
    min-height: 300px;
  }

  .category-card-hero .category-card-img {
    min-height: 350px;
  }

  .category-showcase {
    grid-template-columns: 1fr;
  }

  .category-features {
    flex-direction: column;
    gap: 0.75rem;
  }

  .about {
    padding: 5rem 1.5rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-stats {
    gap: 1.5rem;
  }

  .shop {
    padding: 5rem 1.5rem;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .section-header {
    margin-bottom: 3rem;
  }
}
