@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --container: 1400px;
  --dark: #171717;
  --light: #ffffff;
  --muted: #777777;
  --border: #e7e2dc;
  --bg: #f7f3ee;
  --accent: #b88752;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Gilroy', Arial, sans-serif;
  color: var(--dark);
  background: var(--bg);
  letter-spacing: 0.01em;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font-family: inherit;
}

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

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(23,23,23,0.08);
}

.header-inner {
  height: 100px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-logo {
  width: fit-content;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  color: #111;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

.header-nav a {
  position: relative;
  font-size: 18px;
  font-weight: 500;
  color: #555;
  transition: 0.25s ease;
}

.header-nav a:hover {
  color: #111;
}

.header-nav a.is-active {
  color: #111;
  font-weight: 700;
}

.header-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 100%;
  height: 3px;
  background: #111;
}

.header-burger {
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.header-burger span {
  width: 100%;
  height: 2px;
  background: #111;
  display: block;
  transition: 0.25s ease;
}

.header-burger:hover span:nth-child(2) {
  width: 70%;
}

@media (max-width: 1100px) {

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-nav {
    display: none;
  }

}

@media (max-width: 768px) {

  .header-inner {
    height: 82px;
  }

  .header-logo {
    font-size: 20px;
  }

}




/* Side menu */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(23, 23, 23, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: 0.35s ease;
}

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

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  width: min(520px, 100%);
  height: 100vh;
  padding: 42px;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.16, 1, .3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.14);
}

.side-menu.is-open {
  transform: translateX(0);
}

.side-menu-close {
  width: 52px;
  height: 52px;
  margin-left: auto;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 0;
  background: #fff;
  color: #111;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: 0.25s ease;
}

.side-menu-close:hover {
  background: #111;
  color: #fff;
}

.side-nav {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.side-nav a {
  width: fit-content;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  color: #111;
  transition: 0.25s ease;
}

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

.side-contacts {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid rgba(23, 23, 23, 0.12);
  display: grid;
  gap: 12px;
}

.side-contacts a {
  width: fit-content;
  font-size: 16px;
  color: var(--muted);
  transition: 0.25s ease;
}

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

/* Hero */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1f1f1f;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  max-width: 940px;
  margin: 0 auto 22px;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-content p {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  height: 54px;
  padding: 0 26px;
  border-radius: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  transition: 0.25s ease;
}

.btn-primary {
  background: #fff;
  color: var(--dark);
}

.btn-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.btn:hover {
  transform: translateY(-2px);
}

/* Placeholder page */

.page-placeholder {
  min-height: 70vh;
  padding: 160px 0 80px;
  display: flex;
  align-items: center;
}

.page-placeholder h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: 0.01em;
}

.page-placeholder p {
  max-width: 620px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

/* Footer */

.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
}

.footer-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

/* Adaptive */

@media (max-width: 768px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header-inner {
    height: 72px;
  }

  .logo {
    width: 145px;
  }

  .burger {
    width: 46px;
    height: 46px;
  }

  .burger span:nth-child(1),
  .burger span:nth-child(3) {
    width: 30px;
  }

  .burger span:nth-child(2) {
    width: 20px;
  }

  .side-menu {
    padding: 26px 22px;
  }

  .side-menu-close {
    width: 48px;
    height: 48px;
    font-size: 30px;
  }

  .side-nav {
    margin-top: 52px;
    gap: 24px;
  }

  .side-nav > a,
  .side-nav-group > a {
    font-size: 38px;
    letter-spacing: 0.01em;
  }

  .side-subnav {
    max-width: 100%;
  }

  .hero-content h1 {
    letter-spacing: 0.01em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}





/* Collection page */

.collection-page {
  padding: 70px 0 90px;
  background: #f4f4f4;
  min-height: 100vh;
}

.collection-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.collection-head h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.collection-head p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.filter-open {
  height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.25s ease;
}

.filter-open:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-open-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.collection-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  transition: opacity 0.25s ease;
}

.collection-grid.is-loading {
  opacity: 0.45;
}

.guitar-card {
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.guitar-card-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8e8e8;
}

.guitar-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s ease;
}

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

.guitar-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guitar-card-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}

.guitar-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.guitar-card-body h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.guitar-card-body h2 a:hover {
  color: var(--accent);
}

.guitar-card-text {
  margin-bottom: 14px;
  color: #666;
  font-size: 13px;
  line-height: 1.55;
}

.guitar-card-meta {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 16px;
  color: #555;
}

.guitar-card-meta div {
  width: fit-content;
  padding: 4px 7px;
  background: #f3f3f3;
  border-radius: 4px;
}

.guitar-card-meta span {
  font-weight: 700;
  color: #222;
}

.guitar-card-link {
  margin-top: auto;
  height: 42px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: 0.25s ease;
}

.guitar-card-link:hover {
  background: var(--dark);
  color: #fff;
}

.collection-more-wrap {
  margin-top: 38px;
  text-align: center;
}

.collection-empty {
  grid-column: 1 / -1;
  padding: 50px;
  background: #fff;
  text-align: center;
  color: var(--muted);
}

/* Filter sidebar */

.filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(23, 23, 23, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

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

.filter-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: min(420px, 100%);
  height: 100vh;
  background: #fff;
  padding: 30px;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.16, 1, .3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.14);
}

.filter-sidebar.is-open {
  transform: translateX(0);
}

.filter-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.filter-sidebar-head h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0.01em;
}

.filter-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.filter-form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.filter-fields {
  display: grid;
  gap: 18px;
}

.filter-field {
  display: grid;
  gap: 8px;
}

.filter-field span {
  font-size: 13px;
  font-weight: 700;
}

.filter-field input,
.filter-field select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 8px;
  padding: 0 13px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--accent);
}

.filter-actions {
  margin-top: auto;
  padding-top: 24px;
  display: grid;
  gap: 12px;
}

.filter-apply,
.filter-reset {
  height: 50px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  transition: 0.25s ease;
}

.filter-apply {
  border: 1px solid var(--dark);
  background: var(--dark);
  color: #fff;
}

.filter-reset {
  border: 1px solid rgba(23, 23, 23, 0.16);
  background: #fff;
  color: var(--dark);
}

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

.filter-reset:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body.filter-opened {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .collection-page {
    padding-top: 120px;
  }

  .collection-head {
    display: grid;
    gap: 22px;
  }

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

@media (max-width: 560px) {
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    padding: 24px 18px;
  }

  .guitar-card-body h2 {
    font-size: 18px;
  }
}


















.collection-head {
  display: grid;
  gap: 28px;
  margin-bottom: 34px;
}

.collection-head h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.collection-head p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.filter-open {
  width: fit-content;
  height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(23, 23, 23, 0.18);
  border-radius: 0;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.25s ease;
}

.filter-open:hover {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.guitar-card {
  min-height: 100%;
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.guitar-card-body {
  min-height: 260px;
  padding: 18px;
  display: grid;
  grid-template-rows: 58px 66px 92px 42px;
  gap: 12px;
}

.guitar-card-body h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
  overflow: hidden;
}

.guitar-card-body h2 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.guitar-card-text {
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.guitar-card-meta {
  align-self: start;
  display: grid;
  gap: 7px;
  margin: 0;
  font-size: 16px;
  color: #555;
  overflow: hidden;
}

.guitar-card-meta div {
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  background: #f3f3f3;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guitar-card-link {
  margin: 0;
  height: 42px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: 0.25s ease;
}


@media (max-width: 560px) {
  .guitar-card-body {
    grid-template-rows: auto auto auto 42px;
    min-height: auto;
  }
}












/* Desktop filter panel */

.desktop-filter-panel {
  display: none;
  margin: -10px 0 34px;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.14);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.06);
}

.desktop-filter-panel.is-open {
  display: block;
}

.desktop-filter-panel .filter-form {
  display: grid;
  gap: 24px;
}

.desktop-filter-panel .filter-fields {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.desktop-filter-panel .filter-actions {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.desktop-filter-panel .filter-apply,
.desktop-filter-panel .filter-reset {
  width: 220px;
  border-radius: 0;
}

/* Custom select */

.custom-select {
  position: relative;
}

.custom-select select {
  display: none;
}

.custom-select-btn {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 0;
  padding: 0 38px 0 13px;
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.custom-select-btn::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: translateY(-65%) rotate(45deg);
  transition: 0.2s ease;
}

.custom-select.is-open .custom-select-btn::after {
  transform: translateY(-35%) rotate(-135deg);
}

.custom-select-list {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 230px;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.22);
  display: none;
}

.custom-select.is-open .custom-select-list {
  display: block;
}

.custom-select-option {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  border: 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.custom-select-option:last-child {
  border-bottom: 0;
}

.custom-select-option:hover,
.custom-select-option.is-selected {
  background: #111;
  color: #fff;
}

/* Filter sidebar mobile behavior */

@media (min-width: 821px) {
  .filter-sidebar,
  .filter-overlay {
    display: none;
  }
}

@media (max-width: 820px) {
  .desktop-filter-panel {
    display: none !important;
  }

  .filter-sidebar .filter-actions {
    margin-top: auto;
    padding-top: 24px;
  }

  .filter-sidebar .filter-apply,
  .filter-sidebar .filter-reset {
    border-radius: 0;
  }
}








/* Filter button fixes */

.filter-open {
  width: fit-content;
  height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(23, 23, 23, 0.18);
  border-radius: 0;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.25s ease;
}

.filter-open:hover {
  border-color: rgba(23, 23, 23, 0.35);
  background: #f1f1f1;
  color: #111;
}

.filter-open-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-open-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

/* Straight inputs */

.filter-field input,
.filter-field select,
.custom-select-btn {
  border-radius: 0;
}

/* Smooth desktop filter animation */

.desktop-filter-panel {
  display: block;
  max-height: 0;
  opacity: 0;
  margin: -10px 0 0;
  padding: 0 28px;
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0);
  transform: translateY(-18px);
  pointer-events: none;
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease,
    transform 0.45s ease,
    padding 0.45s ease,
    margin 0.45s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.desktop-filter-panel.is-open {
  max-height: 500px;
  opacity: 1;
  margin: -10px 0 34px;
  padding: 28px;
  border-color: rgba(23, 23, 23, 0.14);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.06);
  transform: translateY(0);
  pointer-events: auto;
  overflow: visible;
}

@media (max-width: 820px) {
  .desktop-filter-panel {
    display: none !important;
  }
}

.desktop-filter-panel .filter-form,
.desktop-filter-panel .filter-fields,
.desktop-filter-panel .filter-field {
  overflow: visible;
}

.custom-select {
  position: relative;
  z-index: 20;
}

.custom-select.is-open {
  z-index: 100;
}

.custom-select-list {
  z-index: 999;
}




.collection-head,
.desktop-filter-panel {
  position: relative;
  z-index: 30;
}

.collection-grid {
  position: relative;
  z-index: 1;
}

.desktop-filter-panel .custom-select.is-open {
  z-index: 300;
}

.desktop-filter-panel .custom-select-list {
  z-index: 400;
}


.collection-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.active-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.active-filter-chip {
  height: 48px;
  padding: 0 14px 0 18px;
  border: 1px solid rgba(23, 23, 23, 0.18);
  border-radius: 0;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.active-filter-chip:hover {
  background: #f1f1f1;
  border-color: rgba(23, 23, 23, 0.35);
}

.active-filter-chip strong {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}


.active-filter-chip {
  cursor: default;
}

.active-filter-chip strong {
  cursor: pointer;
}





/* Breadcrumbs */

.breadcrumbs {
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 16px;
  color: #777;
}

.breadcrumbs a {
  transition: 0.25s ease;
}

.breadcrumbs a:hover {
  color: #111;
}

.breadcrumbs span:last-child {
  color: #111;
  font-weight: 600;
}



















/* Single guitar page */

.single-guitar-page {
  padding: 42px 0 90px;
  background: #f4f4f4;
  min-height: 100vh;
}

.single-guitar-head {
  margin-bottom: 34px;
}

.single-guitar-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.single-guitar-cats span {
  padding: 7px 11px;
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.14);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.single-guitar-head h1 {
  max-width: 1100px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.single-guitar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 700;
}

.single-guitar-brand span {
  color: var(--muted);
  font-weight: 500;
}

/* Minimal photo slider */

.guitar-min-slider {
  margin-bottom: 54px;
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.1);
  padding: 26px;
}

.guitar-min-slider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.guitar-min-slider-title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #111;
}

.guitar-min-slider-controls {
  display: grid;
  grid-template-columns: 54px 90px 54px;
  align-items: center;
  gap: 10px;
}

.guitar-min-arrow {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(23, 23, 23, 0.18);
  border-radius: 0;
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 24px;
  cursor: pointer;
  transition: 0.25s ease;
}

.guitar-min-arrow:hover {
  background: #f1f1f1;
  border-color: #111;
}

.guitar-min-counter {
  height: 54px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #111;
}

.guitar-min-slider-window {
  width: 100%;
  overflow: hidden;
}

.guitar-min-slider-track {
  display: flex;
  gap: 18px;
  transition: transform 0.45s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}

.guitar-min-slide {
  flex: 0 0 calc((100% - 36px) / 3);
  height: 520px;
  padding: 0;
  border: 2px solid transparent;
  background: #f7f7f7;
  cursor: pointer;
  overflow: hidden;
  transition: 0.25s ease;
}

.guitar-min-slide:hover,
.guitar-min-slide.is-active {
  border-color: #111;
}

.guitar-min-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.guitar-min-no-photo {
  min-height: 420px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 18px;
  background: #fff;
}

/* Content */

.single-guitar-content {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.single-guitar-specs,
.single-guitar-description {
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.1);
  padding: 30px;
}

.single-guitar-specs h2,
.single-guitar-description h2 {
  margin: 0 0 24px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.specs-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(23, 23, 23, 0.1);
}

.spec-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.1);
}

.spec-item span {
  color: var(--muted);
  font-size: 14px;
}

.spec-item strong {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.single-guitar-text {
  color: #333;
  font-size: 18px;
  line-height: 1.75;
}

.single-guitar-text p:first-child {
  margin-top: 0;
}

.single-guitar-text p:last-child {
  margin-bottom: 0;
}

/* Adaptive */

@media (max-width: 1000px) {
  .guitar-min-slide {
    flex-basis: calc((100% - 18px) / 2);
    height: 440px;
  }

  .single-guitar-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .single-guitar-page {
    padding-top: 28px;
  }

  .single-guitar-head h1 {
    font-size: 38px;
  }

  .single-guitar-brand {
    display: grid;
    gap: 6px;
    font-size: 18px;
  }

  .guitar-min-slider {
    padding: 16px;
  }

  .guitar-min-slider-top {
    display: grid;
    gap: 14px;
  }

  .guitar-min-slider-controls {
    grid-template-columns: 48px 1fr 48px;
  }

  .guitar-min-arrow,
  .guitar-min-counter {
    height: 48px;
  }

  .guitar-min-arrow {
    width: 48px;
  }

  .guitar-min-slide {
    flex-basis: 100%;
    height: 430px;
  }

  .single-guitar-specs,
  .single-guitar-description {
    padding: 22px;
  }

  .spec-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .single-guitar-text {
    font-size: 16px;
  }
}













/* Single guitar edits */

.single-guitar-head h1 {
  max-width: 1100px;
  margin: 0;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.single-guitar-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.single-guitar-cats span {
  padding: 7px 11px;
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.14);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.single-guitar-brand {
  display: none;
}

/* Slider cover mode */

.guitar-min-slide {
  position: relative;
}

.guitar-min-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.guitar-min-slide::after {
  content: 'Увеличить';
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.9);
  color: #111;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.25s ease;
}

.guitar-min-slide:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */

body.lightbox-open {
  overflow: hidden;
}

.guitar-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 90px 90px 80px;
}

.guitar-lightbox.is-open {
  display: flex;
}

.guitar-lightbox-image {
  width: min(100%, 1200px);
  height: calc(100vh - 190px);
  max-height: 760px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.guitar-lightbox-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.guitar-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

.guitar-lightbox-arrow {
  position: absolute;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.guitar-lightbox-arrow:hover,
.guitar-lightbox-close:hover {
  background: #fff;
  color: #111;
}

.guitar-lightbox-prev {
  left: 24px;
}

.guitar-lightbox-next {
  right: 24px;
}

.guitar-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  height: 44px;
  min-width: 92px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

@media (max-width: 640px) {
  .guitar-lightbox {
    padding: 82px 16px 86px;
  }

  .guitar-lightbox-image {
    width: 100%;
    height: calc(100vh - 180px);
    max-height: none;
  }

  .guitar-lightbox-close {
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
  }

  .guitar-lightbox-arrow {
    top: auto;
    bottom: 18px;
    transform: none;
    width: 48px;
    height: 48px;
  }

  .guitar-lightbox-prev {
    left: 18px;
  }

  .guitar-lightbox-next {
    right: 18px;
  }

  .guitar-lightbox-counter {
    bottom: 20px;
  }
}







@media (max-width: 640px) {
  .guitar-min-slider-controls {
    width: 100%;
    grid-template-columns: 56px minmax(110px, 1fr) 56px;
    gap: 12px;
  }

  .guitar-min-arrow {
    width: 56px;
    height: 52px;
    font-size: 24px;
  }

  .guitar-min-counter {
    min-width: 110px;
    height: 52px;
    font-size: 16px;
  }
}





@media (max-width: 640px) {
  .guitar-min-slider-top {
    display: grid;
    grid-template-columns: 1fr;
  }

  .guitar-min-slider-controls {
    justify-self: stretch;
  }
}


.header-logo {
  display: flex;
  align-items: center;
  width: 220px;
}

.header-logo img {
  width: 100%;
  height: auto;
  display: block;
}






/* About page */

.about-page {
  padding: 42px 0 100px;
  background: #f4f4f4;
  min-height: 100vh;
}

.about-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 860px);
  gap: 80px;
  align-items: start;
}

.about-label {
  position: sticky;
  top: 130px;
  padding-top: 10px;
  border-top: 2px solid #111;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #111;
}

.about-content {
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.1);
  padding: 48px;
}

.about-content h1 {
  margin: 0 0 34px;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.about-content p {
  margin: 0 0 24px;
  font-size: 20px;
  line-height: 1.75;
  color: #222;
}

.about-content p:last-child {
  margin-bottom: 0;
  font-weight: 700;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-label {
    position: static;
  }

  .about-content {
    padding: 28px;
  }

  .about-content h1 {
    font-size: 34px;
  }

  .about-content p {
    font-size: 17px;
  }
}






/* Single guitar page */

.single-guitar-page {
  padding: 42px 0 90px;
  background: #f4f4f4;
  min-height: 100vh;
}

.single-guitar-head {
  margin-bottom: 34px;
}

.single-guitar-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.single-guitar-cats span {
  padding: 7px 11px;
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.14);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.single-guitar-head h1 {
  max-width: 1100px;
  margin: 0;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.single-guitar-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 38px;
}

/* Gallery */

.guitar-card-gallery {
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.1);
  padding: 22px;
}

.guitar-main-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f3f3f3;
  overflow: hidden;
  cursor: zoom-in;
}

.guitar-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.guitar-no-photo {
  min-height: 480px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fff;
}

.guitar-gallery-bottom {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
}

.guitar-gallery-arrow {
  width: 48px;
  height: 88px;
  border: 1px solid rgba(23, 23, 23, 0.18);
  background: #fff;
  border-radius: 0;
  font-family: inherit;
  font-size: 22px;
  cursor: pointer;
  transition: 0.25s ease;
}

.guitar-gallery-arrow:hover {
  background: #f1f1f1;
  border-color: #111;
}

.guitar-gallery-track-wrap {
  overflow: hidden;
}

.guitar-gallery-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}

.guitar-gallery-track::-webkit-scrollbar {
  height: 5px;
}

.guitar-gallery-track::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.guitar-gallery-track::-webkit-scrollbar-thumb {
  background: #111;
}

.guitar-gallery-thumb {
  flex: 0 0 110px;
  height: 88px;
  padding: 0;
  border: 2px solid transparent;
  background: #f3f3f3;
  overflow: hidden;
  cursor: pointer;
  transition: 0.25s ease;
}

.guitar-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guitar-gallery-thumb.is-active,
.guitar-gallery-thumb:hover {
  border-color: #111;
}

.guitar-gallery-counter {
  margin-top: 14px;
  height: 44px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 0 16px;
  font-weight: 700;
}

/* Specs */

.single-guitar-specs,
.single-guitar-description {
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.1);
  padding: 30px;
}

.single-guitar-specs h2,
.single-guitar-description h2 {
  margin: 0 0 24px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.specs-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(23, 23, 23, 0.1);
}

.spec-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.1);
}

.spec-item span {
  color: var(--muted);
  font-size: 14px;
}

.spec-item strong {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

/* Description */

.single-guitar-description {
  width: 100%;
}

.single-guitar-text {
  color: #333;
  font-size: 18px;
  line-height: 1.75;
}

.single-guitar-text p:first-child {
  margin-top: 0;
}

.single-guitar-text p:last-child {
  margin-bottom: 0;
}

/* Lightbox */

body.lightbox-open {
  overflow: hidden;
}

.guitar-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 90px 90px 80px;
}

.guitar-lightbox.is-open {
  display: flex;
}

.guitar-lightbox-image {
  width: min(100%, 1200px);
  height: calc(100vh - 190px);
  max-height: 760px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.guitar-lightbox-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.guitar-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

.guitar-lightbox-arrow {
  position: absolute;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.guitar-lightbox-arrow:hover,
.guitar-lightbox-close:hover {
  background: #fff;
  color: #111;
}

.guitar-lightbox-prev {
  left: 24px;
}

.guitar-lightbox-next {
  right: 24px;
}

.guitar-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  height: 44px;
  min-width: 92px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Adaptive */

@media (max-width: 1000px) {
  .single-guitar-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .single-guitar-page {
    padding-top: 28px;
  }

  .single-guitar-head h1 {
    font-size: 32px;
  }

  .guitar-card-gallery,
  .single-guitar-specs,
  .single-guitar-description {
    padding: 18px;
  }

  .guitar-gallery-bottom {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .guitar-gallery-arrow {
    width: 42px;
    height: 78px;
  }

  .guitar-gallery-thumb {
    flex-basis: 96px;
    height: 78px;
  }

  .spec-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .single-guitar-text {
    font-size: 16px;
  }

  .guitar-lightbox {
    padding: 82px 16px 86px;
  }

  .guitar-lightbox-image {
    width: 100%;
    height: calc(100vh - 180px);
    max-height: none;
  }

  .guitar-lightbox-close {
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
  }

  .guitar-lightbox-arrow {
    top: auto;
    bottom: 18px;
    transform: none;
    width: 48px;
    height: 48px;
  }

  .guitar-lightbox-prev {
    left: 18px;
  }

  .guitar-lightbox-next {
    right: 18px;
  }

  .guitar-lightbox-counter {
    bottom: 20px;
  }
}









.guitar-gallery-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.guitar-gallery-tab {
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(23, 23, 23, 0.18);
  border-radius: 0;
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.guitar-gallery-tab:hover {
  background: #f1f1f1;
}

.guitar-gallery-tab.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}



.guitar-gallery-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.guitar-gallery-tab {
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(23, 23, 23, 0.18);
  border-radius: 0;
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.guitar-gallery-tab:hover {
  background: #f1f1f1;
}

.guitar-gallery-tab.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}


/* Contacts page */

.contacts-page {
  padding: 42px 0 100px;
  background: #f4f4f4;
  min-height: 100vh;
}

.contacts-card {
  max-width: 760px;
  background: #fff;
  border: 1px solid rgba(23, 23, 23, 0.1);
  padding: 48px;
}

.contacts-label {
  width: fit-content;
  margin-bottom: 28px;
  padding: 7px 11px;
  border: 1px solid rgba(23, 23, 23, 0.14);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.contacts-card h1 {
  margin: 0 0 24px;
  font-size: 42px;
  line-height: 1.15;
}

.contacts-card p {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.6;
}

.contacts-email {
  display: inline-block;
  margin: 4px 0 26px;
  font-size: 28px;
  font-weight: 700;
  border-bottom: 2px solid #111;
}

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

@media (max-width: 640px) {
  .contacts-card {
    padding: 28px;
  }

  .contacts-card h1 {
    font-size: 34px;
  }

  .contacts-card p {
    font-size: 17px;
  }

  .contacts-email {
    font-size: 22px;
  }
}


/* Lightbox zoom controls */

.guitar-lightbox-image {
  touch-action: none;
  user-select: none;
  overscroll-behavior: contain;
}

.guitar-lightbox-image img {
  transform-origin: center center;
  transition: transform 0.16s ease;
  will-change: transform;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.guitar-lightbox-image.is-zoomed img {
  cursor: grab;
}

.guitar-lightbox-image.is-dragging img {
  cursor: grabbing;
  transition: none;
}

.guitar-lightbox-zoom {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.42);
}

.guitar-lightbox-zoom button {
  height: 46px;
  min-width: 46px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}

.guitar-lightbox-zoom button + button {
  border-left: 0;
}

.guitar-lightbox-zoom button:hover:not(:disabled) {
  background: #fff;
  color: #111;
}

.guitar-lightbox-zoom button:disabled {
  opacity: 0.4;
  cursor: default;
}

.guitar-lightbox-zoom .guitar-lightbox-zoom-value {
  min-width: 72px;
  font-size: 13px;
}

/* Shared guitar and picture catalog navigation. */
.catalog-nav-group { position: relative; }
.catalog-nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 0;
  background: transparent; font: inherit; font-size: 18px; color: #555; cursor: pointer;
}
.catalog-nav-toggle.is-active { color: #111; font-weight: 700; }
.catalog-nav-toggle svg { transition: transform .2s ease; }
.catalog-nav-group.is-open > .catalog-nav-toggle svg { transform: rotate(180deg); }
.catalog-submenu {
  display: none; position: absolute; top: 100%; left: -20px; min-width: 235px;
  padding: 22px 10px 10px; z-index: 150; background: #fff;
  box-shadow: 0 14px 25px rgba(0,0,0,.12); border-radius: 0 0 8px 8px;
}
.catalog-nav-group.is-open > .catalog-submenu { display: grid; gap: 4px; }
.header-nav .catalog-submenu a {
  display: block; padding: 12px 10px; font-size: 16px; line-height: 1.3;
  white-space: nowrap; border-radius: 4px;
}
.header-nav .catalog-submenu a:hover,
.catalog-submenu a[aria-current="page"] { background: #f1f1f1; color: #111; }
.catalog-nav-toggle:focus-visible, .catalog-submenu a:focus-visible { outline: 2px solid #555; outline-offset: 4px; }
.side-nav .catalog-nav-group { width: 100%; }
.side-nav .catalog-nav-toggle { font-size: 34px; line-height: 1.1; font-weight: 700; color: #111; width: 100%; justify-content: space-between; }
.side-nav .catalog-submenu {
  position: static; min-width: 0; padding: 16px 0 0 16px; box-shadow: none;
  border-left: 1px solid #ddd; margin-top: 12px; background: transparent;
}
.side-nav .catalog-submenu a { padding: 6px 0; font-size: 17px; line-height: 1.4; }
.side-nav .catalog-submenu a[aria-current="page"] { background: transparent; font-weight: 700; }

/* Terracotta archive ribbon with fine edges, shared by both collections. */
.catalog-archive-badge {
  position: absolute; top: 26px; right: -40px; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 162px; height: 40px; padding: 0 16px; box-sizing: border-box;
  transform: rotate(45deg); transform-origin: center;
  background: linear-gradient(115deg, #bc4d32 0%, #96331f 100%);
  color: #fff9ee; box-shadow: 0 4px 10px rgba(59, 21, 12, .24);
  font-size: 12px; line-height: 1; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; white-space: nowrap;
  pointer-events: none;
}
.catalog-archive-badge::before {
  content: ''; position: absolute; inset: 4px 0;
  border-top: 1px solid rgba(255, 241, 219, .38);
  border-bottom: 1px solid rgba(255, 241, 219, .38);
}
.catalog-archive-icon { flex: 0 0 18px; width: 18px; height: 18px; }
.catalog-archive-label { position: relative; }
.is-archived .guitar-card-badge {
  max-width: calc(100% - 132px); box-sizing: border-box;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.single-guitar-head { position: relative; }
.single-guitar-head:has(.catalog-archive-badge) { padding-right: 164px; }
.single-guitar-head > .catalog-archive-badge {
  top: 0; right: 0; width: 144px; height: 46px; padding-left: 24px;
  transform: none; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 9px 50%);
}
.desktop-filter-panel .picture-filter-form .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.desktop-filter-panel .filter-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.collection-more-wrap [hidden], .catalog-pagination[hidden] { display: none !important; }
.catalog-status { margin: 0 0 20px; font-size: 15px; color: #666; }
.catalog-status:empty { display: none; }
.catalog-status.is-error { color: #8d2929; padding: 14px 16px; border: 1px solid #e8c5c5; background: #fff3f3; }
.catalog-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.catalog-pagination a, .catalog-pagination span { padding: 9px 13px; border: 1px solid #ddd; }
.catalog-pagination .current { background: #222; color: white; }
.active-filter-chip { cursor: pointer; }
@media (max-width: 1050px) {
  .header-nav { gap: 24px; }
  .desktop-filter-panel .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .single-guitar-head:has(.catalog-archive-badge) { padding-right: 0; padding-top: 62px; }
  .side-nav .catalog-nav-toggle { font-size: 38px; letter-spacing: .01em; }
}

@media (max-width: 640px) {
  .guitar-lightbox-zoom {
    top: 18px;
    left: 18px;
  }

  .guitar-lightbox-zoom button {
    height: 44px;
    min-width: 44px;
  }
}

/* Global search — release 1.3.0 */
.gc-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-left: auto;
}
.gc-search-toggle {
  width: 42px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.gc-search-toggle:hover,
.gc-search-toggle[aria-expanded="true"] {
  background: #f2f2f2;
  border-color: #e7e7e7;
}
.gc-search-toggle:focus-visible,
.gc-header-search button:focus-visible,
.gc-header-search input:focus-visible,
.gc-search-page button:focus-visible,
.gc-search-page a:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}
.gc-header-search {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 145;
  padding: 0;
  background: #fff;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #dedede;
  box-shadow: 0 20px 28px rgba(0,0,0,.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-14px);
  transition: opacity .25s ease, transform .3s cubic-bezier(.16,1,.3,1), visibility .3s;
}
.gc-header-search.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.gc-header-search-form {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.gc-header-search-form > svg { flex-shrink: 0; color: #555; }
.gc-header-search-form input {
  min-width: 0;
  width: 100%;
  flex: 1;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  outline: none;
  color: #111;
  font: inherit;
  font-size: 21px;
}
.gc-header-search-form input::placeholder { color: #999; }
.gc-header-search-submit {
  flex-shrink: 0;
  height: 46px;
  min-width: 108px;
  padding: 0 18px;
  border: 1px solid #171717;
  border-radius: 0;
  background: #171717;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.gc-header-search-submit:hover { background: #444; border-color: #444; }
.gc-header-search-close {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #444;
  font-size: 29px;
  cursor: pointer;
}
.gc-header-search-close:hover { color: #111; background: #f3f3f3; }

.gc-search-page {
  min-height: 80vh;
  padding: 42px 0 100px;
  background: #f4f4f4;
}
.gc-search-head { margin: 0 0 30px; }
.gc-search-head h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: .01em;
}
.gc-search-head p { margin: 0; font-size: 17px; line-height: 1.5; color: #777; }
.gc-search-page-form {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 22px;
}
.gc-search-page-form input {
  min-width: 0;
  flex: 1;
  height: 56px;
  padding: 0 18px;
  border: 1px solid #dedede;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 17px;
}
.gc-search-page-form button,
.gc-search-more {
  height: 56px;
  min-width: 134px;
  padding: 0 24px;
  border: 1px solid #111;
  border-radius: 0;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.gc-search-page-form button:hover,
.gc-search-more:hover { background: #353535; }
.gc-search-more[hidden], .gc-search-pagination[hidden] { display: none !important; }
.gc-search-info { margin-bottom: 20px; }
.gc-search-info p { margin: 0; color: #666; font-size: 16px; }
.gc-search-info strong { color: #111; font-weight: 700; }
.gc-search-type-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.gc-search-type-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #d3d3d3;
  border-radius: 0;
  background: #fff;
  color: #333;
  font-weight: 600;
  font-size: 15px;
  transition: border-color .2s, background .2s, color .2s;
}
.gc-search-type-tab:hover { border-color: #111; background: #f0f0f0; color: #111; }
.gc-search-type-tab.is-active { background: #111; border-color: #111; color: #fff; }
.gc-search-grid { align-items: stretch; }
.gc-search-section-badge {
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 13px;
  max-width: calc(100% - 26px);
  padding: 8px 10px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}
.gc-search-kind-badge {
  position: absolute;
  z-index: 3;
  left: 13px;
  bottom: 13px;
  padding: 8px 10px;
  background: rgba(255,255,255,.95);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.gc-search-grid .guitar-card-badge { max-width: calc(100% - 165px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 0; }
.gc-search-grid .guitar-card.is-archived .guitar-card-badge { max-width: calc(100% - 165px); }
.gc-search-hint { padding: 28px; border: 1px solid #e5e5e5; background: #fff; color: #666; font-size: 17px; }
.gc-search-status { margin-bottom: 15px; color: #666; font-size: 14px; }
.gc-search-status:empty { display: none; }
.gc-search-status.is-error { padding: 12px 16px; color: #a42424; background: #fff1f1; border: 1px solid #e5bcbc; }
.gc-search-more-wrap { text-align: center; }

@media (max-width: 1100px) {
  .gc-header-actions { gap: 14px; }
}
@media (max-width: 768px) {
  .gc-header-search-form { min-height: 80px; gap: 12px; }
  .gc-header-search-form input { font-size: 16px; }
  .gc-header-search-submit { min-width: auto; padding: 0 12px; }
  .gc-search-toggle { width: 38px; }
  .gc-search-page { padding: 28px 0 75px; }
  .gc-search-head p { font-size: 15px; }
  .gc-search-page-form input { font-size: 16px; }
}
@media (max-width: 480px) {
  .gc-header-actions { gap: 8px; }
  .gc-header-search-form { gap: 8px; }
  .gc-header-search-form > svg { display: none; }
  .gc-header-search-form input { font-size: 14px; }
  .gc-header-search-submit { height: 42px; font-size: 13px; }
  .gc-header-search-close { width: 30px; font-size: 25px; }
  .gc-search-page-form { flex-direction: column; gap: 8px; }
  .gc-search-page-form button { height: 50px; }
  .gc-search-type-tabs { gap: 8px; }
  .gc-search-type-tab { min-height: 42px; padding: 0 14px; font-size: 14px; }
  .gc-search-section-badge { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .gc-header-search { transition: none; }
}
@media (max-width: 480px) {
  .header-logo { width: min(46vw, 180px); }
}


/* Search UI polish — v1.3.1 */
/* Оставляем заметный, но деликатный фокус без чёрной рамки. */
.gc-header-search .js-global-search-input:focus,
.gc-header-search .js-global-search-input:focus-visible,
.gc-search-page-form input[name="s"]:focus,
.gc-search-page-form input[name="s"]:focus-visible {
  outline: none;
  box-shadow: none;
}
.gc-search-page-input-wrap:focus-within {
  border-color: #c8c8c8;
  background: #fff;
}
/* Нативный крестик в поисковом input скрыт: используется своя кнопка. */
.gc-header-search input[type="search"]::-webkit-search-cancel-button,
.gc-search-page-form input[type="search"]::-webkit-search-cancel-button,
.gc-header-search input[type="search"]::-webkit-search-decoration,
.gc-search-page-form input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.gc-header-search input[type="search"],
.gc-search-page-form input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
}
.gc-header-search-form .gc-search-clear,
.gc-search-page-form .gc-search-clear {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 7px 3px;
  background: none;
  border: 0;
  border-radius: 0;
  color: #a0a0a0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  cursor: pointer;
  transition: color .2s ease;
}
.gc-header-search-form .gc-search-clear:hover,
.gc-search-page-form .gc-search-clear:hover {
  color: #656565;
  background: none;
}
.gc-header-search-form .gc-search-clear:focus-visible,
.gc-search-page-form .gc-search-clear:focus-visible {
  outline: 1px solid #aaa;
  outline-offset: 2px;
}
.gc-header-search-form .gc-search-clear[hidden],
.gc-search-page-form .gc-search-clear[hidden] {
  display: none !important;
}
.gc-search-page-input-wrap {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dedede;
  background: #fff;
  padding-right: 15px;
  transition: border-color .2s ease;
}
.gc-search-page-form .gc-search-page-input-wrap input {
  border: none;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 54px;
}
@media (max-width: 480px) {
  .gc-header-search-form .gc-search-clear,
  .gc-search-page-form .gc-search-clear {
    font-size: 12px;
    padding: 6px 0;
  }
}


/* Mobile header / search — v1.3.2 */
/* The magnifier is drawn locally with CSS; no image download is needed. */
.site-header .gc-search-toggle {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #171717;
  padding: 0;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.gc-search-icon {
  position: relative;
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: inherit;
  pointer-events: none;
}

.gc-search-icon::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 17px;
  height: 17px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.gc-search-icon::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  width: 9px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: 0 50%;
}

@media (max-width: 1100px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
  }

  .site-header .header-logo {
    min-width: 0;
    max-width: 100%;
  }

  .site-header .gc-header-actions {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    flex-shrink: 0;
    gap: 12px;
    margin: 0;
  }

  .site-header .header-burger {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin: 0;
    align-items: center;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
  }

  .site-header .header-burger span {
    width: 34px;
  }
}

@media (max-width: 768px) {
  .site-header .header-inner {
    column-gap: 12px;
  }

  .site-header .header-logo {
    width: min(46vw, 180px);
  }

  .site-header .gc-header-actions {
    gap: 8px;
  }

  /* A full-width input; the actions occupy a separate row. */
  .site-header .gc-header-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    grid-template-areas:
      "query query close"
      "clear submit submit";
    align-items: center;
    gap: 8px 12px;
    min-height: 0;
    padding: 12px 0 16px;
  }

  .site-header .gc-header-search-form > svg {
    display: none;
  }

  .site-header .gc-header-search-form input[name="s"] {
    grid-area: query;
    width: 100%;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 10px 0;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0.01em;
  }

  .site-header .gc-header-search-close {
    grid-area: close;
    justify-self: end;
    width: 44px;
    height: 44px;
    border-radius: 0;
  }

  .site-header .gc-header-search-form .gc-search-clear {
    grid-area: clear;
    justify-self: start;
    min-height: 44px;
    padding: 10px 0;
    color: #a0a0a0;
    font-size: 14px;
    font-weight: 400;
  }

  .site-header .gc-header-search-submit {
    grid-area: submit;
    justify-self: end;
    width: 112px;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    letter-spacing: 0.01em;
  }
}

/* Make the input focusable in the same click that opens the panel. */
.gc-header-search.is-open {
  transition: opacity .25s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .gc-header-search,
  .gc-header-search.is-open {
    transition: none;
  }
}

/* Search mobile accessibility fix v1.3.3 */
.site-header .gc-header-actions > .gc-search-toggle {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  color: #171717 !important;
  background: transparent;
}
.site-header .gc-search-inline-svg { display: block !important; width: 26px; height: 26px; flex-shrink: 0; }
.gc-side-search-link {
  width: 100%; min-height: 50px; margin: 54px 0 0;
  display: flex; align-items: center; gap: 14px;
  text-align: left; border: 1px solid #dedede; padding: 12px 16px;
  background: #fff; color: #171717; border-radius: 0;
  cursor: pointer; font: 600 18px/1.4 Gilroy,Arial,sans-serif;
}
.gc-side-search-link:hover { background: #f5f5f5; }
.gc-side-search-link + .side-nav { margin-top: 32px; }
@media (max-width: 1100px) {
  .site-header .header-inner { display: grid; grid-template-columns: minmax(0,1fr) 104px; column-gap: 10px; }
  .site-header .gc-header-actions { display: flex !important; flex-flow: row nowrap; gap: 8px; width: 104px; justify-content: flex-end; }
  .site-header .gc-header-actions > .header-burger { flex: 0 0 44px; width: 44px; min-width: 44px; }
  .site-header .header-logo { min-width: 0; overflow: hidden; }
}
@media (max-width: 400px) {
  .site-header .header-logo { width: min(43vw,170px); }
}

/* OmGuitars 1.4.2 — complete names and one separator level per row.
   Row height is calculated from the longest *actual* heading in each grid row.
   Shorter headings reserve the remaining space before the separator. */
.guitar-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px;
  gap: 0;
}

.gc-card-title-section {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-width: 0;
  margin-bottom: 12px;
  /* Adjusted per visual row by assets/js/card-title-layout.js */
}

.guitar-card-body h2.gc-card-title {
  position: static;
  display: block;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  word-break: normal;
}

.guitar-card-body h2.gc-card-title a {
  display: inline;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

.gc-card-title-rule {
  display: block;
  height: 1px;
  flex: 0 0 1px;
  width: 100%;
  margin-top: auto;
  background: #dedede;
}

/* Identical distance from separator to description within a visual row. */
.guitar-card-body .guitar-card-text {
  flex: 0 0 auto;
  min-height: 60px;
  margin: 0 0 14px;
}
.guitar-card-body .guitar-card-meta {
  flex: 0 0 auto;
  min-height: 92px;
  margin: 0 0 18px;
}
.guitar-card-body .guitar-card-link {
  flex-shrink: 0;
  min-height: 42px;
  margin-top: auto;
}

@media (min-width: 1101px) and (max-width: 1350px) {
  .guitar-card-body h2.gc-card-title { font-size: 17px; }
}
@media (max-width: 560px) {
  .guitar-card-body h2.gc-card-title { font-size: 17px; }
  .guitar-card-body .guitar-card-text { min-height: 0; }
  .guitar-card-body .guitar-card-meta { min-height: 0; }
}

/* Mixed photo/video gallery. Video is played in the same lightbox as photos. */
.guitar-main-photo { position: relative; }
.guitar-main-photo.is-video { cursor: default; }
.guitar-main-photo .js-main-guitar-img[hidden],
.guitar-main-photo .gc-gallery-video-preview[hidden],
.guitar-lightbox-image .js-lightbox-img[hidden],
.guitar-lightbox-image .gc-lightbox-video-host[hidden] { display: none !important; }
.gc-gallery-video-preview {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; border-radius: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; padding: 25px;
  background: #1d1d1d; color: #fff;
  font: 600 17px/1.4 'Gilroy', Arial, sans-serif;
  text-align: center; cursor: pointer;
}
.gc-gallery-video-preview:hover { background: #2c2c2c; }
.gc-gallery-video-preview-icon {
  display: grid; place-items: center;
  width: 75px; height: 75px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%; font-size: 24px; padding-left: 4px;
}
.guitar-gallery-thumb.is-video {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; background: #272727; color: #fff;
  padding: 8px; text-align: center;
}
.gc-video-thumb-icon { font-size: 22px; line-height: 1.2; }
.gc-video-thumb-label { font-size: 12px; font-weight: 600; line-height: 1.2; }
.gc-lightbox-video-host {
  width: 100%; height: 100%; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
}
.gc-lightbox-video-host video {
  display: block; width: 100%; height: 100%;
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.gc-lightbox-video-host iframe {
  display: block; border: none; max-width: 100%;
  width: min(100%, 1050px); height: min(calc(100% - 38px), 590px);
  aspect-ratio: 16 / 9;
  background: #101010;
}
.gc-video-external-link {
  color: #ddd; font-size: 13px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px;
}
.guitar-lightbox.is-video .guitar-lightbox-zoom { display: none; }
@media (max-width: 640px) {
  .gc-lightbox-video-host iframe { height: min(calc(100% - 38px), 55vw); min-height: 180px; }
  .gc-card-title-tooltip { right: -10px; max-width: 70vw; }
}

/* OmGuitars 1.4.3: avoid stretched metadata badges when only one field exists.
   Reserve the same metadata area across cards, but keep each item text-height. */
.guitar-card-body .guitar-card-meta {
  align-content: start;
  grid-auto-rows: max-content;
  align-items: start;
}
.guitar-card-body .guitar-card-meta > div {
  align-self: start;
}

/* 1.4.4: video previews use a still, not a black box with a title. */
.gc-gallery-video-preview {
  overflow: hidden;
  background: linear-gradient(135deg, #efefef, #d8d8d8);
  color: #161616;
  padding: 0;
}
.gc-gallery-video-preview:hover { background: linear-gradient(135deg, #efefef, #d8d8d8); }
.gc-gallery-video-preview .gc-video-preview-poster,
.gc-gallery-video-preview .gc-gallery-video-preview-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.gc-gallery-video-preview .gc-gallery-video-preview-poster[hidden],
.guitar-gallery-thumb.is-video .gc-video-thumb-poster[hidden] { display: none !important; }
.gc-gallery-video-preview-icon {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.93);
  color: #141414;
  border: 1px solid rgba(20,20,20,.25);
  box-shadow: 0 4px 20px rgba(0,0,0,.16);
  transition: transform .2s ease;
}
.gc-gallery-video-preview:hover .gc-gallery-video-preview-icon { transform: scale(1.06); }
.guitar-gallery-thumb.is-video {
  position: relative;
  padding: 0;
  background: linear-gradient(135deg, #efefef, #d8d8d8);
  overflow: hidden;
}
.guitar-gallery-thumb.is-video .gc-video-thumb-poster {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.guitar-gallery-thumb.is-video .gc-video-thumb-icon {
  position: relative;
  z-index: 1;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.93);
  color: #151515;
  box-shadow: 0 2px 9px rgba(0,0,0,.18);
  font-size: 15px;
  padding-left: 2px;
}
/* Override the default display rule while the browser is loading a frame. */
.gc-gallery-video-preview .gc-video-preview-poster[hidden] { display: none !important; }


/* OmGuitars 1.4.6 — compact photo frame, no cropping.
   The old 4:5 ratio made the main image taller than the visible screen.
   Restrict only the single GUITAR's main photo (not catalog covers or paintings).
   A fixed, viewport-responsive FRAME height with object-fit: contain preserves
   the whole guitar regardless of the original photo's aspect ratio. */
.single-guitar-page:not(.single-picture-page) .guitar-main-photo {
  position: relative;
  aspect-ratio: auto;
  height: clamp(270px, 48vh, 490px); /* fallback for older browsers */
  height: clamp(270px, 48svh, 490px);
  min-height: 0;
  max-height: none;
  background: #f3f3f3;
}

.single-guitar-page:not(.single-picture-page) .guitar-main-photo > .js-main-guitar-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* The gallery becomes full width on tablets: keep the photo modest in height. */
@media (max-width: 1000px) {
  .single-guitar-page:not(.single-picture-page) .guitar-main-photo {
    height: clamp(250px, 45vh, 430px);
    height: clamp(250px, 45svh, 430px);
  }
}

/* On phones, leave room for the title and gallery navigation above the fold. */
@media (max-width: 640px) {
  .single-guitar-page:not(.single-picture-page) .guitar-main-photo {
    height: clamp(220px, 40vh, 360px);
    height: clamp(220px, 40svh, 360px);
  }
}
