/* ============================================
   Save Time — Watch catalog
   Inspired by clean minimal watch-dealer sites
   ============================================ */

:root {
  --color-bg: #f3ede2;
  --color-surface: #ffffff;
  --color-text: #1a1917;
  --color-text-muted: #66625c;
  --color-accent: #5f150a;
  --color-accent-hover: #4a1008;
  --color-on-accent: #f5ece5;
  --color-border: #e6e3dc;
  --color-border-dark: #d4d0c8;

  --font: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Cormorant Garamond", "Jost", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.25, 0.6, 0.25, 1);
  --header-height: 72px;
  --radius: 4px;
  --max-width: 1280px;
}

/* Base
   ------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

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

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

h1, h2, h3, p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

/* Buttons
   ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: var(--color-accent);
  color: var(--color-on-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

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

.btn--large {
  padding: 1rem 2.25rem;
  font-size: 0.875rem;
}

.btn--ghost {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* Header
   ------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #f7f4ee;
  border-bottom: 1px solid var(--color-border);
}

.header.is-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.875rem 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  order: 1;
}

.logo__accent {
  color: var(--color-accent);
}

.header__search {
  position: relative;
  order: 3;
  flex: 1 1 100%;
  max-width: none;
}

.menu-toggle {
  order: 2;
}

.nav {
  order: 4;
}

.search-input {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

.search-input:focus {
  border-color: var(--color-text-muted);
  background-color: var(--color-surface);
}

.search-btn {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  background: transparent;
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), background-color 0.2s;
}

.search-btn:hover {
  color: var(--color-text);
  background-color: var(--color-border);
}

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

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.375rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero
   ------------------------------------------ */
.hero {
  position: relative;
  min-height: min(560px, 70vh);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background-color: #000000;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 2rem;
  width: 100%;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero__media {
  position: relative;
  min-height: 300px;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero__content {
  position: relative;
  z-index: 1;
  align-self: center;
  color: #fff;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
  max-width: 640px;
}

.hero__lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin-bottom: 2rem;
}

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

.hero--home {
  min-height: min(560px, 70vh);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0) 68%);
  pointer-events: none;
}

/* Sections
   ------------------------------------------ */
.stock,
.featured {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.featured {
  background-color: transparent;
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-title {
  position: relative;
  display: inline-block;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  background-color: var(--color-accent);
}

.section-title--center {
  text-align: center;
  display: block;
}

.section-title--center::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 560px;
}

.featured__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.featured__link {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: color 0.2s var(--ease);
}

.featured__link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Filters
   ------------------------------------------ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  min-height: 40px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
}

.filter-btn:hover {
  border-color: var(--color-border-dark);
  color: var(--color-text);
}

.filter-btn.is-active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}

/* Product grid — uniform cards
   ------------------------------------------ */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: opacity 0.25s var(--ease);
}

.card:hover {
  opacity: 0.92;
}

.card__media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #efede8;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.card:hover .card__image {
  transform: scale(1.04);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.875rem 0.5rem 0;
  text-align: center;
}

.card__brand {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.card__name {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

.card__factory {
  display: inline-block;
  align-self: center;
  padding: 0.1875rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background-color: #f1efe9;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  color: var(--color-text-muted);
}

.card__price {
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.grid-empty {
  padding: 3rem 0;
  text-align: center;
  color: var(--color-text-muted);
}

/* Product sheet page
   ------------------------------------------ */
.product-page {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.backlink {
  display: inline-block;
  margin-bottom: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s var(--ease);
}

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

.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.product__media {
  background-color: #efede8;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.product__brand {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.product__name {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.product__factory {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background-color: #f1efe9;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.product__price {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 3.5rem;
}

.product-missing {
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

/* Prev / next
   ------------------------------------------ */
.prevnext {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.prevnext__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 48%;
}

.prevnext__link--next {
  text-align: right;
  margin-left: auto;
}

.prevnext__dir {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.prevnext__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s var(--ease);
}

.prevnext__link:hover .prevnext__name {
  color: var(--color-text);
}

/* Contact page
   ------------------------------------------ */
.contact-page {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.contact-page__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-page__text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.contact-page__note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Footer
   ------------------------------------------ */
.footer {
  background-color: #f7f4ee;
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Responsive
   ------------------------------------------ */
@media (min-width: 480px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .header__inner {
    flex-wrap: nowrap;
    min-height: var(--header-height);
    padding: 0;
  }

  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: min(560px, 70vh);
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50vw;
    min-height: 0;
  }

  .header__search {
    order: 2;
    flex: 1 1 auto;
    max-width: 420px;
  }

  .nav {
    order: 3;
  }

  .menu-toggle {
    order: 4;
  }

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

  .product {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }
}

@media (max-width: 767px) {
  .grid,
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .gallery-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.625rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    background-color: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
  }

  .product-gallery-thumbs {
    display: none;
  }

  .product-gallery-thumbs.is-open {
    display: grid;
  }

  .nav,
  .menu-toggle {
    display: none;
  }

  .header__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo toggle"
      "search search";
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.75rem 0;
  }

  .logo {
    grid-area: logo;
    justify-self: center;
    text-align: center;
  }

  .header__search {
    grid-area: search;
    justify-self: center;
    width: calc(100% - 2rem);
    max-width: 480px;
  }

  .hero {
    text-align: center;
    min-height: auto;
  }

  .hero__inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .hero__content {
    margin: 0 auto;
    padding: 2.5rem 0;
  }

  .hero__title {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__media {
    display: none;
  }
}

/* Product sheet (dynamic detail page)
   ------------------------------------------ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-gallery-main {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #efede8;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem;
}

.product-gallery-thumbs button {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #efede8;
  padding: 3px;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.product-gallery-thumbs button:hover,
.product-gallery-thumbs button.active {
  border-color: var(--color-accent);
}

.product-gallery-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-toggle {
  display: none;
}

.product-info .product__brand {
  margin-bottom: 0.5rem;
}

.product-info .product__name {
  margin-bottom: 1.5rem;
}

.product-info .product-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.product-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.product-categories a {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background-color: #f1efe9;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  color: var(--color-text-muted);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.product-categories a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.product-contact-box {
  background-color: #f1efe9;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1rem 0 1.5rem;
}

.product-contact-box h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-contact-box p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.product-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  border-top: 1px solid var(--color-border);
}

.product-details-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.product-details-list li:last-child {
  border-bottom: none;
}

.product-details-list strong {
  color: var(--color-text);
  font-weight: 500;
  text-align: right;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color 0.2s var(--ease);
}

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

/* Lightbox
   ------------------------------------------ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-stage {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lightbox-img.is-changing {
  opacity: 0;
  transform: scale(0.96);
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 16px;
  border-radius: 20px;
  pointer-events: none;
}

/* Featured (home) grid mirrors .grid */
.featured-grid {
  display: grid;
  gap: 1.25rem;
}

/* Reduced motion
   ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Large screens — product detail side-by-side & featured grid cols
   ------------------------------------------ */
@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
  }
}

@media (min-width: 480px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .product-gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 12px;
  }
  .lightbox-next {
    right: 12px;
  }
  .lightbox-nav {
    width: 42px;
    height: 42px;
  }
  .product-details-list li {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }
  .product-details-list strong {
    text-align: left;
  }
}

/* How to order page
   ------------------------------------------ */
.order-page {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
}

.order-content {
  max-width: 800px;
}

.order-steps {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.order-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.order-step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 50%;
}

.order-step-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.order-step-body p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 0.625rem;
}

.order-step-body p:last-child {
  margin-bottom: 0;
}

.order-step-body a {
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order-contact-box {
  background-color: var(--color-accent);
  color: var(--color-on-accent);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.order-contact-box h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.order-contact-box p {
  margin: 0 0 1.25rem;
  opacity: 0.92;
}

@media (max-width: 480px) {
  .order-step {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Catalog toolbar (filters + sort)
   ------------------------------------------ */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.catalog-toolbar .filters {
  margin-bottom: 0;
  flex: 1 1 auto;
}

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

.sort__label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.sort__select {
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  min-height: 40px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2366625c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  transition: border-color 0.2s var(--ease);
}

.sort__select:hover,
.sort__select:focus {
  border-color: var(--color-border-dark);
  outline: none;
}

@media (max-width: 640px) {
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .sort {
    justify-content: space-between;
  }
  .sort__select {
    flex: 1;
  }
}
