/* ── Sidebar sticky offset
   Adds admin-bar height when it's visible so spacing matches logged-out view
   ─────────────────────────────────────────────────────────────────────── */
.ta-fp-sidebar-sticky {
  top: 100px;
}

body.admin-bar .ta-fp-sidebar-sticky {
  top: calc(100px + var(--wp-admin--admin-bar--height, 32px));
}




/* ============================================================
   Module Card — base pattern (mirrors .sidebar-module)
   ============================================================ */
.ta-fp-module {
  background: #fff;
  padding-bottom: 20px;
  overflow: hidden;
}

.ta-fp-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #6CD3C2;
}

.ta-fp-module-header--center {
  justify-content: center;
}

.ta-fp-module-title {
  font-size: 18px;
  font-weight: 700;
  color: #27282c;
  margin: 0;
  line-height: 1.3;
}

.ta-fp-module-link {
  font-size: 13px;
  font-weight: 600;
  color: #6CD3C2;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.ta-fp-module-link:hover {
  color: #4db8a7;
  text-decoration: none;
}


/* ============================================================
   Hero Section
   ============================================================ */
.ta-fp-hero-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgb(224, 224, 224);
  margin-bottom: 32px;
}

.ta-fp-hero {
  border-radius: 7px;
  color: #fff;
}

@media (max-width: 991.98px) {
  .ta-fp-hero-wrap {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .ta-fp-hero {
    border-radius: 0;
  }
}

.ta-fp-hero-btn {
  font-weight: 600;
  transition: all 0.3s ease;
  border-width: 2px !important;
}

.ta-fp-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.ta-fp-stat-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  padding: 1rem 0.5rem;
  transition: all 0.3s ease;
}

.ta-fp-stat-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.ta-fp-hero-explore {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
}

.ta-fp-hero-explore::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

.ta-fp-hero-explore:hover {
  color: #fff;
  text-decoration: none;
}

.ta-fp-hero-explore:hover::after {
  width: 100%;
}


/* ============================================================
   Hero Animations (moved from inline <style>)
   ============================================================ */
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-10deg); }
  20%, 40% { transform: rotate(10deg); }
  50% { transform: rotate(0deg); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px) rotate(-15deg); }
  to   { opacity: 1; transform: translateX(0) rotate(-15deg); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px) rotate(25deg); }
  to   { opacity: 1; transform: translateX(0) rotate(25deg); }
}

@keyframes fadeInBottom {
  from { opacity: 0; transform: translateY(50px) rotate(12deg); }
  to   { opacity: 1; transform: translateY(0) rotate(12deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-fade-left   { animation: fadeInLeft 1s ease-out 0.3s both; }
.hero-fade-right  { animation: fadeInRight 1s ease-out 0.5s both; }
.hero-fade-bottom { animation: fadeInBottom 1s ease-out 0.4s both; }
.animate-fade-in  { animation: fadeIn 0.8s ease-out; }
.animate-slide-up { animation: slideUp 0.6s ease-out forwards; opacity: 0; }


/* ============================================================
   Categories Grid
   ============================================================ */
.ta-fp-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 4px;
  max-width: 100%;
  overflow: hidden;
}

.ta-fp-category-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  color: #27282c;
  transition: all 0.2s ease;
  min-width: 0;
  overflow: hidden;
}

.ta-fp-category-item:hover {
  background: #fff;
  border-color: #6CD3C2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: #27282c;
  text-decoration: none;
}

.ta-fp-category-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ta-fp-category-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #89D1C3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2d5f57;
  font-size: 16px;
}

.ta-fp-category-icon i.fa-kit {
  font-size: 1.35em;
  line-height: 1;
}

.ta-fp-category-name {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ta-fp-category-arrow {
  flex-shrink: 0;
  color: #d1d5db;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ta-fp-category-item:hover .ta-fp-category-arrow {
  color: #6CD3C2;
  transform: translateX(2px);
}


/* ============================================================
   Promotional Banners (compact row)
   ============================================================ */

/* ============================================================
   Popular Subcategories (shortcode output)
   ============================================================ */
.ta-popular-subcats {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 8px;
}

.ta-popular-subcat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  color: #27282c;
  transition: all 0.2s ease;
}

.ta-popular-subcat-item:hover {
  background: #fff;
  border-color: #6CD3C2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: #27282c;
  text-decoration: none;
}

.ta-popular-subcat-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #89D1C3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: #2d5f57;
  transition: background 0.2s ease;
}

.ta-popular-subcat-item:hover .ta-popular-subcat-icon {
  background: #6CD3C2;
}

.ta-popular-subcat-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ta-popular-subcat-name {
  font-size: 14px;
  font-weight: 600;
  color: #27282c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ta-popular-subcat-count {
  font-size: 12px;
  color: #71717a;
}

.ta-popular-subcat-arrow {
  flex-shrink: 0;
  color: #d1d5db;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ta-popular-subcat-item:hover .ta-popular-subcat-arrow {
  color: #6CD3C2;
  transform: translateX(2px);
}


/* ============================================================
   Promotional Banners (compact row)
   ============================================================ */
.ta-fp-banners {
  margin-bottom: 32px;
}

.ta-fp-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 12px;
  background: #fff;
  border: 1px solid rgb(224, 224, 224);
  border-radius: 8px;
  text-decoration: none;
  color: #27282c;
  transition: all 0.2s ease;
  text-align: center;
  height: 100%;
}

.ta-fp-banner:hover {
  border-color: #6CD3C2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  color: #27282c;
  text-decoration: none;
  transform: translateY(-2px);
}

.ta-fp-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(108, 211, 194, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #6CD3C2;
  transition: background 0.2s ease, color 0.2s ease;
}

.ta-fp-banner:hover .ta-fp-banner-icon {
  background: #6CD3C2;
  color: #fff;
}

.ta-fp-banner-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

/* Sidebar horizontal variant */
.ta-fp-banners--sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.ta-fp-banners--sidebar .ta-fp-banner {
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
  height: auto;
}

.ta-fp-banners--sidebar .ta-fp-banner-icon {
  width: auto;
  height: auto;
  font-size: 16px;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  color: #89D1C3;
}

.ta-fp-banners--sidebar .ta-fp-banner-icon i.fa-duotone {
  --fa-primary-color: #89D1C3;
  --fa-secondary-color: #89D1C3;
  --fa-secondary-opacity: 0.72;
}

.ta-fp-banners--sidebar .ta-fp-banner:hover .ta-fp-banner-icon i.fa-duotone {
  --fa-primary-color: #89D1C3;
  --fa-secondary-color: #89D1C3;
  --fa-secondary-opacity: 0.72;
}

.ta-fp-banners--sidebar .ta-fp-banner:hover .ta-fp-banner-icon {
  background: transparent;
  color: #89D1C3;
}

.ta-fp-banners--sidebar .ta-fp-banner-label {
  font-size: 12px;
}


/* ============================================================
   Product Grids inside modules
   ============================================================ */
.ta-fp-module .woocommerce ul.products {
  margin-bottom: 0;
}

.ta-fp-module .woocommerce ul.products .product-card {
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  overflow: hidden;
  transition: all 0.25s ease;
}

.ta-fp-module .woocommerce ul.products .product-card:hover {
  border-color: #6CD3C2 !important;
  box-shadow: 0 4px 16px rgba(108, 211, 194, 0.15) !important;
}

/* Rounded image top */
.ta-fp-module .woocommerce ul.products .product-card .product-card__image-wrapper img {
  border-radius: 8px 8px 0 0;
}

/* Title links — teal on hover instead of blue */
.ta-fp-module .product-card__title h2 a:hover,
.ta-fp-module .product-card__title .woocommerce-loop-product__title a:hover {
  color: #4db8a7 !important;
}

/* Vendor row — cleaner, no background */
.ta-fp-module .product-card__vendor {
  margin-top: auto;
  padding: 0.4rem 0 0 !important;
  background: transparent !important;
  border-top: 1px solid #f3f4f6;
  border-radius: 0 !important;
}

.ta-fp-module .product-card__vendor .details_creator_pflow {
  gap: 6px;
}

.ta-fp-module .product-card__vendor .details_creator_pflow img {
  width: 20px;
  height: 20px;
  border: 1.5px solid #e5e7eb;
  box-shadow: none;
}

.ta-fp-module .product-card__vendor .details_creator_pflow a {
  font-size: 0.75rem !important;
  font-weight: 500;
  color: #71717a !important;
}

.ta-fp-module .product-card__vendor .details_creator_pflow a:hover {
  color: #4db8a7 !important;
}

/* Badge — match teal brand */
.ta-fp-module .product-card__badge {
  background: rgba(45, 95, 87, 0.85);
  backdrop-filter: blur(6px);
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

/* Cart action — teal accent on front page modules */
.ta-fp-module .product-card__action a {
  color: #374151 !important;
}

.ta-fp-module .product-card__action a:hover {
  color: #2d5f57 !important;
  background: #f0fdf9 !important;
}

.ta-fp-module .product-card__action a.added {
  color: #059669 !important;
  background: #ecfdf5 !important;
}


/* ============================================================
   Testimonials Section
   ============================================================ */
.ta-fp-testimonials-section {
  padding: 48px 0;
}

.ta-fp-testimonials-module {
  max-width: 100%;
  margin: 0 auto;
}

.ta-fp-testimonials-sub {
  text-align: center;
  font-size: 14px;
  color: #71717a;
  margin: -4px 0 20px;
}

.ta-fp-testimonial-card {
  padding: 24px;
  position: relative;
}

.ta-fp-testimonial-quote {
  margin-bottom: 12px;
  display: block;
}

.ta-fp-testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 16px;
}

.ta-fp-testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ta-fp-testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 14px;
}

.ta-fp-testimonial-name {
  font-size: 13px;
  font-weight: 700;
  color: #27282c;
  letter-spacing: 0.02em;
}

/* Testimonial Controls */
.ta-fp-testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.ta-fp-testimonial-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #27282c;
  transition: all 0.2s ease;
}

.ta-fp-testimonial-nav:hover {
  border-color: #6CD3C2;
  color: #6CD3C2;
}

.ta-fp-testimonial-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ta-fp-testimonial-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ta-fp-testimonial-dots button.active {
  width: 24px;
  border-radius: 4px;
  background: #6CD3C2;
}

/* Carousel transitions */
.ta-fp-testimonials-module .carousel-item {
  transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

/* Fixed height so different-length testimonials don't cause layout jumps */
.ta-fp-testimonials-module .carousel-inner {
  min-height: 280px;
}

.ta-fp-testimonials-module .carousel-item .ta-fp-testimonial-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.ta-fp-testimonial-text {
  flex: 1;
}


/* ============================================================
   Newsletter Section
   ============================================================ */
.ta-fp-newsletter-section {
  padding: 0 0 48px;
}

.ta-fp-newsletter {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.ta-fp-newsletter-inner {
  padding: 16px 0;
}

.ta-fp-newsletter-icon {
  font-size: 2.5rem;
  color: #6CD3C2;
  margin-bottom: 12px;
}

.ta-fp-newsletter-title {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 8px !important;
  font-size: 20px !important;
}

.ta-fp-newsletter-sub {
  font-size: 14px;
  color: #71717a;
  margin-bottom: 20px;
}

.ta-fp-newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.ta-fp-newsletter-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ta-fp-newsletter-input:focus {
  outline: none;
  border-color: #6CD3C2;
  box-shadow: 0 0 0 3px rgba(108, 211, 194, 0.15);
}

.ta-fp-newsletter-btn {
  padding: 10px 24px;
  background: #6CD3C2;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.ta-fp-newsletter-btn:hover {
  background: #55b5a5;
}

.ta-fp-newsletter-disclaimer {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 12px;
  margin-bottom: 0;
}


/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991.98px) {
  .ta-fp-categories {
    grid-template-columns: repeat(3, 1fr);
  }

  .ta-popular-subcats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ta-fp-module .woocommerce ul.products li.product {
    width: 50% !important;
  }
}

@media (max-width: 740px) {
  .site-content {
    margin-top: -1px !important;
  }

  .ta-fp-module {
    padding: 0px;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }

  .ta-fp-module-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .ta-fp-module-title {
    font-size: 16px;
  }

  .ta-fp-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .ta-popular-subcats {
    grid-template-columns: 1fr;
  }

  .ta-fp-hero .display-4 {
    font-size: 2rem;
  }

  .ta-fp-hero .display-6 {
    font-size: 1.5rem;
  }

  .ta-fp-hero-wrap {
    border-radius: 0px !important;
  }

  .ta-fp-newsletter-form {
    flex-direction: column;
  }

  .ta-fp-testimonials-section,
  .ta-fp-newsletter-section {
    padding: 32px 0;
  }

  .ta-fp-testimonial-card {
    padding: 16px;
  }

  .ta-fp-testimonial-text {
    font-size: 14px;
  }

  .ta-fp-testimonials-module .carousel-inner {
    min-height: 340px;
  }

  .ta-fp-testimonials-module .carousel-item .ta-fp-testimonial-card {
    min-height: 300px;
  }

  .ta-fp-banners .row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }

  .ta-fp-banner {
    padding: 16px 8px;
  }

  .ta-fp-banner-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .ta-fp-banner-label {
    font-size: 11px;
  }

  /* ── Horizontal product scroll on mobile ── */
  .ta-fp-module .woocommerce {
    overflow: visible;
  }

  .ta-fp-module .woocommerce ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 4px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .ta-fp-module .woocommerce ul.products::-webkit-scrollbar {
    display: none;
  }

  .ta-fp-module .woocommerce ul.products li.product {
    flex: 0 0 62vw !important;
    width: 62vw !important;
    max-width: 62vw !important;
    min-width: 62vw !important;
    scroll-snap-align: start;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .ta-fp-module .woocommerce ul.products li.product:last-child {
    margin-right: 0 !important;
  }
}

@media (max-width: 380px) {
  .ta-fp-categories {
    grid-template-columns: 1fr;
  }

  .ta-fp-module .woocommerce ul.products li.product {
    flex: 0 0 75vw !important;
    width: 75vw !important;
    max-width: 75vw !important;
  }
}
