.shop-page {
  padding-bottom: 48px;
}

.shop-main {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto 60px;
}

.shop-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 310px;
  margin: 14px 0 38px;
  background: #0d1017;
  border: 1px solid rgba(255,255,255,.08);
}

.shop-hero-track {
  position: relative;
  min-height: 310px;
}

.shop-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.shop-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.shop-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.42);
}

.shop-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 56%), rgba(12, 13, 21, .15) 70%);
}

.shop-slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  text-align: center;
}

.shop-slide-title {
  font-size: clamp(44px, 7vw, 96px);
  line-height: .92;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.06em;
  text-shadow: 0 8px 30px rgba(0,0,0,.45);
}

.shop-slide-subtitle {
  margin-top: 14px;
  font-size: 18px;
  color: rgba(255,255,255,.78);
  max-width: 720px;
}

.shop-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.shop-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: none;
  padding: 0;
  cursor: pointer;
}

.shop-dot.is-active {
  background: #4166b4;
}

.shop-layout {
  display: grid;
  grid-template-columns: 266px minmax(0, 1fr);
  gap: 20px;
}

.shop-sidebar,
.shop-catalog {
  background: transparent;
}

.shop-category-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shop-category {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  border-radius: 10px;
  background: #060606;
  color: #a9a9a9;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: .2s;
}

.shop-category.is-active,
.shop-category:hover {
  background: #4166b4;
  color: #fff;
}

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

.product-card {
  background: transparent;
  display: flex;
  flex-direction: column;
}

.collection-card {
  padding-bottom: 6px;
}

.product-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  margin: 12px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  margin-top: 8px;
  color: rgba(255,255,255,.66);
  line-height: 1.55;
  min-height: 48px;
}

.product-image {
  display: block;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1.5/1;
  background: #4a8aa0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
}

.product-price-block {
  flex: 1 1 auto;
}

.product-price-label {
  font-size: 18px;
}

.product-price {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  margin-top: 4px;
}

.buy-button {
  border: none;
  background: #4166b4;
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s;
  flex-shrink: 0;
}

.buy-button:hover {
  background: #4d77cf;
}

.shop-empty {
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}

.shop-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.shop-modal.is-open {
  display: flex;
}

.shop-modal-card {
  width: min(1100px, 100%);
  border-radius: 28px;
  background: #080b11;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  overflow: hidden;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.shop-modal-wrap {
  position: relative;
}

.shop-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  border: none;
  background: rgba(255,255,255,.08);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  z-index: 4;
}

.shop-modal-inner--collection {
  padding: 0;
}

.collection-step {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
}

.collection-step.is-active {
  display: grid;
}

.collection-pane {
  padding: 30px;
}

.collection-pane--details {
  background: rgba(255,255,255,.03);
  border-left: 1px solid rgba(255,255,255,.08);
}

.collection-step-head {
  margin-bottom: 18px;
}

.collection-step-head.compact {
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(255,255,255,.42);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
}

.collection-step-head h2,
.collection-step-head h3 {
  margin: 0;
}

.collection-cover {
  width: 100%;
  aspect-ratio: 1.35/1;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #0d1118;
}

.collection-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-variants {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.collection-variant {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: #fff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  cursor: pointer;
  transition: .18s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.collection-variant strong {
  font-size: 18px;
}

.collection-variant span {
  color: #90b0ff;
  font-weight: 700;
}

.collection-variant small {
  color: rgba(255,255,255,.62);
  line-height: 1.5;
}

.collection-variant:hover,
.collection-variant.is-active {
  border-color: rgba(65,102,180,.9);
  background: rgba(65,102,180,.12);
}

.collection-description,
.selected-price {
  color: rgba(255,255,255,.76);
  line-height: 1.65;
}

.selected-price {
  margin: 0 0 10px;
}

.shop-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.shop-field input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.1);
  background: #06080d;
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
}

.shop-submit {
  width: 100%;
  min-height: 54px;
  border: none;
  border-radius: 16px;
  background: #4166b4;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}

.shop-submit:hover {
  background: #4d77cf;
}

.shop-submit:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.shop-submit--secondary,
.shop-submit--ghost {
  background: rgba(255,255,255,.08);
}

.shop-submit--secondary:hover,
.shop-submit--ghost:hover {
  background: rgba(255,255,255,.14);
}

.checkout-actions {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.shop-alert {
  margin: 0 auto 18px;
  width: min(1180px, calc(100% - 64px));
  padding: 14px 18px;
  border-radius: 16px;
}

.shop-alert.info {
    border: 1px solid rgba(79,117,199,.35);
    background: rgba(65,102,180,.16);
    color: rgba(255,255,255,.92);
}

.shop-alert.success {
  background: rgba(66,160,94,.18);
  border: 1px solid rgba(66,160,94,.3);
}

.shop-alert.error {
  background: rgba(170,63,84,.18);
  border: 1px solid rgba(170,63,84,.3);
}

@media (max-width: 960px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-step {
    grid-template-columns: 1fr;
  }

  .collection-pane--details {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.08);
  }
}

@media (max-width: 640px) {
  .shop-main {
    width: min(100%, calc(100% - 24px));
  }

  .shop-grid,
  .shop-category-list,
  .checkout-actions {
    grid-template-columns: 1fr;
  }

  .product-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .buy-button {
    width: 100%;
  }

  .shop-slide-title {
    font-size: 40px;
  }

  .shop-slide-subtitle {
    font-size: 15px;
  }

  .collection-pane {
    padding: 20px;
  }

  .shop-modal {
    align-items: flex-start;
    padding: 8px;
  }

  .shop-modal-card {
    width: 100%;
    border-radius: 20px;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .shop-modal-close {
    position: sticky;
    top: 8px;
    right: auto;
    z-index: 5;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .shop-alert {
    width: min(100%, calc(100% - 24px));
  }
}

.markdown-content p {
  margin: 0 0 10px;
}

.markdown-content p:last-child {
  margin-bottom: 0;
}

.markdown-content ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.markdown-content li {
  margin: 4px 0;
}

.markdown-content strong {
  color: #f5dfb4;
  font-weight: 800;
}

.markdown-content em {
  color: rgba(255, 255, 255, 0.84);
}

.markdown-content code {
  padding: 2px 6px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5dfb4;
}

.collection-variant small p {
  margin: 0 0 5px;
}

.collection-variant small p:last-child {
  margin-bottom: 0;
}

.collection-variant small ul {
  margin: 4px 0 0;
  padding-left: 16px;
}