* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f5f5f7;
  color: #1d1d1f;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

/* Mobile container - точна големина за телефон */
.app-container {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  background-color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  min-height: 100vh;
  position: relative;
  padding: 0 16px 20px 16px;
}

.header {
  padding: 0;
  border-bottom: 15px solid #e5e5e5;
  margin-bottom: 1px;
  background: #713d92;  /* Светло лилјакова/лавова */
  width: 100%;
}

.header h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #FFFFFF;  /* Наместо gradient, стави ја оваа боја */
  text-align: center;
}

/* Banner */
.banner {
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

/* Products section */
.products {
  width: 100%;
}

.products h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1d1d1f;
  text-align: center;  /* Смени го ова од left во center */
  width: 100%;
}

/* Product grid - точни 2 колони за мобилен */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

/* Product card - СО РАМКА */
.product-card {
  background-color: white;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 2px solid #713d92;  /* Ова ја додава рамката */
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border: 2px solid #5a2e75;  /* Потемна кога се hover */
  box-shadow: 0 4px 15px rgba(113, 61, 146, 0.2);
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 12px;
  background-color: #fafafc;
  border-radius: 8px;
  padding: 8px;
}

/* Price container */
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.current-price {
  font-size: 18px;
  font-weight: 700;
  color: #713d92;  /* Смени ја оваа боја */
}

.original-price {
  font-size: 14px;
  color: #86868b;
  text-decoration: line-through;
}

.product-name {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Buy Now button - точно центриран и со иста големина */
.buy-now {
  display: block;
  width: 100%;
  background: #713d92;  /* Стави ја оваа боја */
  color: white;
  text-align: center;
  padding: 12px 8px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  transition: all 0.3s ease;
  margin-top: auto;
  box-shadow: 0 2px 8px rgba(113, 61, 146, 0.2); /* Иста боја со opacity */
}

.buy-now:hover {
  background: #5a2e75;  /* Потемна верзија за hover ефект */
  box-shadow: 0 4px 12px rgba(113, 61, 146, 0.3);
}

/* Desktop message */
.desktop-message {
  display: none;
}

/* Footer */
footer {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 16px 16px;
  text-align: center;
  color: #86868b;
  font-size: 12px;
  background-color: white;
}

/* Responsive за многу мали телефони */
@media screen and (max-width: 380px) {
  .app-container {
    padding: 0 12px 16px 12px;
  }
  
  .product-grid {
    gap: 12px;
  }
  
  .product-card {
    padding: 8px;
  }
  
  .product-card img {
    height: 120px;
  }
  
  .current-price {
    font-size: 16px;
  }
  
  .original-price {
    font-size: 12px;
  }
  
  .product-name {
    font-size: 13px;
  }
  
  .buy-now {
    padding: 10px 6px;
    font-size: 14px;
  }
}

/* Responsive за поголеми телефони */
@media screen and (min-width: 481px) {
  .app-container {
    max-width: 480px;
    margin: 0 auto;
  }
  
  footer {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* Desktop warning - само за десктоп */
@media screen and (min-width: 900px) {
  .app-container {
    display: none;
  }
  
  footer {
    display: none;
  }
  
  .desktop-message {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f5f7, #ffffff);
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
  }
  
  .desktop-message p {
    max-width: 600px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }
}

/* Фикс за сликите што недостасуваат */
img[alt="Pi Banner"],
img[alt="iPhone 17 Pro Max"],
img[alt="iPhone 17 Pro"],
img[alt="iPhone 16 Pro"],b
img[alt="iPhone 16 Plus"],
img[alt="iPhone 16 Pro Max"],
img[alt="iPhone 15 Pro Max"],
img[alt="iPhone 15 Plus"],
img[alt="MacBook M3 14"],
img[alt="MacBook M3 16"],
img[alt="AirPods 4"],
img[alt="AirPods Pro"],
img[alt="Vision Pro"],
img[alt="Apple Watch"],
img[alt="Galaxy S25"],
img[alt="Galaxy S25 Plus"],
img[alt="Galaxy S24 Ultra"],
img[alt="Asus ROG"] {
  background-color: #f8f8fc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #86868b;
  font-size: 12px;
  position: relative;
}

/* Стил за текстот кога нема слика */
img[alt]:not([src]):not([src^="http"]):not([src^="data"]):not([src^="."]) {
  content: attr(alt);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f5;
  color: #666;
  font-size: 12px;
  text-align: center;
  padding: 20px;
  min-height: 140px;
}