/*
Theme Name:     Twydil
Theme URI:      n/a
Template:       kadence
Author:         Masterhomepage GmbH
Author URI:     n/a
Description:    Child Theme for TWYDIL® / PAVESCO AG
Version:        1.1
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/


/* ═══════════════════════════════════
   1. GLOBAL RESETS & TYPOGRAPHY
   ═══════════════════════════════════ */

p {
  display: block;
  margin-block-start: 0em !important;
  margin-block-end: 0em !important;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  unicode-bidi: isolate;
}

b, strong {
  font-weight: 500 !important;
}

ul li::marker {
  color: #1A1A1A;
}

::placeholder {
  color: var(--global-palette3);
}

.elementor-heading-title {
  line-height: 1.2 !important;
}

.single-content h1.elementor-heading-title,
.single-content h2.elementor-heading-title,
.single-content h3.elementor-heading-title,
.single-content h4.elementor-heading-title,
.single-content h5.elementor-heading-title,
.single-content h6.elementor-heading-title,
.elementor-heading-title {
  margin-bottom: .25em !important;
}

input[type=text], input[type=email], input[type=url],
input[type=password], input[type=search], input[type=number],
input[type=tel], input[type=range], input[type=date],
input[type=month], input[type=week], input[type=time],
input[type=datetime], input[type=datetime-local],
input[type=color], textarea {
  color: #1A1A1A !important;
}

input[type=submit] {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ═══════════════════════════════════
   2. LAYOUT & RESPONSIVE PADDING
   ═══════════════════════════════════ */

.responsive-padding {
  padding-left: clamp(30px, 5.5vw, 150px);
  padding-right: clamp(30px, 5.5vw, 150px);
  box-sizing: border-box;
}

.entry.loop-entry,
.entry.single-entry {
  box-shadow: none !important;
}


/* ═══════════════════════════════════
   3. HEADER & NAVIGATION
   ═══════════════════════════════════ */

.site-header {
  padding-left: clamp(30px, 5.5vw, 150px);
  padding-right: clamp(30px, 5.5vw, 150px);
  box-sizing: border-box;
}

/* Schatten nur auf Seiten OHNE Transparent Header */
body:not(.transparent-header) .site-header,
body:not(.transparent-header) #masthead {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

.transparent-header .header-html a, .mobile-transparent-header .mobile-html-inner a {
  color: #fff !important;
}

/* Menüpunkte mit # nicht klickbar */
.menu-item > a[href="#"] { cursor: default; }




/* ═══════════════════════════════════
   4. WOOCOMMERCE – ALLGEMEIN
   ═══════════════════════════════════ */

.woocommerce img,
.woocommerce-page img {
  height: auto;
  max-width: 60%;
  object-fit: contain !important;
}

.woocommerce .woocommerce-tabs.wc-tabs-wrapper .accordion-header,
.woocommerce form .form-row label {
  font-weight: 400 !important;
}

.woocommerce form .form-row label,
.woocommerce a.remove {
  color: #1A1A1A !important;
  font-size: 90%;
}

.tw-result-count {
  font-size: 14px !important;
  color: #1A1A1A;
  font-weight: 300;
}

.woocommerce-ordering select {
  font-size: 13px;
  color: #999;
  background: white;
  border: 1px solid #ddd;
  padding: 8px 12px;
  font-family: inherit;
}

/* Variationen: Label + Select */
.elementor-add-to-cart table.variations th.label label {
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 1px;
  color: #555555 !important;
}

.elementor-add-to-cart table.variations td.value select {
  font-size: 16px !important;
  font-weight: 300 !important;
}

.elementor-widget-woocommerce-product-add-to-cart div.quantity input.qty {
  font-size: 16px !important;
  font-weight: 300 !important;
}

/* Variationen-Tabelle: Mobile stapeln */
table.variations {
  width: 100%;
  border-collapse: collapse;
}

@media (max-width: 640px) {
  table.variations,
  table.variations tbody,
  table.variations tr,
  table.variations th,
  table.variations td {
    display: block;
    width: 100%;
  }

  table.variations tr {
    padding: 12px 0;
  }

  table.variations th.label {
    padding: 0 0 6px 0;
    font-weight: 600;
  }

  table.variations td.value {
    padding: 0;
  }
}


/* ═══════════════════════════════════
   5. PRODUCT CARDS (Loop Grid)
   ═══════════════════════════════════ */

.e-loop-item {
  height: 100%;
}

.pcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s ease;
  cursor: pointer;
}

.pcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.pcard-img {
  height: 200px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.pcard-img img {
  max-height: 180px;
  max-width: 65%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Excerpt auf 2 Zeilen */
.pcard-info .elementor-widget-text-editor {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-cta {
  margin-top: auto;
}

/* Blog Posts: Links nicht klickbar */
.elementor-posts-container article a {
  pointer-events: none;
  cursor: default;
}


/* ═══════════════════════════════════
   6. KATEGORIE-BADGES
   ═══════════════════════════════════ */

.tw-badges {
  display: inline-flex !important;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 !important;
  border: none !important;
  margin-bottom: 6px;
}

.tw-badge {
  display: inline-block !important;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px solid #ddd;
  border-radius: 2px;
  background: transparent;
  color: #555555;
  line-height: 1.4;
}


/* ═══════════════════════════════════
   7. SMART TABS & ACCORDIONS
   ═══════════════════════════════════ */

.woocommerce.sptpro-smart-tabs .woocommerce-tabs.wc-tabs-wrapper .accordion-header .accordion-title a {
  color: #1A1A1A !important;
  font-weight: 300 !important;
}

/* Antidoping-Bild Mobile: volle Breite */
@media (max-width: 640px) {
  #tab-antidoping-certificate-the-twydil-solution img.size-full {
    min-width: 100% !important;
  }
}

@media (max-width: 719px) {
  .woocommerce div.product .woocommerce-tabs {
    border: none !important;
    margin-bottom: 2em;
  }

  .woocommerce.sptpro-smart-tabs .woocommerce-tabs.wc-tabs-wrapper ul.wc-tabs li a,
  html body.woocommerce.sptpro-smart-tabs .woocommerce-tabs.wc-tabs-wrapper .accordion-header .accordion-title a {
    text-align: left !important;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .woocommerce .woocommerce-tabs.wc-tabs-wrapper .accordion-header i.sp-accordion-icon {
    display: none !important;
  }
}


/* ═══════════════════════════════════
   8. BIBLIOGRAPHY STYLING
   ═══════════════════════════════════ */

#sp-smart-tab-content-720 p {
  margin-bottom: 1.2em !important;
  font-size: 0.95em;
  line-height: 1.4;
  color: #555;
}

#sp-smart-tab-content-720 p:last-child {
  margin-bottom: 0;
}

#sp-smart-tab-content-720 p:empty {
  display: none;
  margin: 0 !important;
}

#sp-smart-tab-content-720 a {
  word-break: break-all;
  color: #c00000;
}


/* ═══════════════════════════════════
   9. PDF DOWNLOAD LINKS
   ═══════════════════════════════════ */

.woocommerce-Tabs-panel a[href$=".pdf"],
.woocommerce-Tabs-panel a[href$=".PDF"],
.woocommerce-Tabs-panel a[href$=".PNG"] {
  color: #c00000;
  display: inline-block;
  margin-top: 1em;
  margin-bottom: 1em;
}


/* ═══════════════════════════════════
   10. INGREDIENT CHIPS – KNOWLEDGE BASE
   ═══════════════════════════════════ */

.ingredient-grid .jet-listing,
.ingredient-grid .jet-listing-grid,
.ingredient-grid .jet-listing-grid__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Ingredient-Inhalte auf Archivseite verstecken */
.post-type-archive-ingredient #ingredient-content,
.post-type-archive-ingredient #ingredient-content2,
.post-type-archive-ingredient #ingredient-content3 {
  display: none;
}

/* Chip-Container KB: scrollbar, Card-Style */
.ingredient-chip-grid-kb .jet-listing-grid__items {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding: 20px 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
.ingredient-chip-grid-kb .jet-listing-grid__items::-webkit-scrollbar {
  width: 5px;
}

.ingredient-chip-grid-kb .jet-listing-grid__items::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.ingredient-chip-grid-kb .jet-listing-grid__items::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border-radius: 3px;
}

.ingredient-chip-grid-kb .jet-listing-grid__items::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.ingredient-chip-grid-kb .jet-listing-grid__item {
  width: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.ingredient-chip-grid-kb .jet-listing-grid__item .elementor-element-198e8f8 {
  display: inline-block !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: #444 !important;
  background: #f5f6f8 !important;
  border: 1px solid #e2e4e8 !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
}

.ingredient-chip-grid-kb .jet-listing-grid__item .elementor-element-198e8f8:hover {
  background: #e8f0fe !important;
  border-color: #4a90d9 !important;
  color: #1a5fa8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 6px rgba(74, 144, 217, 0.15) !important;
}

/* Aktiver Chip KB */
.ingredient-chip-grid-kb .jet-listing-grid__item.is-active-chip .elementor-element-198e8f8 {
  background-color: #0078BF !important;
  color: #ffffff !important;
  border-color: #0078BF !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 128, 214, 0.3);
}

.is-active-chip .jet-listing-dynamic-field__content {
  color: #ffffff !important;
}


/* ═══════════════════════════════════
   11. INGREDIENT CHIPS – PRODUKTSEITE
   ═══════════════════════════════════ */

.ingredient-chip-grid-product .jet-listing-grid__items {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}

.ingredient-chip-grid-product .jet-listing-grid__item {
  width: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.ingredient-chip-grid-product .jet-listing-grid__item .elementor-element-198e8f8 {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  color: #555;
  background: #f7f8fa;
  border: 1px solid #e0e2e6;
  border-radius: 18px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ingredient-chip-grid-product .jet-listing-grid__item .elementor-element-198e8f8:hover {
  background: #e8f0fe;
  border-color: #4a90d9;
  color: #1a5fa8;
  box-shadow: 0 1px 4px rgba(74, 144, 217, 0.12);
}


/* ═══════════════════════════════════
   12. YITH REQUEST A QUOTE
   ═══════════════════════════════════ */

.widget_ywraq_mini_list_quote .raq-info {
  border: none !important;
}

/* Mini Widget: nur Cart-Icon + Zahl */
.widget_ywraq_mini_list_quote .raq_label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0 !important;
}

.widget_ywraq_mini_list_quote .raq-tip-counter {
  font-size: 14px !important;
  font-weight: 600;
}

.widget_ywraq_mini_list_quote .raq_label::before {
  content: "\f07a";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
}

/* Dropdown deaktivieren */
.widget_ywraq_mini_list_quote .yith-ywraq-list-wrapper {
  display: none !important;
}

/* Add to Quote Button + Responses */
.yith-ywraq-add-button a {
  font-size: 14px !important;
  font-weight: 300 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px;
}

.yith-ywraq-add-to-quote .yith_ywraq_add_item_response_message {
  font-size: 14px !important;
  font-weight: 300 !important;
}

.yith-ywraq-add-to-quote .yith_ywraq_add_item_browse_message a {
  text-decoration: underline !important;
}

/* Quote Summary Page */
#quote-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#quote-summary li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  display: flex;
  align-items: center;
  gap: 12px;
}

#quote-summary li:last-child {
  border-bottom: none;
}

#quote-summary .qty-input {
  width: 70px;
}

#quote-summary .line-label {
  flex: 1;
}

#quote-summary .product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 6px;
}

#quote-summary .remove-product {
  border: 1px solid rgba(0, 0, 0, .2);
  background: transparent;
  padding: 6px 10px;
  cursor: pointer;
}


/* ═══════════════════════════════════
   13. NUTRITION TABLES
   ═══════════════════════════════════ */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 15px;
}

.data-table thead th {
  text-align: left;
  font-weight: 600;
  color: #1a1a1a;
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid #0078BF;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.data-table thead th:not(:first-child) {
  text-align: right;
}

.data-table tbody td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 300;
  color: #555;
}

.data-table tbody td:not(:first-child) {
  text-align: right;
}

.data-table tbody tr:hover {
  background: #fafafa;
}

.data-table tbody tr.total-row td {
  font-weight: 600;
  color: #1a1a1a;
  border-top: 1px solid #ddd;
}

.data-table tbody tr.result-row td {
  font-weight: 600;
  color: #C8102E;
}

.table-note {
  font-size: 14px;
  color: #999;
  font-weight: 300;
  margin-top: 0.5rem;
  font-style: italic;
}

@media (max-width: 767px) {
  .data-table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table thead th {
    font-size: 11px;
    padding: 0.5rem;
  }

  .data-table tbody td {
    padding: 0.45rem 0.5rem;
    white-space: nowrap;
  }
}


/* ═══════════════════════════════════
   14. ANIMATIONS
   ═══════════════════════════════════ */

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

.ingredient-detail-section,
.ingredient-chip-grid-kb,
.ingredient-chip-grid-product {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ═══════════════════════════════════
   15. MOBILE – INGREDIENT CHIPS
   ═══════════════════════════════════ */

@media (max-width: 768px) {
  .ingredient-chip-grid-kb .jet-listing-grid__items {
    max-height: 150px;
    padding: 14px 16px;
    gap: 6px;
  }

  .ingredient-chip-grid-kb .jet-listing-grid__item .elementor-element-198e8f8 {
    padding: 5px 11px;
    font-size: 12px;
  }

  .ingredient-detail-section {
    padding: 24px 20px;
    margin-top: 20px;
    border-radius: 12px;
  }

  .ingredient-detail-section h2 {
    font-size: 20px;
    padding-left: 12px;
  }

  .ingredient-detail-section p {
    font-size: 14px;
    line-height: 1.65;
  }

  .ingredient-detail-section ul li {
    font-size: 14px;
    padding-left: 20px;
  }

  .ingredient-chip-grid-product .jet-listing-grid__items {
    gap: 6px;
  }

  .ingredient-chip-grid-product .jet-listing-grid__item .elementor-element-198e8f8 {
    padding: 4px 10px;
    font-size: 11.5px;
  }
}

@media (max-width: 480px) {
  .ingredient-chip-grid-kb .jet-listing-grid__items {
    max-height: 130px;
    padding: 12px;
  }

  .ingredient-detail-section {
    padding: 20px 16px;
  }

  .ingredient-detail-section h2 {
    font-size: 18px;
  }
}

.sp-tab__tab-content p a {
	color: #0078BF !important;
}


.woocommerce table.shop_table {
  margin: 0 -1px 1.5em 0;
  text-align: left;
  width: 100%;
  border-radius: 3px;
  font-size: 80%;
  border-collapse: collapse;
}