/* Provides the shared visual system, responsive layouts, and component states for every page. */
/* =========================
   Design tokens
   ========================= */
:root {
  --page-background: #0f1720;
  --ink: #1f1a17;
  --clay: #a65f3d;
  --sage: #6e7f62;
  --sand: #d6a85b;
  --paper: #fffdf8;
  --cream: #f7f2ea;
  --soft: #faf4ea;
  --line: #d8c5ad;
  --muted: #6f6258;
  --sky: #5ed8ff;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --control-height: 44px;
  --shadow-soft: 0 10px 30px rgba(31, 26, 23, 0.08);
  --transition-fast: 0.2s ease;
  --transition-slow: 0.45s ease;
  --container-width: 1280px;
  --section-space: clamp(3.75rem, 7vw, 5.375rem);
  --focus: #16739a;
  --error: #9d2f2f;
  --success: #4f6846;
  --layer-menu: 10;
}

/* =========================
   Reset and base styles
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* Makes anchor links like #contact scroll smoothly instead of jumping. */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--page-background);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

/* =========================
   Shared page layout
   ========================= */
.site {
  /* Keeps the layout centered and prevents it from touching screen edges. */
  width: min(var(--container-width), calc(100% - 80px));
  margin: 40px auto;
  padding: 28px;
  background: var(--cream);
  border-radius: 20px;
}

/* =========================
   Header and navigation
   ========================= */
.navbar {
  /* Flexbox places the logo, links, language button, and CTA in one row. */
  width: 100%;
  height: 72px;
  padding: 0 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 54px 160px 124px;
  column-gap: 14px;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: var(--layer-menu);
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--clay);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin: 0;
  text-decoration: none;
}

.navbar nav {
  /* Creates horizontal spacing between navigation links. */
  display: flex;
  justify-self: center;
  gap: 10px;
}

.navbar nav a {
  /* Removes the default underline and makes links look like navigation items. */
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition:
    color var(--transition-fast),
    text-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.navbar nav a:hover,
.navbar nav a:focus-visible,
.navbar nav a[aria-current="page"] {
  color: #d97b3c;
  text-shadow:
    0 0 18px rgba(217, 123, 60, 0.65),
    0 0 32px rgba(255, 165, 50, 0.35);
  transform: translateY(-1px);
}

.nav-toggle {
  /* Hidden on desktop; shown in the mobile media query below. */
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  text-align: center;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(217, 123, 60, 0.12);
  color: #d97b3c;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(217, 123, 60, 0.45);
}

.lang-toggle {
  /* Compact language switcher with a modern glass-like surface. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  white-space: nowrap;
  border: 1px solid rgba(80, 190, 255, 0.35);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(219, 245, 255, 0.8)),
    var(--paper);
  color: #15526f;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 20px rgba(31, 26, 23, 0.08);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  /* Blue neon glow appears when the user hovers or tabs to the button. */
  background:
    linear-gradient(135deg, rgba(238, 252, 255, 1), rgba(141, 225, 255, 0.92)),
    var(--paper);
  border-color: #5ed8ff;
  color: #07384f;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px rgba(94, 216, 255, 0.2),
    0 0 18px rgba(77, 205, 255, 0.72),
    0 0 36px rgba(37, 172, 255, 0.45),
    0 12px 26px rgba(31, 26, 23, 0.12);
  outline: none;
}

.lang-toggle:active {
  transform: translateY(0);
}

.cart-link {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  width: 160px;
  height: 44px;
  padding: 0 5px;
  box-sizing: border-box;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.cart-label {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  white-space: nowrap;
  text-align: center;
}

.cart-link:hover,
.cart-link:focus-visible,
.cart-link[aria-current="page"] {
  border-color: var(--clay);
  color: var(--clay);
}

.cart-badge {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--clay);
  color: var(--paper);
  font-size: 0.75rem;
}

.navbar .header-cta {
  width: 124px;
  height: 44px;
  padding: 0 20px;
  box-sizing: border-box;
  white-space: nowrap;
  margin: 0;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

@media (max-width: 1280px) {
  /* Rules inside this block apply on tablets and smaller screens. */
  .navbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 54px 160px 124px;
    align-items: center;
    height: auto;
    padding: 18px 16px;
    gap: 12px;
  }

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

  .navbar nav {
    /* The menu is hidden until nav.js adds the .open class. */
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 14px;
    margin-top: 10px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 18px 16px 24px;
    border: 1px solid var(--line);
    border-radius: 0 0 18px 18px;
    box-shadow: var(--shadow-soft);
  }

  .navbar .logo {
    grid-column: 1;
  }

  .navbar .nav-toggle {
    grid-column: 2;
  }

  .navbar .lang-toggle {
    grid-column: 3;
  }

  .navbar .cart-link {
    grid-column: 4;
  }
  .navbar .header-cta {
    grid-column: 5;
    justify-content: center;
  }

  .navbar nav.open {
    /* This class is toggled when the hamburger button is clicked. */
    display: flex;
  }

  .navbar nav a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 1.25;
    text-align: left;
    border-radius: 14px;
    background: var(--soft);
  }

}

/* =========================
   Shared controls
   ========================= */
.btn {
  /* Used by both button elements and link elements styled as buttons. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 24px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn:hover,
.filter-btn:hover {
  /* Small lift effect when the user hovers over clickable controls. */
  transform: translateY(-2px);
}

.btn:active,
.filter-btn:active,
.product-action:active {
  transform: translateY(0);
}

.primary {
  background: var(--clay);
  color: var(--paper);
  border-color: var(--clay);
}

.secondary {
  background: var(--paper);
  color: var(--ink);
}

main {
  width: 100%;
  margin: 28px 0 0;
}

/* Home page hero section. */
.hero {
  /* Two-column grid: text on the left, image on the right. */
  min-height: 560px;
  padding: 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 40px;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.eyebrow {
  /* Small uppercase label above a main heading. */
  color: var(--clay);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 13px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 12px 0 14px;
  color: var(--ink);
}

.hero p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.hero-buttons {
  /* flex-wrap lets buttons move to a new line when there is not enough space. */
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
  margin: 32px 0 10px;
}

/* Shared page hero layout for gallery, booking, and feedback pages. */
.page-hero > div:first-child {
  min-width: 0;
}

.page-hero p {
  margin-bottom: 24px;
}

.page-hero .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.page-hero .hero-buttons a {
  display: inline-flex;
}

.page-hero .hero-card {
  min-width: 0;
}

.hero-visual {
  /* Framed image area used on the homepage hero. */
  height: 420px;
  background: linear-gradient(180deg, #fff1e6 0%, #fff6ec 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual img {
  /* object-fit keeps the image filling the frame without stretching. */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
  filter: contrast(0.9) saturate(1.2);
  transition: transform var(--transition-slow);
}

.hero-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.page-hero .hero-card picture {
  display: block;
  width: 100%;
  height: auto;
}

.hero-visual:hover img {
  transform: scale(1.03);
}

/* Home page statistics row. */
.stats {
  /* Displays the three homepage numbers in a row. */
  display: flex;
  gap: 36px;
  margin-top: 40px;
}

.stats div {
  display: flex;
  flex-direction: column;
}

.stats strong {
  font-size: 38px;
}

.stats span {
  color: var(--muted);
  font-weight: 600;
}

/* Shared content sections and card grids. */
.section {
  /* Adds vertical breathing room between major page sections. */
  margin-top: var(--section-space);
}

.section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--ink);
}

.category-grid {
  /* Four equal columns on desktop; changed in media queries for mobile. */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Gallery cards. */
.gallery-grid {
  /* minmax(0, 1fr) helps columns shrink correctly without overflow. */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gallery-card {
  /* overflow hidden clips images to the rounded card corners. */
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 6px 0 rgba(31, 26, 23, 0.03);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.gallery-card:hover,
.category-card:hover,
.product-card:hover,
.feedback-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.gallery-card picture {
  display: block;
  overflow: hidden;
}

.gallery-card img {
  /* Fixed image height keeps all gallery cards visually aligned. */
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

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

.gallery-card p {
  margin: 0;
  padding: 18px;
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}

/* Secondary page hero image cards. */
.page-hero {
  /* Reused by gallery, booking, and feedback pages. */
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
  margin-top: 28px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.page-hero p {
  margin-bottom: 26px;
}

.page-hero .hero-card {
  /* Creates the framed image card on secondary pages. */
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero .hero-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.page-hero .hero-card:hover img {
  transform: scale(1.03);
}

.feedback-hero-card img {
  object-position: center 42%;
}

/* Lightweight parallax story panel on the home page. */
.parallax-section {
  min-height: 420px;
  margin-top: 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.parallax-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(31, 26, 23, 0.72), rgba(31, 26, 23, 0.25)),
    linear-gradient(0deg, rgba(31, 26, 23, 0.55), transparent 55%);
}

.parallax-image {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--parallax-y, 0), 0);
}

.parallax-picture {
  position: absolute;
  inset: -50% 0;
  width: 100%;
  height: 200%;
}

.parallax-section.is-parallax-active .parallax-image {
  will-change: transform;
}

.parallax-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: clamp(28px, 5vw, 56px);
  color: var(--paper);
}

.parallax-content h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin: 10px 0 14px;
}

.parallax-content p {
  color: rgba(255, 253, 248, 0.9);
}

/* Booking and feedback page layouts. */
.booking-grid,
.feedback-grid {
  /* Main content plus form/testimonial column layout. */
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
}

.booking-info ul {
  margin: 20px 0;
  padding-left: 20px;
  color: var(--muted);
}

.booking-info li {
  margin-bottom: 10px;
}

.booking-highlights,
.feedback-grid {
  /* Small repeated blocks inside booking/feedback sections. */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.booking-highlights div,
.feedback-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
}

.booking-highlights strong {
  display: block;
  font-size: 32px;
  margin-bottom: 8px;
}

/* Form controls and validation messages. */
.booking-form,
.feedback-form {
  /* Forms use CSS grid so every field stacks with the same gap. */
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 18px;
}

.booking-form h3,
.feedback-form h2 {
  margin: 0;
  font-size: 24px;
}

label {
  /* Makes label text sit above its input. */
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}

input,
textarea,
select {
  /* Inherit the page font so native form controls match the design. */
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #b44343;
  background: #fff5f3;
  box-shadow: 0 0 0 3px rgba(180, 67, 67, 0.12);
}

.booking-message {
  /* Used for both booking and feedback success/error messages. */
  margin: 0;
  min-height: 1.5em;
  font-size: 14px;
  color: var(--sage);
  font-weight: 700;
}

.booking-message.error {
  color: var(--error);
}

.booking-message.success {
  color: var(--success);
}

.field-error {
  display: block;
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 700;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--focus);
  outline: 2px solid color-mix(in srgb, var(--focus) 25%, transparent);
  outline-offset: 1px;
}

.feedback-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.feedback-card strong {
  color: var(--ink);
}

/* Tablet layout adjustments. */
@media (max-width: 980px) {
  /* The layout becomes narrower and most grids collapse to fewer columns. */
  .site {
    width: min(100%, calc(100% - 32px));
    margin: 20px auto;
    padding: 18px;
  }

  .navbar nav a {
    font-size: 14px;
  }

  .btn {
    padding: 12px 18px;
  }

  .hero,
  .page-hero {
    /* Hero sections switch from two columns to one column. */
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 20px;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual,
  .page-hero .hero-card {
    height: auto;
  }

  .hero-visual img,
  .page-hero .hero-card img {
    max-height: 320px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 32px;
  }

  .hero p,
  .page-hero p {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-buttons,
  .page-hero .hero-buttons {
    justify-content: flex-start;
    gap: 14px;
    margin-top: 24px;
  }

  .stats {
    flex-wrap: wrap;
    gap: 18px;
  }

  .stats strong {
    font-size: 30px;
  }

  .section {
    margin-top: 60px;
  }

  .category-grid {
    /* Category cards become two columns on tablet screens. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid,
  .product-grid {
    /* Gallery and product cards stack in one column for easier reading. */
    grid-template-columns: 1fr;
  }

  .booking-grid,
  .feedback-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .booking-highlights,
  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .booking-form,
  .feedback-form {
    padding: 22px;
  }

  .gallery-card img {
    height: 200px;
  }

  .parallax-section {
    min-height: 340px;
  }
}

/* Small mobile layout adjustments. */
@media (max-width: 620px) {
  /* Extra-tight spacing for phones. */
  .site {
    padding: 14px;
    margin: 14px auto;
  }

  .navbar {
    padding: 14px 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }

  .navbar .logo {
    grid-column: 1 / 5;
    grid-row: 1;
  }

  .navbar .nav-toggle {
    grid-column: 5;
    grid-row: 1;
    justify-self: end;
  }

  .navbar .lang-toggle {
    grid-column: 6;
    grid-row: 1;
    justify-self: end;
  }

  .navbar nav {
    gap: 10px;
  }

  .navbar .header-cta {
    grid-column: 4 / 7;
    grid-row: 2;
    width: 100%;
    height: 44px;
    padding: 0 12px;
  }

  .navbar .cart-link {
    grid-column: 1 / 4;
    grid-row: 2;
    width: 100%;
    height: 44px;
  }

  .hero,
  .page-hero {
    padding: 20px 14px;
    gap: 24px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 28px;
  }

  .hero-buttons,
  .page-hero .hero-buttons {
    /* Full-width stacked buttons are easier to tap on mobile. */
    width: 100%;
    gap: 10px;
    flex-direction: column;
  }

  .hero-buttons .btn,
  .page-hero .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-visual img,
  .page-hero .hero-card img {
    max-height: 240px;
  }

  .stats {
    flex-direction: column;
  }

  .booking-form,
  .feedback-form {
    padding: 18px;
  }

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

  .cart-status {
    width: 100%;
  }
}

/* Product and category cards generated by script.js. */
.category-card,
.product-card {
  /* Shared card styling for dynamically rendered content. */
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 0 rgba(31, 26, 23, 0.03);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.media-frame {
  /* aspect-ratio keeps image boxes the same shape before images load. */
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #efe2d3; /* inner beige panel like prototype */
  padding: 14px; /* create inset look */
  box-sizing: border-box;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px; /* smaller radius inside beige panel */
}

.card-body {
  display: block;
  padding: 6px 0 0;
}

.cat-dot {
  /* Small colored marker shown beside each category name. */
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
}

.product-card h3 {
  /* Product titles are intentionally compact inside product cards. */
  margin: 8px 0 6px;
  font-size: 16px;
  font-weight: 800;
}

.media-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card p {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 13px;
}

.category-card h3 {
  margin: 0 0 10px;
}

.category-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: calc(var(--radius-md) - 4px);
}

.category-link:focus-visible {
  outline-offset: 6px;
}

.category-cue {
  display: inline-block;
  margin-top: 8px;
  color: var(--clay);
  font-weight: 800;
  transition: transform var(--transition-fast);
}

.category-link:hover .category-cue,
.category-link:focus-visible .category-cue {
  transform: translateX(4px);
}

.category-card p,
.product-card p {
  color: var(--muted);
}

/* Product filters and product grid. */
.controls {
  /* Holds the All/Ceramics/Textiles/Woodwork filter buttons. */
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
  position: relative;
  z-index: 2;
}

.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
}

.filter-btn.active {
  /* Shows which filter is currently selected by JavaScript. */
  background: var(--clay);
  color: var(--paper);
  border-color: var(--clay);
}

.product-grid {
  /* Product cards use three columns on desktop. */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  position: relative;
  z-index: 1;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cart-status {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.cart-status.is-updated {
  background: #f2dfcf;
  transform: scale(1.03);
}

.product-image {
  margin-bottom: 20px;
}

.card-bottom {
  /* Places price on the left and View button on the right. */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-action {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #3b2c27;
  color: var(--paper);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.product-action:hover,
.product-action:focus-visible {
  background: #5a3a31;
  box-shadow: 0 8px 18px rgba(59, 44, 39, 0.18);
  transform: translateY(-2px);
}

.product-desc {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
  line-height: 1.45;
}

.price {
  color: #7b3b24;
  font-size: 16px;
  font-weight: 800;
}

/* Shared footer. */
.footer {
  /* Footer content is spaced across the row on desktop. */
  margin-top: 70px;
  scroll-margin-top: 24px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer h2 {
  color: var(--clay);
  margin: 0;
}

.footer-logo {
  color: var(--clay);
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 8px;
}

.footer p {
  color: var(--muted);
}

.footer .footer-copyright {
  margin-top: 16px;
  font-size: 0.875rem;
}

.footer-contact {
  flex: 0 0 auto;
}

.footer-contact h2 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.footer-contact address {
  color: var(--muted);
  font-style: normal;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  max-width: 620px;
}

.footer-nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 4px;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-nav a[aria-current="page"] {
  color: var(--clay);
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

.gallery-trigger {
  cursor: zoom-in;
}

.gallery-trigger:focus-visible {
  outline-offset: -5px;
}

.lightbox {
  width: min(960px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--paper);
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(15, 23, 32, 0.88);
}

.lightbox-content {
  position: relative;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #211814;
}

.lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 130px);
  border-radius: var(--radius-md);
  object-fit: contain;
}

.lightbox-caption {
  margin: 0;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(33, 24, 20, 0.85);
  color: var(--paper);
  cursor: pointer;
  font-size: 1.8rem;
}

.lightbox-close {
  top: 12px;
  right: 12px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-previous {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: var(--clay);
}

body.lightbox-open {
  overflow: hidden;
}

/* Cart, checkout, and local order demonstration pages. */
/* Shared introductory text and two-column content layout. */
.page-intro {
  max-width: 760px;
  margin-top: 48px;
}

.page-intro h1 {
  margin: 10px 0 16px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  margin-top: 40px;
  align-items: start;
}

.cart-items,
.checkout-fields {
  display: grid;
  gap: 18px;
}

/* Individual cart product rows and quantity controls. */
.cart-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.cart-item picture,
.cart-item img {
  display: block;
  width: 100%;
  height: 120px;
}

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

.cart-item-content {
  display: grid;
  gap: 10px;
}

.cart-item-content h2 {
  margin: 0;
  font-size: 1.2rem;
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quantity-controls button {
  width: var(--control-height);
  height: var(--control-height);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.25rem;
}

.quantity-value {
  min-width: 32px;
  text-align: center;
  font-weight: 800;
}

.item-subtotal {
  color: var(--clay);
}

.remove-item {
  justify-self: start;
  min-height: var(--control-height);
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--error);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Shared summary and panel surfaces. */
.order-summary-card,
.checkout-fields fieldset,
.order-confirmation,
.admin-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.order-summary-card {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 18px;
}

.order-summary-card h2 {
  margin: 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.summary-note {
  color: var(--muted);
}

.total-row {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
}

.empty-cart {
  margin-top: 40px;
  padding: 40px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  text-align: center;
}

.empty-cart p {
  margin: 10px 0 22px;
}

/* Checkout form grids, choices, and confirmation state. */
.checkout-fields fieldset {
  margin: 0;
}

.checkout-fields legend {
  padding: 0 8px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.full-field {
  grid-column: 1 / -1;
}

.choice-list {
  display: grid;
  gap: 12px;
}

.choice-list label,
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
}

.choice-list input,
.terms-check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.form-notice {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--muted);
}

.form-notice.error {
  background: #fff5f3;
  color: var(--error);
}

.checkout-items {
  display: grid;
  gap: 12px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.order-confirmation {
  max-width: 720px;
  margin: 48px auto 0;
  text-align: center;
}

.order-confirmation p {
  margin: 14px 0 24px;
}

/* Local demonstration order administration dashboard. */
.admin-site {
  min-height: calc(100vh - 80px);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.admin-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-warning {
  padding: 16px;
  border-left: 4px solid var(--error);
  background: #fff5f3;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.admin-stats article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.admin-stats h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-stats strong {
  font-size: 1.4rem;
}

.admin-panel {
  margin-top: 24px;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(2, 200px);
  gap: 16px;
}

.admin-actions,
.admin-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.danger-button {
  border-color: var(--error);
  background: #fff5f3;
  color: var(--error);
}

.order-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.admin-order-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.4fr) minmax(200px, 1fr) 150px auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.admin-order-card h2,
.admin-order-card p,
.admin-order-card .admin-order-actions {
  margin: 0;
}

.order-dialog {
  width: min(700px, calc(100% - 32px));
  max-width: none;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
}

.order-dialog::backdrop {
  background: rgba(15, 23, 32, 0.78);
}

.order-dialog-content {
  position: relative;
  padding: 30px;
}

.order-dialog .lightbox-close {
  color: var(--paper);
}

@media (max-width: 1024px) {
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-summary-card {
    position: static;
  }

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

  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-order-card {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .cart-item picture,
  .cart-item img {
    height: 200px;
  }

  .form-grid,
  .admin-stats,
  .admin-order-card {
    grid-template-columns: 1fr;
  }

  .full-field {
    grid-column: auto;
  }

  .order-summary-card,
  .checkout-fields fieldset,
  .admin-panel {
    padding: 18px;
  }

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

  .admin-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .parallax-picture {
    inset: 0;
    height: 100%;
  }

  .parallax-image {
    transform: none;
  }
}

.reveal {
  opacity: 1;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

/* Extra compact layout fallback. */
@media (max-width: 900px) {
  /* Additional fallback rules for medium-small screens. */
  .hero,
  .footer {
    flex-direction: column;
  }

  .navbar nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hero-visual {
    height: 320px;
  }

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

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .site {
    width: calc(100% - 16px);
    margin: 8px auto;
    padding: 10px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .lang-toggle {
    width: 48px;
  }

  .controls {
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: thin;
  }

  .filter-btn {
    flex: 0 0 auto;
    min-height: var(--control-height);
  }

  .footer {
    align-items: flex-start;
    padding: 22px;
  }
}

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

  .js .reveal,
  .parallax-image {
    opacity: 1;
    transform: none !important;
  }

  .parallax-image {
    will-change: auto;
  }
}
