/* ============================
   Sections: Header, Hero, About, Products, Contact, Footer
============================= */

/*Header: Tagline, Logo, Nav, Icons*/
/* Top Tagline */
.top-tagline {
  background-color: #111;
  color: #bbb;
  font-size: 0.9rem;
  text-align: center;
  padding: 10px 0;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Header Main */
.header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px 40px;
  background: linear-gradient(to right, #1a1a1a, #2c2c2c);
}

/* Logo */
.logo a {
  text-decoration: none;
}

.logo-text {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1.2px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.logo-text:hover {
  transform: scale(1.05);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* Navigation */
.main-nav .nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
  justify-content: center;
}

.main-nav .nav-list a {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.main-nav .nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #00c6ff;
  transition: width 0.3s ease;
}

.main-nav .nav-list a:hover {
  color: #00c6ff;
}

.main-nav .nav-list a:hover::after {
  width: 100%;
}

/* Icons */
.header-icons {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.header-icons a {
  color: #fff;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.header-icons a:hover {
  color: #00c6ff;
}

.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
}

.hero-content {
  margin-bottom: 80px;
  padding: 0 20px;
  animation: fadeInUp 1.5s ease-out;
  z-index: 2;
  position: relative;
  width: 100%;
  max-width: 1200px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(90deg, #ff6a00, #ee0979, #00c6ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
}

.hero-tagline {
  font-size: 1.8rem;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(90deg, #00c6ff, #007acc);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

.banner-inputs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.banner-inputs input {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.banner-inputs input:focus {
  outline: none;
  box-shadow: 0 0 0 3px #00c6ff55;
}

.products h2,
.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: linear-gradient(135deg, var(--brand-primary-color) 0%, var(--brand-secondary-color) 100%);
}

.curved-section {
  position: relative;
  background: linear-gradient(to right, #ffffff, #f0f0f0);
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.curve-top,
.curve-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  z-index: -1;
}

.curve-top {
  top: 0;
  transform: rotate(180deg);
}

.curve-bottom {
  bottom: 0;
}

.products.curved-section {
  background: linear-gradient(to right, #f5f5f5, #ffffff);
}

.products-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

/* Product Card - Refined 80/20 Hover Effect */
.product-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  text-align: center;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* Product Image - Normal State */
.product-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  z-index: 1;
}

.product-image img {
  width: 100%;
  max-width: 200px;
  height: 160px;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

/* TUX Standard: Minimal 80% Image Expansion on Hover */
.product-card:hover .product-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 80%;
  margin: 0;
  border-radius: 16px;
  z-index: 2;
}

.product-card:hover .product-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 16px;
  object-fit: cover;
  transform: scale(1.02);
}

/* Carousel Enhancement & Fallback Styles */
.splide {
  visibility: hidden;
}

.splide.is-initialized {
  visibility: visible;
}

.carousel-fallback {
  visibility: visible !important;
}

.carousel-fallback .splide__track {
  overflow: visible !important;
  height: auto !important;
}

.carousel-fallback .splide__list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 1.5rem !important;
  padding: 1rem 0 !important;
  list-style: none !important;
}

.carousel-fallback .splide__slide {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
}

/* Carousel Loading State */
.splide:not(.is-initialized) .splide__list {
  opacity: 0.5;
}

@media (max-width: 768px) {
  .splide__arrows {
    display: none;
  }
  
  .splide__pagination {
    bottom: -2rem;
  }
}

/* Enhanced Product Info Layout */
.product-info-enhanced {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  z-index: 3;
  position: relative;
}

/* Hide info content on hover to show only buttons */
.product-card:hover .product-info-enhanced {
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

/* Keep actions visible and positioned at bottom */
.product-card:hover .product-actions {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 10;
  /*background: rgba(0, 0, 0, 0.8);*/
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

/* Product Actions - Dual Button Layout */
.product-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
  transition: all 0.3s ease;
  z-index: 10;
  position: relative;
  pointer-events: auto;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  color: #495057;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn.view {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

.action-btn.view:hover {
  background: linear-gradient(135deg, #764ba2, #553c9a);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  color: white;
}

.action-btn.share {
  background: #f8f9fa;
  border-color: #dee2e6;
}

.action-btn.share:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  transform: translateY(-1px);
}

.action-btn i {
  font-size: 0.8rem;
}

/* TUX Standard: Clean Hover - No Overlays, Buttons Only */
/* All overlay pseudo-elements removed for minimal design */

/* TUX Standard: Enhanced Product Content Styling */
.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #333;
  line-height: 1.3;
  text-align: center;
}

.product-key-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.key-point {
  font-size: 0.8rem;
  color: #666;
  padding: 0.3rem 0.6rem;
  background: rgba(0, 123, 255, 0.05);
  border-left: 2px solid #007bff;
  border-radius: 0 6px 6px 0;
  line-height: 1.3;
  font-weight: 500;
  transition: all 0.2s ease;
}

.key-point:hover {
  background: rgba(0, 123, 255, 0.1);
  border-left-color: linear-gradient(135deg, var(--brand-primary-color) 0%, var(--brand-secondary-color) 100%);
  transform: translateX(2px);
}

/* Responsive key points */
@media (max-width: 768px) {
  .key-point {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Hover Action Buttons - Positioned at bottom with title visible */
.product-actions {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease 0.1s, visibility 0.3s ease 0.1s;
  z-index: 4;
}

.product-card:hover .product-actions {
  opacity: 1;
  visibility: visible;
}

/* Ensure action buttons are tappable on touch devices (no hover) */
@media (hover: none) and (pointer: coarse) {
  .product-actions {
    opacity: 1;
    visibility: visible;
  }
  .product-image { z-index: 1; }
  .product-actions { z-index: 3; }
}

.action-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  opacity: 1;
  transform: translateY(0);
}

.action-btn.view {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.action-btn.share {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.action-btn.view:hover {
  background: linear-gradient(135deg, #764ba2, #553c9a);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.action-btn.share:hover {
  background: rgba(255, 255, 255, 1);
}

/* Info Icon */
.info-icon {
  display: inline-block;
  margin-top: 10px;
  color: linear-gradient(135deg, var(--brand-primary-color) 0%, var(--brand-secondary-color) 100%);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.info-icon:hover {
  transform: scale(1.2);
}

.thumbnail-carousel {
  margin-top: 1rem;
}

.thumbnail-image {
  width: 100px;
  height: auto;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.thumbnail-image:hover {
  transform: scale(1.05);
}

/* Splide Arrows */
.splide__arrow {
  background: linear-gradient(135deg, var(--brand-primary-color) 0%, var(--brand-secondary-color) 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

.splide__arrow:hover {
  background: linear-gradient(135deg, var(--brand-primary-color) 0%, var(--brand-secondary-color) 100%);
}

.splide__arrow--prev {
  left: -40px;
}

.splide__arrow--next {
  right: -40px;
}

/* Mobile carousel adjustments */
@media (max-width: 768px) {
  .splide__arrow--prev {
    left: 10px;
    z-index: 2;
  }

  .splide__arrow--next {
    right: 10px;
    z-index: 2;
  }
  
  .splide__pagination {
    bottom: -40px;
  }
  
  .splide__pagination__page {
    background: linear-gradient(135deg, var(--brand-primary-color) 0%, var(--brand-secondary-color) 100%);
    width: 12px;
    height: 12px;
    margin: 0 4px;
  }
  
  .splide__pagination__page.is-active {
    background: linear-gradient(135deg, var(--brand-primary-color) 0%, var(--brand-secondary-color) 100%);
  }
}

/* Ensure basic Splide structure is visible */
.splide__track {
  overflow: hidden;
}

.splide__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.splide__slide {
  flex-shrink: 0;
  display: block;
}

@media (max-width: 480px) {
  .splide__arrow {
    display: none; /* Hide arrows on very small screens, use pagination instead */
  }
  
  .splide__track {
    padding: 0 10px; /* Add padding for swipe area */
  }
  
  .splide__list {
    display: flex !important;
  }
  
  .splide__slide {
    display: block !important;
    min-height: 300px; /* Ensure slides have minimum height */
  }
}

/*about-section*/
.about h2,

.about-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.about-us h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.about-intro {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
}

.timeline-section {
  margin-top: 4rem;
  text-align: center;
}

.timeline-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.timeline-card h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: linear-gradient(135deg, var(--brand-primary-color) 0%, var(--brand-secondary-color) 100%);
}


.contact.curved-section {
  background: linear-gradient(to right, #ffffff, #e8f0ff);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.contact-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-content input,
.contact-content textarea {
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
}

.contact-content button {
  background-color: linear-gradient(135deg, var(--brand-primary-color) 0%, var(--brand-secondary-color) 100%);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-content button:hover {
  background-color: linear-gradient(135deg, var(--brand-primary-color) 0%, var(--brand-secondary-color) 100%);
}

footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
}

footer a {
  color: #00c6ff;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

/* ============================
   Scoped Styles: Product Card
============================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}
.best-sellers h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #333;
}

.best-sellers .subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.action-btn.view {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.action-btn.share {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.action-btn.view:hover {
  background: linear-gradient(135deg, #764ba2, #553c9a);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.action-btn.share:hover {
  background: rgba(255, 255, 255, 1);
}
