/* ==================== Variables ==================== */
:root {
  --primary-color: #ff6b35;
  --secondary-color: #004e89;
  --text-dark: #1a1a1a;
  --text-gray: #666;
  --text-light: #999;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --spacing: 1rem;
}

/* ==================== Hero Slider ==================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: var(--text-dark);
}

.caticon{
    font-size: 36px;
    color: var(--primary-color);
}
.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 2;
}

.slide-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.8s ease-out;
}

.slide-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 2rem;
  max-width: 600px;
  line-height: 1.6;
  animation: slideUp 0.8s ease-out 0.2s backwards;
}

.aboutalllink{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

   color: var(--primary-color);
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);

  animation: slideUp 0.8s ease-out 0.4s backwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 32px;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
  animation: slideUp 0.8s ease-out 0.4s backwards;
}

.btn-primary:hover {
  background: #ff5722;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.slider-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active,
.dot:hover {
  background: #fff;
  transform: scale(1.2);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== Section Common ==================== */
.categories-section,
.featured-products,
.partners-section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.view-all:hover {
  gap: 0.75rem;
  color: #ff5722;
}

/* ==================== Categories ==================== */
.categories-section {
  background: var(--bg-light);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
}

.category-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.category-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: 50%;
  transition: var(--transition);
}

.category-card:hover .category-icon {
  background: rgba(255, 107, 53, 0.1);
  transform: scale(1.1);
}

.category-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.category-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 8px;
}

.category-count {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ==================== Products ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.product-card {
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e74c3c;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 2;
}

.product-image {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: var(--bg-light);
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-info {
  padding: 20px;
}

.product-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.product-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.product-title a:hover {
  color: var(--primary-color);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.price-old {
  color: var(--text-light);
  text-decoration: line-through;
  font-size: 0.875rem;
}

.price-new,
.price-current {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.25rem;
}

.product__stock {
  font-size: 0.85rem;
  font-weight: 500;
  color: #28a745;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product__stock::before {
  content: "✓";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #28a745;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  font-size: 0.75rem;
  font-weight: bold;
}

.btn-add-cart {
  width: 100%;
  padding: 12px;
  background: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: #003a6a;
  transform: translateY(-2px);
}

/* ==================== Partners ==================== */
.partners-section {
  background: var(--bg-light);
  overflow: hidden;
}

.partners-slider {
  overflow: hidden;
  padding: 20px 0;
}

.partners-track {
  display: flex;
  gap: 60px;
  animation: scroll 30s linear infinite;
}

.partner-item {
  flex-shrink: 0;
  width: 180px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.partner-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.partner-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.partner-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partners-track:hover {
  animation-play-state: paused;
}

/* ==================== Responsive ==================== */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 992px) {
  .hero-slider {
    height: 500px;
  }

  .categories-section,
  .featured-products,
  .partners-section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: 400px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .slider-btn.prev {
    left: 10px;
  }

  .slider-btn.next {
    right: 10px;
  }

  .slide-content .container {
    padding: 0 20px;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .categories-section,
  .featured-products,
  .partners-section {
    padding: 48px 0;
  }

  .partner-item {
    width: 140px;
    height: 60px;
  }
}

@media (max-width: 576px) {
  .hero-slider {
    height: 350px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .slider-dots {
    bottom: 20px;
  }
}

/* ==================== Container ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}