/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0; padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
  background: #f9f9f9;
  color: #222;
  line-height: 1.5;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: #111;
  color: white;
  padding: 15px 0;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo{
  font-size: 1.8rem;
  padding-bottom: auto;
}
.logo-text.underline {
  font-size: 1.8rem;
  font-weight: bold;
  border-bottom: 2px solid rgb(255, 255, 255); /* underline only under TekiVolt */ 
  display: inline-block; /* underline fits only the text width */
}

.tagline {
  font-size: 0.8rem;
  color: #ffffff;
  margin-top: 1px; /* space below underline */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}
nav ul li a:hover {
  color: #0af;
}
.search-cart {
  display: flex;
  align-items: center;
  gap: 15px;
}
input[type="search"] {
  padding: 6px 10px;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
}
.cart-icon {
  cursor: pointer;
  position: relative;
}
.cart-count {
  background: #0af;
  color: white;
  border-radius: 50%;
  font-size: 0.8rem;
  padding: 2px 7px;
  position: absolute;
  top: -8px;
  right: -8px;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0; /* all slides stacked at left */
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  color: white;
  text-shadow: 0 0 6px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  padding-left: 50px;
  
  /* We'll animate transform, not left */
  transition: transform 0.7s ease-in-out;
  transform: translateX(100%); /* start off screen right */
  z-index: 0;
  opacity: 1;
}

.slide.active {
  transform: translateX(0);  /* visible slide */
  z-index: 2;
}

.slide.prev {
  transform: translateX(-100%); /* slide off left */
  z-index: 1;
}


.hero-slider .container {
  max-width: 1200px;
}

.btn-primary {
  background: #0af;
  padding: 12px 30px;
  font-size: 1.1rem;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn-primary:hover {
  background: #0088cc;
}

/* Featured Categories */
.categories {
  margin: 50px 0 35px 0;
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}
.category-card {
  background: white;
  flex: 1 1 180px;
  max-width: 220px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
  text-align: center;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.category-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.category-card h3 {
  padding: 12px 10px;
  font-weight: 600;
  color: #333;
}

/* Product Grid */
.products {
  max-width: 1200px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  gap: 25px;
}
.product-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding-bottom: 12px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}
.product-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.product-card img {
  border-radius: 8px 8px 0 0;
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #fefefe;
}
.product-info {
  padding: 12px 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-info h4 {
  font-weight: 600;
  margin-bottom: 6px;
  color: #111;
}
.product-info .price {
  font-weight: 700;
  color: #0af;
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.add-to-cart-btn {
  background: #0af;
  border: none;
  color: white;
  font-weight: 600;
  padding: 8px 0;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.add-to-cart-btn:hover {
  background: #0088cc;
}

/* Trust Section */
.trust {
  background: #fff;
  padding: 25px 15px;
  text-align: center;
  box-shadow: 0 1px 8px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}
.trust p {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: #222;
  color: #bbb;
  padding: 20px 15px;
  text-align: center;
  font-size: 0.9rem;
}
footer a {
  color: #0af;
  margin: 0 10px;
}
footer a:hover {
  text-decoration: underline;
}
/* Slider navigation buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  font-size: 2.5rem;
  padding: 0 12px;
  cursor: pointer;
  border-radius: 3px;
  user-select: none;
  transition: background 0.3s ease;
  z-index: 10;
}
.slider-btn:hover {
  background: rgba(0,0,0,0.7);
}

.prev-btn {
  left: 15px;
}
.next-btn {
  right: 15px;
}

/* Pagination dots */
.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dots button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}
.slider-dots button.active {
  background: #0af;
}


/* Responsive */
@media (max-width: 768px) {
  .hero-slider {
    height: 320px;
    padding-left: 25px;
  }
  .hero-slider .container {
    max-width: 100%;
  }
  .hero-slider h1 {
    font-size: 2.5rem;
  }
  .hero-slider p {
    font-size: 1rem;
    max-width: 100%;
  }
  nav ul {
    gap: 15px;
  }
  .categories {
    justify-content: center;
  }
}
