.tf-hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

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

.tf-hero-slide {
  position: relative;
  min-width: 100%;
  overflow: hidden;
}

.tf-hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tf-hero-slide-img {
  display: block;
  width: 100%;
  height: auto;
}

.tf-hero-slider[data-image-size="cover"] .tf-hero-slide-img { object-fit: cover; }
.tf-hero-slider[data-image-size="contain"] .tf-hero-slide-img { object-fit: contain; }
.tf-hero-slider[data-image-size="fill"] .tf-hero-slide-img { object-fit: fill; }

.tf-hero-slide a {
  display: block;
  width: 100%;
}

/* Arrows */
.tf-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, opacity .2s;
  opacity: 0;
}

.tf-hero-slider:hover .tf-hero-arrow {
  opacity: 1;
}

.tf-hero-arrow:hover {
  background: rgba(0,0,0,0.6);
}

.tf-hero-arrow-prev { left: 16px; }
.tf-hero-arrow-next { right: 16px; }

/* Dots */
.tf-hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.tf-hero-dot {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}

.tf-hero-dot.active {
  background: #fff;
}

/* Product Carousel */
.tf-product-carousel-wrap {
  position: relative;
}

.tf-product-carousel {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  gap: 0;
}

.tf-product-carousel .tf-product-card {
  flex-shrink: 0;
  min-width: 0;
}

/* Carousel arrows on sides */
.tf-product-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  background: #fff;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tf-product-carousel-arrow svg {
  width: 36px;
  height: 36px;
}

.tf-product-carousel-arrow:hover {
  background: #34495E;
  color: #fff;
  border-color: #34495E;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tf-product-carousel-prev { left: -24px; }
.tf-product-carousel-next { right: -24px; }

@media (max-width: 767px) {
  .tf-product-carousel-prev { left: -16px; }
  .tf-product-carousel-next { right: -16px; }
}

/* Dots */
.tf-product-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.tf-product-carousel-dots .tf-hero-dot {
  border-color: #ccc;
}

.tf-product-carousel-dots .tf-hero-dot.active {
  background: #34495E;
  border-color: #34495E;
}

/* Section Heading */
.tf-section-heading {
  display: flex;
  flex-direction: column;
}

.tf-sh-align-left { align-items: flex-start; text-align: left; }
.tf-sh-align-center { align-items: center; text-align: center; }
.tf-sh-align-right { align-items: flex-end; text-align: right; }

.tf-sh-title {
  margin: 0;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tf-heading-divider {
  border: 0;
  border-top-style: solid;
  border-top-color: #0077E5;
  display: inline-block;
}

/* Category Slider */
.tf-cat-slider-wrap {
  position: relative;
}

.tf-cat-track {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  gap: 20px;
}

.tf-cat-card {
  flex-shrink: 0;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  transition: background .3s, border-color .3s, transform .3s, box-shadow .3s;
}

.tf-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.tf-cat-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tf-cat-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.tf-cat-thumb {
  width: 70px;
  height: 70px;
  overflow: hidden;
  margin-bottom: 16px;
}

.tf-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tf-cat-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
}

.tf-cat-name {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.3;
  transition: color .3s;
}

.tf-cat-count {
  font-size: 0.85rem;
  transition: color .3s;
}

/* Category arrows */
.tf-cat-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tf-cat-arrow svg {
  width: 36px;
  height: 36px;
}

.tf-cat-arrow:hover {
  background: #34495E !important;
  color: #fff !important;
  border-color: #34495E !important;
}

.tf-cat-arrow-prev { left: -22px; }
.tf-cat-arrow-next { right: -22px; }

/* Category dots */
.tf-cat-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.tf-cat-dot {
  width: 12px;
  height: 12px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}

.tf-cat-dot.active {
  background: #34495E;
  border-color: #34495E;
}

/* Testimonial Slider */
.tf-testi-slider-wrap {
  position: relative;
}

.tf-testi-track {
  display: flex;
  overflow: hidden;
}

.tf-testi-card {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, transform .3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.tf-testi-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.tf-testi-review {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  flex: 1;
  margin-bottom: 20px;
  font-style: italic;
}

.tf-testi-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
}

.tf-testi-name {
  font-weight: 600;
  font-size: 1rem;
  color: #34495E;
}

.tf-testi-city {
  font-size: 0.85rem;
  color: #888;
}

/* Testimonial arrows */
.tf-testi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tf-testi-arrow svg {
  width: 36px;
  height: 36px;
}

.tf-testi-arrow:hover {
  background: #34495E;
  color: #fff !important;
  border-color: #34495E !important;
}

.tf-testi-arrow-prev { left: -22px; }
.tf-testi-arrow-next { right: -22px; }

/* Testimonial dots */
.tf-testi-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.tf-testi-dot {
  width: 12px;
  height: 12px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s, border-color .2s;
}

.tf-testi-dot.active {
  background: #34495E;
  border-color: #34495E;
}

/* FAQ */
.tf-faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tf-faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.tf-faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: #f8f8f8;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .25s, color .25s;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}

.tf-faq-icon {
  flex-shrink: 0;
  display: flex;
  transition: transform .25s;
}

.tf-faq-item.active .tf-faq-icon {
  transform: rotate(45deg);
}

.tf-faq-answer {
  padding: 20px;
  background: #fff;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid #e0e0e0;
  word-break: break-word;
}

.tf-faq-answer p {
  margin: 0 0 12px;
}

.tf-faq-answer p:last-child {
  margin: 0;
}

/* Page Hero */
.tf-ph-hero {
  position: relative;
  background-color: #34495E;
  background-size: cover;
  background-position: center;
  width: 100%;
}

.tf-ph-overlay {
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
}

.tf-ph-inner {
  width: 100%;
  padding: 0 10px;
}

.tf-ph-title {
  font-size: 1.6rem;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.tf-ph-desc {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  text-align: center;
}

/* Image Boxes Grid */
.tf-img-boxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.tf-img-boxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.tf-img-box {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e8e8;
}

.tf-img-box-image {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 160px;
}

.tf-img-box-col2-full .tf-img-box-image {
  min-height: 320px;
}

.tf-img-box .tf-img-box-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tf-img-box-col1-top, .tf-img-box-col3-top { grid-row: 1; }
.tf-img-box-col1-btm, .tf-img-box-col3-btm { grid-row: 2; }

.tf-img-box-col1-top, .tf-img-box-col1-btm { grid-column: 1; }
.tf-img-box-col2-full { grid-column: 2; grid-row: 1 / -1; }
.tf-img-box-col3-top, .tf-img-box-col3-btm { grid-column: 3; }

.tf-img-box-overlay {
  position: absolute;
  inset: 0;
  transition: background .3s;
}

.tf-img-box:hover .tf-img-box-overlay {
  background: rgba(0,0,0,0.15);
}

.tf-img-box-title-wrap {
  padding: 12px 16px;
  background: #fff;
}

.tf-img-box-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.tf-img-box-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

@media (max-width: 767px) {
  .tf-img-boxes-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .tf-img-box {
    min-height: 0;
  }
  .tf-img-box-image {
    flex: none;
    min-height: 0;
  }
  .tf-img-box .tf-img-box-bg {
    position: static;
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
  }
  .tf-img-box-col1-top,
  .tf-img-box-col1-btm,
  .tf-img-box-col2-full,
  .tf-img-box-col3-top,
  .tf-img-box-col3-btm {
    grid-column: auto;
    grid-row: auto;
  }
}
