/* Store Page Styles */
:root {
  --primary: #2d3436;
  --secondary: #0984e3;
  --border-color: #b9b3b3;
}

* {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  transition: all 100ms linear;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  color: var(--gray-800);
}

/* Header and Navigation styles */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding-inline: 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo, .site-header > .store-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.store-name {
  color: #fff;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color, #007bff);
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: white;
  padding: 0.2px 10px;
  border: 1px solid #b9b3b3;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

button {
  background: var(--primary-color, #007bff);
  color: white;
  border: none;
  padding: 5px 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover,
.button:hover {
  opacity: 80%;
  transform: translateY(-1px);
}

/* Search and Filter Section */
.search-filter-section {
  background: var(--gray-100);
  padding: 2rem;
  margin-bottom: 2rem;
}

.search-container {
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color, #007bff);
}

.category-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: white;
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color, #007bff);
  color: white;
  border-color: var(--primary-color, #007bff);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 3rem 1rem;
}

.product-card {
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 8px;
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 4px;
}

.product-category {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.product-price {
  font-weight: bold;
  color: var(--primary-color, #007bff);
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.add-to-cart-btn {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  font-weight: bold;
}

.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--gray-600);
  font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials-section {
  background: var(--gray-100);
  padding: 4rem 2rem;
  margin: 2rem 0;
}

.testimonials-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--gray-800);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
}

.testimonial-rating {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-comment {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 2rem;
  background: white;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--gray-800);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-color, #007bff);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-item h3 {
  color: var(--primary-color, #007bff);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.faq-item p {
  color: var(--gray-700);
  line-height: 1.6;
  margin: 0;
}



/* Sticky Footer CTA - Fixed position */
.sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--primary-color, #007bff);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1.5rem;
  transform: translateZ(0);
  will-change: transform;
  border: none;
  cursor: pointer;
}

.sticky-cta:hover {
  background: #0056b3;
  transform: translateZ(0) scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header {
    padding-inline: 1rem;
    flex-direction: column;
    gap: .5rem;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: .5rem;
  }
  
  .cart-summary {
    gap: 15px;
    padding-inline: 0.5rem;
    min-height: 3rem;
  }
  
  .search-filter-section {
    padding: 1rem;
  }
  
  .category-filters {
    justify-content: center;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 2rem 1rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonials-section,
  .faq-section {
    padding: 2rem 1rem;
  }
  
  /* Sticky CTA responsive styles handled in common.css */
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-card,
  .faq-item {
    padding: 1rem;
  }
  
  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .sticky-cta {
    bottom: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}
