* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  /* Updated background to #333 as requested */
  background: #333;
  color: #ffffff;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.catalogimages {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  image-rendering: auto;
}

.product-card-link {
  text-decoration: none; /* uklanja podvlačenje */
  color: inherit;        /* da boja teksta ne bude plava, nego nasledi */
  display: block;        /* da zauzima celu karticu */
  cursor: pointer;
}

.product-card-link * {
  text-decoration: none !important;
  color: inherit !important;
}


.product-card-link:hover {
  cursor: pointer;
  /* Opcionalno: neki hover efekat */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* New navbar styles matching reference design */
.navbar {
  background: #333;
  padding: 15px 0;
  border-bottom: 1px solid #444;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* .nav-links styles moved to styles.css to avoid conflicts */

.nav-link {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s;
  font-weight: 500;
}

.nav-link.active,
.nav-link:hover {
  background: #ffffff;
  color: #333;
}

.nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Updated hero section for product page layout */
.hero {
  padding: 80px 0;
  background: #333;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.book-display {
  display: flex;
  justify-content: center;
}

.book-cover {
  width: 350px;
  height: 450px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-15deg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.book-title {
  font-size: 1.8rem;
  color: #ffd700;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  padding: 0 20px;
}

.book-subtitle {
  font-size: 1rem;
  color: #ccc;
  text-align: center;
  margin-bottom: 30px;
}

.healing-symbol {
  width: 80px;
  height: 80px;
  border: 3px solid #ffd700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #ffd700;
  margin-bottom: 20px;
  background: rgba(255, 215, 0, 0.1);
}

.author {
  color: #ffd700;
  font-size: 1.1rem;
  font-weight: bold;
}

/* Product info styles */
.product-info {
  padding: 20px 0;
}

.stock-alert {
  background: #ff4444;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.product-info h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.stars {
  color: #ffd700;
  font-size: 1.2rem;
}

.rating span {
  color: #ccc;
}

.pricing {
  margin-bottom: 15px;
}

.old-price {
  color: darkred !important;
  text-decoration: line-through !important;
  font-size: 1.2rem;
  margin-right: 10px;
}

.new-price {
  color: #ffffff;
  font-size: 2rem;
  font-weight: bold;
}

.sales-info {
  color: #ff4444;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.benefits {
  margin-bottom: 30px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border-left: 3px solid #ffd700;
}

.benefit-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.you-may-like {
  margin-bottom: 30px;
}

.you-may-like h3 {
  color: #ffffff;
  margin-bottom: 15px;
}

.related-products {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.related-products img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
}

.related-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.related-price {
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-btn {
  background: #ffffff;
  color: #333;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s;
  display: inline-block;
  text-align: center;
  width: 100%;
}

.download-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* Catalog section styles */
.catalog {
  padding: 80px 0;
  background: #333;
}

.catalog h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: #ffffff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.save-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
}

.bundle-image {
  margin-bottom: 20px;
}

.bundle-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.product-image {
  margin-bottom: 20px;
}

.product-image img {
  width: 200px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.product-card h3 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.you-may-like a {
  text-decoration: none;
  color: inherit;
}

.product-price {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Description section styles */
.description {
  padding: 80px 0;
  background: #333;
}

.description h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 30px;
}

.description h3 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 20px;
}

.description p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #ccc;
}

.features-list {
  margin: 30px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  padding: 10px 0;
}

.checkmark {
  color: #4caf50;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* FAQ section styles */
.faq {
  padding: 80px 0;
  background: #333;
}

.faq h2 {
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 50px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #444;
  margin-bottom: 20px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
  transition: color 0.3s;
}

.faq-question:hover {
  color: #ffd700;
}

.faq-arrow {
  font-size: 1.5rem;
  color: #ccc;
  transition: transform 0.3s;
}

.faq-item.active .faq-arrow {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: #ccc;
  line-height: 1.6;
}

/* Updated testimonials styles */
.testimonials {
  padding: 80px 0;
  background: #333;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.testimonial {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stars {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffffff;
}

.testimonial p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 15px;
}

.testimonial-author {
  color: #ffd700;
  font-weight: bold;
}

/* Updated popup styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
}

.popup-overlay.show {
  display: flex;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.popup-content {
  background: #333;
  border: 2px solid #ffd700;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #ffd700;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s;
}

.popup-close:hover {
  color: #fff;
}

.popup-title {
  font-size: 2rem;
  color: #ffd700;
  margin-bottom: 15px;
}

.popup-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #fff;
}

.popup-countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.popup-countdown-item {
  text-align: center;
  background: rgba(255, 215, 0, 0.1);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.popup-countdown-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffd700;
  display: block;
}

.popup-countdown-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ccc;
}

.popup-cta {
  background: #ffd700;
  color: #333;
  padding: 18px 45px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s;
  display: inline-block;
  text-transform: uppercase;
}

.popup-cta:hover {
  background: #ffed4e;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: #222;
  padding: 40px 0;
}

.footer-content {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ffd700;
}

.copyright {
  color: #666;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* .nav-links mobile styles moved to styles.css to avoid conflicts */

  .nav-link {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .book-cover {
    width: 280px;
    height: 380px;
    transform: none;
  }

  .product-info h1 {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .nav-container {
    padding: 0 15px;
  }

  .book-cover {
    width: 220px;
    height: 300px;
  }

  .book-title {
    font-size: 1.4rem;
  }

  .product-info h1 {
    font-size: 1.8rem;
  }

  .popup-content {
    padding: 30px 20px;
  }

  .popup-countdown {
    flex-wrap: wrap;
    gap: 15px;
  }
}
