/* Variáveis e fonte somente no escopo do slider */
    #tdsProductSlider {
      --tds-slider-red: #e30613;
      --tds-slider-dark: #222;
      --tds-slider-gray: #f7f9f7;
      --tds-slider-border: #e5e5e5;
      font-family: 'Avenir Next','Aptos',sans-serif;
	  
      /* Se precisar que o pai também libere overflow, aplicar overflow: visible no wrapper do site */
    }

    /* Slider wrapper */
    #tdsProductSlider {
      max-width: 1400px;
      background: #fff;
      border-radius: 8px;
      overflow: hidden; /* este overflow só esconde o slide, as setas fogem porque o container interno é visible */
      margin: 0 auto;
    }

    /* Container e trilha */
    #tdsProductSlider .tds-slider-container {
      position: relative;
      overflow: visible;  /* libera as setas */
      background: transparent;
    }
    #tdsProductSlider .tds-slider-track {
      display: flex;
      transition: transform 0.6s ease-in-out;
    }
    #tdsProductSlider .tds-slider-slide {
      min-width: 100%;
      display: flex;
      justify-content: center;
    }

    /* Grid de cards */
    #tdsProductSlider .tds-products-grid {
      display: grid;
      grid-template-columns: repeat(4,1fr);
      gap: 20px;
      width: 100%;
      padding: 20px;
      box-sizing: border-box;
    }
    #tdsProductSlider .tds-product-card {
      background: #fff;
      border: 1px solid var(--tds-slider-border);
      border-radius: 8px;
      overflow: hidden;
      transition: transform .3s ease;
    }
    #tdsProductSlider .tds-product-card:hover {
      transform: translateY(-5px);
    }
    #tdsProductSlider .tds-product-image {
      height: 200px;
      background-size: cover;
      background-position: center;
      position: relative;
    }
    #tdsProductSlider .tds-product-image::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(45deg, rgba(227,6,19,0.8), rgba(227,6,19,0.6));
      opacity: 0;
      transition: opacity .3s ease;
    }
    #tdsProductSlider .tds-product-card:hover .tds-product-image::after {
      opacity: 1;
    }
    #tdsProductSlider .tds-product-content {
      padding: 20px;
    }
    #tdsProductSlider .tds-product-title {
      margin: 0 0 10px;
      font-size: 18px;
      font-weight: 700;
      color: var(--tds-slider-dark);
      text-transform: uppercase;
      letter-spacing: .5px;
		height: 55px;
    }
    #tdsProductSlider .tds-product-description {
      margin: 0 0 15px;
      font-size: 14px;
      line-height: 1.6;
      color: #666;
	  text-align: left;
    }
    #tdsProductSlider .tds-product-button {
      background: var(--tds-slider-red);
      color: #fff;
      border: none;
      border-radius: 4px;
      padding: 10px 20px;
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      cursor: pointer;
      transition: background .3s ease, transform .3s ease;
    }
    #tdsProductSlider .tds-product-button:hover {
      background: #c20510;
      transform: translateY(-1px);
    }

    /* Ativa apenas o slide corrente */
    #tdsProductSlider .tds-product-slide-content {
      display: none;
      width: 100%;
    }
    #tdsProductSlider .tds-product-slide-content.active {
      display: block;
      animation: fadeIn .6s ease-out;
    }
    @keyframes fadeIn {
      from { opacity:0; } 
      to   { opacity:1; }
    }

    /* Classes de cor específicas */
    #tdsProductSlider .tds-product-image.fotovoltaicas {
      background: linear-gradient(135deg,#4a90e2,#357abd);
    }
    #tdsProductSlider .tds-product-image.drenagem {
      background: linear-gradient(135deg,#67b26f,#4d7c0f);
    }
    #tdsProductSlider .tds-product-image.rodovias {
      background: linear-gradient(135deg,#708090,#2f4f4f);
    }

    /* Setas (reduzidas e z-index maior) */
    #tdsProductSlider .tds-slider-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: var(--tds-slider-red);
      border: 2px solid #fff;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 18px;
      cursor: pointer;
      z-index: 99;
      transition: transform .3s ease, background .3s ease;
      box-shadow: 0 3px 6px rgba(0,0,0,0.4);
    }
    #tdsProductSlider .tds-slider-next {
      right: 0px;
    }
    #tdsProductSlider .tds-slider-nav:hover {
      background: #c20510;
      transform: translateY(-50%) scale(1.1);
    }

    /* Responsivo */
    @media(max-width:768px){
      #tdsProductSlider .tds-products-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 20px 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
      }
      
      #tdsProductSlider .tds-products-grid::-webkit-scrollbar {
        display: none;
      }
      
      #tdsProductSlider .tds-product-card {
        min-width: calc(100vw - 60px);
        max-width: calc(100vw - 60px);
        flex-shrink: 0;
        scroll-snap-align: center;
        margin: 0;
      }
      
      #tdsProductSlider .tds-product-image {
        height: 180px;
      }
      
      #tdsProductSlider .tds-product-content {
        padding: 15px;
      }
      
      #tdsProductSlider .tds-product-title {
        font-size: 16px;
        margin-bottom: 8px;
      }
      
      #tdsProductSlider .tds-product-description {
        font-size: 13px;
        margin-bottom: 12px;
      }
      
      #tdsProductSlider .tds-slider-nav {
        width: 36px;
        height: 36px;
        font-size: 16px;
      }
    }