@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Oswald:wght@300;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #0b0f12;
  --bg-dark: #10161b;
  --metal: #2a2f35;
  --metal-soft: #4c5158;
  --metal-light: #c9c1b4;
  --accent: #cfa86a;
  --accent-strong: #8d6b3e;
  --text: #e7e3dc;
  --muted: #b4afa6;
  --shadow: rgba(0, 0, 0, 0.6);
  --line: rgba(207, 168, 106, 0.4);
  --header-offset: 140px;
}

body {
  font-family: 'Oswald', 'Segoe UI', sans-serif;
  background: #000;
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.client-notice {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2900;
  width: min(72vw, 420px);
  min-height: 108px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(22, 26, 31, 0.96), rgba(12, 14, 16, 0.96));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  text-align: center;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.client-notice.error {
  border: 1px solid rgba(182, 72, 72, 0.85);
  background: linear-gradient(150deg, rgba(144, 36, 36, 0.98), rgba(90, 24, 24, 0.98));
  color: #000;
}

.client-notice.success {
  border: 1px solid rgba(207, 168, 106, 0.9);
  background: linear-gradient(150deg, rgba(207, 168, 106, 0.98), rgba(141, 107, 62, 0.98));
  color: #000;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  background: url('/public/images/rock-cat-bg.webp') top center / cover no-repeat;
  opacity: 1;
  z-index: -2;
}

@media (max-width: 600px) {
  body::before {
    height: 100lvh;
  }
}

.page {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(220px, 0.9fr);
  gap: 32px;
  align-items: center;
  padding: 50px 6vw 70px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(18, 22, 26, 0.85), rgba(9, 11, 13, 0.9));
  overflow: hidden;
}

.poster-hero {
  position: relative;
  padding: 42px 5vw 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 12, 14, 0.95), rgba(9, 11, 13, 0.7));
}

.category-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 56px 6vw 40px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(12, 14, 16, 0.95), rgba(15, 20, 25, 0.82));
  overflow: hidden;
}

.category-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  display: grid;
  gap: 26px;
  justify-items: center;
  margin: 0 auto;
}

.image-container {
  margin-left: 0;
  z-index: 1;
}

.image-container img {
  width: min(32vw, 700px);
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.55));
}

.site-sections-nav {
  width: min(100%, clamp(900px, 78vw, 1200px));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.site-sections-btn {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  background: rgba(20, 24, 28, 0.7);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.site-sections-btn:hover,
.site-sections-btn.active {
  background: rgba(207, 168, 106, 0.3);
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(207, 168, 106, 0.35);
}

.category-copy {
  display: grid;
  gap: 10px;
  padding: 10px 14px;
  border: none;
  margin-left: auto;
  margin-right: auto;
}

.category-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.category-logo {
  width: clamp(120px, 8vw, 88px);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6));
}

.category-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.category-subtitle {
  color: var(--muted);
  letter-spacing: 1px;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.category-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 18px;
  padding: 10px;
  border: none;
  justify-items: center;
  justify-content: center;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1801px) {
  .category-inner {
    max-width: clamp(1080px, 62vw, 1520px);
    width: max-content;
    margin: 0 0 0 clamp(90px, 9vw, 180px);
    justify-items: stretch;
    min-width: 0;
  }

  .category-copy,
  .category-grid,
  .site-sections-nav {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .category-grid {
    width: max-content;
    justify-content: flex-start;
  }
}

@media (max-width: 1800px) {
  .category-hero {
    grid-template-columns: 1fr;
  }

  .image-container {
    order: -1;
    justify-self: center;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .image-container img {
    width: clamp(280px, 60vw, 420px);
    margin-left: auto;
    margin-right: auto;
  }

  .category-inner {
    padding-left: 0;
    justify-items: stretch;
  }

  .category-copy,
  .category-grid,
  .site-sections-nav {
    width: min(100%, clamp(900px, 78vw, 1200px));
    max-width: 100%;
    justify-self: center;
    margin-left: 0;
    margin-right: 0;
  }

  .category-cta {
    width: min(100%, clamp(900px, 78vw, 1200px));
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .category-copy {
    text-align: left;
    padding: clamp(10px, 2.2vw, 18px) clamp(14px, 2.6vw, 22px);
  }

  .category-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: clamp(10px, 2.2vw, 18px);
    padding-bottom: clamp(6px, 1.2vw, 12px);
    justify-content: flex-start;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .category-btn {
    flex: 1 1 clamp(140px, 22vw, 200px);
    min-width: 140px;
    max-width: 200px;
  }
}

@media (max-width: 860px) {
  .site-sections-nav {
    grid-template-columns: 1fr;
  }
}

.category-btn {
  display: block;
  position: relative;
  width: clamp(140px, 10vw, 190px);
  flex: 0 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.category-btn.is-active::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 0 18px rgba(207, 168, 106, 0.45);
  pointer-events: none;
}

.category-btn-image {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  display: block;
  object-fit: cover;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.65));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.category-btn:hover .category-btn-image {
  transform: translateY(-3px);
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.75));
}

.category-btn.is-active .category-btn-image {
  transform: translateY(-3px) scale(1.02);
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 16px rgba(207, 168, 106, 0.6));
}

.category-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.category-cta {
  align-self: start;
  justify-self: start;
  min-width: 0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  color: var(--text);
  background: rgba(20, 24, 28, 0.7);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.category-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6);
}

.poster-inner {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.poster-image {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  user-select: none;
}

.poster-hotspot {
  position: absolute;
  display: block;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.poster-hotspot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.poster-hotspot:hover {
  box-shadow: inset 0 0 0 2px rgba(207, 168, 106, 0.6);
  background: rgba(207, 168, 106, 0.08);
}

.poster-collection {
  top: 21%;
  left: 8%;
  width: 40%;
  height: 5%;
}

.poster-engraving {
  top: 27%;
  left: 8%;
  width: 52%;
  height: 5%;
}

.poster-rock {
  top: 52%;
  left: 6%;
  width: 20%;
  height: 17%;
}

.poster-games {
  top: 52%;
  left: 29%;
  width: 20%;
  height: 17%;
}

.poster-symbols {
  top: 52%;
  left: 52%;
  width: 20%;
  height: 17%;
}

.poster-all {
  top: 52%;
  left: 75%;
  width: 18%;
  height: 17%;
}

.poster-start {
  top: 86.5%;
  left: 12%;
  width: 22%;
  height: 5%;
}

@media (max-width: 720px) {

  .poster-hero {
    padding: 28px 4vw 20px;
  }

  .poster-collection {
    top: 20%;
    width: 48%;
  }

  .poster-engraving {
    top: 27.5%;
    width: 60%;
  }

  .poster-start {
    top: 87.5%;
    left: 10%;
    width: 28%;
  }

  .category-hero {
    padding: 40px 4vw 32px;
  }

  .image-container {
    margin-left: 0;
  }

  .image-container img {
    width: min(420px, 86vw);
  }
}

@media (max-width: 480px) {
  .image-container img {
    width: min(420px, 92vw);
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(207, 168, 106, 0.15), transparent 65%);
  filter: blur(2px);
  z-index: 0;
}

.hero-inner,
.hero-token {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.9s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  border: 2px solid var(--line);
  box-shadow: 0 10px 25px var(--shadow);
  object-fit: cover;
  background: #14181c;
}

.brand-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.brand-subtitle {
  margin-top: 12px;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  letter-spacing: 1px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #120f0a;
  box-shadow: 0 12px 24px rgba(207, 168, 106, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(207, 168, 106, 0.45);
}

.btn-secondary {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(20, 24, 28, 0.8);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

.hero-token {
  display: flex;
  justify-content: center;
}

.token-plate {
  width: min(280px, 70vw);
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  border: 2px solid rgba(230, 210, 180, 0.35);
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.15), transparent 40%),
    linear-gradient(180deg, #1b2026, #0e1318);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.7);
  position: relative;
}

.token-plate::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  border-radius: 14px;
  border: 2px solid rgba(230, 210, 180, 0.35);
  background: linear-gradient(180deg, #1f252c, #0d1116);
}

.token-skull {
  position: absolute;
  inset: 18% 14% 25%;
  border-radius: 22px;
  border: 1px solid rgba(230, 210, 180, 0.4);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(circle at 70% 40%, rgba(207, 168, 106, 0.15), transparent 60%),
    linear-gradient(135deg, #1c2229, #0d1116);
}

.token-bolts {
  position: absolute;
  inset: 10% 10% 10% 10%;
  border-radius: 24px;
  border: 1px solid rgba(207, 168, 106, 0.25);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.06);
}

.cart-button {
  position: fixed;
  top: 22px;
  right: 3vw;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--accent);
  background: rgba(12, 14, 16, 0.85);
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 2px 6px;
  border: 1px solid var(--accent);
  background: rgba(207, 168, 106, 0.15);
  color: var(--accent);
  font-size: 0.75rem;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 28px;
}

.collection,
.catalog,
.about {
  padding: 60px 6vw;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.category-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(24, 28, 33, 0.9), rgba(12, 14, 16, 0.9));
  padding: 26px 22px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
  min-height: 150px;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.65);
}

.card-title {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.card-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.filters-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.filters-group label {
  display: block;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--muted);
}

.filters-group input,
.filters-group select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(12, 14, 16, 0.85);
  border: 1px solid rgba(207, 168, 106, 0.3);
  color: var(--text);
  font-size: 0.95rem;
}

.filters-hidden {
  display: none;
}

.catalog {
  padding-top: 40px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(150px, 42vw, 220px), 220px));
  gap: 24px;
  justify-content: center;
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(150deg, rgba(22, 26, 31, 0.92), rgba(12, 14, 16, 0.95));
  border: 1px solid rgba(207, 168, 106, 0.3);
  padding: clamp(10px, 2vw, 16px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.7);
}

.product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid rgba(207, 168, 106, 0.4);
  margin-bottom: clamp(8px, 1.8vw, 14px);
}

.product-card h3 {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.86rem, 2.2vw, 1.05rem);
  margin-bottom: clamp(6px, 1.2vw, 10px);
  overflow-wrap: anywhere;
}

.product-card p {
  font-size: clamp(0.76rem, 1.9vw, 0.9rem);
  color: var(--muted);
  margin-bottom: clamp(6px, 1.2vw, 10px);
}

.product-card-description {
  font-size: clamp(0.76rem, 1.9vw, 0.9rem);
  color: var(--muted);
  margin-bottom: clamp(6px, 1.2vw, 10px);
}

.product-card .product-type {
  color: var(--accent);
  text-transform: uppercase;
  font-size: clamp(0.66rem, 1.6vw, 0.75rem);
  letter-spacing: clamp(0.5px, 0.2vw, 1px);
}

.product-card .price {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--accent);
  margin-top: clamp(6px, 1vw, 8px);
}

.product-options {
  margin-top: 12px;
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.product-options button {
  width: 100%;
  min-width: 0;
  padding: clamp(8px, 1.8vw, 10px) clamp(6px, 2.2vw, 12px);
  border: 1px solid rgba(207, 168, 106, 0.5);
  background: rgba(207, 168, 106, 0.15);
  color: var(--text);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: clamp(0.4px, 0.2vw, 1px);
  font-size: clamp(0.66rem, 1.8vw, 0.8rem);
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.about {
  border-top: 1px solid var(--line);
  padding: 90px 6vw 100px;
  background: linear-gradient(180deg, rgba(12, 14, 16, 0.92), rgba(9, 11, 13, 0.85));
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 6vw 36px;
  background: linear-gradient(180deg, rgba(12, 14, 16, 0.9), rgba(9, 11, 13, 0.95));
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.site-footer-copy {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer-policy-link {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.site-footer-policy-link:hover {
  color: #f0e68c;
}

.engraving-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  max-width: 860px;
}

.about .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 34px;
}

.engraving-text .formatted-content {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 0;
}

.formatted-content {
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.formatted-content>*+* {
  margin-top: 0.7em;
}

.formatted-content ul,
.formatted-content ol {
  padding-left: 1.2em;
}

.formatted-content a {
  color: var(--accent);
  word-break: break-all;
}

.formatted-content img,
.formatted-content video,
.formatted-content iframe {
  max-width: 100%;
  height: auto;
}

.formatted-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.formatted-content th,
.formatted-content td {
  border: 1px solid var(--line);
  padding: 8px;
}


body.cart-disabled .cart-button,
body.cart-disabled .cart-panel,
body.cart-disabled #checkout-modal,
body.cart-disabled .product-options,
body.cart-disabled .product-modal-actions {
  display: none !important;
}

.cart-panel {
  position: fixed;
  right: 16px;
  top: var(--header-offset);
  width: min(480px, 95vw);
  background: rgba(12, 14, 16, 0.95);
  border: 1px solid rgba(207, 168, 106, 0.4);
  padding: 24px;
  max-height: calc(100vh - var(--header-offset) - 20px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 1000;
}

.cart-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-panel h2 {
  margin-bottom: 16px;
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
}

.cart-panel .cart-panel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px;
  margin-top: 0;
  padding: 0;
  border: 1px solid rgba(207, 168, 106, 0.5);
  background: rgba(12, 14, 16, 0.92);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item-actions {
  display: grid;
  gap: 8px;
}

.cart-qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-qty-value {
  min-width: 36px;
  text-align: center;
  color: var(--text);
  font-weight: 600;
}

.qty-btn,
.cart-remove,
.cart-checkout {
  border: 1px solid rgba(207, 168, 106, 0.5);
  background: rgba(207, 168, 106, 0.2);
  color: var(--text);
  padding: 6px 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  cursor: pointer;
}

.cart-checkout {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  font-size: 0.85rem;
}

.cart-checkout:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#cart-total {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--accent);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1001;
}

.modal-content {
  background: rgba(12, 14, 16, 0.95);
  border: 1px solid rgba(207, 168, 106, 0.4);
  width: min(720px, 92vw);
  margin: 6vh auto;
  padding: 24px;
  position: relative;
}

.modal-content h2 {
  font-family: 'Cinzel', serif;
  margin-bottom: 8px;
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  cursor: pointer;
}

.modal-content input,
.modal-content button {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(207, 168, 106, 0.4);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
}

.modal-content button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #120f0a;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-modal-text {
  margin-top: 12px;
}

#checkout-modal .modal-content {
  width: min(460px, 88vw);
  margin: 10vh auto;
  padding: 14px 16px 16px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

#checkout-modal #map {
  display: none;
}

#checkout-modal .close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(207, 168, 106, 0.5);
  background: rgba(12, 14, 16, 0.92);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#checkout-modal h2 {
  margin: 4px 26px 8px;
}

#checkout-modal .checkout-hint,
#checkout-modal #checkout-delivery-text {
  text-align: center;
}

#checkout-modal #checkout-delivery-text {
  max-width: 380px;
  margin: 10px auto 0;
}

.contact-modal-text a {
  color: var(--accent);
  word-break: break-all;
}

@media (max-width: 860px) {
  .engraving-text .formatted-content {
    font-size: 1rem;
  }
}

.contact-modal {
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-modal-content {
  width: min(560px, 94vw);
  margin: 0;
  padding: 24px;
  position: relative;
}

.contact-modal-content .contact-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px;
  margin-top: 0;
  padding: 0;
  border: 1px solid rgba(207, 168, 106, 0.5);
  background: rgba(12, 14, 16, 0.92);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.contact-email-copy {
  width: auto;
  max-width: 100%;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(207, 168, 106, 0.5);
  background: rgba(207, 168, 106, 0.2);
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

/* Фирменные скроллбары (как в админке) */
.cart-panel,
.modal,
.modal-content,
.product-modal-content,
.product-lightbox-content,
#product-modal-body,
#product-lightbox-body,
.product-modal-thumbs,
.category-grid,
.lightbox-carousel {
  scrollbar-width: thin;
  scrollbar-color: #cfa86a #0b0f12;
}

.cart-panel::-webkit-scrollbar,
.modal::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.product-modal-content::-webkit-scrollbar,
.product-lightbox-content::-webkit-scrollbar,
#product-modal-body::-webkit-scrollbar,
#product-lightbox-body::-webkit-scrollbar,
.product-modal-thumbs::-webkit-scrollbar,
.category-grid::-webkit-scrollbar,
.lightbox-carousel::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.cart-panel::-webkit-scrollbar-track,
.modal::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track,
.product-modal-content::-webkit-scrollbar-track,
.product-lightbox-content::-webkit-scrollbar-track,
#product-modal-body::-webkit-scrollbar-track,
#product-lightbox-body::-webkit-scrollbar-track,
.product-modal-thumbs::-webkit-scrollbar-track,
.category-grid::-webkit-scrollbar-track,
.lightbox-carousel::-webkit-scrollbar-track {
  background: #0b0f12;
}

.cart-panel::-webkit-scrollbar-thumb,
.modal::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb,
.product-modal-content::-webkit-scrollbar-thumb,
.product-lightbox-content::-webkit-scrollbar-thumb,
#product-modal-body::-webkit-scrollbar-thumb,
#product-lightbox-body::-webkit-scrollbar-thumb,
.product-modal-thumbs::-webkit-scrollbar-thumb,
.category-grid::-webkit-scrollbar-thumb,
.lightbox-carousel::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #cfa86a, #8d6b3e);
  border-radius: 0;
  border: 2px solid #10161b;
}

.cart-panel::-webkit-scrollbar-thumb:hover,
.modal::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover,
.product-modal-content::-webkit-scrollbar-thumb:hover,
.product-lightbox-content::-webkit-scrollbar-thumb:hover,
#product-modal-body::-webkit-scrollbar-thumb:hover,
#product-lightbox-body::-webkit-scrollbar-thumb:hover,
.product-modal-thumbs::-webkit-scrollbar-thumb:hover,
.category-grid::-webkit-scrollbar-thumb:hover,
.lightbox-carousel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #f0e68c, #cfa86a);
}

.product-modal-content {
  width: min(980px, 94vw);
  min-height: min(82vh, 920px);
  max-height: 90vh;
  overflow-y: auto;
}

@media (min-width: 1200px) {
  .product-modal-content {
    min-height: min(76vh, 820px);
    max-height: 88vh;
  }
}

.product-modal-content .product-modal-close,
.product-lightbox-content .product-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px;
  margin-top: 0;
  padding: 0;
  border: 1px solid rgba(207, 168, 106, 0.5);
  background: rgba(12, 14, 16, 0.92);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.product-modal-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.95fr) minmax(280px, 1.05fr);
  gap: 24px;
}

.product-modal-left,
.product-modal-right {
  display: grid;
  gap: 14px;
  align-content: start;
}

.product-modal-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-thumb {
  width: clamp(122px, 13vw, 172px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid rgba(207, 168, 106, 0.35);
  cursor: pointer;
  opacity: 0.9;
  transform: scale(0.93);
  transform-origin: center;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.product-thumb:hover,
.product-thumb.is-main {
  transform: scale(1.08);
  opacity: 1;
  border-color: var(--accent);
}

.product-thumb:hover {
  transform: scale(0.98);
  opacity: 1;
}

@media (min-width: 601px) {
  .product-modal-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(122px, 172px));
    gap: 10px;
    justify-content: start;
  }

  .product-thumb {
    width: 100%;
  }
}

.product-modal-type {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.product-modal-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
}

.product-modal-description {
  color: var(--muted);
  line-height: 1.4;
}

.product-modal-description.formatted-content {
  margin-top: 8px;
  margin-bottom: 4px;
}

.product-modal-price {
  color: var(--accent);
  font-size: 1.5rem;
}

.product-modal-stock {
  color: var(--muted);
  font-size: 0.95rem;
}

.product-modal-actions {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.product-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-modal-content .product-qty-btn {
  width: auto;
  min-width: 0;
  margin-top: 0;
  border: 1px solid rgba(207, 168, 106, 0.5);
  background: rgba(207, 168, 106, 0.2);
  color: var(--text);
  padding: 6px 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  cursor: pointer;
}

.product-qty-value {
  min-width: 36px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

.product-add-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(207, 168, 106, 0.5);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #120f0a;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}

.product-lightbox-content {
  width: min(1120px, 96vw);
}

.lightbox-instruction {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.lightbox-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 2px 6px;
  scroll-behavior: smooth;
}

.lightbox-slide {
  flex: 0 0 280px;
  max-width: 280px;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    flex-basis 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.86;
  will-change: transform, opacity;
}

.lightbox-slide img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  border: 1px solid rgba(207, 168, 106, 0.35);
  cursor: pointer;
  transition: height 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox-slide.is-active {
  flex-basis: 430px;
  max-width: 430px;
  transform: scale(1.03);
  opacity: 1;
}

.lightbox-slide.is-active img {
  height: 560px;
}

.lightbox-slide:not(.is-active) {
  transform: scale(0.95);
}

body.overlay-open {
  overflow: hidden;
}

body.overlay-open .back-to-top-btn {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.back-to-top-btn {
  position: fixed;
  right: 3vw;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--accent);
  background: rgba(12, 14, 16, 0.9);
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: rgba(207, 168, 106, 0.22);
}

.back-to-bottom-btn {
  top: 84px;
  bottom: auto;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 44px 4vw 52px;
  }

  .cart-button {
    right: 6vw;
  }

  .back-to-top-btn {
    right: 6vw;
  }

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

@media (max-width: 1200px) {
  .cart-button {
    right: 6vw;
  }
}

@media (max-width: 600px) {
  .catalog .products-grid {
    grid-template-columns: repeat(2, minmax(0, clamp(140px, 44vw, 220px)));
    gap: 12px;
    justify-content: center;
  }

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

  .collection,
  .catalog,
  .about {
    padding: 52px 4vw;
  }

  .site-footer {
    padding: 24px 4vw 30px;
  }

  .cart-panel {
    right: 10px;
  }

  .back-to-top-btn {
    bottom: 16px;
  }

  .back-to-bottom-btn {
    top: 76px;
    bottom: auto;
  }

  .product-modal-layout {
    grid-template-columns: 1fr;
  }

  .product-lightbox-content {
    width: min(94vw, 720px);
  }

  .lightbox-carousel {
    flex-direction: column;
    max-height: 72vh;
    overflow-y: auto;
    overflow-x: hidden;
    align-items: center;
    margin-top: 10px;
  }

  .lightbox-instruction {
    margin-bottom: 16px;
  }

  .lightbox-slide {
    flex: 0 0 auto;
    max-width: min(86vw, 320px);
    width: 100%;
    opacity: 0.9;
  }

  .lightbox-slide img {
    height: 390px;
  }

  .lightbox-slide.is-active {
    max-width: min(92vw, 420px);
    transform: scale(1.02);
  }

  .lightbox-slide.is-active img {
    height: 500px;
  }
}

@media (max-width: 1300px) {
  .category-grid {
    flex-wrap: wrap;
    overflow-x: hidden;
    justify-content: center;
    touch-action: auto;
    padding: 10px;
    max-width: 478px;
    width: min(100%, 478px);
    margin-left: auto;
    margin-right: auto;
  }

  .category-btn {
    flex: 0 0 140px;
    width: 140px;
    min-width: 0;
    max-width: 140px;
  }
}

@media (max-width: 720px) {
  .category-grid {
    max-width: 320px;
    width: min(100%, 320px);
  }

  .category-btn {
    flex-basis: 140px;
    width: 140px;
    max-width: 140px;
  }
}