/*
Theme Name: Jea Fadenzauber
Theme URI: https://www.JeaFadenzauber.de
Author: Jea Fadenzauber
Description: Handgemachte Kinderkleidung – offizielles Homepage-Theme
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: jea-fadenzauber
*/

/* ── Google Fonts werden in functions.php eingebunden ── */

:root {
  --primary:      #7c3aed;
  --primary-fg:   #ffffff;
  --amber-light:  #fef3c7;
  --amber-mid:    #fde98a;
  --amber-warm:   #f5d96b;
  --amber-400:    #fbbf24;
  --amber-500:    #f59e0b;
  --amber-600:    #d97706;
  --amber-900:    #78350f;
  --text:         #292524;
  --text-muted:   #92400e;
  --white:        #ffffff;
  --radius-pill:  999px;
  --radius-card:  1.5rem;
  --shadow-lg:    0 10px 40px rgba(0,0,0,0.12);
  --shadow-xl:    0 20px 60px rgba(0,0,0,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--amber-light);
  color: var(--text);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── UTILITIES ── */
.container { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }
.text-primary { color: var(--primary); }
.pacifico { font-family: 'Pacifico', cursive; }

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 243, 199, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(180,120,0,0.15);
  padding: 1rem 1.5rem;
}
.site-nav .inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav .logo {
  font-family: 'Pacifico', cursive;
  font-size: 1.4rem;
  color: var(--primary);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(41,37,36,0.7);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links .btn-shop {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 4px 16px rgba(124,58,237,0.25);
  transition: opacity 0.2s, transform 0.2s;
}
.nav-links .btn-shop:hover { opacity: 0.9; transform: scale(1.03); color:black}
.nav-links .btn-korb {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 4px 16px rgba(124,58,237,0.25);
  transition: opacity 0.2s, transform 0.2s;
}
.nav-links .btn-korb:hover { opacity: 0.9; transform: scale(1.03); color:black }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0 0.5rem;
  border-top: 1px solid rgba(180,120,0,0.15);
  margin-top: 0.75rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.mobile-menu .btn-shop {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.75rem;
  border-radius: var(--radius-pill);
  text-align: center;
  font-weight: 700;
}
.mobile-menu .btn-korb {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.75rem;
  border-radius: var(--radius-pill);
  text-align: center;
  font-weight: 700;
}
/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--amber-warm), var(--amber-mid) 50%, var(--amber-light));
  padding: 4rem 1.5rem 0;
  min-height: 620px;
}

.hero-sparkle {
  position: absolute;
  pointer-events: none;
  user-select: none;
  color: rgba(245,158,11,0.35);
  font-size: 1.5rem;
  line-height: 1;
}

.hero-badge-top {
  position: absolute;
  top: 2rem;
  right: 1.5rem;
  z-index: 10;
  background: rgba(255,255,255,0.92);
  border: 2px solid #fecdd3;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.6rem 0.8rem;
  border-radius: 50% 50% 50% 0 / 50% 50% 50% 0;
  box-shadow: var(--shadow-lg);
  text-align: center;
  line-height: 1.4;
  max-width: 110px;
  transform: rotate(3deg);
}

.hero-grid {
  max-width: 1152px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  align-items: end;
  gap: 0;
}

/* Tiger column */
.hero-tiger {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.hero-tiger img {
  width: 280px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.18));
}

/* Brand text column */
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem 2.5rem 3rem;
}
.hero-brand h1 {
  font-family: 'Pacifico', cursive;
  color: var(--primary);
  line-height: 0.85;
}
.hero-brand h1.jea    { font-size: clamp(4rem, 10vw, 7.5rem); }
.hero-brand h1.faden  { font-size: clamp(2.8rem, 7vw, 5.5rem); }

.hero-tagline {
  margin-top: 1.75rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(124,58,237,0.2);
}

.hero-desc {
  margin-top: 1.25rem;
  color: rgba(41,37,36,0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 280px;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 0.875rem;
  box-shadow: 0 8px 24px rgba(124,58,237,0.3);
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.9; transform: scale(1.04); }

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 0.875rem;
  transition: background 0.2s;
  display: inline-block;
}
.btn-outline:hover { background: rgba(124,58,237,0.06); }

/* Romper column */
.hero-romper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 0 4rem;
}
.hero-romper-glow {
  position: absolute;
  inset: 1rem;
  background: rgba(251,191,36,0.22);
  border-radius: 60% 40% 40% 60%;
  filter: blur(2rem);
}
.hero-romper-img {
  position: relative;
  z-index: 1;
}
.hero-romper-img img {
  width: 230px;
  height: auto;
  border-radius: 2.5rem;
  box-shadow: var(--shadow-xl);
}
.badge-einzigartig {
  position: absolute;
  bottom: 2rem;
  left: -1.5rem;
  background: var(--amber-500);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  text-align: center;
  line-height: 1.4;
  transform: rotate(-6deg);
  z-index: 2;
}

/* ── FEATURES ── */
.section-features {
  padding: 6rem 1.5rem;
  background: #fff8e1;
}
.section-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
  text-align: center;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3.5rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1152px;
  margin: 0 auto;
}
.feature-card {
  background: var(--amber-light);
  border: 1px solid rgba(180,120,0,0.12);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(124,58,237,0.1);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}
.feature-title {
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── PRODUCTS ── */
.section-products {
  padding: 6rem 1.5rem;
  background: linear-gradient(to bottom, #fef9c3, var(--amber-light));
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1152px;
  margin: 0 auto;
}
.product-card {
  background: var(--white);
  border: 1px solid rgba(180,120,0,0.12);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); color:black; }
.product-img-wrap {
  position: relative;
  height: 240px;
  background: var(--amber-mid);
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}
.product-body { padding: 1.5rem; }
.product-name {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.product-link {
  font-weight: 900;
  font-size: 0.875rem;
  color: var(--primary);
  transition: text-decoration 0.2s;
}
.product-link:hover { text-decoration: underline; }

/* ── CTA / WHATSAPP ── */
.section-cta {
  padding: 6rem 1.5rem;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
.section-cta::before,
.section-cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.section-cta::before {
  width: 400px; height: 400px;
  background: rgba(167,139,250,0.2);
  top: -100px; right: -100px;
}
.section-cta::after {
  width: 320px; height: 320px;
  background: rgba(196,181,253,0.15);
  bottom: -80px; left: -80px;
}
.cta-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--primary-fg);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.cta-desc {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.usp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.usp-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.95rem;
}
.usp-list li::before {
  content: '✓';
  background: rgba(251,191,36,0.25);
  color: var(--amber-400);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 900;
  font-size: 0.8rem;
}
.cta-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.qr-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  text-align: center;
  width: 100%;
  max-width: 260px;
}
.qr-placeholder {
  width: 180px;
  height: 180px;
  background: #f3f4f6;
  border-radius: 0.75rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.qr-label { font-weight: 900; font-size: 0.85rem; color: var(--text); }
.qr-sub   { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }
.btn-amber {
  background: var(--amber-400);
  color: var(--amber-900);
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: background 0.2s;
  text-align: center;
  width: 100%;
  max-width: 260px;
  display: block;
}
.btn-amber:hover { background: #fcd34d; }

/* ── FOOTER ── */
.site-footer {
  background: #1c1917;
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 1.5rem;
}
.footer-inner {
  max-width: 1152px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.footer-logo {
  font-family: 'Pacifico', cursive;
  font-size: 1.4rem;
  color: #fcd34d;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fcd34d; }
.footer-socials { display: flex; gap: 0.75rem; }
.social-btn {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  transition: background 0.2s, color 0.2s;
}
.social-btn:hover { background: #fcd34d; color: var(--amber-900); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(252,211,77,0.75);
  font-weight: 600;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .hero { padding: 3rem 1rem 0; min-height: unset; }
  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .hero-tiger { order: 2; justify-content: center; }
  .hero-tiger img { width: 200px; }
  .hero-brand { order: 1; padding: 0.5rem 1rem 2rem; }
  .hero-romper { order: 3; justify-content: center; padding-bottom: 3rem; }
  .hero-romper-img img { width: 180px; }
  .hero-badge-top { right: 0.5rem; top: 0.75rem; }

  .cta-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
}
/* ── WOOCOMMERCE GLOBAL INTEGRATION BLOCK ── */

/* Preise global anpassen */
.product-price,
.woocommerce-Price-amount,
.amount,
ul.products li.product .price,
div.product p.price {
  color: var(--primary) !important;
  font-weight: 900;
  font-size: 1.25rem;
}

/* AJAX "In den Warenkorb" Buttons an Figma anpassen */
.jea-add-to-cart-wrapper .add_to_cart_button,
.woocommerce version .button.add_to_cart_button,
.woocommerce div.product .button.single_add_to_cart_button,
.woocommerce #respond input#submit.alt, 
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt {
  background-color: var(--primary) !important;
  color: var(--primary-fg) !important;
  padding: 0.75rem 1.75rem !important;
  border-radius: var(--radius-pill) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 900 !important;
}
/* ==========================================================================
   JEA FADENZAUBER - MODERN DROPDOWN FILTER DESIGN
   ========================================================================== */
.jea-dropdown-filter-container {
    margin-bottom: 30px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-family: 'Nunito', sans-serif !important;
}

.jea-dropdown-label {
    font-weight: 700 !important;
    color: #2d1343 !important; /* Dunkles Text-Lila */
    font-size: 15px !important;
}

/* Das Eingabefeld selbst stylen */
.jea-custom-dropdown {
    font-family: 'Nunito', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #7b2cbf !important; /* Ihr Fadenzauber-Lila */
    background-color: #f9f5ff !important; /* Sanftes Pastell-Violett */
    border: 2px solid #7b2cbf !important;
    padding: 10px 20px !important;
    border-radius: 30px !important; /* Schön abgerundet */
    outline: none !important;
    cursor: pointer !important;
    min-width: 240px !important;
    transition: border-color 0.3s ease !important;
}

.jea-custom-dropdown:focus {
    border-color: #9d4edd !important; /* Hellers Lila beim Anklicken */
}

/* MOBILE ANPASSUNG */
@media (max-width: 768px) {
    .jea-dropdown-filter-container {
        flex-direction: column !important; /* Untereinander auf kleinen Bildschirmen */
        align-items: flex-start !important;
        gap: 6px !important;
    }
    .jea-custom-dropdown {
        width: 100% !important; /* Volle Breite fürs Handy */
    }
}
/* ==========================================================================
   JEA FADENZAUBER - ARCHIV-DROPDOWNS RIGOROS AUSBLENDEN
   ========================================================================== */

/* Blendet alle Standard-, Block- und Archiv-Dropdowns der Kategorien aus */
.wp-block-product-categories,
.wp-block-product-categories-dropdown,
.wc-block-product-categories,
.wc-block-categories-dropdown,
.widget_product_categories,
.product-categories,
.taxonomy-description select,
.woocommerce-ordering + select,
select[name="product_cat"]:not(#jea-custom-cat-select),
[class*="block-product-categories"],
[class*="archive"] select:not(#jea-custom-cat-select) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* WICHTIGE SICHERUNG: Zwingt Ihr neues lila Dropdown, GARANTIERT sichtbar zu bleiben */
.jea-dropdown-filter-container,
#jea-custom-cat-select,
.jea-custom-dropdown {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}
