/* Products Grid Styles */
.products-section {
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.products-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: #333;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.products-loading {
  text-align: center;
  padding: 2rem;
  grid-column: 1 / -1;
  color: #666;
  font-style: italic;
}

/* Product Card Styles */
.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

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

/* Product Image Container */
.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background-color: #f9f9f9;
}

.product-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease;
}

.product-image {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
  cursor: pointer;
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.carousel-dot.active {
  background: #FF4B4B;
  border-color: #FF4B4B;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
  color: #333;
  font-size: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-image-container:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* Product Details */
.product-details {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  font-weight: 500;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #333;
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.rating-stars {
  color: #f9a825;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.rating-count {
  font-size: 0.8rem;
  color: #666;
  margin-left: 0.3rem;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e53935;
  margin: 0.5rem 0;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.product-description-btn,
.buy-now-btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  flex: 1;
}

.product-description-btn {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.product-description-btn:hover {
  background-color: #eee;
}

.buy-now-btn {
  background-color: #FF4B4B;
  color: white;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.buy-now-btn:hover {
  background-color: #e53935;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background-color: #fff;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #FF4B4B;
}

.modal-title {
  margin-top: 0;
  color: #333;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.modal-description {
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

.modal-features {
  margin-bottom: 1rem;
}

.modal-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e53935;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}

.modal-actions .buy-now-btn {
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  display: block;
  border-radius: 4px;
}

/* Prevent background scrolling when modal is open */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Information Accordion */
.info-accordion {
  max-width: 1000px;
  margin: 3rem auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.accordion-item {
  border-bottom: 1px solid #eee;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s;
}

.accordion-header:hover {
  background-color: #f5f5f5;
}

.accordion-item.active .accordion-header {
  background-color: #f0f0f0;
}

.accordion-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
  font-weight: 600;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.accordion-icon:before,
.accordion-icon:after {
  content: '';
  position: absolute;
  background-color: #333;
  transition: transform 0.3s ease;
}

.accordion-icon:before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.accordion-icon:after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.accordion-item.active .accordion-icon:after {
  transform: translateX(-50%) rotate(90deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  background-color: #fff;
  padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
  max-height: 2000px;
  padding: 1.5rem;
}

/* Enhance existing design components for accordion content */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.design-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.design-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.morse-code {
  font-family: monospace;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: #333;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: #f0f0f0;
  border-radius: 4px;
}

.instruction-list {
  counter-reset: item;
  list-style-type: none;
  padding: 0;
}

.instruction-list li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
}

.instruction-list li:before {
  content: counter(item);
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: #FF4B4B;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.translator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.faq-item {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
  color: #333;
  margin-top: 0;
  font-size: 1.1rem;
}

/* Product Features */
.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.5rem 0;
}

.feature {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background-color: #f5f5f5;
  border-radius: 3px;
  color: #666;
}

/* Hero Section Enhancement */
.bracelet-hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(to right, #ff6b6b, #FF4B4B);
  color: white;
  margin-bottom: 2rem;
}

.bracelet-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .translator-container {
    grid-template-columns: 1fr;
  }
  
  .bracelet-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-card {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .bracelet-hero {
    padding: 2rem 1rem;
  }
  
  .bracelet-hero h1 {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .accordion-header {
    padding: 1rem;
  }
  
  .accordion-header h2 {
    font-size: 1.1rem;
  }
}

/* View More Button */
.view-more-container {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.view-more-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: #FF4B4B;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1.1rem;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.view-more-btn:hover {
  background-color: #e53935;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.view-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
} 