/*
 Theme Name:   Blocksy Child – Follow4You
 Theme URI:    https://follow4you.local
 Description:  Child Theme für Blocksy – Follow4You Anpassungen
 Author:       Follow4You
 Template:     blocksy
 Version:      1.0.0
 Text Domain:  blocksy-child
*/

/* =============================================
   Product Card Hover Border
   ============================================= */
[data-products] .product {
  position: relative;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}

[data-products] .product::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 2px solid transparent;
  z-index: 10;
  pointer-events: none;
  transition: border-color 0.3s ease;
}

[data-products] .product:hover {
  box-shadow: 0 8px 24px rgba(40, 114, 250, 0.15);
}

[data-products] .product:hover::before {
  border-color: #2872fa;
}

/* =============================================
   Hide "inkl. 19% USt." on archive/category pages
   ============================================= */
[data-products] .product .tax-info,
[data-products] .product .gzd-tax-info,
[data-products] .product .price-unit,
[data-products] .product .legal-price-info,
.woocommerce ul.products .tax-info {
  display: none !important;
}

/* =============================================
   Homepage Product Tabs
   ============================================= */
.f4y-product-tabs {
  max-width: 1100px;
  margin: 0 auto;
}

/* Tab Navigation */
.f4y-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.f4y-tab-btn {
  background: #f2f5f7;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #3A4F66;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.f4y-tab-btn:hover {
  border-color: #2872fa;
  color: #2872fa;
}

.f4y-tab-btn.active {
  background: #2872fa;
  border-color: #2872fa;
  color: #fff;
}

.f4y-tab-count {
  font-size: 11px;
  font-weight: 700;
  background: rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 1px 7px;
  line-height: 1.4;
}

.f4y-tab-btn.active .f4y-tab-count {
  background: rgba(255,255,255,0.25);
}

/* Products Grid */
.f4y-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .f4y-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .f4y-products-grid {
    grid-template-columns: 1fr;
  }
}

/* Product Card */
.f4y-product-card {
  display: block;
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.f4y-product-card:hover {
  border-color: #2872fa;
  box-shadow: 0 8px 24px rgba(40, 114, 250, 0.12);
}

.f4y-product-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f2f5f7;
}

.f4y-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.f4y-product-info {
  padding: 14px 16px;
}

.f4y-product-title {
  font-size: 14px;
  font-weight: 600;
  color: #192a3d;
  margin: 0 0 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.f4y-product-price {
  font-size: 15px;
  font-weight: 700;
  color: #2872fa;
}

.f4y-product-price del {
  color: #999;
  font-weight: 400;
  font-size: 13px;
}

.f4y-product-price ins {
  text-decoration: none;
}

/* Hide tax info in tabs too */
.f4y-product-price .tax-info,
.f4y-product-price .gzd-tax-info {
  display: none !important;
}

/* Footer Link */
.f4y-tabs-footer {
  text-align: center;
  margin-top: 24px;
}

.f4y-view-all-link {
  display: inline-block;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  color: #2872fa;
  border: 2px solid #2872fa;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.f4y-view-all-link:hover {
  background: #2872fa;
  color: #fff;
}

/* Loading Spinner */
.f4y-loading {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.f4y-loading::after {
  content: "";
  width: 32px;
  height: 32px;
  border: 3px solid #e1e8ed;
  border-top-color: #2872fa;
  border-radius: 50%;
  animation: f4y-spin 0.6s linear infinite;
}

@keyframes f4y-spin {
  to { transform: rotate(360deg); }
}

/* Tab panel fade in */
.f4y-tab-panel {
  animation: f4y-fadeIn 0.3s ease;
}

@keyframes f4y-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
