/* ==============================================
   RandomDefinition LLC — style.css
   Dark Gallery Aesthetic
   ============================================== */

/* 1. Custom Properties
   ============================================== */
:root {
  /* Colors */
  --clr-bg:          #0D0B09;
  --clr-bg-2:        #111009;
  --clr-elevated:    #181410;
  --clr-card:        #1D1A16;
  --clr-accent:      #C8964A;
  --clr-accent-dim:  rgba(200, 150, 74, 0.15);
  --clr-accent-bdr:  rgba(200, 150, 74, 0.28);
  --clr-text:        #F0EBE0;
  --clr-text-2:      #9C8E7E;
  --clr-text-3:      #6B5E51;
  --clr-border:      rgba(240, 235, 224, 0.07);
  --clr-border-mid:  rgba(240, 235, 224, 0.13);

  /* Typography */
  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --nav-h:          80px;
  --section-py:     clamp(72px, 9vw, 128px);
  --container-max:  1280px;
  --container-px:   clamp(24px, 5vw, 64px);

  /* Motion */
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-io:   cubic-bezier(0.645, 0.045, 0.355, 1);
  --dur-fast:  0.18s;
  --dur-base:  0.3s;
  --dur-slow:  0.6s;
}


/* 2. Reset & Base
   ============================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--ff-body);
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
}


/* 3. Typography
   ============================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--clr-text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(52px, 7.5vw, 112px); }
h2 { font-size: clamp(36px, 4.5vw, 64px); }
h3 { font-size: clamp(24px, 2.5vw, 36px); }
h4 { font-size: clamp(20px, 1.8vw, 26px); }

.display-italic {
  font-style: italic;
  color: var(--clr-accent);
}

.eyebrow {
  display: block;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 20px;
}

.section-heading {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-heading .eyebrow {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin-bottom: 16px;
}

.section-heading p {
  color: var(--clr-text-2);
  max-width: 560px;
  font-size: clamp(15px, 1.4vw, 17px);
}

.section-heading--center {
  text-align: center;
}

.section-heading--center p {
  margin: 0 auto;
}


/* 4. Layout
   ============================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section--dark {
  background-color: var(--clr-bg);
}

.section--elevated {
  background-color: var(--clr-elevated);
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}


/* 5. Buttons
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--accent {
  background-color: var(--clr-accent);
  color: #0D0B09;
  border: 1px solid var(--clr-accent);
}

.btn--accent:hover {
  background-color: #d9a85a;
  border-color: #d9a85a;
}

.btn--outline {
  background-color: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border-mid);
}

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

.btn--ghost {
  background-color: transparent;
  color: var(--clr-accent);
  border: 1px solid var(--clr-accent-bdr);
  padding: 11px 26px;
}

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

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}


/* 6. Navigation
   ============================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}

.nav--scrolled {
  background-color: rgba(13, 11, 9, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--clr-border);
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__logo-mark {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--clr-accent);
  line-height: 1;
}

.nav__logo-text {
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text);
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

.nav__link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-2);
  transition: color var(--dur-fast) var(--ease);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--clr-accent);
  transition: width var(--dur-base) var(--ease);
}

.nav__link:hover,
.nav__link.active {
  color: var(--clr-text);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  margin-left: 16px;
  padding: 10px 22px;
  font-size: 11px;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  margin-left: auto;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--clr-text);
  transition: transform var(--dur-base) var(--ease),
              opacity var(--dur-base) var(--ease);
  transform-origin: center;
}

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

/* Mobile Menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  background-color: rgba(13, 11, 9, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 32px var(--container-px) 40px;
  border-top: 1px solid var(--clr-border);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-base) var(--ease),
              opacity var(--dur-base) var(--ease);
  z-index: 999;
}

.nav__mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}

.nav__mobile-links a {
  display: block;
  padding: 14px 0;
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-border);
  transition: color var(--dur-fast);
}

.nav__mobile-links a:hover,
.nav__mobile-links a.active {
  color: var(--clr-accent);
}


/* 7. Page Hero (inner pages)
   ============================================== */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(20px, 2.5vw, 32px));
  padding-bottom: clamp(20px, 2.5vw, 32px);
  border-bottom: 1px solid var(--clr-border);
}

.page-hero + .section {
  padding-top: clamp(16px, 2.5vw, 28px);
}

.hero + .section {
  padding-top: clamp(24px, 3vw, 42px);
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-hero h1 {
  font-size: clamp(44px, 6vw, 88px);
}

.page-hero p {
  color: var(--clr-text-2);
  max-width: 560px;
  font-size: clamp(15px, 1.4vw, 17px);
}


/* 8. Home Hero
   ============================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(60px, 8vw, 100px);
  overflow: hidden;
  background-color: var(--clr-bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--clr-bg) 0%,
    rgba(13, 11, 9, 0.6) 50%,
    rgba(13, 11, 9, 0.2) 100%
  );
}

/* Ambient glow when no image */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(200, 150, 74, 0.04) 0%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--container-px);
}

.hero__rule {
  display: block;
  width: 56px;
  height: 1px;
  background-color: var(--clr-accent);
  margin-bottom: 28px;
}

.hero__heading {
  font-size: clamp(56px, 8.5vw, 120px);
  font-weight: 300;
  line-height: 0.97;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  max-width: 820px;
}

.hero__heading em {
  font-style: italic;
  color: var(--clr-accent);
}

.hero__sub {
  color: var(--clr-text-2);
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.65;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: clamp(28px, 3vw, 44px);
  right: var(--container-px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--clr-text-3);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--ff-body);
  z-index: 1;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--clr-accent), transparent);
  animation: scrollPulse 2s var(--ease-io) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}


/* 9. Featured Portfolio (Home)
   ============================================== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: clamp(40px, 5vw, 64px);
}

.featured-item {
  position: relative;
  overflow: hidden;
  background-color: var(--clr-elevated);
  aspect-ratio: 4 / 5;
}

.featured-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.featured-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,11,9,0.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}

.featured-item:hover .featured-item__overlay {
  opacity: 1;
}

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

.featured-item__cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 8px;
}

.featured-item__title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--clr-text);
}

.featured-cta {
  margin-top: clamp(40px, 4vw, 56px);
  text-align: center;
}


/* 10. Services Overview (Home)
   ============================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--clr-border);
  border: 1px solid var(--clr-border);
  margin-top: clamp(40px, 5vw, 64px);
}

.service-tile {
  background-color: var(--clr-bg);
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background var(--dur-base) var(--ease);
  position: relative;
  overflow: hidden;
}

.service-tile::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}

.service-tile:hover {
  background-color: var(--clr-elevated);
}

.service-tile:hover::before {
  transform: scaleX(1);
}

.service-tile__icon {
  width: 44px;
  height: 44px;
  color: var(--clr-accent);
  flex-shrink: 0;
}

.service-tile__num {
  font-family: var(--ff-display);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--clr-text-3);
}

.service-tile h3 {
  font-size: clamp(22px, 2.2vw, 30px);
}

.service-tile p {
  color: var(--clr-text-2);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
}

.service-tile a {
  color: var(--clr-accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--dur-base) var(--ease);
}

.service-tile a:hover {
  gap: 14px;
}

.arrow-right {
  display: inline-block;
  width: 16px;
  height: 1px;
  background-color: currentColor;
  position: relative;
}

.arrow-right::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}


/* 11. Contact Strip (Home CTA)
   ============================================== */
.cta-strip {
  background-color: var(--clr-elevated);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: clamp(60px, 7vw, 96px) 0;
}

.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-strip__text h2 {
  font-size: clamp(32px, 3.5vw, 52px);
  margin-bottom: 12px;
}

.cta-strip__text p {
  color: var(--clr-text-2);
  max-width: 460px;
}

.cta-strip__text em {
  font-style: italic;
  color: var(--clr-accent);
}


/* 12. Portfolio Page
   ============================================== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 28px 0;
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: clamp(40px, 5vw, 64px);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-3);
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color var(--dur-fast), border-color var(--dur-fast),
              background var(--dur-fast);
}

.filter-btn:hover {
  color: var(--clr-text-2);
}

.filter-btn.active {
  color: var(--clr-accent);
  border-color: var(--clr-accent-bdr);
  background-color: var(--clr-accent-dim);
}

/* =============================================
   PORTFOLIO GALLERY — Masonry + Lightbox
   ============================================= */

.gallery-grid {
  columns: 3;
  column-gap: 14px;
  transition: opacity 0.2s var(--ease);
}

.gallery-grid.is-filtering {
  opacity: 0;
}

.gallery-item {
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  background-color: var(--clr-elevated);
  margin-bottom: 14px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--dur-slow) var(--ease);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,11,9,0.88) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item:hover .gallery-item__overlay,
.gallery-item:focus-visible .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 4px;
}

.gallery-item__title {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--clr-text);
}

/* ----- Portfolio Lightbox ----- */
.pg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}

.pg-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.pg-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 11, 9, 0.94);
  cursor: pointer;
}

.pg-lightbox__close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 1;
  width: 40px;
  height: 40px;
  background: rgba(13, 11, 9, 0.6);
  border: 1px solid rgba(200, 150, 74, 0.25);
  color: var(--clr-text-2);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.pg-lightbox__close:hover {
  color: var(--clr-accent);
  border-color: var(--clr-accent);
}

.pg-lightbox__wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 64px 24px 40px;
  max-height: 100vh;
  overflow-y: auto;
  width: 100%;
  max-width: min(94vw, 1100px);
}

.pg-lightbox__img-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  justify-content: center;
}

.pg-lightbox__img {
  max-width: min(75vw, 860px);
  max-height: 62vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.8);
  transition: opacity 0.2s var(--ease);
}

.pg-lightbox__img.fading { opacity: 0; }

.pg-lightbox__nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(13, 11, 9, 0.6);
  border: 1px solid rgba(200, 150, 74, 0.25);
  color: var(--clr-text);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}

.pg-lightbox__nav:hover {
  background: var(--clr-accent);
  color: #0D0B09;
  border-color: var(--clr-accent);
}

.pg-lightbox__nav[hidden] { display: none; }

.pg-lightbox__caption {
  text-align: center;
  max-width: min(80vw, 660px);
}

.pg-lightbox__cat {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 8px;
}

.pg-lightbox__title {
  font-family: var(--ff-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 12px;
}

.pg-lightbox__desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--clr-text-2);
  margin-bottom: 20px;
  white-space: pre-line;
}

.pg-lightbox__details {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.pg-lightbox__detail dt {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-3);
  margin-bottom: 3px;
}

.pg-lightbox__detail dd {
  font-size: 14px;
  color: var(--clr-text-2);
}


/* 13. Services Page
   ============================================== */
.service-section {
  padding-top: clamp(28px, 3.5vw, 44px);
  padding-bottom: clamp(28px, 3.5vw, 44px);
  border-bottom: 1px solid var(--clr-border);
}

.service-section:nth-child(even) {
  background-color: var(--clr-elevated);
}

.service-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.service-section:nth-child(even) .service-section__inner {
  direction: rtl;
}

.service-section:nth-child(even) .service-section__content {
  direction: ltr;
}

.service-section__media {
  position: relative;
  overflow: hidden;
  background-color: var(--clr-card);
  aspect-ratio: 4 / 3;
}

.service-section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-section__media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--clr-border);
  pointer-events: none;
}

.service-section__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-section__content p {
  color: var(--clr-text-2);
  line-height: 1.75;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--clr-text-2);
  font-size: 14px;
}

.service-features li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 1px;
  background-color: var(--clr-accent);
}


/* 14. About Page
   ============================================== */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

.about-story__media {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  overflow: hidden;
  background-color: var(--clr-card);
  aspect-ratio: 3 / 4;
}

.about-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-story__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-story__content p {
  color: var(--clr-text-2);
  line-height: 1.8;
}

.about-story__content p + p {
  margin-top: 8px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--clr-border);
  border: 1px solid var(--clr-border);
  margin-top: clamp(40px, 5vw, 64px);
}

.value-item {
  background-color: var(--clr-bg);
  padding: clamp(28px, 3.5vw, 48px);
}

.value-item .eyebrow {
  margin-bottom: 12px;
}

.value-item h4 {
  font-size: clamp(22px, 2vw, 28px);
  margin-bottom: 12px;
}

.value-item p {
  color: var(--clr-text-2);
  font-size: 14px;
  line-height: 1.7;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: clamp(40px, 5vw, 64px);
  counter-reset: steps;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--clr-border);
  counter-increment: steps;
  align-items: start;
}

.process-step__num {
  font-family: var(--ff-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--clr-text-3);
  line-height: 1;
}

.process-step__body h4 {
  font-size: 22px;
  margin-bottom: 10px;
}

.process-step__body p {
  color: var(--clr-text-2);
  font-size: 14px;
  line-height: 1.7;
}


/* 15. Contact Page
   ============================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

.contact-info {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-info h2 {
  font-size: clamp(32px, 3.5vw, 52px);
}

.contact-info p {
  color: var(--clr-text-2);
  line-height: 1.75;
}

.contact-info em {
  font-style: italic;
  color: var(--clr-accent);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--clr-border);
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-detail__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text-3);
}

.contact-detail__value {
  font-size: 15px;
  color: var(--clr-text);
}

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

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-3);
}

.form-field input,
.form-field select,
.form-field textarea {
  background-color: var(--clr-elevated);
  border: 1px solid var(--clr-border-mid);
  border-radius: 2px;
  padding: 14px 16px;
  color: var(--clr-text);
  font-size: 15px;
  font-weight: 300;
  transition: border-color var(--dur-fast), background var(--dur-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--clr-accent-bdr);
  background-color: var(--clr-card);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--clr-text-3);
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath stroke='%239C8E7E' stroke-width='1' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-field select option {
  background-color: var(--clr-card);
  color: var(--clr-text);
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.form-note {
  font-size: 12px;
  color: var(--clr-text-3);
  line-height: 1.6;
}

.form-success {
  display: none;
  padding: 20px 24px;
  background-color: var(--clr-accent-dim);
  border: 1px solid var(--clr-accent-bdr);
  border-radius: 2px;
  color: var(--clr-accent);
  font-size: 14px;
  letter-spacing: 0.03em;
}


/* 16. Footer
   ============================================== */
.footer {
  background-color: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
  padding: clamp(40px, 5vw, 64px) 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__copy {
  font-size: 12px;
  color: var(--clr-text-3);
  letter-spacing: 0.05em;
}

.footer__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__nav a {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-3);
  transition: color var(--dur-fast);
}

.footer__nav a:hover {
  color: var(--clr-text-2);
}


/* 17. Reveal Animations
   ============================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* 18. Responsive — Tablet (≤ 1024px)
   ============================================== */
@media (max-width: 1024px) {
  .featured-grid,
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid .service-tile:last-child {
    grid-column: span 2;
  }

  .service-section__inner,
  .about-story {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-section:nth-child(even) .service-section__inner {
    direction: ltr;
  }

  .service-section__media,
  .about-story__media {
    aspect-ratio: 16 / 9;
    position: static;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .contact-info {
    position: static;
  }

  .gallery-grid { columns: 2; }

  .cta-strip__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

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


/* 19. Responsive — Mobile (≤ 768px)
   ============================================== */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

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

  .gallery-grid { columns: 1; }

  .pg-lightbox__img {
    max-width: 90vw;
    max-height: 48vh;
  }

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

  .services-grid .service-tile:last-child {
    grid-column: 1;
  }

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

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer__nav {
    gap: 20px;
  }

  .filter-bar {
    gap: 8px;
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .hero__heading {
    font-size: clamp(44px, 11vw, 64px);
  }

  .btn-group {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* 20. Shop Page
   ============================================== */

/* Product grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

/* Product card */
.product-card {
  background-color: var(--clr-card);
  border: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease),
              border-color var(--dur-base) var(--ease);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  border-color: var(--clr-border-mid);
}

.product-card__media {
  position: relative;
  overflow: hidden;
  background-color: var(--clr-elevated);
  aspect-ratio: 1 / 1;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--dur-slow) var(--ease);
}

.product-card:hover .product-card__media img {
  transform: scale(1.03);
}

.product-card__no-img {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--clr-elevated),
    var(--clr-elevated) 8px,
    var(--clr-bg-2) 8px,
    var(--clr-bg-2) 16px
  );
}

.product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  background-color: var(--clr-accent);
  color: #0D0B09;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.product-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-card__cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.product-card__name {
  font-family: var(--ff-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  color: var(--clr-text);
  line-height: 1.2;
}

.product-card__price {
  font-size: 15px;
  font-weight: 400;
  color: var(--clr-text-2);
  margin-top: 4px;
  flex: 1;
}

.product-card__cta {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 12px;
}

.product-card__cta--sold {
  background-color: transparent;
  color: var(--clr-text-3);
  border: 1px solid var(--clr-border-mid);
  cursor: not-allowed;
  opacity: 0.55;
}

/* Loading skeleton */
.shop-skeleton {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.skeleton-card {
  background-color: var(--clr-card);
  border: 1px solid var(--clr-border);
}

.skeleton-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--clr-elevated);
  animation: shimmer 1.6s ease-in-out infinite;
}

.skeleton-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-line {
  height: 12px;
  background-color: var(--clr-elevated);
  border-radius: 2px;
  animation: shimmer 1.6s ease-in-out infinite;
}

.skeleton-line--short  { width: 40%; }
.skeleton-line--price  { width: 30%; margin-top: 4px; }

@keyframes shimmer {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.8; }
}

/* Error state */
.shop-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
}

.shop-error svg {
  width: 40px;
  height: 40px;
  color: var(--clr-text-3);
}

.shop-error p {
  color: var(--clr-text-2);
  font-size: 15px;
}

/* Empty category state */
.shop-empty {
  padding: clamp(48px, 6vw, 72px) 0;
  text-align: center;
  color: var(--clr-text-3);
  font-size: 15px;
  letter-spacing: 0.05em;
}


/* 21. Shop Responsive
   ============================================== */
@media (max-width: 1024px) {
  .shop-grid,
  .shop-skeleton {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .shop-grid,
  .shop-skeleton {
    grid-template-columns: 1fr;
  }
}


/* 22. Nav Cart Icon & Badge
   ============================================== */
.nav__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--clr-text-2);
  flex-shrink: 0;
  transition: color var(--dur-fast) var(--ease);
}

.nav__cart:hover,
.nav__cart.active {
  color: var(--clr-accent);
}

.nav__cart svg {
  width: 20px;
  height: 20px;
}

.cart-badge {
  position: absolute;
  top: 1px;
  right: -1px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background-color: var(--clr-accent);
  color: #0D0B09;
  font-size: 9px;
  font-weight: 500;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}


/* 23. Cart Toast
   ============================================== */
.cart-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background-color: var(--clr-card);
  border: 1px solid var(--clr-accent-bdr);
  color: var(--clr-accent);
  padding: 13px 20px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2000;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  pointer-events: none;
}

.cart-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.cart-toast svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}


/* 24. Cart Page
   ============================================== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

/* Column header */
.cart-col-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--clr-border-mid);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text-3);
  margin-bottom: 0;
}

/* Cart items list */
.cart-items {
  display: flex;
  flex-direction: column;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--clr-border);
  align-items: center;
}

.cart-item__image {
  width: 96px;
  height: 96px;
  object-fit: cover;
  background-color: var(--clr-elevated);
  display: block;
  flex-shrink: 0;
}

.cart-item__no-img {
  width: 96px;
  height: 96px;
  background-color: var(--clr-elevated);
  flex-shrink: 0;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.cart-item__cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.cart-item__name {
  font-family: var(--ff-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  color: var(--clr-text);
  line-height: 1.2;
}

.cart-item__desc {
  font-size: 12px;
  color: var(--clr-text-3);
  line-height: 1.5;
}

.cart-item__price {
  font-size: 13px;
  color: var(--clr-text-3);
  margin-top: 4px;
}

.cart-item__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Quantity control */
.cart-qty {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--clr-border-mid);
}

.cart-qty__btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-2);
  font-size: 17px;
  line-height: 1;
  transition: color var(--dur-fast), background var(--dur-fast);
}

.cart-qty__btn:hover {
  color: var(--clr-text);
  background-color: var(--clr-elevated);
}

.cart-qty__num {
  width: 40px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--clr-text);
  border-left: 1px solid var(--clr-border-mid);
  border-right: 1px solid var(--clr-border-mid);
}

.cart-item__line-total {
  font-size: 15px;
  font-weight: 400;
  color: var(--clr-text);
  white-space: nowrap;
}

.cart-item__remove {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-3);
  transition: color var(--dur-fast);
}

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

/* Order summary sidebar */
.cart-summary {
  background-color: var(--clr-card);
  border: 1px solid var(--clr-border);
  padding: clamp(24px, 3vw, 36px);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-summary__title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 6px;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--clr-text-2);
}

.cart-summary__shipping {
  font-size: 11px;
  color: var(--clr-text-3);
  letter-spacing: 0.04em;
  padding-top: 4px;
  border-top: 1px solid var(--clr-border);
}

.cart-summary .btn {
  width: 100%;
  justify-content: center;
}

/* Empty cart state */
.cart-empty {
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cart-empty__icon {
  width: 52px;
  height: 52px;
  color: var(--clr-text-3);
}

.cart-empty h2 {
  font-size: clamp(28px, 3vw, 44px);
}

.cart-empty p {
  color: var(--clr-text-2);
  max-width: 400px;
}

/* Featured products in empty state */
.cart-featured {
  width: 100%;
  max-width: 680px;
  margin-top: 24px;
}

.cart-featured__heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text-3);
  margin-bottom: 24px;
  text-align: center;
}

.cart-featured__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}


/* 25. Low-stock badge on product cards
   ============================================== */
.product-card__low-stock {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
}


/* 25b. Shop callout strip (services page)
   ============================================== */
.shop-callout {
  background-color: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: 20px 0;
}

.shop-callout__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  transition: gap var(--dur-base) var(--ease), color var(--dur-fast) var(--ease);
}

.shop-callout__link:hover {
  gap: 16px;
}


/* 25c. Checkout Error
   ============================================== */
.checkout-error {
  font-size: 13px;
  color: #d97757;
  line-height: 1.5;
  padding: 10px 14px;
  background-color: rgba(217, 119, 87, 0.08);
  border: 1px solid rgba(217, 119, 87, 0.25);
  border-radius: 2px;
}


/* 26. Thank You Page
   ============================================== */
.thankyou-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + clamp(48px, 6vw, 80px));
  padding-bottom: clamp(64px, 8vw, 112px);
}

.thankyou {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.thankyou__icon {
  width: 56px;
  height: 56px;
  color: var(--clr-accent);
}

.thankyou__icon svg {
  width: 100%;
  height: 100%;
}

.thankyou h1 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  margin-top: -8px;
}

.thankyou h1 em {
  font-style: italic;
  color: var(--clr-accent);
}

.thankyou__lead {
  color: var(--clr-text-2);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
  max-width: 520px;
}

.thankyou__timeline {
  border-left: 2px solid var(--clr-accent-bdr);
  padding-left: 24px;
}

.thankyou__timeline-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.thankyou__timeline-inner .eyebrow {
  margin-bottom: 0;
}

.thankyou__timeline-inner p {
  color: var(--clr-text-2);
  font-size: 15px;
  line-height: 1.7;
}

.thankyou__timeline-inner strong {
  color: var(--clr-accent);
  font-weight: 400;
}

.thankyou__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.thankyou__detail {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.thankyou__detail-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text-3);
  min-width: 100px;
  flex-shrink: 0;
}

.thankyou__detail-value {
  font-size: 15px;
  color: var(--clr-text-2);
}

.thankyou__detail-value a:hover {
  color: var(--clr-accent);
}

.thankyou__actions {
  margin-top: 4px;
}


/* 25. Cart Responsive
   ============================================== */
@media (max-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
  }

  .cart-item__controls {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cart-featured__grid {
    grid-template-columns: 1fr;
  }
}


/* 27. Product card image count badge
   ============================================== */
.product-card__img-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(13, 11, 9, 0.72);
  color: var(--clr-text-2);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

.product-card__media--clickable {
  cursor: zoom-in;
}


/* 28. Lightbox
   ============================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 11, 9, 0.92);
  cursor: pointer;
}

.lightbox__panel {
  position: relative;
  background-color: var(--clr-card);
  border: 1px solid var(--clr-border-mid);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 300px;
  overflow: hidden;
  transform: translateY(16px);
  transition: transform 0.28s var(--ease);
}

.lightbox.open .lightbox__panel {
  transform: translateY(0);
}

/* Gallery side */
.lightbox__gallery {
  position: relative;
  background-color: var(--clr-elevated);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.lightbox__stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(24px, 3vw, 36px);
  min-height: 360px;
  overflow: hidden;
}

.lightbox__nav-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-top: 12px;
  border-top: 1px solid var(--clr-border);
  flex-shrink: 0;
}

.lightbox__nav-row[hidden] { display: none; }

.lightbox__main-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s var(--ease);
}

.lightbox__main-img.fading {
  opacity: 0;
}

.lightbox__nav {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background-color: rgba(13, 11, 9, 0.6);
  border: 1px solid var(--clr-border-mid);
  color: var(--clr-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.lightbox__nav:hover {
  background-color: var(--clr-accent);
  color: #0D0B09;
  border-color: var(--clr-accent);
}

/* Thumbnails */
.lightbox__thumbs {
  flex: 1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  justify-content: center;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-border-mid) transparent;
}

.lightbox__thumb {
  width: 54px;
  height: 54px;
  background-color: var(--clr-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--clr-border);
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity var(--dur-fast), border-color var(--dur-fast);
}

.lightbox__thumb.active,
.lightbox__thumb:hover {
  opacity: 1;
  border-color: var(--clr-accent);
}

/* Info side */
.lightbox__info {
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  max-height: 90vh;
  border-left: 1px solid var(--clr-border);
}

.lightbox__cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.lightbox__name {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  line-height: 1.15;
}

.lightbox__price {
  font-size: 18px;
  color: var(--clr-text-2);
}

.lightbox__desc {
  font-size: 14px;
  color: var(--clr-text-2);
  line-height: 1.7;
  white-space: pre-line;
  flex: 1;
}

.lightbox__price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lightbox__add-btn {
  flex-shrink: 0;
}

.lightbox__sold {
  display: inline-block;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-3);
}

/* Close button */
.lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background-color: var(--clr-card);
  border: 1px solid var(--clr-border-mid);
  color: var(--clr-text-2);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.lightbox__close:hover {
  color: var(--clr-accent);
  border-color: var(--clr-accent-bdr);
}


/* 29. Lightbox responsive
   ============================================== */
@media (max-width: 768px) {
  .lightbox__panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    max-height: 92vh;
    overflow-y: auto;
  }

  .lightbox__info {
    border-left: none;
    border-top: 1px solid var(--clr-border);
  }

  .lightbox__stage {
    min-height: 260px;
  }

  .lightbox__main-img {
    max-height: 45vw;
  }
}


/* 30. Checkout Progress Indicator
   ============================================== */
.checkout-progress {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto clamp(32px, 4vw, 48px);
  max-width: 480px;
}

.checkout-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.checkout-progress__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--clr-border-mid);
  background-color: var(--clr-elevated);
  color: var(--clr-text-3);
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-base), background var(--dur-base), color var(--dur-base);
}

.checkout-progress__step--active .checkout-progress__dot {
  border-color: var(--clr-accent);
  background-color: var(--clr-accent-dim);
  color: var(--clr-accent);
}

.checkout-progress__step--done .checkout-progress__dot {
  border-color: var(--clr-accent);
  background-color: var(--clr-accent);
  color: var(--clr-bg);
}

.checkout-progress__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-3);
  white-space: nowrap;
}

.checkout-progress__step--active .checkout-progress__label,
.checkout-progress__step--done .checkout-progress__label {
  color: var(--clr-text-2);
}

.checkout-progress__line {
  flex: 1;
  height: 1px;
  background-color: var(--clr-border-mid);
  margin: 14px 8px 0;
  min-width: 40px;
}

.checkout-progress__line--done {
  background-color: var(--clr-accent);
}


/* 31. Shipping Form Page
   ============================================== */
.shipping-wrap {
  padding-top: calc(var(--nav-h) + clamp(24px, 3vw, 40px));
  padding-bottom: clamp(64px, 8vw, 112px);
  min-height: 100vh;
  background-color: var(--clr-bg);
}

.shipping-inner {
  max-width: 680px;
  margin: 0 auto;
}

.shipping-heading {
  margin-bottom: clamp(28px, 3vw, 40px);
}

.shipping-heading h1 {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  margin-top: 8px;
}

.shipping-form__section {
  margin-bottom: 32px;
}

.shipping-form__section-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-3);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--clr-border);
}

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

.form-field--error input,
.form-field--error select,
.form-field--error textarea {
  border-color: #c0614a;
}

.form-field__error {
  font-size: 11px;
  color: #c0614a;
  display: none;
}

.form-field--error .form-field__error {
  display: block;
}

.form-notice {
  font-size: 12px;
  color: var(--clr-text-3);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background-color: var(--clr-elevated);
  border: 1px solid var(--clr-border);
  border-radius: 2px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.form-notice svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.shipping-form__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.shipping-error {
  font-size: 13px;
  color: #c0614a;
  padding: 12px 16px;
  background-color: rgba(192, 97, 74, 0.08);
  border: 1px solid rgba(192, 97, 74, 0.25);
  border-radius: 2px;
  margin-bottom: 16px;
  display: none;
}

.shipping-error--visible {
  display: block;
}

@media (max-width: 640px) {
  .form-row--3 {
    grid-template-columns: 1fr;
  }
}
