@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap");

@font-face {
  font-family: "PASSIONS CONFLICT RUS";
  src: url("/fonts/passions-conflict-rus.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Cyrillic";
  src: url("/fonts/cormorant-cyrillic.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f6f4;
  --bg-alt: rgba(255, 255, 255, 0.72);
  --text: #151515;
  --muted: #6f6f6f;
  --card: rgba(255, 255, 255, 0.66);
  --accent: #151515;
  --accent-strong: #0e0e0e;
  --border: rgba(21, 21, 21, 0.12);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 8px 18px rgba(0, 0, 0, 0.05);
  --glow: 0 0 0 1px rgba(21, 21, 21, 0.1);
  --skeleton-base: #e9e7e2;
  --skeleton-highlight: #f7f6f4;
  --skeleton-edge: #dedbd5;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", "Helvetica Neue", sans-serif;
  background: #ffffff;
  background-color: #ffffff;
  color: var(--text);
  min-height: 100vh;
  overflow: hidden;
  position: fixed;
  inset: 0;
  width: 100%;
  opacity: 1;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  touch-action: none;
  padding-bottom: 0;
}

.app-bg-video,
.app-bg-image {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.app-bg-video {
  object-fit: cover;
  filter: saturate(105%);
  opacity: 0.84;
}

.app-bg-image {
  background: url("/images/zaa.jpeg") center center / cover no-repeat;
  filter: blur(6px);
  transform: scale(1.04);
  transform-origin: center;
}

.app-bg-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    url("/images/zaa.jpeg") center center / cover no-repeat;
  opacity: 0.24;
  z-index: -1;
  pointer-events: none;
}

body.page-ready {
  opacity: 1;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

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

.container {
  max-width: 100%;
  margin: 0;
  height: 100vh;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: env(safe-area-inset-top) 16px calc(96px + env(safe-area-inset-bottom));
  position: relative;
}

.header {
  display: none !important;
}

.logo {
  font-family: "Didot", "Bodoni 72", "Bodoni MT", "Cormorant Cyrillic", "Playfair Display", "Times New Roman", serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.tagline {
  display: none;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(240, 240, 240, 0.58);
  color: var(--text);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: 1px solid rgba(21, 21, 21, 0.12);
}

.city-text {
  font-size: 11px;
  color: rgba(21, 21, 21, 0.72);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero {
  margin-top: 18px;
  padding: 18px 0 10px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

.video-hero {
  margin: 16px -16px 6px;
  padding: 0 0 12px;
  position: relative;
  animation: hero-fade-in 0.7s ease both;
}

.intro-video-hero {
  margin: calc(-1 * env(safe-area-inset-top) - 16px) -16px 12px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
  position: relative;
}

.intro-video-el {
  width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.intro-video-hero.is-loading .intro-video-el {
  opacity: 0;
}

.intro-video-skeleton {
  position: absolute;
  inset: 0;
  opacity: 1;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.22) 18%, rgba(255, 255, 255, 0.42) 45%, rgba(255, 255, 255, 0.22) 70%),
    linear-gradient(165deg, #c9ced6, #aeb4be);
  background-size: 240% 100%, 100% 100%, 100% 100%;
  animation: intro-skeleton-shimmer 0.95s linear infinite;
}

.intro-video-hero:not(.is-loading) .intro-video-skeleton {
  display: none;
}

@keyframes intro-skeleton-shimmer {
  from {
    background-position: 200% 0, 0 0, 0 0;
  }
  to {
    background-position: -40% 0, 0 0, 0 0;
  }
}

.video-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.video-track::-webkit-scrollbar {
  display: none;
}

.video-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  scroll-snap-align: start;
  background: #111;
  aspect-ratio: 9 / 16;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.video-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  animation: video-zoom 10s ease-in-out infinite;
  pointer-events: none;
}

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.video-poster.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-media.is-hidden {
  opacity: 0;
}

.video-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.video-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-dots .dot.active {
  background: #111;
  transform: scale(1.25);
}

.video-media::-webkit-media-controls,
.video-media::-webkit-media-controls-panel,
.video-media::-webkit-media-controls-play-button,
.video-media::-webkit-media-controls-start-playback-button {
  display: none !important;
  opacity: 0 !important;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes video-zoom {
  0%,
  100% {
    transform: scale(1.02);
  }
  50% {
    transform: scale(1.06);
  }
}

.hero::after {
  content: none;
}

.hero-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.hero-head h1 {
  margin: 0;
}

.hero h1 {
  margin: 0 0 8px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.hero-head-side {
  color: #111;
  font-size: 12px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.actions.actions-scroll {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 0;
}

.actions.actions-scroll .button {
  min-width: 0;
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: 1px;
}

.button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: none;
  touch-action: manipulation;
}

.button-wide {
  width: 100%;
  padding: 16px 20px;
  font-size: 14px;
  letter-spacing: 1.4px;
}

.product-sticky {
  position: fixed;
  left: 50%;
  width: min(696px, calc(100vw - 24px));
  transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom) + 58px);
  z-index: 1001;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.product-sticky-space {
  height: calc(126px + env(safe-area-inset-bottom));
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(21, 21, 21, 0.2);
  box-shadow: none;
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(21, 21, 21, 0.2);
  box-shadow: none;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.section-title {
  margin: 22px 0 12px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

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

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 10px;
  border: 1px solid rgba(21, 21, 21, 0.1);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
}

.home-preview-card {
  background: transparent;
  border-radius: 18px;
  padding: 0;
  gap: 0;
  box-shadow: 0 12px 24px rgba(8, 8, 8, 0.1);
  overflow: hidden;
}

.home-preview-media {
  position: relative;
  border-radius: 18px;
  border: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(250, 250, 250, 0.2)),
    url("/images/booe.jpeg") center center / cover no-repeat;
  padding: 0;
  margin-bottom: 0;
  overflow: hidden;
  z-index: 1;
}

.home-preview-card .home-preview-media img {
  border-radius: 18px !important;
  display: block;
}

.home-preview-info {
  position: relative;
  width: 100%;
  margin-top: -14px;
  margin-left: 0;
  margin-right: 0;
  border: none;
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.38)),
    url("/images/rty.jpeg") center center / cover no-repeat;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 22px 11px 13px;
  box-shadow:
    0 10px 16px rgba(6, 8, 12, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    inset 0 -1px 0 rgba(255, 255, 255, 0.42);
  overflow: hidden;
  z-index: 0;
}

.product-detail-card {
  border: none;
  padding: 0;
  gap: 0;
}

.product-detail-media {
  border-radius: 18px 18px 0 0;
}

.product-detail-media .gallery.gallery-scroll img {
  border-radius: 18px 18px 0 0;
}

.product-info-block {
  width: 100%;
}

.product-info-block .gallery-dots {
  margin: 0 0 10px;
}

.home-preview-info::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.home-preview-info::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.home-preview-info > * {
  position: relative;
  z-index: 1;
}

.home-preview-card .card-price {
  margin-top: 6px;
}


.card-delivery-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1.1;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 1px solid rgba(21, 21, 21, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #151515;
  pointer-events: none;
}

.card-delivery-badge.is-today {
  background: rgba(222, 246, 232, 0.92);
  border-color: rgba(86, 154, 118, 0.38);
  color: #2c6b4f;
}

.card-delivery-badge.is-preorder {
  background: rgba(21, 21, 21, 0.92);
  border-color: #151515;
  color: #fff;
}

.card-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.28;
  min-height: calc(1.28em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  margin-top: auto;
}

.card-category {
  min-height: 1.2em;
  color: #151515 !important;
}

.reveal {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  animation: card-reveal 0.45s ease forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes card-reveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.skeleton-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(21, 21, 21, 0.04);
}

.skeleton-card .skeleton-media,
.skeleton-card .skeleton-line,
.skeleton-card .skeleton-circle {
  background: linear-gradient(110deg, var(--skeleton-base) 30%, var(--skeleton-highlight) 50%, var(--skeleton-base) 70%);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.25s ease-in-out infinite;
}

.skeleton-card .skeleton-media {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}

.skeleton-card .skeleton-line {
  height: 10px;
  border-radius: 999px;
}

.skeleton-card .skeleton-line.wide {
  width: 78%;
}

.skeleton-card .skeleton-line.price {
  width: 46%;
  height: 12px;
}

.skeleton-card .skeleton-line.muted {
  width: 58%;
}

.skeleton-card .skeleton-circle {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--skeleton-edge);
}

.skeleton-card .skeleton-circle.top {
  top: 0;
  left: 8px;
}

.skeleton-card .skeleton-circle.bottom {
  bottom: 8px;
  right: 8px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.skeleton-gallery {
  display: flex;
  gap: 10px;
}

.skeleton-gallery .skeleton-media {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
}

.skeleton-info .skeleton-line,
.skeleton-info .skeleton-pill,
.skeleton-info .skeleton-button {
  background: linear-gradient(110deg, var(--skeleton-base) 30%, var(--skeleton-highlight) 50%, var(--skeleton-base) 70%);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.25s ease-in-out infinite;
}

.skeleton-info .skeleton-line {
  height: 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.skeleton-info .skeleton-line.wide {
  width: 80%;
}

.skeleton-info .skeleton-line.price {
  width: 40%;
  height: 14px;
}

.skeleton-info .skeleton-line.muted {
  width: 60%;
}

.skeleton-info .skeleton-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.skeleton-info .skeleton-pill {
  width: 86px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--skeleton-edge);
}

.skeleton-info .skeleton-button {
  width: 160px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--skeleton-edge);
}

.skeleton-info .skeleton-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--skeleton-edge);
  background: linear-gradient(110deg, var(--skeleton-base) 30%, var(--skeleton-highlight) 50%, var(--skeleton-base) 70%);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.25s ease-in-out infinite;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(21, 21, 21, 0.12);
  background: rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  color: #151515;
  backdrop-filter: blur(8px);
}

.icon-btn:active {
  transform: scale(0.96);
}

.icon-btn.active {
  background: rgba(17, 17, 17, 0.9);
  box-shadow: var(--shadow-soft);
  color: #fff;
}

.icon-heart,
.icon-bag,
.icon-home,
.icon-grid,
.icon-user,
.icon-chat {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  opacity: 0.7;
}

.icon-heart {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-6.716-4.548-9.193-8.294C1.01 10.061 1.357 6.9 3.64 5.266 5.742 3.77 8.3 4.376 9.91 6.232L12 8.57l2.09-2.338C15.7 4.376 18.258 3.77 20.36 5.266c2.283 1.634 2.63 4.795.833 7.44C18.716 16.452 12 21 12 21z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-6.716-4.548-9.193-8.294C1.01 10.061 1.357 6.9 3.64 5.266 5.742 3.77 8.3 4.376 9.91 6.232L12 8.57l2.09-2.338C15.7 4.376 18.258 3.77 20.36 5.266c2.283 1.634 2.63 4.795.833 7.44C18.716 16.452 12 21 12 21z'/%3E%3C/svg%3E");
}

.icon-bag {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7V6a5 5 0 0 1 10 0v1h2a1 1 0 0 1 1 1l-1.2 12a2 2 0 0 1-2 1.8H7.2a2 2 0 0 1-2-1.8L4 8a1 1 0 0 1 1-1h2zm2 0h6V6a3 3 0 0 0-6 0v1z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7V6a5 5 0 0 1 10 0v1h2a1 1 0 0 1 1 1l-1.2 12a2 2 0 0 1-2 1.8H7.2a2 2 0 0 1-2-1.8L4 8a1 1 0 0 1 1-1h2zm2 0h6V6a3 3 0 0 0-6 0v1z'/%3E%3C/svg%3E");
}

.icon-home {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 3 10h2v8a2 2 0 0 0 2 2h4v-6h2v6h4a2 2 0 0 0 2-2v-8h2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 3 10h2v8a2 2 0 0 0 2 2h4v-6h2v6h4a2 2 0 0 0 2-2v-8h2z'/%3E%3C/svg%3E");
}

.icon-grid {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E");
}

.icon-user {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4 4 0 1 0-0.001-8.001A4 4 0 0 0 12 12zm-7 9v-1a7 7 0 0 1 14 0v1z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4 4 0 1 0-0.001-8.001A4 4 0 0 0 12 12zm-7 9v-1a7 7 0 0 1 14 0v1z'/%3E%3C/svg%3E");
}

.icon-chat {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12a4 4 0 0 1 4 4v7a4 4 0 0 1-4 4h-4.1l-3.4 3.3a1 1 0 0 1-1.66-.86L9.1 18H6a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h12a4 4 0 0 1 4 4v7a4 4 0 0 1-4 4h-4.1l-3.4 3.3a1 1 0 0 1-1.66-.86L9.1 18H6a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4z'/%3E%3C/svg%3E");
}

.img-blur {
  filter: blur(12px);
  transform: scale(1.02);
  opacity: 0.6;
  transition: filter 0.45s ease, transform 0.45s ease, opacity 0.45s ease;
  background: linear-gradient(110deg, var(--skeleton-base) 30%, var(--skeleton-highlight) 50%, var(--skeleton-base) 70%);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.25s ease-in-out infinite;
}

.img-blur.loaded {
  filter: blur(0);
  transform: scale(1);
  opacity: 1;
  background: none;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .skeleton-card .skeleton-media,
  .skeleton-card .skeleton-line,
  .skeleton-card .skeleton-circle {
    animation: none;
    background: var(--skeleton-base);
  }

  .img-blur {
    transition: none;
    filter: none;
    transform: none;
    opacity: 1;
    animation: none;
    background: none;
  }

  .video-hero {
    animation: none;
  }

  .video-media {
    animation: none;
  }
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.card img {
  border-radius: 12px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.gallery.gallery-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-wrap {
  position: relative;
}

.product-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(21, 21, 21, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: #151515;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin: 0 0 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gallery.gallery-scroll .gallery-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.gallery.gallery-scroll img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.gallery.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-fav {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
}


.gallery-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 0;
}

.gallery-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-dots .dot.active {
  background: #111;
  transform: scale(1.25);
}

.add-cart {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(21, 21, 21, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
  touch-action: manipulation;
}

.nav-item .badge-count {
  position: absolute;
  top: 4px;
  right: 12px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 9px;
  line-height: 16px;
  text-align: center;
  font-weight: 600;
  transform: scale(1);
  transition: transform 0.2s ease;
}

.nav-item .badge-chat-unread {
  background: #d4352f;
}

.nav-item .badge-count.pulse {
  animation: badge-pulse 0.4s ease;
}

@keyframes badge-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}

.add-cart:active {
  transform: scale(0.96);
}

.fav-toggle {
  position: absolute;
  top: 0;
  left: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(21, 21, 21, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
  touch-action: manipulation;
}

.fav-toggle.active {
  background: #111;
  color: #fff;
}

.fav-toggle:active {
  transform: scale(0.96);
}

.cart-item {
  position: relative;
}

.cart-item .cart-delivery-badge {
  right: 42px;
}

.favorites-product-card .product-info-block,
.cart-product-card .product-info-block {
  padding: 18px 12px 13px;
}

.favorites-product-card .product-detail-media {
  border-radius: 18px;
  background: #fff;
}

.favorites-product-card .product-detail-media img {
  border-radius: 18px !important;
}

.favorites-product-card .home-preview-info {
  margin-top: -16px;
}

.favorites-product-card .product-card-title,
.cart-product-card .cart-product-title {
  margin: 8px 0 6px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.favorites-product-card .price,
.cart-product-card .price {
  margin-top: 2px;
}

.cart-product-card .cart-qty {
  margin-top: 8px;
}

.cart-product-card .remove-item {
  top: 8px;
  right: 8px;
  z-index: 3;
}

.remove-item {
  position: absolute;
  top: 0;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(21, 21, 21, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
  touch-action: manipulation;
}

.remove-item:active {
  transform: scale(0.96);
}

.cart-summary {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(21, 21, 21, 0.1);
  background: rgba(255, 255, 255, 0.64);
}

.cart-summary .row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.cart-extras {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 12px;
  background: rgba(247, 246, 244, 0.55);
}

.cart-extras-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--muted);
  font-weight: 600;
}

.cart-extra-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.35;
}

.cart-extra-option input[type="checkbox"] {
  margin-top: 1px;
  width: 16px;
  height: 16px;
  accent-color: #151515;
}

.cart-card-text {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(21, 21, 21, 0.16);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
  resize: vertical;
  min-height: 78px;
}

.checkout-modal[hidden] {
  display: none;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.checkout-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.44);
}

.checkout-modal-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(21, 21, 21, 0.18);
  background: #fff;
  display: grid;
  gap: 10px;
  box-sizing: border-box;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.checkout-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.checkout-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(21, 21, 21, 0.2);
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.checkout-form-block {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 12px;
  padding: 10px;
  background: rgba(247, 246, 244, 0.56);
}

.checkout-form-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--muted);
  font-weight: 600;
}

.checkout-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.checkout-form-head::after {
  content: "↓";
  width: 22px;
  text-align: center;
  color: var(--text);
  opacity: 0.72;
  font-size: 14px;
  line-height: 1;
}

.checkout-form-head[aria-expanded="true"]::after {
  content: "↑";
}

.checkout-accordion-content {
  display: grid;
  gap: 8px;
}

.checkout-accordion-content[hidden] {
  display: none !important;
}

.checkout-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.checkout-field span {
  font-size: 12px;
  color: var(--muted);
}

.checkout-field .required-mark {
  color: #b42318;
  font-weight: 700;
  margin-left: 2px;
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(21, 21, 21, 0.16);
  font-size: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
}

.checkout-field input[type="date"],
.checkout-field select,
.checkout-field input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
}

.checkout-field textarea {
  resize: vertical;
  min-height: 70px;
}

.checkout-field-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-self {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
}

.checkout-self input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #151515;
}

.checkout-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  position: static;
  background: transparent;
  padding-top: 2px;
  border-top: 0;
}

.checkout-modal-actions .button {
  min-width: 150px;
}

body.checkout-modal-open {
  overflow: hidden;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.6px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(21, 21, 21, 0.18);
  background: #fff;
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease;
  touch-action: manipulation;
}

.qty-btn:active {
  transform: scale(0.96);
}

.price {
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.2px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 12px 0 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(21, 21, 21, 0.18);
  background: #fff;
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  touch-action: pan-x;
}

.chip.active {
  border-color: var(--text);
  color: #fff;
  background: var(--text);
}

#category-chips {
  margin-top: 14px;
  margin-bottom: 6px;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 6px 8px;
  scrollbar-width: none;
}

#category-chips::-webkit-scrollbar {
  display: none;
}

#category-chips .chip {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.18)),
    linear-gradient(345deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.04));
  color: #2a2a2a;
  padding: 9px 13px;
  font-size: 11px;
  letter-spacing: 0.8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  transform: translateY(0);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

#category-chips .chip:hover {
  border-color: rgba(255, 255, 255, 0.74);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3);
}

#category-chips .chip:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}

#category-chips .chip.active {
  background:
    linear-gradient(170deg, rgba(24, 24, 24, 0.9), rgba(10, 10, 10, 0.82)),
    linear-gradient(345deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

#subcategory-chips {
  margin-top: 0;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 6px 8px;
  scrollbar-width: none;
}

#subcategory-chips::-webkit-scrollbar {
  display: none;
}

#subcategory-chips .chip {
  border: 1px solid rgba(255, 255, 255, 0.54);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16)),
    linear-gradient(345deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.04));
  color: #2a2a2a;
  padding: 8px 12px;
  font-size: 10px;
  letter-spacing: 0.7px;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

#subcategory-chips .chip:hover {
  border-color: rgba(255, 255, 255, 0.68);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28);
}

#subcategory-chips .chip:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.16);
}

#subcategory-chips .chip.active {
  background:
    linear-gradient(170deg, rgba(24, 24, 24, 0.88), rgba(10, 10, 10, 0.8)),
    linear-gradient(345deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.search {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.search input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  font-size: 13px;
  color: #151515;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.18)),
    linear-gradient(345deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(255, 255, 255, 0.24),
    0 8px 16px rgba(6, 8, 12, 0.16);
  touch-action: manipulation;
  transform: translateY(0);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.search input:hover {
  border-color: rgba(255, 255, 255, 0.74);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3),
    0 10px 18px rgba(6, 8, 12, 0.2);
}

.search input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.22)),
    linear-gradient(345deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.34),
    0 10px 20px rgba(6, 8, 12, 0.22);
}

.search input:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    0 5px 10px rgba(6, 8, 12, 0.16);
}

.search input::placeholder {
  color: #151515;
  opacity: 1;
}

.admin-form-grid {
  display: grid;
  gap: 12px;
}

.admin-field {
  display: grid;
  gap: 6px;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(21, 21, 21, 0.16);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
}

.admin-field textarea {
  resize: vertical;
}

.admin-category-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #151515 50%),
    linear-gradient(135deg, #151515 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 1px),
    calc(100% - 12px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-category-select:hover {
  border-color: rgba(21, 21, 21, 0.28);
}

.admin-category-select:focus {
  outline: none;
  border-color: rgba(21, 21, 21, 0.42);
  box-shadow: 0 0 0 3px rgba(21, 21, 21, 0.08);
}

.admin-field-inline {
  align-items: center;
  grid-auto-flow: column;
  justify-content: start;
  gap: 10px;
}

.admin-field-full {
  grid-column: 1 / -1;
}

.admin-images {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.admin-images-actions {
  display: grid;
  gap: 10px;
}

.admin-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.admin-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(21, 21, 21, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 246, 244, 0.58));
  color: #151515;
  font-size: 12px;
  letter-spacing: 0.6px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  user-select: none;
}

.admin-upload-btn:hover {
  border-color: rgba(21, 21, 21, 0.32);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.admin-upload-btn:active {
  transform: translateY(0);
}

.admin-upload-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #151515;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

.admin-upload-hint {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.admin-url-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.admin-images-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-image-item {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  max-width: 140px;
}

.admin-image-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.admin-image-item button {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(21, 21, 21, 0.2);
  background: #f5f5f5;
  cursor: pointer;
  font-size: 11px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.admin-product-card {
  position: relative;
  min-height: 100%;
  gap: 8px;
}

.admin-product-card .card-delivery-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.admin-product-card img {
  height: 160px;
  width: 100%;
  object-fit: cover;
}

.admin-product-delivery {
  font-size: 12px;
}

.admin-product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: auto;
}

.admin-product-actions .button {
  width: 100%;
  padding: 10px 12px;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #efefef;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.list {
  display: grid;
  gap: 14px;
}

body[data-page="favorites"] #favorites-list,
body[data-page="cart"] #cart-list,
body[data-page="profile"] #chat-block {
  margin-top: calc(26px + env(safe-area-inset-top)) !important;
}

body[data-page="profile"] .container {
  padding: env(safe-area-inset-top) 0 calc(48px + env(safe-area-inset-bottom));
  overflow: hidden;
}

body[data-page="profile"] .footer {
  display: none;
}

body[data-page="profile"] #chat-block {
  margin-top: 0 !important;
}

body[data-page="contacts"] .content-page,
body[data-page="delivery"] .content-page,
body[data-page="privacy"] .content-page,
body[data-page="offer"] .content-page,
body[data-page="returns"] .content-page,
body[data-page="requisites"] .content-page,
body[data-page="payment-success"] #payment-status,
body[data-page="payment-fail"] #payment-status {
  margin-top: calc(34px + env(safe-area-inset-top)) !important;
}

.info-block {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(21, 21, 21, 0.1);
  box-shadow: none;
}

.chat-wrap {
  margin-top: 16px;
}

body[data-page="profile"] .chat-wrap {
  margin-top: 0;
  height: calc(100vh - env(safe-area-inset-top) - (48px + env(safe-area-inset-bottom)));
}

.chat-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.38)),
    url("/images/rty.jpeg") center center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  grid-template-rows: auto minmax(40vh, 52vh) auto;
  gap: 12px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow:
    0 10px 16px rgba(6, 8, 12, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    inset 0 -1px 0 rgba(255, 255, 255, 0.42);
}

body[data-page="profile"] .chat-card {
  height: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px 10px 1px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  grid-template-rows: 1fr auto;
}

body[data-page="profile"] .chat-form {
  margin-bottom: 0;
}

.chat-hint {
  font-size: 12px;
  color: var(--muted);
}

body[data-page="profile"] .chat-hint {
  display: none;
}

.chat-thread {
  display: grid;
  gap: 8px;
  height: 100%;
  overflow: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.chat-message {
  max-width: 88%;
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
}

.chat-message.manager {
  justify-self: start;
  background: #f5f5f5;
}

.chat-message.mine {
  justify-self: end;
  background: #ece8df;
}

.chat-message-author {
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--muted);
}

.chat-message-text {
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-message-image {
  display: block;
  width: 100%;
  max-width: 240px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.chat-message-time {
  font-size: 11px;
  color: var(--muted);
  justify-self: end;
}

.chat-form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.chat-form #chat-input {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 10px 16px;
  font-size: 14px;
  width: 100%;
}

.chat-form #chat-photo-input {
  display: none;
}

.chat-attach-btn {
  min-width: 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  box-shadow: none;
}

.chat-attach-btn:active,
.chat-send-btn:active {
  transform: scale(0.97);
}

.chat-attach-icon,
.chat-send-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-attach-icon svg,
.chat-send-icon svg {
  width: 18px;
  height: 18px;
  stroke: #111;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-send-btn {
  min-width: 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  box-shadow: none;
}

.chat-attach-name {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
  min-height: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.stats-recent-list {
  display: grid;
  gap: 8px;
}

.stats-recent-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.stats-recent-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stats-recent-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}

.stats-recent-name {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.stats-recent-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.notice {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(240, 240, 240, 0.58);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.chat-empty-state {
  align-self: center;
  justify-self: center;
  width: min(420px, 92%);
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--text);
  opacity: 0.92;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(31, 28, 24, 0.92);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 5000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.footer {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid rgba(21, 21, 21, 0.12);
  padding-top: 16px;
}

.site-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-link {
  padding: 6px 10px;
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.4px;
  background: rgba(255, 255, 255, 0.75);
}

.site-link.active {
  border-color: #151515;
  color: #151515;
}

.footer-brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-contacts a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-owner {
  font-size: 11px;
}

.footer-powered {
  margin-top: 10px;
  text-align: center;
}

.footer-powered a {
  color: #000;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about-shop,
.faq-block,
.content-page {
  margin-top: 16px;
}

.content-page h2,
.faq-block h2,
.about-shop h2 {
  margin: 0 0 10px;
}

.content-page p,
.content-page li {
  font-size: 14px;
  line-height: 1.55;
}

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.75);
}

.faq-item + .faq-item {
  margin-top: 8px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-item p {
  margin: 8px 0 0;
}

.contact-list {
  display: grid;
  gap: 8px;
}

.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom) - 16px);
  height: 62px;
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 22px;
  background: rgba(250, 250, 250, 0.5);
  border: 1px solid rgba(21, 21, 21, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  z-index: 999;
  transform: translateZ(0);
  will-change: transform;
}

.bottom-nav .nav-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 16px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  transition: transform 0.2s ease;
  touch-action: manipulation;
}

.bottom-nav .nav-icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.bottom-nav .nav-item.active .nav-icon {
  opacity: 1;
}

.bottom-nav .nav-label {
  line-height: 1;
}

.bottom-nav .nav-item.active {
  color: var(--text);
  background: rgba(21, 21, 21, 0.08);
}

.bottom-nav .nav-item:active {
  transform: translateY(1px);
}

.bottom-nav .nav-item.cart-bump {
  animation: cart-bump 420ms cubic-bezier(0.22, 0.9, 0.28, 1);
}

@keyframes cart-bump {
  0% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-3px) scale(1.06);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.cart-fly-image {
  position: fixed;
  z-index: 3000;
  pointer-events: none;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  will-change: transform, opacity;
}

@media (max-width: 600px) {
  .checkout-modal {
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .checkout-modal-dialog {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-height: min(86vh, calc(100vh - 8px));
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .checkout-field-grid {
    grid-template-columns: 1fr;
  }

  .checkout-modal-actions {
    flex-direction: column;
  }

  .checkout-modal-actions .button {
    min-width: 0;
    width: 100%;
  }

  .card img {
    border-radius: 10px;
  }

  body[data-page="admin-products"] .header,
  body[data-page="stats"] .header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  body[data-page="admin-products"] .header .button,
  body[data-page="stats"] .header .button {
    width: 100%;
  }

  .admin-url-row {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-actions .button {
    width: 100%;
  }

  body[data-page="admin-products"] .table,
  body[data-page="stats"] .table {
    border-collapse: separate;
    border-spacing: 0;
  }

  body[data-page="admin-products"] .table thead,
  body[data-page="stats"] .table thead {
    display: none;
  }

  body[data-page="admin-products"] .table tbody,
  body[data-page="stats"] .table tbody {
    display: grid;
    gap: 10px;
  }

  body[data-page="admin-products"] .table tbody tr,
  body[data-page="stats"] .table tbody tr {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
  }

  body[data-page="admin-products"] .table tbody td,
  body[data-page="stats"] .table tbody td {
    display: grid;
    gap: 4px;
    padding: 0;
    border-bottom: none;
  }

  body[data-page="admin-products"] .table tbody td::before,
  body[data-page="stats"] .table tbody td::before {
    content: attr(data-label);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
  }

  body[data-page="admin-products"] .table tbody td[data-label="Действия"] {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body[data-page="admin-products"] .table tbody td[data-label="Действия"] .button {
    width: 100%;
  }
}

@media (min-width: 720px) {
  .container {
    max-width: 720px;
    margin: 0 auto;
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
