:root {
  --color-royal: #071e4d;
  --color-royal-soft: #0d2f70;
  --color-royal-deep: #031334;
  --color-gold: #c7a332;
  --color-cream: #f6efd8;
  --color-green: #42bf5b;
  --color-white: #ffffff;
  --color-bg: #eef2f8;
  --color-surface: #ffffff;
  --color-text: #10203f;
  --color-muted: #63718a;
  --color-border: rgba(199, 163, 50, 0.26);
  --shadow-soft: 0 18px 42px rgba(3, 19, 52, 0.12);
  --shadow-hover: 0 28px 70px rgba(3, 19, 52, 0.22);
  --radius: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(7, 30, 77, 0.08), transparent 26rem),
    var(--color-bg);
  color: var(--color-text);
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.secure-image {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}

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

.site-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(246, 239, 216, 0.18);
  background:
    radial-gradient(circle at 78% 18%, rgba(199, 163, 50, 0.24), transparent 20rem),
    linear-gradient(135deg, var(--color-royal-deep), var(--color-royal) 52%, var(--color-royal-soft));
  color: var(--color-white);
}

.site-header::after {
  position: absolute;
  inset: auto -8rem -11rem auto;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(199, 163, 50, 0.28);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.navbar,
.intro,
.catalogue {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.navbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: clamp(9.5rem, 20vw, 15rem);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
}

.nav-tagline {
  color: var(--color-green);
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.intro {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--color-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 820px;
  margin: 0;
  color: var(--color-cream);
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 1.03;
}

.intro-copy {
  max-width: 620px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.catalogue {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--color-royal);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.status {
  margin: 0;
  color: var(--color-royal-soft);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1.1rem, 2.4vw, 1.8rem);
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(199, 163, 50, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 239, 216, 0.34)),
    var(--color-surface);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card:hover,
.product-card:focus-within {
  border-color: rgba(199, 163, 50, 0.74);
  box-shadow: var(--shadow-hover);
  transform: translateY(-8px);
}

.product-media {
  padding: 0.75rem;
  background:
    linear-gradient(135deg, rgba(3, 19, 52, 0.95), rgba(13, 47, 112, 0.92));
  color: var(--color-cream);
  font-size: 0.9rem;
  font-weight: 700;
}

.product-featured {
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(246, 239, 216, 0.22);
  border-radius: calc(var(--radius) - 6px);
  background: var(--color-royal-deep);
}

.product-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 220ms ease;
}

.product-card:hover .product-featured img,
.product-card:focus-within .product-featured img {
  transform: scale(1.045);
}

.thumbnail-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.gallery-thumbnail {
  flex: 0 0 clamp(3.1rem, 15vw, 4.35rem);
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 2px solid rgba(246, 239, 216, 0.28);
  border-radius: 10px;
  background: rgba(246, 239, 216, 0.1);
  cursor: pointer;
  opacity: 0.78;
  transition: border-color 160ms ease, opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.gallery-thumbnail:hover,
.gallery-thumbnail:focus-visible,
.gallery-thumbnail.is-active {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(199, 163, 50, 0.18);
  opacity: 1;
  transform: translateY(-2px);
}

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

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(3, 19, 52, 0.92);
  backdrop-filter: blur(10px);
}

.image-modal.is-open {
  display: flex;
}

.image-modal__content {
  position: relative;
  width: min(100%, 72rem);
  max-height: 92vh;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  border: 1px solid rgba(199, 163, 50, 0.42);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(7, 30, 77, 0.96), rgba(3, 19, 52, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
}

.image-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(246, 239, 216, 0.48);
  border-radius: 999px;
  background: rgba(3, 19, 52, 0.8);
  color: var(--color-cream);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.image-modal__close:hover,
.image-modal__close:focus-visible {
  border-color: var(--color-gold);
  background: var(--color-royal);
  transform: scale(1.04);
}

.image-modal__image {
  width: 100%;
  max-height: 86vh;
  border-radius: 16px;
  object-fit: contain;
  object-position: center;
  background: var(--color-royal-deep);
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}

.product-media--placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  border-radius: calc(var(--radius) - 6px);
  background: rgba(246, 239, 216, 0.1);
  text-align: center;
}

.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.product-name {
  margin: 0;
  color: var(--color-royal);
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.22;
}

.product-description {
  margin: 0.75rem 0 1.1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.product-price {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(199, 163, 50, 0.38);
  border-radius: 999px;
  background: rgba(246, 239, 216, 0.82);
  color: var(--color-royal-deep);
  font-size: 1rem;
  font-weight: 900;
}

.empty-state,
.error-state,
.noscript-message {
  width: min(100% - 2rem, var(--max-width));
  margin: 2rem auto;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-royal-soft);
  text-align: center;
}

.product-grid > .empty-state,
.product-grid > .error-state {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .nav-tagline {
    text-align: left;
  }

  .status {
    text-align: left;
  }

  .product-content {
    padding: 1rem;
  }

  .product-media {
    padding: 0.6rem;
  }

  .thumbnail-row {
    gap: 0.45rem;
  }

  .gallery-thumbnail {
    flex-basis: clamp(3rem, 19vw, 4rem);
  }

  .image-modal {
    padding: 0.75rem;
  }

  .image-modal__content {
    border-radius: 16px;
  }

  .image-modal__image {
    max-height: 82vh;
    border-radius: 12px;
  }
}

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