* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #F2F3EB;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px !important;
}

.left-links, .right-links {
  display: flex;
  gap: 30px;
  flex: 1;
  flex-grow: 0 !important;
  flex-basis: content !important;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}



.logo-container {
  display: flex;
  justify-content: center;
  width: 95%;
}

.logo-svg {
  width: 120px;
  height: auto;
  transition: transform 0.3s ease;
}


.nav {
  display: flex;
  justify-content: center;
  gap: 20px; 
  flex-shrink: 0;
  margin-left: auto;
}

.left-links a, .right-links a {
  display: inline-block; 
  width: auto; 
  min-width: 120px; 
  padding: 0 20px; 
  height: 40px;
  line-height: 40px;
  font-size: 18px;
  text-decoration: none;
  color: #333;
  border: 2px solid #333;
  letter-spacing: 2px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all .35s;
  touch-action: manipulation;
  overflow: hidden;
}


.left-links a span, .right-links a span {
  position: relative;
  z-index: 2;
}

.left-links a:after, .right-links a:after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: black;
  transition: all .35s;
  z-index: -1;
}


.left-links a:hover, .right-links a:hover {
  color: white;
  position: relative;
  z-index: 2;
}

.left-links a:hover:after, .right-links a:hover:after {
  width: 100%;
}

.hero {
  background-size: cover;
  background-position: center;
  height: 100vh;
  min-height: 600px;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 
      -1px -1px 0 #000,
      1px -1px 0 #000,
      -1px 1px 0 #000,
      1px 1px 0 #000;

}

.hero-content p {
  font-weight: bold;
  font-size: 1.2rem;
  text-shadow: 
      -1px -1px 0 #000,
      1px -1px 0 #000,
      -1px 1px 0 #000,
      1px 1px 0 #000;
}

.shop-now-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 1rem;
  color: white;
  background-color: #333;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.shop-now-btn:hover {
  background-color: #555;
  transform: scale(1.05);
}

.products-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 30px;
  padding: 2rem 5%;
  max-width: 1700px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .products-container {
      grid-template-columns: repeat(3, 1fr);
      max-width: 1000px;
  }


}

@media (max-width: 992px) {
  .products-container {
      grid-template-columns: repeat(2, 1fr);
      max-width: 700px;
  }


}

@media (max-width: 768px) {
  .nav {
      flex-direction: row !important;
      position: relative;
      justify-content: space-between !important;
      gap: 8px;
      padding: 0 10px !important;
      flex-wrap: nowrap !important;
      overflow: visible !important;
  }

  header {
      padding: 0.5rem 1rem;
  }

  .header-container {
      padding:0.5rem 0 !important;
      overflow: visible !important;
  }

  .logo {
      flex-shrink: 0;
  }

  .logo-container {
      position: absolute;
      left: 50%;
      transform: translateX(-40%);
      width: auto !important;
      order: 0 !important;
  }

  .left-links, .right-links {
      display: flex !important;
      flex: 1 1 auto !important;
      gap: 8px !important;
      min-width: 0 !important;
  }

  .left-links {
      order: -1;
      justify-content: flex-start;
      margin-right: 0 !important;
  }

  .right-links {
      order: 1;
      justify-content: flex-end;
      margin-left: 0 !important;
  }
  

  .logo-svg {
      width: 75px !important;
      margin: 0 2px;
  }

  .products-container {
      grid-template-columns: 1fr;
      padding: 1rem;
  }
  
  .product-heading {
      font-size: 2rem;
      padding: 30px 20px;
  }

  .nav-links {
      display: flex !important;
      flex-wrap: wrap;
      flex-direction: row;
      gap: 8px;
      padding:0 5px;
      margin-left: auto;
  }
  
  .left-links a, .right-links a {
      min-width: 80px !important; 
      width: max-content !important;
      border-width: 2px !important;
      padding: 0 12px !important;
      font-size: 13px !important;
      height: 34px !important;
      line-height: 34px !important;
      letter-spacing: 0.5px !important;
      flex-shrink: 1;
      overflow: visible !important;
  }

  .left-links, .right-links::-webkit-scrollbar {
      display: none;
  }

  .quick-view-body {
      grid-template-columns: 1fr !important;
      gap: 1rem;
  }

  .quick-view-content {
      width: 95% !important;
      max-height: 85vh;
  }
  
  .quick-view-buttons {
      flex-direction: column;
  }
  
  .quick-view-image {
      position: absolute !important;
      width: 100%;
      height: 100%;
      object-fit: contain !important;
      transition: opacity 0.3s ease-in-out;
  }

  .quick-view-images {
      position: relative;
      height: 50vh !important;
      min-height: 250px;
      width: 100%;
  }

  .quick-view-image:not(.active) {
      opacity: 0;
  }



}

.product-heading {
  padding: 50px 20px;
  text-align: center;
  font-size: 2.5rem;
  color: #333;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  position: relative;
  min-height: 500px;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-image-container {
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: 1.5s shine linear infinite;
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #f8f9fa;
  flex-grow: 1;
}

@keyframes shine {
to {
  background-position-x: -200%;
}
}

.carousel-images {
  position: relative;
  height: 100%;
  transition: transform 0.5s ease;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.5s ease;
  opacity: 0;
  position: absolute;
}

.product-image.active {
  opacity: 1;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 2;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: #fff;
  transform: scale(1.1);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

.product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 15px;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.product-description {
  color: #636e72;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 60px;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.original-price {
  color: #95a5a6;
  text-decoration: line-through;
  font-size: 14px;
  font-weight: 400;

}

.discounted-price {
  color: #2ecc71;
  font-size: 1.1rem;
  font-weight: 700;
}

.product-footer {
  margin-top: auto;
  padding-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.button-group {
  display: flex;
  gap: 8px;
  width: 100%;
}

.view-details-btn {
  flex: 1;
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 15px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.view-details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.amazon-button {
  flex: 1;
  background: #ff9900;
  color: white;
  border: none;
  padding: 12px 15px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.amazon-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.sold-out-badge {
  background: #bdc3c7;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.about {
  background-color: #f9f9f9;
  padding: 50px 20px;
  text-align: center;
}

footer {
  background-color: #333;
  color: white;
  padding: 30px;
  text-align: center;
}

.social-links a {
  color: white;
  margin-right: 1rem;
  text-decoration: none;
}

.quick-view-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px 0;
}

.quick-view-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-view-content {
  background: white;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  animation: modalSlide 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalSlide {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.quick-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.quick-view-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 8px;
}

.quick-view-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.quick-view-images {
  position: relative;
  height: auto;
  min-height: 400px;
  touch-action: pan-y;
  overflow: hidden;
}

.quick-view-image {
  position: absolute !important; 
  height: 100%;
  width: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
  opacity: 0 !important;
}


.quick-view-image.active {
  opacity: 1 !important;
}

.quick-view-price {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.original-price-large {
  font-size: 1.2rem;
  color: #95a5a6;
  text-decoration: line-through;
  margin-right: 1rem;
}

.quick-view-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.quick-view-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.connect-button {
  flex: 1;
  background: blueviolet;
  color: white;
  border: none;
  padding: 12px 15px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.connect-button:hover {
  background: #2980b9 !important;
}

@media (max-width: 480px) {

  .nav {
      gap: 4px !important;
      padding: 0 5px !important;
  }

  .left-links a, .right-links a {
      min-width: 60px !important;
      padding: 0 8px !important;
      font-size: 11px !important;
      font-weight: bold !important;
  }
  
  .logo {
      margin-right: 10px;
  }
  
  .logo-svg {
      width: 65px !important;
  }

  .left-links, .right-links {
      gap: 10px;
  }

  header {
      padding: 0.5rem;
  }
  

  .quick-view-images {
      height: 40vh !important;
      min-height: 250px !important;
  }

  .quick-view-image {
      object-fit: cover;
      object-position: center top;
  }
  
  .quick-view-buttons .amazon-button {
      font-size: 14px;
      padding: 10px;
  }

}

.skeleton-card {
  display: flex;
  flex: 1 0 auto;
  height: auto;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  min-height: 500px;
}

.skeleton-image {
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: 1.5s shine linear infinite;
  height: 250px;
}

.skeleton-content {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 250px;
}

.skeleton-line {
  background: #eee;
  height: 12px;
  width: 100%;
  border-radius: 4px;
  animation: 1.5s shine linear infinite;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-line.medium {
  width: 80%;
}

.skeleton-line.long {
  width: 90%;
}

.skeleton-button {
  background: #eee;
  height: 40px;
  border-radius: 8px;
  margin-top: auto;
  width: 100%;
  min-width: 120px;
  animation: 1.5s shine linear infinite;
}

