@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;
}

body.product-detail-page::before {
  opacity: 0.78;
}

.product-detail-wrap {
  background: rgba(8, 10, 12, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(1px);
}

.product-detail-wrap .product-modal-description,
.product-detail-wrap .product-modal-stock,
.product-detail-wrap p,
.product-detail-wrap a {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.product-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--accent);
  color: var(--text);
  background: linear-gradient(135deg, rgba(207, 168, 106, 0.22), rgba(207, 168, 106, 0.1));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product-back-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.55);
  background: linear-gradient(135deg, rgba(207, 168, 106, 0.32), rgba(207, 168, 106, 0.16));
}

.product-back-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.page {
  min-height: 100vh;
}

.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,
  .category-cta {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

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

  .category-cta {
    text-align: center;
  }
}

@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,
  .category-cta {
    width: min(100%, clamp(900px, 78vw, 1200px));
    max-width: 100%;
    justify-self: center;
    margin-left: 0;
    margin-right: 0;
  }

  .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);
}

@media (max-width: 720px) {
  .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);
  }
}

.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);
}

.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;
}

.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;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap #search {
  padding-right: 40px;
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: none;
  padding: 0;
}

.search-clear-btn:hover {
  color: var(--accent);
}

.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;
}

.catalog-load-more-btn {
  border: 1px solid rgba(207, 168, 106, 0.5);
  background: rgba(207, 168, 106, 0.2);
  color: var(--text);
  padding: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  cursor: pointer;
  width: 100%;
}

.catalog-load-more-btn: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-lightbox-content,
#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-lightbox-content::-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-lightbox-content::-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-lightbox-content::-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-lightbox-content::-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-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(108px, 11.5vw, 156px);
  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(auto-fit, minmax(122px, 172px));
    gap: 10px;
    justify-content: start;
  }

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

body.product-detail-page .catalog.product-detail-page {
  padding-left: 3vw;
  padding-right: 3vw;
}

body.product-detail-page .collection.product-detail-wrap {
  width: min(100%, 1800px);
  margin-left: auto;
  margin-right: auto;
}

body.product-detail-page .product-modal-layout {
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 1.8vw, 28px);
}

body.product-detail-page .product-modal-thumbs {
  display: flex;
  flex-wrap: wrap;
  --product-thumb-gap: 12px;
  gap: var(--product-thumb-gap);
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 601px) {
  body.product-detail-page .product-modal-thumbs {
    max-width: clamp(320px, min(38vw, 56lvh), 620px);
    width: min(100%, 620px);
    align-content: start;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  body.product-detail-page .product-thumb {
    width: auto;
    flex: 0 1 calc((100% - (var(--product-thumb-gap) * 3)) / 4);
    min-width: clamp(108px, min(10.2vw, 14.2lvh), 180px);
    max-width: 180px;
  }
}

@media (min-width: 1181px) {
  body.product-detail-page .product-modal-thumbs {
    max-width: clamp(320px, min(34vw, 50lvh), 620px);
    width: min(100%, 620px);
    align-content: start;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  body.product-detail-page .product-thumb {
    min-width: clamp(104px, min(8.4vw, 13.2lvh), 170px);
    max-width: 170px;
  }
}

body.product-detail-page .product-modal-left,
body.product-detail-page .product-modal-right {
  min-width: 0;
}

body.product-detail-page .product-modal-description {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.product-detail-page .product-modal-description>* {
  max-width: 100%;
}

@media (min-width: 1600px) {
  body.product-detail-page .product-modal-thumbs {
    max-width: clamp(420px, min(36vw, 54lvh), 720px);
    gap: 12px;
  }
}

@media (max-width: 1180px) {
  body.product-detail-page .product-modal-layout {
    grid-template-columns: 1fr;
  }

  body.product-detail-page .product-modal-left {
    justify-items: center;
  }

  body.product-detail-page .product-modal-thumbs {
    width: min(100%, 620px);
    max-width: min(100%, 620px);
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  body.product-detail-page .product-thumb {
    min-width: clamp(96px, 18vw, 150px);
    max-width: 186px;
  }
}

@media (min-width: 601px) and (max-width: 899px) {
  body.product-detail-page .product-modal-thumbs {
    width: min(100%, 520px);
    max-width: min(100%, 520px);
    align-content: start;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  body.product-detail-page .product-thumb {
    min-width: clamp(88px, min(18.5vw, 12.2lvh), 144px);
    max-width: 144px;
  }
}

@media (min-width: 900px) and (max-width: 1180px) {
  body.product-detail-page .product-modal-thumbs {
    width: min(100%, 560px);
    max-width: min(100%, 560px);
    align-content: start;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  body.product-detail-page .product-thumb {
    min-width: clamp(96px, min(10.5vw, 13.2lvh), 148px);
    max-width: 178px;
  }
}

@media (min-width: 1189px) {
  body.product-detail-page .collection.product-detail-wrap {
    padding-bottom: 30px;
  }
}

@media (max-width: 600px) {
  body.product-detail-page .product-modal-thumbs {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
}

.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-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);
}

@media (min-width: 1400px) {
  .product-lightbox-content {
    width: min(1380px, 95vw);
  }

  .lightbox-slide {
    flex-basis: 340px;
    max-width: 340px;
  }

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

  .lightbox-slide.is-active {
    flex-basis: 530px;
    max-width: 530px;
  }

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

@media (min-width: 1900px) {
  .product-lightbox-content {
    width: min(1600px, 93vw);
  }

  .lightbox-slide {
    flex-basis: 380px;
    max-width: 380px;
  }

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

  .lightbox-slide.is-active {
    flex-basis: 600px;
    max-width: 600px;
  }

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

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) {
  .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) {

  body:not(.product-detail-page) .collection,
  body:not(.product-detail-page) .catalog {
    position: relative;
    isolation: isolate;
    z-index: 0;
  }

  body:not(.product-detail-page) .collection::before,
  body:not(.product-detail-page) .catalog::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12, 14, 16, 0.66);
    z-index: -1;
    pointer-events: none;
  }

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

  .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;
  }
}

@media (max-width: 1800px) {
  .collection {
    padding-top: 32px;
    padding-bottom: 24px;
  }

  .catalog {
    padding-top: 12px;
  }
}