/* =========================================================
   STEEZE — MAIN STYLESHEET
   Sections:
   01. Variables and global styles
   02. Header
   03. Hero
   04. Category navigation and search
   05. Catalog
   06. Product cards
   07. Footer
   08. Product modal
   09. Desktop layout
   10. Mobile layout
   11. Reduced motion
   ========================================================= */


/* =========================================================
   01. VARIABLES AND GLOBAL STYLES
   ========================================================= */

:root {
  --bg: #11110f;
  --paper: #eeece5;
  --muted: #96958e;
  --line: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .075);
  --accent: #d4ff48;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: #555 #111;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input {
  font-family: Manrope, system-ui, sans-serif;
}

button,
input {
  font-size: inherit;
}

button {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: #111;
}

body.modal-open {
  overflow: hidden;
}

.topline {
  height: 3px;
  background: var(--accent);
}

[hidden] {
  display: none !important;
}


/* =========================================================
   02. HEADER
   ========================================================= */

.header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px 5vw;
}

.logo {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1.7px;
}

.logo span {
  color: var(--accent);
}

.header-note {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #e0ded7;
}

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
}

.telegram-link {
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 99px;
  padding: 11px 18px;
  transition: .25s;
}

.telegram-link:hover {
  background: #fff;
  color: #111;
}


/* =========================================================
   03. HERO — MAIN SCREEN
   HTML order:
   kicker → image → heading → description → button
   ========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 720px;
  height: 100svh;
  max-height: 1100px;
  overflow: hidden;
  background: #000;
  background-image:
    radial-gradient(
      ellipse at 50% 38%,
      rgba(35, 35, 31, .45),
      transparent 65%
    ),
    linear-gradient(
      180deg,
      #000 0%,
      #050505 78%,
      var(--bg) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 1px 24px 45px;
  text-align: center;
}

.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  text-align: center;
}

.hero-kicker::before,
.hero-kicker::after {
  content: "";
  flex: 0 0 30px;
  height: 1px;
  background: var(--accent);
}

.hero-image {
  position: static;
  z-index: auto;
  display: block;
  flex-shrink: 0;
  width: min(68vw, 680px);
  height: clamp(180px, 38svh, 400px);
  object-fit: contain;
  object-position: center;
  transform: none;
  scale: 1.2;
}

/* Main heading */

.hero h1 {
  margin-top: 0px;
  margin-bottom: 18px;
  font-size: clamp(30px, 5vw, 80px);
  line-height: .85;
  letter-spacing: -.105em;
  font-weight: 600;
  text-transform: lowercase;
}

.hero h1 span {
  color: var(--accent);
}

/* Short description */

.hero-copy {
  max-width: 380px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.8;
  color: #e0ded7;
}

/* Main CTA button */


.hero-cta {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: fit-content;

  margin: 0;
  padding: 9px 10px 9px 20px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 99px;

  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);

  font-size: 12px;
  transition: background .3s var(--ease);
}

.hero-cta b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d4ff48;
  color: #111;
  font-size: 17px;
}

.hero-cta:hover {
  background: rgba(255, 255, 255, .2);
}



/* Legacy hero elements retained in case they are used in HTML */

.hero-bottom {
  position: absolute;
  bottom: 54px;
  left: 5vw;
  right: 5vw;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.hero-index {
  display: none;
  font-size: 10px;
  letter-spacing: .15em;
  color: #ddd;
}

.hero-index strong {
  color: var(--accent);
  font-weight: 500;
}

.side-caption {
  font-size: 9px;
  letter-spacing: .16em;
  color: #ccc;
  text-transform: uppercase;
}


/* =========================================================
   04. CATEGORY NAVIGATION AND SEARCH
   ========================================================= */

.glass-nav {
  position: sticky;
  top: 0;
  z-index: 8;
  padding: 12px 5vw;
  background: rgba(17, 17, 15, .78);
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1500px;
  margin: auto;
}

.categories {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.category {
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 99px;
  background: transparent;
  color: #a5a49d;
  font-size: 11px;
  cursor: pointer;
  transition: .25s;
}

.category:hover {
  color: #fff;
}

.category.active {
  background: var(--accent);
  color: #111;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 190px;
  padding: 7px 0;
  border-bottom: 1px solid #555;
}

.search-wrap span {
  color: #aaa;
  font-size: 15px;
}

.search {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0 !important;
  background: transparent;
  color: #fff;
  font-size: 11px;
}

.search::placeholder {
  color: #898880;
}


/* =========================================================
   05. CATALOG
   ========================================================= */

.catalog {
  max-width: 1600px;
  margin: auto;
  padding: 72px 5vw 110px;
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #aaa;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.catalog-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .98;
  letter-spacing: -.07em;
  font-weight: 500;
}

.catalog-title em {
  color: var(--accent);
  font-style: normal;
}

.catalog-count {
  color: #aaa;
  font-size: 10px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 18px;
}

.empty {
  padding: 70px 0;
  color: #aaa;
  text-align: center;
  font-size: 13px;
}


/* =========================================================
   06. PRODUCT CARDS
   ========================================================= */

.product {
  min-width: 0;
  cursor: pointer;
  outline: none;
}

.product-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #242420;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform .8s var(--ease),
    filter .5s;
}

.product:hover .product-photo img {
  transform: scale(1.045);
  filter: brightness(.82);
}

/* Product label */

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(17, 17, 15, .65);
  font-size: 8px;
  letter-spacing: .12em;
}

/* Quick-open button */

.product-open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  font-size: 20px;
  transform: none;
  transition: .3s var(--ease);
}

.product:hover .product-open,
.product:focus-visible .product-open {
  transform: translateY(-2px);
}

/* Product information */

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.product-brand {
  color: #aaa;
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.product-price {
  font-size: 11px;
  white-space: nowrap;
}

.product-name {
  margin: 7px 0 0;
  font-size: 17px;
  letter-spacing: -.045em;
  font-weight: 500;
}

.product-sub {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}


/* =========================================================
   07. FOOTER
   ========================================================= */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 32px 5vw;
  border-top: 1px solid var(--line);
  color: #aaa;
  font-size: 10px;
}

.footer-logo {
  color: #eee;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -1px;
}

.footer-logo span {
  color: var(--accent);
}

.footer a:hover {
  color: var(--accent);
}


/* =========================================================
   08. PRODUCT MODAL / IMAGE GALLERY
   ========================================================= */

/* The document does not scroll behind the open modal. */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .76);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.overlay.open {
  display: flex;
}

.modal {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  width: min(1040px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #191916;
  animation: modal-in .32s var(--ease) both;
}

/* Modal entrance animation */

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Gallery */

.modal-gallery {
  min-width: 0;
  padding: 14px;
  background: #22221e;
}

.main-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  background: #30302b;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-count {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 8px 10px;
  background: rgba(17, 17, 15, .75);
  font-size: 9px;
  letter-spacing: .1em;
}

/* Gallery navigation arrows */

.gallery-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(17, 17, 15, .45);
  font-size: 18px;
  cursor: pointer;
  transform: translateY(-50%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.gallery-arrow:hover {
  background: var(--accent);
  color: #111;
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

/* Gallery thumbnails */

.thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 10px;
  overscroll-behavior-x: contain;
}

.thumb {
  flex: 0 0 58px;
  height: 65px;
  padding: 0;
  border: 1px solid transparent;
  background: #333;
  cursor: pointer;
  opacity: .55;
}

.thumb img {
  height: 100%;
  object-fit: cover;
}

.thumb.active {
  border-color: var(--accent);
  opacity: 1;
}

/* Modal details */

.modal-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(24px, 4vw, 54px);
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(17, 17, 15, .65);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.close:hover {
  background: var(--accent);
  color: #111;
}

.detail-brand {
  margin: 24px 0 10px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.detail-name {
  margin: 0 0 20px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: .98;
  letter-spacing: -.075em;
  font-weight: 500;
}

.detail-description {
  margin: 0;
  color: #b8b7b0;
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-line;
}

/* Price and order button */

.detail-bottom {
  width: 100%;
  margin-top: auto;
  padding-top: 35px;
}

.detail-price {
  margin: 0 0 18px;
  font-size: 16px;
}

.order-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 17px 19px;
  border: 0;
  background: var(--accent);
  color: #111;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .25s;
}

.order-button:hover {
  background: #e1ff83;
}

.detail-note {
  margin: 14px 0 0;
  color: #88877f;
  font-size: 9px;
  line-height: 1.7;
}

/* Hide sticky category navigation behind the modal */

body.modal-open .glass-nav {
  visibility: hidden;
}


/* =========================================================
   09. DESKTOP LAYOUT
   ========================================================= */

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}



/* =========================================================
   10. MOBILE LAYOUT
   ========================================================= */

@media (max-width: 760px) {

  /* Header */

  .header {
    grid-template-columns: 1fr auto;
    padding: 20px;
  }

  .header-note {
    display: none;
  }

  .header-right {
    gap: 10px;
  }

  .telegram-link {
    padding: 10px 13px;
    font-size: 10px;
  }


  /* Hero */

  .hero {
    min-height: 680px;
    height: 100svh;
  }

  .hero-content {
    padding: 30px 20px 30px;
    margin-bottom: 40px;
  }

  .hero-image {
    width: min(100vw, 480px);
    height: clamp(170px, 24svh, 300px);
    scale: 1.25;
  }

  .hero-kicker {
    gap: 9px;
    margin-bottom: 10px;
    font-size: 9px;
    letter-spacing: .18em;
  }

  .hero-kicker::before,
  .hero-kicker::after {
    flex-basis: 22px;
  }

  .hero h1 {
    margin-top: 0px;
    margin-bottom: 18px;
    font-size: 50px;
  }

  .hero-copy {
    max-width: 220px;
    font-size: 10px;
  }

  .hero-cta {
    margin-top: 0;
  }

  /* Legacy hero elements */

  .hero-bottom {
    bottom: 30px;
    left: 20px;
    right: 20px;
  }

  .side-caption {
    display: none;
  }


  /* Category navigation */

  .glass-nav {
    padding: 10px 16px;
  }

  .nav-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .category {
    padding: 11px 4px;
    font-size: 10px;
  }

  .search-wrap {
    width: 100%;
    min-width: 0;
  }


  /* Catalog */

  .catalog {
    padding: 48px 16px 72px;
  }

  .catalog-head {
    margin-bottom: 22px;
  }

  .catalog-title {
    font-size: 39px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 10px;
  }


  /* Product cards */

  .product-photo {
    aspect-ratio: 3 / 4;
  }

  .product-tag {
    top: 7px;
    left: 7px;
    padding: 6px;
    font-size: 7px;
  }

  .product-open {
    right: 7px;
    bottom: 7px;
    width: 34px;
    height: 34px;
  }

  .product-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-top: 11px;
  }

  .product-name {
    font-size: 14px;
  }

  .product-price {
    font-size: 10px;
  }

  .product-sub {
    font-size: 9px;
    line-height: 1.5;
  }


  /* Footer */

  .footer {
    flex-wrap: wrap;
    padding: 24px 16px;
  }


  /* Product modal */

  .overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    display: block;
    width: 100%;
    max-height: 94dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
  }

  .modal-gallery {
    padding: 10px;
  }

  .main-image-wrap {
    max-height: 46dvh;
    aspect-ratio: 1 / 1;
  }

  .modal-info {
    padding: 22px 20px 28px;
  }

  .detail-brand {
    margin-top: 8px;
  }

  .detail-name {
    font-size: 36px;
  }

  .detail-bottom {
    padding-top: 24px;
  }

  .close {
    position: sticky;
    float: right;
    top: 10px;
    margin-right: 10px;
    margin-bottom: -40px;
  }
}


/* =========================================================
   11. ACCESSIBILITY — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 760px) {
  #catalog {
    scroll-margin-top: 45px;
  }
}