@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;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bottom-nav-offset: max(18px, calc(var(--safe-bottom) + 8px));
  --bottom-nav-height: 62px;
}

* {
  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: 1;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  touch-action: none;
  padding-bottom: 0;
}

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

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

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

.container.page-transition-out {
  opacity: 0.52;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.container.page-transition-in {
  animation: page-luxe-in 0.22s cubic-bezier(0.22, 0.72, 0.2, 1) both;
  will-change: transform, opacity;
}

@keyframes page-luxe-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  top: auto;
  margin-top: 10px;
  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;
}

.header > div:first-child {
  flex: 1;
}

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

.brand-line {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: clamp(14px, 3.6vw, 19px);
  letter-spacing: 0.6px;
  text-transform: none;
  font-weight: 700;
  line-height: 1.15;
}

.brand-line span {
  display: inline-block;
}

.brand-main {
  font-size: clamp(19px, 5.2vw, 28px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
}

.brand-sub {
  font-size: clamp(10px, 2.3vw, 13px);
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.9;
  line-height: 1.1;
}

.brand-inline-logo {
  width: clamp(48px, 8.2vw, 64px);
  height: clamp(48px, 8.2vw, 64px);
  object-fit: contain;
  border-radius: 12px;
  flex: 0 0 auto;
}

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

.header-logo {
  width: 110px;
  height: 36px;
  object-fit: contain;
  object-position: right center;
}

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

.welcome-hero {
  margin: 14px -16px 2px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.welcome-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.welcome-hero img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  animation: welcome-breathe 8s ease-in-out infinite;
  filter: saturate(1.03) contrast(1.04);
}

@keyframes welcome-breathe {
  0%,
  100% {
    filter: saturate(1.03) contrast(1.04);
  }
  50% {
    filter: saturate(1.08) contrast(1.08);
  }
}

.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(var(--bottom-nav-offset) + var(--bottom-nav-height) + 10px);
  z-index: 20;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.product-sticky-space {
  height: calc(var(--bottom-nav-offset) + var(--bottom-nav-height) + 84px);
}

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

.product-card {
  padding: 0;
  gap: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  content-visibility: auto;
  contain-intrinsic-size: 340px 460px;
  contain: layout paint style;
}

.product-card .card-media {
  position: relative;
  padding: 0;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-bottom: none;
}

.product-tag-badge {
  --tag-accent: #c4a870;
  --tag-accent-soft: rgba(196, 168, 112, 0.14);
  --tag-accent-strong: rgba(196, 168, 112, 0.34);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  max-width: 100%;
  min-height: 34px;
  margin: 2px 0 6px;
  padding: 7px 14px 7px 10px;
  border-radius: 14px;
  border: 1px solid var(--tag-accent-strong);
  background:
    linear-gradient(135deg, rgba(255, 252, 245, 0.98), rgba(241, 234, 220, 0.9)),
    linear-gradient(135deg, var(--tag-accent-soft), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.18));
  color: #16120d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.25px;
  text-transform: uppercase;
  backdrop-filter: blur(14px) saturate(145%);
  box-shadow:
    0 10px 24px rgba(22, 18, 13, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 0 0 1px var(--tag-accent-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .card-media.card-media-swipable {
  touch-action: pan-y;
}

.card-gallery-track {
  display: flex;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 0.32s cubic-bezier(0.22, 0.7, 0.2, 1);
  will-change: transform;
}

.card-gallery-track.no-anim {
  transition: none !important;
}

.card-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
}

.card-gallery-slide .product-card-image.card-track-image {
  display: block;
  width: 100%;
}

.card-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.2);
  backdrop-filter: blur(2px);
  z-index: 3;
}

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

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

.product-card .card-body {
  display: grid;
  gap: 4px;
  margin-top: 0;
  padding: 10px 12px 12px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-top: none;
  border-radius: 0 0 14px 14px;
  background: #fff;
}

.promo-card {
  cursor: pointer;
}

.promo-card:focus-visible {
  outline: 2px solid rgba(21, 21, 21, 0.28);
  outline-offset: 2px;
}

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

.grid-premium-in {
  animation: grid-premium-in 0.32s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

@keyframes grid-premium-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skeleton-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(21, 21, 21, 0.04);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(247, 244, 238, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 24px rgba(12, 10, 8, 0.05);
}

.skeleton-card::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.52) 50%, transparent 62%);
  transform: translateX(-46%);
  animation: skeleton-sheen 1.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.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 {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: linear-gradient(145deg, #e8e3d8, #f7f3ea);
}

.skeleton-card .skeleton-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.45), transparent 48%);
}

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

@keyframes skeleton-sheen {
  0% {
    transform: translateX(-52%) rotate(0.001deg);
    opacity: 0.35;
  }
  50% {
    opacity: 0.62;
  }
  100% {
    transform: translateX(52%) rotate(0.001deg);
    opacity: 0.35;
  }
}

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

.skeleton-info {
  border-radius: 16px;
  border: 1px solid rgba(21, 21, 21, 0.06);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(246, 242, 235, 0.86));
  padding: 14px;
}

.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-share,
.icon-home,
.icon-grid,
.icon-chat,
.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-share {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 8a3 3 0 1 0-2.83-4H15a3 3 0 0 0 .17 1L8.91 8.13a3 3 0 0 0-1.82-.13l-2.03-2.03A3 3 0 1 0 4 8a3 3 0 0 0 1-.17l2.03 2.03A3 3 0 0 0 7 10c0 .34.06.67.17.98l-2.12 2.12A3 3 0 1 0 6 15a3 3 0 0 0-.17-.98l2.12-2.12c.31.11.64.17.98.17.67 0 1.3-.22 1.82-.59l6.27 3.13A3 3 0 1 0 18 13a3 3 0 0 0-1 .17l-6.27-3.13A3 3 0 0 0 11 9c0-.34-.06-.67-.17-.98l6.27-3.13c.27.18.58.3.9.36A3 3 0 0 0 18 8z'/%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='M18 8a3 3 0 1 0-2.83-4H15a3 3 0 0 0 .17 1L8.91 8.13a3 3 0 0 0-1.82-.13l-2.03-2.03A3 3 0 1 0 4 8a3 3 0 0 0 1-.17l2.03 2.03A3 3 0 0 0 7 10c0 .34.06.67.17.98l-2.12 2.12A3 3 0 1 0 6 15a3 3 0 0 0-.17-.98l2.12-2.12c.31.11.64.17.98.17.67 0 1.3-.22 1.82-.59l6.27 3.13A3 3 0 1 0 18 13a3 3 0 0 0-1 .17l-6.27-3.13A3 3 0 0 0 11 9c0-.34-.06-.67-.17-.98l6.27-3.13c.27.18.58.3.9.36A3 3 0 0 0 18 8z'/%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-chat {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H9l-5 4v-4a3 3 0 0 1-3-3V5z'/%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 5a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H9l-5 4v-4a3 3 0 0 1-3-3V5z'/%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: none;
  transform: none;
  opacity: 0;
  transition: opacity 0.32s ease;
  background: #f0eeea;
}

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

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

  .grid-premium-in {
    animation: none;
    transform: none;
    opacity: 1;
  }

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

  .skeleton-card::before {
    animation: none;
    opacity: 0;
  }

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

  .video-hero {
    animation: none;
  }

  .video-media {
    animation: none;
  }

  .welcome-hero img {
    animation: none;
    transform: none;
  }

  .container.page-transition-out,
  .container.page-transition-in {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
    filter: 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;
}

.card .product-card-image {
  width: 100%;
  border-radius: 16px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  background: #f6f6f6;
  position: relative;
  z-index: 1;
}

.card .product-card-video {
  width: 100%;
  border-radius: 16px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  background: #f6f6f6;
  position: relative;
  z-index: 1;
}

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

.gallery-wrap {
  position: relative;
}

.gallery.gallery-scroll .gallery-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: #f6f6f6;
}

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

.gallery.gallery-scroll video {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: #f6f6f6;
}

body[data-page="product"] .gallery.gallery-scroll img,
body[data-page="project"] .gallery.gallery-scroll img {
  object-fit: contain;
  object-position: center;
  background: #f6f6f6;
}

body[data-page="product"] .gallery.gallery-scroll video,
body[data-page="project"] .gallery.gallery-scroll video {
  object-fit: contain;
  object-position: center;
  background: #f6f6f6;
}

body[data-page="product"] .gallery-wrap,
body[data-page="product"] #product-gallery,
body[data-page="product"] #product-gallery .gallery-item,
body[data-page="product"] #product-gallery .gallery-item img,
body[data-page="product"] #product-gallery .gallery-item video,
body[data-page="project"] .gallery-wrap,
body[data-page="project"] #project-gallery,
body[data-page="project"] #project-gallery .gallery-item,
body[data-page="project"] #project-gallery .gallery-item img,
body[data-page="project"] #project-gallery .gallery-item video {
  border-radius: 16px !important;
}

body[data-page="product"] .gallery-wrap,
body[data-page="product"] #product-gallery .gallery-item,
body[data-page="project"] .gallery-wrap,
body[data-page="project"] #project-gallery .gallery-item {
  overflow: hidden;
}

body[data-page="product"] #product-gallery {
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: auto;
  -webkit-overflow-scrolling: touch;
}

body[data-page="project"] #project-gallery {
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: auto;
  -webkit-overflow-scrolling: touch;
}

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

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

.gallery-share {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

body[data-page="product"] #product-gallery.pinch-active {
  touch-action: none;
}

body[data-page="project"] #project-gallery.pinch-active {
  touch-action: none;
}

.pinch-active {
  touch-action: none;
}

body[data-page="product"] #product-gallery .gallery-item img.pinch-zooming,
body[data-page="project"] #project-gallery .gallery-item img.pinch-zooming,
.pinch-zooming {
  transform-origin: center center;
  transition: none !important;
  will-change: transform;
  position: relative;
  z-index: 4;
}

body[data-page="product"] #product-gallery .gallery-item img.pinch-resetting,
body[data-page="project"] #project-gallery .gallery-item img.pinch-resetting,
.pinch-resetting {
  transition: transform 0.18s ease !important;
}


.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: 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: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
  touch-action: manipulation;
  box-shadow: none;
  outline: none;
}

.share-card {
  position: absolute;
  top: 8px;
  right: 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;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
  touch-action: manipulation;
  box-shadow: none;
  outline: none;
}

.share-card .icon-share {
  width: 14px;
  height: 14px;
}

.share-card:active {
  transform: scale(0.96);
}

.add-cart .icon-bag {
  width: 14px;
  height: 14px;
}

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

.add-cart:focus,
.add-cart:focus-visible {
  outline: none;
  box-shadow: none;
}

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

.cart-item .card-body {
  gap: 6px;
}

.cart-item-media {
  background: #fff;
}

.cart-item-image {
  aspect-ratio: 3 / 4 !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 16px 16px 0 0 !important;
}

.remove-item {
  position: absolute;
  top: 10px;
  right: 8px;
  z-index: 3;
  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);
}

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

.checkout-open {
  overflow: hidden;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px 14px;
  pointer-events: none;
}

.checkout-modal.open {
  pointer-events: auto;
}

.checkout-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 380px at 50% 0%, rgba(255, 210, 122, 0.16), transparent 70%),
    rgba(9, 9, 9, 0.58);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.checkout-modal.open .checkout-modal-backdrop {
  opacity: 1;
}

.checkout-modal-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(236, 222, 192, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 243, 234, 0.96)),
    #fff;
  box-shadow:
    0 26px 60px rgba(10, 8, 6, 0.36),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  padding: 18px;
  transform: translateY(20px) scale(0.985);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.checkout-modal.open .checkout-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.checkout-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.checkout-modal-head h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.checkout-modal-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}

.checkout-modal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.checkout-modal-meta.checkout-modal-meta-single {
  grid-template-columns: 1fr;
  margin-bottom: 2px;
}

.checkout-meta-card {
  border: 1px solid rgba(26, 22, 17, 0.1);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.checkout-meta-card span {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-meta-card strong {
  font-size: 16px;
  line-height: 1.15;
}

.checkout-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(21, 21, 21, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.checkout-form {
  display: grid;
  gap: 11px;
}

.checkout-items-preview {
  border: 1px solid rgba(20, 18, 15, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.checkout-items-head,
.checkout-item-row {
  display: grid;
  grid-template-columns: 52px 1fr 72px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
}

.checkout-items-head {
  border-bottom: 1px solid rgba(20, 18, 15, 0.1);
  background: rgba(244, 239, 230, 0.9);
}

.checkout-items-head span {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.checkout-items-list {
  display: grid;
}

.checkout-item-row + .checkout-item-row {
  border-top: 1px solid rgba(20, 18, 15, 0.08);
}

.checkout-item-index,
.checkout-item-qty {
  font-size: 12px;
  color: var(--muted);
}

.checkout-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

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

.checkout-field span {
  font-size: 11px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-field input,
.checkout-field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1px solid rgba(21, 21, 21, 0.18);
  font-size: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.checkout-field input:focus,
.checkout-field textarea:focus {
  outline: none;
  border-color: rgba(44, 36, 28, 0.56);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(94, 74, 44, 0.11);
}

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

.checkout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

@media (max-width: 560px) {
  .checkout-modal {
    padding: 12px 10px;
  }

  .checkout-modal-dialog {
    border-radius: 18px;
    padding: 14px;
  }

  .checkout-modal-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

.profile-user {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
}

.profile-avatar-wrap {
  width: 72px;
  height: 72px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(21, 21, 21, 0.14);
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  background: #ece8df;
  color: #1a1a1a;
}

.profile-user-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.profile-history {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.profile-history-pager {
  margin-top: 6px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(20, 18, 15, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 242, 235, 0.92));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.profile-history-status {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.3px;
  text-align: center;
  white-space: nowrap;
}

.profile-history-status strong {
  color: var(--text);
  font-weight: 700;
}

.profile-history-btn {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 18, 15, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 237, 229, 0.98));
  color: var(--text);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  justify-self: start;
  box-shadow: 0 8px 18px rgba(24, 20, 14, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.profile-history-btn:last-child {
  justify-self: end;
}

.profile-history-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.profile-history-btn:disabled {
  opacity: 0.38;
  cursor: default;
  box-shadow: none;
}

.profile-order-card {
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.profile-order-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

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

.profile-order-item {
  padding-top: 8px;
  border-top: 1px solid rgba(21, 21, 21, 0.08);
}

.profile-order-item:first-child {
  padding-top: 0;
  border-top: none;
}

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

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

.product-lead-date {
  color: #111;
  font-size: 13px;
  font-weight: 700;
}

.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,
.admin-field select {
  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 {
  display: grid;
  align-items: center;
  grid-auto-flow: column;
  justify-content: start;
  gap: 10px;
}

.admin-field-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  accent-color: #b99152;
}

.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;
  pointer-events: none;
}

.admin-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(171, 143, 83, 0.55);
  background: linear-gradient(135deg, #1e1a14, #322718 55%, #1e1a14);
  color: #f2e3bf;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(32, 24, 15, 0.3), inset 0 1px 0 rgba(255, 230, 170, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.admin-upload-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

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

.admin-upload-note {
  font-size: 12px;
  color: var(--muted);
}

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

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

.admin-color-images {
  padding-top: 8px;
  border-top: 1px dashed rgba(21, 21, 21, 0.14);
}

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

.admin-color-chip {
  border: 1px solid rgba(21, 21, 21, 0.18);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.admin-color-chip.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.admin-color-chip:active {
  transform: scale(0.98);
}

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

.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 .admin-media-preview {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #f6f6f6;
}

.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-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-tab {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
}

.admin-tab.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

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

.admin-products-grid {
  margin-top: 4px;
}

.admin-product-card {
  gap: 8px;
}

.admin-product-card.product-card {
  gap: 0;
}

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

.admin-import-copy,
.admin-import-format {
  display: grid;
  gap: 6px;
}

.admin-import-actions {
  align-items: center;
  flex-wrap: wrap;
}

.admin-import-code {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f6f2eb;
  border: 1px solid rgba(21, 21, 21, 0.08);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-import-summary {
  font-size: 14px;
  line-height: 1.5;
}

.admin-import-errors {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(177, 35, 35, 0.08);
  border: 1px solid rgba(177, 35, 35, 0.16);
  color: #7a1f1f;
  display: grid;
  gap: 6px;
}

.admin-import-preview {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.admin-import-preview-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.admin-import-links {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.admin-import-link-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.admin-import-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-import-link-path {
  flex: 1 1 260px;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f6f2eb;
  border: 1px solid rgba(21, 21, 21, 0.08);
  font-size: 12px;
  overflow-wrap: anywhere;
}

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

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

.admin-project-card {
  gap: 10px;
}

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

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

.admin-category-create input[type="color"] {
  width: 52px;
  min-width: 52px;
  height: 46px;
  padding: 4px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.admin-category-create input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.admin-category-create input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 8px;
}

.admin-categories-list {
  display: grid;
  gap: 10px;
}

.admin-category-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.admin-category-item input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(21, 21, 21, 0.16);
  font-size: 13px;
}

.admin-category-item input[type="color"] {
  width: 48px;
  min-width: 48px;
  height: 42px;
  padding: 4px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.admin-category-item input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.admin-category-item input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 7px;
}

.admin-category-actions {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px;
}

.admin-category-actions .button {
  padding: 9px 12px;
  min-width: 90px;
}

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

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

.powered-by-footer {
  color: #000;
  letter-spacing: 0;
  text-transform: none;
}

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

.powered-by-footer-copy {
  margin-top: 8px;
}

.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: var(--bottom-nav-offset);
  height: var(--bottom-nav-height);
  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: 0;
  padding: 8px 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: 30px;
  height: 30px;
  opacity: 0.7;
}

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

.bottom-nav .nav-label {
  display: none;
}

.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-hit {
  animation: cart-hit 0.42s ease;
}

@keyframes cart-hit {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

.cart-fly-item {
  position: fixed;
  z-index: 1200;
  border-radius: 10px;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.56s cubic-bezier(0.2, 0.72, 0.2, 1), opacity 0.56s ease;
}

body[data-page="contacts"] .container,
body[data-page="chat"] .container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding-bottom: calc(var(--bottom-nav-offset) + var(--bottom-nav-height) + 10px);
}

body[data-page="contacts"] .header,
body[data-page="chat"] .header {
  margin-bottom: 8px;
}

.chat-screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 2px 2px;
}

.chat-day {
  align-self: center;
  font-size: 11px;
  color: var(--muted);
  background: rgba(21, 21, 21, 0.06);
  border-radius: 999px;
  padding: 5px 10px;
}

.chat-bubble {
  max-width: min(82%, 520px);
  border-radius: 16px;
  padding: 10px 12px;
  line-height: 1.35;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble.in {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border);
}

.chat-bubble.out {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
}

.chat-image {
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  margin-top: 8px;
  object-fit: cover;
}

.chat-video {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  margin-top: 8px;
  background: #000;
}

.chat-time {
  margin-top: 6px;
  font-size: 10px;
  opacity: 0.72;
}

.chat-attachment-bar {
  display: grid;
  grid-template-columns: 44px 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(21, 21, 21, 0.05);
}

.chat-attachment-bar[hidden] {
  display: none !important;
}

.chat-attachment-preview {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.chat-attachment-preview-video {
  display: none;
  background: #000;
}

.chat-attachment-name {
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-attachment-remove {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(21, 21, 21, 0.1);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}

.chat-composer {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: end;
  gap: 8px;
  padding: 8px 6px 0;
}

.chat-icon-button,
.chat-send-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 19px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.chat-send-button {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  padding-bottom: 2px;
}

.chat-send-button:disabled {
  opacity: 0.35;
}

.chat-input {
  min-height: 42px;
  max-height: 132px;
  resize: none;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  line-height: 1.35;
}

.chat-input:focus {
  outline: none;
  border-color: rgba(21, 21, 21, 0.32);
  box-shadow: 0 0 0 2px rgba(21, 21, 21, 0.08);
}

@media (max-width: 600px) {
  .card img {
    border-radius: 10px;
  }

  .card .product-card-image {
    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-category-create {
    grid-template-columns: 1fr;
  }

  .admin-category-item {
    grid-template-columns: 1fr;
  }

  .admin-category-actions {
    grid-template-columns: 1fr 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%;
  }

  .profile-history-pager {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .profile-history-btn,
  .profile-history-btn:last-child {
    justify-self: stretch;
  }
}

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