/* ==========================================================================
   Decoprint — editorial, image-first catalogue.
   Warm stone neutrals let the paper décors carry the colour; gold is a
   sparing accent. Cormorant (headings) + Montserrat (body), loaded from
   Google Fonts in index.html.

   Theming: dark is the default (these :root tokens). Light mode overrides
   them under :root[data-theme="light"]; the header toggle sets that
   attribute and remembers the choice (see initThemeToggle in script.js and
   the inline snippet in index.html's <head> that applies it before paint).
   ========================================================================== */

:root {
  --font-heading: "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;

  --color-bg: #12100e;
  --color-surface: #1c1917;
  --color-surface-alt: #262220;
  --color-text: #f5f5f4;
  --color-muted: #a8a29e;
  --color-border: #2f2a27;
  --color-image-border: rgba(255, 255, 255, 0.16);
  --color-primary: #e7e5e4;
  --color-primary-dark: #ffffff;
  --color-on-primary: #1c1917;
  --color-primary-soft: rgba(231, 229, 228, 0.12);
  --color-accent: #ca8a04;
  --color-error: #f87171;
  --color-header-bg: rgba(18, 16, 14, 0.88);
  --color-footer-bg: #0a0908;
  --color-footer-text: #d6d3d1;
  --color-footer-border: #2f2a27;
  --color-footer-icon: #ca8a04;
  --color-ring: #e7e5e4;
  --color-arrow-bg: rgba(28, 25, 23, 0.85);
  --color-arrow-bg-hover: #262220;
  --color-arrow-text: #f5f5f4;

  --radius: 4px;
  --max-width: 1200px;
  /* Approximate sticky header / fixed footer heights, used to size the
     Home hero to fill the screen between them. */
  --header-height: 109px;
  --footer-height: 62px;
  --shadow-hover: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  --shadow-card: none;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

:root[data-theme="light"] {
  --color-bg: #fafaf9;
  --color-surface: #ffffff;
  --color-surface-alt: #f5f5f4;
  --color-text: #1c1917;
  --color-muted: #44403c;
  --color-border: #d6d3d1;
  --color-image-border: #d6d3d1;
  --color-primary: #1c1917;
  --color-primary-dark: #0c0a09;
  --color-on-primary: #ffffff;
  --color-primary-soft: rgba(28, 25, 23, 0.07);
  --color-accent: #a16207;
  --color-error: #d92626;
  --color-header-bg: rgba(255, 255, 255, 0.92);
  --color-footer-bg: #1c1917;
  --color-footer-text: #e7e5e4;
  --color-footer-border: transparent;
  --color-ring: #1c1917;
  --color-arrow-bg: rgba(255, 255, 255, 0.9);
  --color-arrow-bg-hover: #ffffff;
  --color-arrow-text: #1c1917;
  --shadow-hover: 0 18px 40px -18px rgba(28, 25, 23, 0.35);
  --shadow-card: 0 24px 50px -30px rgba(28, 25, 23, 0.35);

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  background: var(--color-bg);
  color: var(--color-text);
}

h1, h2, h3 {
  margin: 0 0 0.5em 0;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  /* Cormorant defaults to old-style figures; product codes read better level. */
  font-variant-numeric: lining-nums;
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 3px;
}

/* Header / Nav */

.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem max(2rem, calc((100vw - var(--max-width)) / 2));
  background: var(--color-header-bg);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* The logo artwork sits on white, so in dark mode it gets a white tile
   rather than a hard-edged white box floating on the dark header; light
   mode keeps the same padding (transparent) so the header is the same
   height in both themes. Height drives the header height — if it changes,
   update --header-height to match. */
.logo img {
  height: 68px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: var(--radius);
  padding: 4px 10px;
  box-sizing: content-box;
}

:root[data-theme="light"] .logo img {
  background: none;
}
.main-nav {
  display: flex;
  gap: 0.25rem;
  margin-inline-start: auto;
}

.language-select {
  max-width: 110px;
  min-height: 44px;
  padding: 0.4rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  background: var(--color-surface);
  font: inherit;
  font-size: 0.8rem;
}

html[lang="ar"] {
  --font-body: Tahoma, "Segoe UI", Arial, sans-serif;
  --font-heading: Tahoma, "Segoe UI", Arial, sans-serif;
}

html[lang="ar"] .nav-link,
html[lang="ar"] .about-subnav-link {
  letter-spacing: normal;
}

/* Slideshow transforms use physical left/right positions in all languages. */
.slideshow-viewport, .lightbox-zoom {
  direction: ltr;
}

html[dir="rtl"] .slideshow-hero-overlay {
  direction: rtl;
}

html[dir="rtl"] .about-page,
html[dir="rtl"] .about-hero-content,
html[dir="rtl"] .hero-content {
  text-align: right;
}

html[dir="rtl"] .about-page ul {
  padding-left: 0;
  padding-right: 0;
  text-align: right;
}

html[dir="rtl"] .about-page li {
  padding-left: 0;
  padding-right: 1.4rem;
}

html[dir="rtl"] .about-page li::before {
  left: auto;
  right: 0;
}

input[type="email"], input[type="tel"], a[href^="mailto:"] {
  direction: ltr;
  unicode-bidi: isolate;
}

.nav-link {
  position: relative;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0.85rem 1rem;
  min-height: 44px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.45rem;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

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

.nav-link.active {
  color: var(--color-primary);
  font-weight: 700;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Light/dark toggle: shows the icon of the mode it switches *to*. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-muted);
}

.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* Layout */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 7rem;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

/* Home */

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text);
  animation: heroFadeUp 1s ease both;
}

.hero-heading {
  font-family: var(--font-heading);
  font-weight: 600;
}

.hero-heading-main {
  display: block;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.hero-heading-divider {
  display: block;
  width: 56px;
  height: 2px;
  margin: 1.5rem auto;
  background: var(--color-accent);
  border-radius: 2px;
}

.hero-heading-sub {
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.4;
  color: var(--color-primary);
}

.hero-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-muted);
  max-width: 680px;
  margin: 1.4rem auto 0;
}

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

.hero-text + .hero-text {
  margin-top: 1rem;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shared page-heading style: same centered layout, serif heading font, and
   fade-up entrance as the Home hero, reused on every view's title/intro so
   the site reads consistently. Re-plays each time a view becomes active
   again, since toggling display:none resets a CSS animation's state. */
.page-heading {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: heroFadeUp 1s ease both;
}

.page-heading h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.page-heading h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 1.1rem auto 0;
  background: var(--color-accent);
}

.page-heading p {
  color: var(--color-muted);
  max-width: 620px;
  line-height: 1.7;
  margin: 1rem auto 0;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contact */

.contact-wrapper {
  max-width: 520px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.contact-wrapper h2 {
  font-size: 1.9rem;
}

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

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

.required-mark {
  color: var(--color-error);
}

.contact-form input:not([type="hidden"]),
.contact-form textarea {
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: normal;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: var(--color-surface);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.contact-form button {
  margin-top: 1.25rem;
  min-height: 48px;
  padding: 0.7rem;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.form-status {
  min-height: 1.2em;
  color: var(--color-primary);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.form-status-error {
  color: var(--color-error);
}

/* Products grid */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem 1.5rem;
  margin-top: 1.5rem;
}

.product-card {
  border-radius: var(--radius);
  cursor: pointer;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border: 1px solid var(--color-image-border);
  border-radius: var(--radius);
  background: var(--color-surface-alt);
  transition: transform 0.6s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.25s ease;
}

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

.product-card-body {
  padding: 1rem 0.1rem 0;
}

.product-card-body h3 {
  font-size: 1.45rem;
  margin-bottom: 0.3rem;
  transition: color 0.2s ease;
}

.product-card:hover .product-card-body h3 {
  color: var(--color-accent);
}

.product-card-body p {
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* Lightbox */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 9, 0.95);
  font-family: var(--font-body);
  z-index: 1000;
}

.lightbox.active {
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-hint {
  position: fixed;
  top: 1.25rem;
  left: 1.5rem;
  color: #fff;
  opacity: 0.7;
  font-size: 0.85rem;
  margin: 0;
  z-index: 1001;
}

.lightbox-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-viewport img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-viewport img.dragging {
  cursor: grabbing;
}

.lightbox-zoom {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  max-width: 92vw;
  z-index: 1001;
}

.lightbox-zoom-icon {
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  user-select: none;
}

.lightbox-zoom-range {
  width: 160px;
  accent-color: #fff;
}

.lightbox-zoom-value {
  color: #fff;
  font-size: 0.85rem;
  min-width: 3.2em;
  text-align: right;
}

.lightbox-swatches {
  position: fixed;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  max-height: 70vh;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.55);
  gap: 0.25rem;
  padding: 0.6rem;
  border-radius: 12px;
  z-index: 1001;
}

.lightbox-swatches:empty {
  display: none;
}

.lightbox-swatch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  background: none;
  border: none;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.lightbox-swatch:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.lightbox-swatch.active {
  color: #fff;
}

.lightbox-swatch .swatch {
  display: block;
  flex-shrink: 0;
  border-color: rgba(255, 255, 255, 0.35);
}

.lightbox-swatch.active .swatch {
  border-color: #fff;
}

.lightbox-swatch-name {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.lightbox-swatch.active .lightbox-swatch-name {
  font-weight: 600;
}

.swatch-list {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background-size: cover;
  background-position: center;
}

.swatch.active {
  border-color: var(--color-text);
}

/* About */

.about-subnav {
  display: flex;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  border-bottom: 1px solid var(--color-border);
  animation: heroFadeUp 1s ease both;
}

.about-subnav-link {
  position: relative;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 1.25rem;
  min-height: 44px;
  cursor: pointer;
  color: var(--color-muted);
  transition: color 0.15s ease;
}

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

.about-subnav-link.active {
  color: var(--color-primary);
}

.about-subnav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-accent);
}

.about-subview {
  display: none;
}

.about-subview.active {
  display: block;
}

.about-page {
  max-width: 740px;
  margin: 0 auto 3rem;
  text-align: center;
  animation: heroFadeUp 1s ease both;
}

.about-page h2 {
  font-size: 1.7rem;
  color: var(--color-primary);
  margin-top: 2.25rem;
}

.about-page h2:first-child {
  margin-top: 0;
}

.about-page p {
  color: var(--color-muted);
  line-height: 1.75;
}

.about-page ul {
  display: inline-block;
  color: var(--color-muted);
  line-height: 1.75;
  list-style: none;
  margin: 0.5rem 0 0;
  padding-left: 0;
  text-align: left;
}

.about-page li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.35rem;
}

.about-page li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 2px;
  background: var(--color-accent);
}

/* Image slideshow (reused on Home and About) */

.image-slideshow {
  max-width: var(--max-width);
  margin: 3rem auto 0;
}

.slideshow-viewport {
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface-alt);
}

.slideshow-track {
  display: flex;
  width: 300%;
  height: 100%;
  cursor: grab;
  /* -33.3333% here, not -100%: the % in translateX resolves against this
     element's own (300%-wide) box, so one slide-width is a third of that. */
  transform: translateX(-33.3333%);
  transition: transform 0.55s ease;
}

.slideshow-track.no-transition {
  transition: none;
}

.slideshow-track.dragging {
  cursor: grabbing;
}

.slideshow-slide {
  width: 33.3333%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--color-arrow-bg);
  color: var(--color-arrow-text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

.slideshow-arrow:hover {
  background: var(--color-arrow-bg-hover);
  transform: translateY(-50%) scale(1.06);
}

.slideshow-prev {
  left: 1.25rem;
}

.slideshow-next {
  right: 1.25rem;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.slideshow-dot {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  border: none;
  padding: 0;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}

.slideshow-dot.active {
  width: 36px;
  background: var(--color-accent);
}

/* No images: hide the slideshow (set by createSlideshow in script.js). */
.image-slideshow.is-empty {
  display: none;
}

/* Slideshow hero (Home and About): full-bleed slideshow with the page's
   text laid over it. The overlay ignores the pointer so drag-to-slide still
   reaches the track underneath (anything clickable inside it, like About's
   tabs, opts back in); arrows and dots sit above the overlay. Text is
   always light (on a dark scrim) regardless of theme, since it's over
   photos. */
.slideshow-hero {
  max-width: none;
  margin: 0;
}

/* Home and About are each just a hero, so drop main's width cap and
   padding while they're showing to let the hero run edge to edge. */
main:has(#view-home.active),
main:has(#view-about.active) {
  max-width: none;
  padding: 0 0 var(--footer-height);
}

.slideshow-hero .slideshow-viewport {
  display: grid;
  aspect-ratio: auto;
  min-height: calc(100svh - var(--header-height) - var(--footer-height));
  border-radius: 0;
  background: #1c1917;
}

.slideshow-hero .slideshow-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100%;
}

.slideshow-hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 6rem 5rem;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.5) 0%, rgba(12, 10, 9, 0.72) 100%);
  pointer-events: none;
}

.slideshow-hero .hero-content {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.slideshow-hero .hero-heading,
.slideshow-hero .hero-text strong {
  color: #ffffff;
}

.slideshow-hero .hero-heading-sub {
  color: #e7e5e4;
}

.slideshow-hero .hero-heading-divider {
  background: #ca8a04;
}

.slideshow-hero .hero-text {
  color: rgba(245, 245, 244, 0.9);
}

/* About's tabs + subview text over the slideshow. */
.about-hero-content {
  width: 100%;
  max-width: 760px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.slideshow-hero .about-subnav {
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.slideshow-hero .about-subnav-link {
  color: rgba(245, 245, 244, 0.72);
  pointer-events: auto;
}

.slideshow-hero .about-subnav-link:hover,
.slideshow-hero .about-subnav-link.active {
  color: #ffffff;
}

.slideshow-hero .about-subnav-link.active::after {
  background: #ca8a04;
}

.slideshow-hero .about-page {
  margin-bottom: 0;
}

.slideshow-hero .about-page h2 {
  color: #ffffff;
}

.slideshow-hero .about-page p,
.slideshow-hero .about-page ul {
  color: rgba(245, 245, 244, 0.9);
}

.slideshow-hero .about-page li::before {
  background: #ca8a04;
}

.slideshow-hero .slideshow-arrow {
  z-index: 2;
}

.slideshow-hero .slideshow-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  z-index: 2;
  margin: 0;
}

.slideshow-hero .slideshow-dot {
  background: rgba(255, 255, 255, 0.45);
}

.slideshow-hero .slideshow-dot.active {
  background: #ca8a04;
}

/* Without images the hero still shows its text, just on a plain background. */
.slideshow-hero.is-empty {
  display: block;
}

.slideshow-hero.is-empty .slideshow-track,
.slideshow-hero.is-empty .slideshow-arrow,
.slideshow-hero.is-empty .slideshow-dots {
  display: none;
}

/* Footer */

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  text-align: center;
  padding: 0.9rem 1.5rem;
  color: var(--color-footer-text);
  font-size: 0.85rem;
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-footer-border);
}

.footer-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.footer-link {
  color: var(--color-footer-text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  min-height: 32px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff;
}

.footer-link-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link svg {
  color: var(--color-footer-icon);
}

/* Responsive */

@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  main {
    padding: 2rem 1rem 7rem;
  }

  .slideshow-viewport {
    aspect-ratio: 4 / 3;
  }

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

  .product-card-body h3 {
    font-size: 1.2rem;
  }

  .about-subnav-link {
    padding: 0.85rem 0.6rem;
    letter-spacing: 0.06em;
  }

  .slideshow-hero-overlay {
    padding: 3rem 1.25rem 5.5rem;
  }

  /* Arrows move to the bottom corners so they don't sit on the text. */
  .slideshow-hero .slideshow-arrow {
    top: auto;
    bottom: 0.75rem;
    width: 40px;
    height: 40px;
    transform: none;
  }

  .slideshow-hero .slideshow-arrow:hover {
    transform: none;
  }

  .slideshow-hero .slideshow-dots {
    bottom: 1.6rem;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 133px;
    --footer-height: 62px;
  }

  .site-header {
    position: sticky;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem 0.25rem;
  }

  .logo img {
    height: 56px;
  }
  .main-nav {
    margin-inline-start: 0;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .nav-link {
    padding: 0.75rem 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .nav-link::after {
    left: 0.5rem;
    right: 0.5rem;
  }

  .theme-toggle {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
  }

  .language-select {
    position: absolute;
    top: 0.75rem;
    left: 0.5rem;
    max-width: 88px;
    font-size: 0.7rem;
  }

  .product-card-body p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .footer-contact {
    gap: 1.25rem;
  }

  .footer-link {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }

  .lightbox-swatches {
    top: auto;
    right: auto;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    max-width: 92vw;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
  }

  .lightbox-swatch {
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.25rem;
    border-radius: var(--radius);
  }

  .lightbox-swatch-name {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .page-heading,
  .about-page,
  .about-subnav,
  .reveal-on-scroll {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .product-card img,
  .product-card:hover img,
  .contact-form button:hover {
    transition: none !important;
    transform: none !important;
  }

  .slideshow-arrow:hover {
    transform: translateY(-50%);
  }
}
