.landing-page-products {
  padding-top: 60px;
  padding-bottom: 60px;
}

h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
}

.brand-section {
  max-width: 1280px;
  margin: auto;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 40px;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.brand-heading{
  margin-bottom: 60px;
  color: #a81a27;
}

.card img {
  width: 200px;
  height: auto;
  padding: 6px;
  object-fit: cover;
}

.wheel-card .card-title {
  font-weight: 600;
  font-size: 30px;
  padding-top: 12px;
}

.wheel-card {
  display: flex;
  width: 250px;
  padding-bottom: 12px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.wheel-card:hover {
  background-color: #CE202F;
  color: #FFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.more-brand-card {
  width: 200px;
  height: auto;
}

.more-brand-card:hover{
  scale: 1.5;
  z-index: 999;
}

.more-brands-title {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  margin: 48px 0 24px;
}

.tire-card-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 60px;
}

.tire-card {
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  margin: auto;
  padding: 20px;
  min-width: 250px;
  flex: 1 1 45%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background-color: #FFF;
}

.tire-card:hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.15); /* soft dark overlay */
  pointer-events: none;
  transition: 0.25s ease;
}

/* Smooth transition */
.tire-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0);  /* no overlay by default */
  transition: 0.25s ease;
}

.tire-video{
  width: 250px;
  height: 250px;
}

.tire-image {
  width: 260px;
  height: 260px;
  object-fit: contain;
  border-radius: 50%;
  margin-right: -40px;
  z-index: 1;
  animation: tirerotate 10s infinite;
}

.link-brand{
  text-decoration: none;
  color: #0f0f0f;
}

.ribbon-kosic {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
}
.ribbon-kosic {
  --f: .5em; /* control the folded part */ 
  position: absolute;
  top: 0;
  right: 0;
  line-height: 1.8;
  padding-inline: 1lh;
  padding-bottom: var(--f);
  border-image: conic-gradient(#0008 0 0) 51%/var(--f);
  clip-path: polygon(100% calc(100% - var(--f)),100% 100%,calc(100% - var(--f)) calc(100% - var(--f)),var(--f) calc(100% - var(--f)), 0 100%,0 calc(100% - var(--f)),999px calc(100% - var(--f) - 999px),calc(100% - 999px) calc(100% - var(--f) - 999px));
  transform: translate(calc((1 - cos(45deg))*100%), -100%) rotate(45deg);
  transform-origin: 0% 100%;
  background-color: #Acc10c; /* the main color  */
  }

.ribbon-kelfire {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);

}
.ribbon-kelfire {
  --f: .5em; /* control the folded part */ 
  position: absolute;
  top: 0;
  right: 0;
  line-height: 1.8;
  padding-inline: 1lh;
  padding-bottom: var(--f);
  border-image: conic-gradient(#0008 0 0) 51%/var(--f);
  clip-path: polygon(100% calc(100% - var(--f)),100% 100%,calc(100% - var(--f)) calc(100% - var(--f)),var(--f) calc(100% - var(--f)), 0 100%,0 calc(100% - var(--f)),999px calc(100% - var(--f) - 999px),calc(100% - 999px) calc(100% - var(--f) - 999px));
  transform: translate(calc((1 - cos(45deg))*100%), -100%) rotate(45deg);
  transform-origin: 0% 100%;
  background-color: #ff5f00; /* the main color  */
  }


@keyframes tirerotate{
  50% {transform: rotate(180deg);}
}
  
.tire-content {
  border-radius: 8px;
  margin-left: -20px;
  flex: 1;
  text-align: center;
}

.tire-content img{
  width: 200px; 
  height: 60x;
}
.tire-title {
  font-size: 36px;
  font-weight: 700;
  color: #0f0f0f;

}

.tire-subtitle {
  font-size: 18px;
  color: #0f0f0f;
}

.tire-img-wrapper {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tire-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tire-info {
  padding: 20px;
  text-align: center;
  background: white;
  width: 100%;
}

.tire-title span {
  display: none;
}

.tire-link{
  text-decoration: none;
  color: #0f0f0f;
}

.product-tire {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.animated-gradient {
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  height: 100%;
  margin-bottom: 48px;
}


@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#kosic:hover,
#kelfire:hover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

#kosic:hover {
  background-image: url('img/kosic_bg.png');
}

#kelfire:hover {
  background-image: url('img/kelfire_bg.png');
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  .tire-card {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    text-align: center;
  }

  .tire-image {
    margin-right: 0;
    margin-bottom: 12px;
  }

  .tire-content {
    margin-left: 0;
    width: 100%;
  }

  .banner {
    cursor: pointer;
    background-color: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
  }
}

@media (max-width: 600px) {
  .landing-page-products .card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    justify-items: center;
  }

  .landing-page-products .card {
    width: 100%;
    max-width: 160px;
  }

  .landing-page-products .brand-section {
    width: 91%;
    margin: 16px;
    padding: 12px;
  }

  .landing-page-products .card img {
    width: 150px;
    height: auto;
  }

  .landing-page-products .card-title {
    font-size: 18px;
  }

  .card-grid .more-brand-card {
    width: 150px;
    height: auto;
    align-items: center;
  }

  .landing-page-gallery {
    padding: 16px;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
  }

  .extra-images {
    display: none;
    grid-column: span 2;
  }

  .load-more-wrapper {
    margin-top: 16px;
    text-align: center;
  }

  #loadMoreBtn {
    padding: 12px 24px;
    background-color: #ce202f;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
  }

  #loadMoreBtn:hover {
    background-color: #a81a27;
  }

  .tire-card-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding:0px;
  }

  .tire-title{
    font-size: 48px;
  }

  .tire-subtitle{
    font-size: 24px;
  }
}