:root {
  --primary-color: #1e73be;
  --primary-hover: #155a91;
  --text-light: #fff;
  --bg-dark: #000;
  --bg-transparent: rgba(0, 0, 0, 0.4);
  --bg-transparent-dark: rgba(0, 0, 0, 0.6);
  --bg-light-transparent: rgba(255, 255, 255, 0.5);
  --bg-light-hover: rgba(255, 255, 255, 0.8);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

.home-hero {
  margin: 20px 0 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 450px;
  background: var(--bg-dark);
}

.hero-slider,
.hero-slider-track,
.hero-slider .slide,
.hero-slider img {
  height: 100%;
}

.hero-slider-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.hero-slider .slide {
  min-width: 100%;
  position: relative;
}

.hero-slider img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.hero-slider .slide-content {
  position: absolute;
  top: 15px;
  bottom: 15px;
  height: 85%;
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  background: var(--bg-transparent);
  border-radius: var(--border-radius);
  color: var(--text-light);
}

.hero-slider .slide-content.align-left {
  left: 5%;
  text-align: left;
}

.hero-slider .slide-content.align-right {
  right: 5%;
  text-align: right;
}

.hero-slider .slide-content.align-center {
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.hero-slider .slide-content h2 {
  color: #eee;
  font-weight: 700;
  font-size: 1.7rem;
  margin-bottom: 10px;
  text-align: left;
}

.hero-slider .slide-content p {
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 15px;
  text-align: left;
}

.hero-slider .slide-content .btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  transition: var(--transition);
  width: 320px;
  text-align: center;
}

.hero-slider .slide-content .btn:hover {
  background: var(--primary-hover);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-transparent);
  color: var(--text-light);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  font-size: 18px;
  line-height: 1;
  padding: 0;
  z-index: 10;
}

.hero-slider:hover .slider-btn {
  opacity: 1;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.slider-btn:hover {
  background: var(--bg-transparent-dark);
}

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--bg-light-transparent);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.slider-dots button:hover {
  background: var(--bg-light-hover);
  transform: scale(1.2);
}

.slider-dots button.active {
  background: var(--primary-color);
}

ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.products li.product {
  margin: 0;
  padding: 50px;
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.astra-shop-summary-wrap {
  padding: 10px;
}

ul.products li.product .woocommerce-LoopProduct-link,
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .price,
ul.products li.product .button,
ul.products li.product .nit-wsp-btn {
  padding: 0 12px;
}

ul.products li.product .woocommerce-loop-product__title {
  margin: 10px 0 8px;
}

ul.products li.product .price {
  margin-bottom: 12px;
}

ul.products li.product:hover {
  box-shadow: var(--shadow);
}

ul.products li.product .button {
  display: inline-block;
  padding: 10px;
  margin: 0 auto;
  text-align: center;
}

.nit-recomendados ul.products li.product .button {
  display: none !important;
}

.home-products.brands {
  margin: 60px 0;
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: 10px 0;
}

.brands-carousel {
  overflow: hidden;
  width: 100%;
}

.brands-track {
  display: flex;
  align-items: center;
  transition: transform 0.5s ease-in-out;
}

.brand-box {
  flex: 0 0 calc(100% / 9);
  max-width: calc(100% / 9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 15px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.brand-box:hover {
  transform: scale(1.05);
}

.brand-box a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 90px;
}

.brand-box img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.brand-box:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.brand-prev,
.brand-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-light-transparent);
  border: none;
  color: var(--text-dark);
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  opacity: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.home-products.brands:hover .brand-prev,
.home-products.brands:hover .brand-next {
  opacity: 1;
}

.brand-prev:hover,
.brand-next:hover {
  background: var(--primary-color);
  color: #fff;
}

.brand-prev {
  left: 10px;
}

.brand-next {
  right: 10px;
}

.nitcusco-sticky {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  background: #fff !important;
  box-shadow: var(--shadow);
  animation: nit-slideDown 0.22s ease;
}

@keyframes nit-slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.menu-item-logo {
  display: none;
}

.nitcusco-sticky .menu-item-logo {
  display: inline-block;
}

.sticky-menu-logo {
  max-height: 40px;
  width: auto;
  vertical-align: middle;
}

.main-header-menu .menu-item a i {
  margin-right: 8px;
  font-size: 1em;
  vertical-align: middle;
}

.home-products.categories {
  padding: 40px 0;
  text-align: center;
}

.home-products.categories h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.home-products.categories h5 {
  font-size: 1rem;
  font-weight: normal;
  margin-bottom: 30px;
}

.home-products.categories ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.home-products.categories ul.products li.product-category {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.home-products.categories ul.products li.product-category a img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  padding: 20px;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
  transition: transform 0.4s ease;
}

.home-products.categories ul.products li.product-category .woocommerce-loop-category__title {
  font-size: 1rem;
  font-weight: 600;
  padding: 15px 10px;
  color: #333;
  text-transform: capitalize;
  margin: 0;
  transition: color 0.3s ease;
  text-align: center;
}

.home-products.categories ul.products li.product-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.home-products.categories ul.products li.product-category:hover a img {
  transform: scale(1.1);
}

.home-products.categories ul.products li.product-category:hover .woocommerce-loop-category__title {
  color: var(--primary-color, #1e73be);
}

.home-products.offers,
.home-products.new-arrivals {
  margin: 60px 0;
  padding: 20px 0;
  border-radius: 10px;
}

.home-products.offers {
  background: #f2f2f2;
}

.home-products.new-arrivals {
  background: #f6faff;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.home-products.offers h2,
.home-products.new-arrivals h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 30px;
}

.home-products.new-arrivals h5 {
  text-align: center;
  font-size: 1rem;
  font-weight: normal;
  margin-bottom: 30px;
  color: #555;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.ast-onsale-card {
  background-color: #f73b1e !important;
  color: #fff !important;
}

.custom-product-gallery {
  display: flex;
  gap: 20px;
  width: auto;
  max-width: 600px;
  margin: 5px auto 30px;
  float: left;
}

.gallery-thumbnails {
  width: 100px;
  flex-shrink: 0;
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.gallery-thumbnails::-webkit-scrollbar {
  width: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.gallery-thumbnails .thumb-item {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.gallery-thumbnails .thumb-item:hover,
.gallery-thumbnails .thumb-item.active {
  opacity: 1;
  border-color: #007cba;
}

.gallery-thumbnails .thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.gallery-main {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.gallery-main .main-item {
  display: none;
}

.gallery-main .main-item:first-child {
  display: block;
}

.gallery-main .main-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.gallery-main .main-item a {
  display: block;
  position: relative;
  cursor: zoom-in;
}

.gallery-main .main-item a:hover::after {
  content: "🔍";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-main .main-item a:hover::after {
  opacity: 1;
}

.gallery-main .main-item a:hover img {
  opacity: 0.9;
}

#whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9999;
}

#whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#whatsapp-float a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

#whatsapp-float img {
  width: 35px;
  height: 35px;
}

#whatsapp-float a.pulse {
  animation: pulse 1s ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.woocommerce-Tabs-panel--specifications a.button.alt {
  background: #d32f2f;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
}

.woocommerce-Tabs-panel--specifications a.button.alt:hover {
  background: #b71c1c;
}

.nitcusco-whatsapp-btn {
  display: inline-block;
  margin: 0 0 0 10px !important;
  background: #25d366 !important;
  color: #fff !important;
  border-radius: 5px;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.nitcusco-whatsapp-btn:hover {
  background: #1ebe5b;
  color: #fff !important;
}

.new-row {
  margin-bottom: 50px;
}

.new-row-title {
  margin-bottom: 25px;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

.home-products.new-arrivals ul.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 0 10px;
}

.home-products.new-arrivals ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 4px 0 6px;
  letter-spacing: 0.2px;
  text-align: left;
}

.home-products.new-arrivals ul.products li.product {
  padding: 20px 15px;
  margin-bottom: 10px;
}

/* Media Queries */
@media (max-width: 768px) {
  .home-hero,
  .home-products.brands {
    display: none;
  }
  
  .home-products.categories ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .home-products.categories ul.products li.product-category a img {
    height: 180px;
  }
  
  .custom-product-gallery {
    flex-direction: column-reverse;
    width: 100%;
    max-width: 100%;
    gap: 15px;
  }
  
  .gallery-thumbnails {
    width: 100% !important;
    max-height: 100px;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 5px 0;
  }
  
  .thumb-item {
    flex-shrink: 0;
    width: 70px !important;
    height: 70px !important;
    margin-bottom: 0 !important;
  }
  
  .gallery-main {
    width: 100%;
    max-width: 100%;
  }
  
  .gallery-main .main-item img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
  }
  
  .gallery-main .main-item a::after {
    font-size: 20px;
    width: 40px;
    height: 40px;
  }
  
  .gallery-main .main-item a {
    cursor: pointer;
  }
}

@media (max-width: 480px) {
  .home-products.categories ul.products {
    grid-template-columns: 1fr;
  }
  
  .home-products.categories ul.products li.product-category a img {
    height: 150px;
  }
  
  .custom-product-gallery {
    gap: 10px;
  }
  
  .thumb-item {
    width: 60px !important;
    height: 60px !important;
  }
  
  .gallery-thumbnails {
    max-height: 80px;
  }
  
  .gallery-main .main-item img {
    max-height: 350px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .custom-product-gallery {
    max-width: 80%;
  }
  
  .gallery-thumbnails {
    width: 80px;
  }
  
  .thumb-item {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 1200px) {
  .brand-box {
    flex: 0 0 calc(100% / 6);
    max-width: calc(100% / 6);
  }
}

@media (max-width: 768px) {
  .brand-box {
    flex: 0 0 calc(100% / 4);
    max-width: calc(100% / 4);
  }
}

@media (max-width: 480px) {
  .brand-box {
    flex: 0 0 calc(100% / 2);
    max-width: calc(100% / 2);
  }
}

@media (min-width: 992px) {
  .home-products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 0 20px;
  }
  
  .home-products ul.products li.product {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .home-products ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-products.new-arrivals ul.products {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 15px;
  }
}

@media (min-width: 1024px) {
  .home-products.new-arrivals ul.products {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
  }
}