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

:root {
  --bg: #f7f6f4;
  --bg-alt: #ffffff;
  --text: #151515;
  --muted: #6f6f6f;
  --card: #ffffff;
  --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: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow: hidden;
  position: fixed;
  inset: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  touch-action: none;
  padding-bottom: 0;
}

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: calc(16px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom));
  position: relative;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  padding: 12px 0 12px;
  background: rgba(247, 246, 244, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  z-index: 10;
}

.logo {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

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

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

.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 h1 {
  margin: 0 0 8px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.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: 16px;
  right: 16px;
  bottom: calc(72px + env(safe-area-inset-bottom) + 12px);
  z-index: 20;
  padding: 8px;
  border-radius: 16px;
  background: rgba(247, 246, 244, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.product-sticky-space {
  height: calc(110px + 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.08);
  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;
}

.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: 8px;
  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 {
  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");
}

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

.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: 8px;
}

.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-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: 8px;
  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;
}

.remove-item {
  position: absolute;
  top: 8px;
  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.08);
  background: #fff;
}

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

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

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

.search input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(21, 21, 21, 0.16);
  font-size: 13px;
  background: #fff;
  box-shadow: none;
  touch-action: manipulation;
}

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

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

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

.admin-field textarea {
  resize: vertical;
}

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

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

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

.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: #f0f0f0;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  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;
}

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

.footer {
  margin-top: 24px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  height: 62px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 8px;
  border-radius: 22px;
  background: rgba(250, 250, 250, 0.72);
  border: 1px solid rgba(21, 21, 21, 0.12);
  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;
  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);
}

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