:root {
  --bg-color: #0A0A0A;
  --card-color: #111111;
  --text-color: #FFFFFF;
  --secondary-text: #919191;
  --accent-color: #00C9FF;
  --discount-color: #BD4545;
  --border-color: rgba(10, 10, 10, 0.4);
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  padding-bottom: 89px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.empty-message {
  text-align: center;
  color: var(--secondary-text);
  padding: 20px;
  font-size: 16px;
  font-weight: 600;
}

.hidden {
  display: none;
}

::-webkit-scrollbar {
  display: none;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

/* Footer Menu (переносим сюда общие стили) */
.footer-menu {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 49px;
  background: #111111;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  border-radius: 20px 20px 0 0;
}

.menu-icons {
  display: flex;
  justify-content: space-between;
  width: 320px;
  position: relative;
}

.menu-icon {
  width: 36px;
  height: 26px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  transition: transform 0.3s, filter 0.3s;
}

.menu-icon:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.menu-icon.active {
  filter: brightness(1.5) drop-shadow(0 0 5px rgba(0, 201, 255, 0.7));
}

.home-icon {
  background-image: url('./images/house-black-silhouette-without-door.png');
}

.cart-icon {
  width: 40px;
  height: 26px;
  background-image: url('./images/basket.png');
}

.profile-icon {
  background-image: url('./images/profile.png');
}

/* Product Page */
.product-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 89px;
  background-color: var(--bg-color);
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.product-page.active {
  transform: translateX(0);
}

.close-button {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--card-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: 1001;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.product-image {
  width: 100%;
  height: 250px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 20px;
  border-radius: 10px;
  background-color: var(--card-color);
}

.rating-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 15px;
}

.star-icon-big {
  width: 20px;
  height: 20px;
  background: url('./images/stars.png') no-repeat center;
  background-size: contain;
}

.rating-value-big {
  font-weight: 700;
  font-size: 18px;
}

.product-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 15px;
  text-align: center;
}

.product-price-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.product-description {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 30px;
  padding: 0 10px;
}

.add-to-cart {
  display: block;
  width: 100%;
  height: 50px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, var(--accent-color) 0%, #0099FF 100%);
  border-radius: 25px;
  border: none;
  color: white;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 201, 255, 0.3);
}

@media (max-width: 400px) {
  .product-title {
    font-size: 20px;
  }
  
  .product-description {
    font-size: 14px;
  }
  
  .add-to-cart {
    height: 45px;
    font-size: 16px;
  }
}

.tg-auth-button {
    background: var(--accent-color) !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 10px !important;
    margin: 15px auto !important;
    display: block !important;
    width: 80%;
    max-width: 300px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 201, 255, 0.3);
}

.tg-auth-button:hover {
    opacity: 0.9;
}

.tg-auth-button {
    position: relative;
    z-index: 1000;
}