/* GALERIJA — quiet gallery / museum shop. On a wide screen the header is a calm vertical sidebar
 * on the left (body turns into a two-column grid). Muted greige, charcoal and a soft olive; light,
 * large Hanken Grotesk; lots of air. Products float on a neutral ground with small captions; the
 * hero is split — text on a pale panel left, the photograph right. Same markup as every theme. */

body.theme-galerija {
  --bg: #efece6;
  --surface: #f7f5f1;
  --surface-alt: #e5e1d9;
  --border: #d8d3c9;
  --text: #2a2a27;
  --text-muted: #7a766c;
  --accent: #4f5d46;
  --accent-dark: #3a4533;
  --accent-soft: #e2e6db;
  --dark: #2a2a27;
  --dark-2: #33332f;
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 4px;
  --shadow-sm: none;
  --shadow-md: 0 1rem 2.5rem rgba(42, 42, 39, 0.08);
  --shadow-lg: 0 1rem 2.5rem rgba(42, 42, 39, 0.12);
  --gradient-accent: var(--accent);
  --gradient-dark: var(--dark);

  --font-body: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;
  --heading-weight: 300;
  --heading-tracking: -0.03em;
  --header-bg: var(--surface);
  --topbar-bg: var(--surface);
  --topbar-ink: var(--text-muted);
  --catnav-bg: var(--surface);
  --catnav-ink: var(--accent);
  --catnav-ink-muted: var(--text);
  --catnav-hover-bg: transparent;
  --catnav-all-bg: transparent;
  --catnav-all-ink: var(--text);
  --search-border: 0;
  --search-radius: 0;
  --btn-radius: 2px;
  --card-radius: 0;
  --card-border: 0;
  --card-shadow: none;
  --card-media-bg: var(--surface-alt);
  --card-body-bg: transparent;
  --trust-bg: var(--surface);
  --trust-ink: var(--text);
  --trust-ink-muted: var(--text-muted);
  --trust-icon-bg: transparent;
  --footer-bg: var(--dark);
  --footer-ink: #efece6;
  --footer-ink-muted: #a9a59b;
  --hero-min-h: 30rem;
  --hero-min-h-lg: clamp(32rem, 76vh, 46rem);
  --sidebar-w: 16.5rem;
}

.theme-galerija h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.theme-galerija .header-brand {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.theme-galerija .brand-mark {
  background: var(--text);
}

.theme-galerija .header-search-combo {
  border-bottom: 1px solid var(--border);
}

.theme-galerija .header-search-combo:focus-within {
  border-bottom-color: var(--text);
}

.theme-galerija .search-category-select,
.theme-galerija .header-search-input {
  background: transparent;
}

.theme-galerija .search-category-select {
  border-right: 0;
}

.theme-galerija .header-search-btn {
  background: transparent;
  color: var(--text-muted);
}

.theme-galerija .header-search-btn:hover {
  background: transparent;
  color: var(--text);
}

.theme-galerija .header-action-btn:hover {
  background: transparent;
  color: var(--accent);
}

.theme-galerija .header-action-label {
  font-weight: 500;
}

.theme-galerija .cart-count {
  background: var(--accent);
}

.theme-galerija .catnav-all-toggle,
.theme-galerija .catnav-link {
  font-weight: 400;
  font-size: 0.92rem;
}

.theme-galerija .catnav-link.active {
  font-weight: 500;
}

.theme-galerija .header-catnav {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.theme-galerija .header-catnav .navbar-toggler {
  color: var(--text);
}

.theme-galerija .btn {
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── Sidebar (wide screens) ─────────────────────────────────────────────────────────────────── */
@media (min-width: 992px) {
  body.theme-galerija {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
  }

  .theme-galerija .site-header {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-right: 1px solid var(--border);
  }

  .theme-galerija .site-main {
    grid-column: 2;
    grid-row: 1;
  }

  .theme-galerija .site-footer {
    grid-column: 2;
    grid-row: 2;
  }

  .theme-galerija .header-main { order: 1; padding-top: 2.25rem; }
  .theme-galerija .header-catnav { order: 2; border: 0; }
  .theme-galerija .topbar { order: 3; margin-top: auto; }

  .theme-galerija .header-main-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1.75rem;
  }

  .theme-galerija .header-brand {
    font-size: 1.4rem;
  }

  .theme-galerija .header-search-combo {
    order: 3;
    max-width: none;
    flex: 0 0 auto;
  }

  .theme-galerija .search-category-select {
    display: none;
  }

  .theme-galerija .header-search-input {
    padding-left: 0;
  }

  .theme-galerija .header-actions {
    order: 2;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
  }

  .theme-galerija .header-action-btn {
    flex-direction: row;
    gap: 0.6rem;
    padding: 0.35rem 0;
  }

  .theme-galerija .header-action-label {
    font-size: 0.88rem;
    max-width: none;
  }

  .theme-galerija .header-catnav-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    padding-top: 1.75rem;
    padding-bottom: 1rem;
  }

  .theme-galerija .catnav-all-toggle {
    padding: 0.45rem 0;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
  }

  .theme-galerija .header-catnav .navbar-collapse {
    flex-direction: column;
    align-items: stretch;
  }

  .theme-galerija .catnav-links {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .theme-galerija .catnav-link {
    padding: 0.45rem 0;
    font-size: 1.05rem;
  }

  .theme-galerija .catnav-link.active::before {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    margin-right: 0.6rem;
    border-radius: 50%;
    background: var(--accent);
  }

  .theme-galerija .topbar {
    font-size: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .theme-galerija .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }

  .theme-galerija .topbar-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-galerija .topbar-phone {
    display: inline-flex !important;
    color: var(--text);
  }

  .theme-galerija .topbar-social-link {
    color: var(--text-muted);
  }

  .theme-galerija .flash-container {
    top: 1rem;
  }
}

/* ── Hero: split — pale text panel left, photograph right ───────────────────────────────────── */
.theme-galerija .hero-slide {
  padding: 0;
  align-items: stretch;
}

.theme-galerija .hero-slide-image::before {
  display: none;
}

.theme-galerija .hero-slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(32rem, 42%);
  max-width: none;
  padding: 3rem clamp(1.5rem, 3vw, 3.5rem);
  background: var(--bg);
}

.theme-galerija .hero-slide h1 {
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.theme-galerija .hero-slide p {
  font-size: 1rem;
}

.theme-galerija .hero-slide .btn-primary {
  align-self: flex-start;
}

.theme-galerija .hero-slide-1 { background: linear-gradient(90deg, var(--bg) 0 42%, #cfd3c5 42%); }
.theme-galerija .hero-slide-2 { background: linear-gradient(90deg, var(--bg) 0 42%, #d9d0c3 42%); }
.theme-galerija .hero-slide-3 { background: linear-gradient(90deg, var(--bg) 0 42%, #c9ccc9 42%); }

.theme-galerija .hero-slider .carousel-control-prev {
  display: none;
}

.theme-galerija .hero-slider .carousel-control-next {
  filter: none;
  opacity: 0.8;
}

.theme-galerija .hero-slider .carousel-indicators {
  justify-content: flex-start;
  margin: 0 0 2rem clamp(1.5rem, 3vw, 3.5rem);
}

.theme-galerija .hero-slider .carousel-indicators [data-bs-target] {
  width: 24px;
  height: 1px;
  border-radius: 0;
  background-color: var(--text);
}

.theme-galerija .hero-slider .carousel-indicators .active {
  height: 2px;
}

@media (max-width: 767.98px) {
  .theme-galerija .hero-slide {
    flex-direction: column;
    justify-content: flex-end;
  }

  .theme-galerija .hero-slide-content {
    width: 100%;
    padding: 2rem var(--gutter) 3.5rem;
  }

  .theme-galerija .hero-slider .carousel-indicators {
    margin-left: var(--gutter);
    margin-bottom: 1.25rem;
  }
}

/* ── Sections ──────────────────────────────────────────────────────────────────────────────── */
.theme-galerija .fb-section:not(.fb-band-trust) {
  background: var(--bg);
  padding: 4.5rem 0;
}

.theme-galerija .fb-band-alt {
  background: var(--bg);
}

.theme-galerija .fb-band-trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.theme-galerija .fb-section-title {
  text-align: left;
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 2rem;
}

/* Categories: an even grid of soft squares, captions underneath. */
.theme-galerija .category-scroll-btn {
  display: none;
}

.theme-galerija .category-track {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 1.75rem 1.25rem;
  overflow: visible;
  padding: 0;
}

.theme-galerija .category-item {
  width: auto;
}

.theme-galerija .category-card {
  align-items: flex-start;
  padding: 0;
  border-radius: 0;
}

.theme-galerija .category-card:hover {
  transform: none;
  box-shadow: none;
}

.theme-galerija div.category-tile,
.theme-galerija .category-tile.category-tile-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  box-shadow: none;
  filter: saturate(0.55);
  transition: filter 0.3s ease;
}

.theme-galerija div.category-tile {
  background: var(--surface-alt) !important;
  color: var(--text-muted);
}

.theme-galerija .category-card:hover .category-tile {
  filter: none;
}

.theme-galerija .category-card-name {
  text-align: left;
  font-weight: 400;
  font-size: 0.88rem;
}

.theme-galerija .fb-feature svg {
  color: var(--accent);
  padding: 0.4rem;
}

.theme-galerija .fb-feature h3 {
  font-weight: 500;
  font-size: 0.92rem;
}

/* Products: generous spacing, photo on a neutral ground, small caption. */
.theme-galerija .row:has(> .col > .product-card) {
  --bs-gutter-x: 1.75rem;
  --bs-gutter-y: 2.5rem;
}

.theme-galerija .product-card:hover {
  transform: none;
  box-shadow: none;
}

.theme-galerija .product-card img.product-tile {
  transition: transform 0.6s ease;
}

.theme-galerija .product-card:hover img.product-tile {
  transform: scale(1.03);
}

.theme-galerija .product-card .card-body {
  padding: 0.9rem 0 0;
}

.theme-galerija .card-title {
  font-weight: 400 !important;
  font-size: 0.95rem;
}

.theme-galerija .price-row {
  text-align: left !important;
}

.theme-galerija .price:not(.price-lg) {
  font-weight: 500;
  color: var(--text);
}

.theme-galerija .price-lg {
  font-weight: 300;
  color: var(--text);
}

.theme-galerija .sku-pill {
  border: 0;
  padding: 0;
  background: transparent;
}

.theme-galerija .stock-ribbon {
  left: 0.6rem;
  right: auto;
  border-radius: 2px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.7rem;
  background: var(--surface);
  color: var(--text-muted);
}

.theme-galerija .quick-add-form {
  left: 0;
  right: 0;
}

.theme-galerija .product-card:hover .quick-add-form {
  bottom: 0;
}

.theme-galerija .quick-add-btn {
  border-radius: 0;
  background: rgba(42, 42, 39, 0.88);
  font-weight: 500;
  padding: 0.75rem;
  box-shadow: none;
}

.theme-galerija .product-gallery {
  background: var(--surface-alt);
  border: 0;
}

.theme-galerija .footer-heading {
  font-weight: 500;
  letter-spacing: 0.12em;
}

.theme-galerija .footer-brand {
  font-weight: 500;
}

.theme-galerija .footer-social-link:hover {
  background: var(--accent);
}

.theme-galerija .product-card {
  background: transparent;
}
