/* ===== INDEX SPECIFIC STYLES ===== */

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--dark);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
}

.section-title p {
  color: var(--gray);
  font-size: 16px;
  margin-top: 15px;
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 50px;
  height: 50px;
  border: 4px solid #eee;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 13px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-left span {
  margin-right: 20px;
}

.top-bar-left i {
  margin-right: 5px;
  color: var(--primary);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-bar-right a {
  color: var(--white);
  transition: var(--transition);
}

.top-bar-right a:hover {
  color: var(--primary);
}

.top-social {
  display: flex;
  gap: 12px;
}

.header .logo img{
  width: 90px;
  height: 90px;
}

/* ===== HERO SLIDER ===== */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide .slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  transition: transform 6s ease;
}

.hero-slide.active .slide-bg {
  transform: scale(1);
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26,26,46,0.7) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 600px;
}

.hero-content .subtitle {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
  color: var(--primary);
  font-weight: 500;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.2s;
}

.hero-slide.active .hero-content .subtitle {
  opacity: 1;
  transform: translateY(0);
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  line-height: 1.2;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.4s;
}

.hero-slide.active .hero-content h1 {
  opacity: 1;
  transform: translateY(0);
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.6s;
}

.hero-slide.active .hero-content p {
  opacity: 0.9;
  transform: translateY(0);
}

.hero-content .hero-btns {
  display: flex;
  gap: 15px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.8s;
  flex-wrap: wrap;
}

.hero-slide.active .hero-content .hero-btns {
  opacity: 1;
  transform: translateY(0);
}

.hero-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-nav button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.hero-nav button.active {
  background: var(--primary);
  border-color: var(--primary);
}

.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.hero-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  pointer-events: all;
  backdrop-filter: blur(5px);
}

.hero-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ===== FEATURES BAR ===== */
.features-bar {
  background: var(--white);
  padding: 30px 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  position: relative;
  z-index: 5;
  margin-top: -40px;
  border-radius: 10px;
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  background: var(--white);
  padding: 30px 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  position: relative;
  z-index: 5;
  border-radius: 10px;
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
}

.feature-item i {
  font-size: 35px;
  color: var(--primary);
}

.feature-item h4 {
  font-size: 15px;
  margin-bottom: 3px;
  color: var(--dark);
  font-weight: 600;
}

.feature-item p {
  font-size: 12px;
  color: var(--gray);
}

/* ===== CATEGORIES ===== */
.categories {
  padding: 80px 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.category-card {
  position: relative;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}

.category-content {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 2;
  color: var(--white);
}

.category-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin-bottom: 5px;
}

.category-content p {
  font-size: 14px;
  opacity: 0.8;
}

.category-content .cat-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
}

.category-content .cat-link:hover {
  color: var(--white);
}

.category-content .cat-link i {
  margin-left: 5px;
  transition: var(--transition);
}

.category-content .cat-link:hover i {
  margin-left: 10px;
}

/* ===== PRODUCTS ===== */
.products {
  padding: 80px 0;
}

.product-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 25px;
  border: 2px solid #eee;
  border-radius: 30px;
  background: transparent;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(10, 186, 181, 0.05);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-card.hidden {
  display: none;
}

.product-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  z-index: 2;
  background: var(--primary);
}

.badge-sale {
  background: var(--primary);
}

.badge-new {
  background: var(--secondary);
}

.badge-hot {
  background: var(--secondary);
}

.product-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.1);
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-image::after {
  opacity: 1;
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-category {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-info h3 {
  font-size: 16px;
  color: var(--dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-info h3 a:hover {
  color: var(--primary);
}

.product-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

.product-price .old-price {
  font-size: 14px;
  color: var(--gray);
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 400;
}

.product-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.product-rating i {
  color: var(--gold);
  font-size: 13px;
}

.product-rating i.empty {
  color: #ddd;
}

.rating-text {
  font-size: 13px;
  color: var(--gray);
}

.add-to-cart-btn {
  width: 100%;
  padding: 12px 20px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

.add-to-cart-btn:hover {
  background: var(--primary);
}

.product-overlay {
  display: none;
}

.add-to-cart-btn.added {
  background: var(--success);
}

.load-more-wrap {
  text-align: center;
  margin-top: 40px;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ===== FOOTER EXTENDED ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about .logo {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.footer h3 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-links a i {
  margin-right: 8px;
  font-size: 10px;
  color: var(--primary);
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 14px;
}

.footer-contact li i {
  color: var(--primary);
  margin-top: 3px;
  min-width: 15px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: var(--primary);
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .hero {
    height: 70vh;
    min-height: 500px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .features-bar {
    margin-top: 0;
    border-radius: 0;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    height: 250px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .countdown-item .number {
    width: 60px;
    height: 60px;
    font-size: 24px;
    line-height: 60px;
  }

  .promo-content .discount {
    font-size: 50px;
  }

  .promo-content h2 {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }
  .header .logo img{
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .header .logo img{
    width: 50px;
    height: 50px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content .hero-btns {
    flex-direction: column;
  }

  .countdown {
    gap: 10px;
  }

  .countdown-item .number {
    width: 50px;
    height: 50px;
    font-size: 20px;
    line-height: 50px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .promo-content .discount {
    font-size: 40px;
  }

  .promo-content h2 {
    font-size: 22px;
  }

  .newsletter-content h2 {
    font-size: 26px;
  }
}
