/* === ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ СТРАНИЦ === */

/* Background soft blobs */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 35% at 70% 20%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(30% 30% at 30% 10%, rgba(0,150,255,.10), transparent 55%),
    radial-gradient(45% 40% at 20% 75%, rgba(255,120,40,.08), transparent 60%);
  filter: blur(26px) saturate(1.05);
}


/* Header styles - NO BAR/LINE */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  box-shadow: none;
}

/* Full-bleed header background - DISABLED */
.container > .header,
#pageContent > .header {
  margin-left: 0;
  margin-right: 0;
}

/* Telegram safe area */
.telegram-safe-area {
  padding-top: env(safe-area-inset-top, 60px);
}

/* Footer navigation - glass pill/capsule */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: none !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 30px) !important;
  display: flex;
  justify-content: center;
  align-items: end;
}

.footer .nav {
  position: relative; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.5); 
  backdrop-filter: none; 
  -webkit-backdrop-filter: none; 
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  padding: 8px 12px;
  box-shadow: none; 
  width: 280px;
  max-width: 280px;
  margin: 0 auto;
}

.footer .navbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}


/* Footer buttons should not show static white circles; liquid blob handles highlighting */
.footer .navbtn:hover {
  background: transparent;
  transform: none;
}

.footer .navbtn.active {
  background: transparent;
  box-shadow: none;
}

.footer .navbtn .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer .icon svg {
  width: 22px;
  height: 22px;
  stroke: rgba(255,255,255,0.8);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .42s cubic-bezier(.22,1,.36,1), stroke .42s ease;
}

.footer .navbtn:hover .icon svg {
  stroke: rgba(255,255,255,0.9);
  transform: scale(1.05);
}

.footer .navbtn.active .icon svg {
  stroke: #fff;
  transform: none;
}

/* Cart badge */
.cart-badge-nav {
  position: absolute;
  top: 2px;
  right: 0px;
  background: linear-gradient(135deg, #e0e0e0, #a0a0a0);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* Glass buttons */
.glass-button {
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(13px,3.8vw,15px);
  color: #b8dfff;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(20,20,20,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 6px rgba(0,180,255,0.18), inset 0 0 8px rgba(255,255,255,0.04);
  transition: all .25s ease;
  cursor: pointer;
  text-shadow: 0 0 5px rgba(0,200,255,0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.glass-button:hover {
  color: #fff;
  background: rgba(0,80,255,0.18);
  box-shadow: 0 0 12px rgba(0,200,255,0.28), inset 0 0 14px rgba(0,200,255,0.12);
  transform: translateY(-1px);
}

.glass-button:active {
  transform: scale(0.99);
  box-shadow: 0 0 8px rgba(0,180,255,0.2), inset 0 0 10px rgba(0,180,255,0.18);
}

.glass-button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.glass-button.btn-blue {
  color: #8fc9ff;
  box-shadow: 0 0 8px rgba(0,150,255,0.22), inset 0 0 8px rgba(255,255,255,0.04);
}

/* Product cards (base styles) */
.product-card {
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  transition: all .2s ease;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  background: rgba(0,0,0,.25);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-2px);
}

.product-image {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface);
}

.product-info {
  padding: .75rem 0;
}

.product-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: rgba(255,255,255,.95);
}

.product-meta {
  font-size: 12px;
  color: rgba(255,255,255,.7);
}

.product-price {
  color: var(--color-accent);
  font-weight: 600;
  margin-top: 4px;
}

/* Product actions */
.product-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  z-index: 3;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: rgba(0,0,0,0.7);
  transform: scale(1.05);
}

.action-btn svg {
  width: 16px;
  height: 16px;
  fill: white;
  transition: all 0.2s ease;
}

.action-btn.favorite-btn.active {
  background: rgba(239,68,68,0.9);
}

.action-btn.favorite-btn.active svg {
  fill: white;
}

