/* ════ Font globali widget prodotto ════ */
.tbt-single-product h1,
.tbt-single-product h2,
.tbt-single-product h3,
.tbt-single-product h4,
.tbt-single-product .tbt-sp__title,
.tbt-single-product .tbt-tabs__nav-item a,
.tbt-single-product .tbt-mc-title,
.woost-tab-heading {
  font-family: 'Jost', sans-serif !important;
}

.tbt-single-product,
.tbt-single-product p,
.tbt-single-product span,
.tbt-single-product li,
.tbt-single-product .tbt-tabs__content,
.tbt-single-product .tbt-sp__short-desc,
.tbt-single-product .tbt-sp__meta,
.tbt-single-product .tbt-sp__shipping,
.tbt-single-product .tbt-payment-text,
.woost-tab-content {
  font-family: 'Poppins', sans-serif !important;
}

/* ================================================================
   TopBeauty – Product Page Custom Tabs + Payment Badges
================================================================ */

/* ── Tab WooCommerce reskin ── */
.woocommerce-tabs .tabs {
  display: flex !important;
  gap: 0 !important;
  border-bottom: 1px solid #e8e8e8 !important;
  padding: 0 !important;
  list-style: none !important;
  flex-wrap: wrap;
}

.woocommerce-tabs .tabs li {
  margin: 0 !important;
  border: none !important;
  background: none !important;
  border-radius: 0 !important;
}

.woocommerce-tabs .tabs li a {
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #888 !important;
  padding: 14px 24px !important;
  display: block !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent !important;
  transition: color 0.2s, border-color 0.2s !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap;
}

.woocommerce-tabs .tabs li a:hover {
  color: #111 !important;
}

.woocommerce-tabs .tabs li.active a {
  color: #111 !important;
  font-weight: 600 !important;
  border-bottom-color: #111 !important;
  background: none !important;
}

/* Tab content */
.woocommerce-tabs .panel {
  padding: 40px 0 !important;
  border: none !important;
}

.tbt-product-tab-content {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  max-width: 860px;
}

.tbt-product-tab-content h2,
.tbt-product-tab-content h3 {
  font-family: 'Jost', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #111;
  margin-bottom: 12px;
  margin-top: 28px;
}

.tbt-product-tab-content h3:first-child,
.tbt-product-tab-content h2:first-child { margin-top: 0; }

.tbt-product-tab-content p { margin-bottom: 14px; }

.tbt-product-tab-content ul,
.tbt-product-tab-content ol {
  padding-left: 20px;
  margin-bottom: 14px;
}
.tbt-product-tab-content li { margin-bottom: 6px; }

.tbt-product-tab-content strong { color: #111; }

/* Composizione: testo ingredienti stile farmaceutico */
.tbt-product-tab-content--composition {
  font-size: 13px;
  color: #555;
  line-height: 1.9;
}

/* ── Sezione metodi di pagamento ── */
.tbt-payment-badges {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fafafa;
}

.tbt-payment-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tbt-pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 2px 6px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  color: #333;
}

.tbt-pay-logo svg { display: block; }

.tbt-payment-text {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}
.tbt-payment-text strong {
  color: #111;
  font-weight: 600;
}

/* ════════════════════════════════════
   TBT TABS WIDGET
════════════════════════════════════ */
.tbt-tabs { font-family: 'Poppins', sans-serif; }

.tbt-tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e8e8e8;
  list-style: none;
  padding: 0; margin: 0;
  flex-wrap: wrap;
}

.tbt-tabs__nav-item a {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #888;
  padding: 14px 24px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.tbt-tabs__nav-item a:hover { color: #111; }

.tbt-tabs__nav-item.active a {
  color: #111;
  font-weight: 600;
  border-bottom-color: #111;
}

.tbt-tabs__panel {
  display: none;
  padding: 40px 0;
}
.tbt-tabs__panel.active { display: block; }

.tbt-tabs__content {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  max-width: 860px;
}

.tbt-tabs__content h2,
.tbt-tabs__content h3 {
  font-family: 'Jost', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #111;
  margin: 0 0 12px;
}
.tbt-tabs__content p { margin-bottom: 14px; }
.tbt-tabs__content ul,
.tbt-tabs__content ol { padding-left: 20px; margin-bottom: 14px; }
.tbt-tabs__content li { margin-bottom: 6px; }
.tbt-tabs__content strong { color: #111; }

.tbt-tabs__content--composition {
  font-size: 13px;
  color: #555;
  line-height: 2;
}

@media (max-width: 600px) {
  .tbt-tabs__nav-item a { padding: 12px 14px; font-size: 13px; }
  .tbt-tabs__panel { padding: 28px 0; }
}

/* ════════════════════════════════════
   TBT SINGLE PRODUCT WIDGET
════════════════════════════════════ */
.tbt-single-product {
  font-family: 'Poppins', sans-serif;
  color: #333;
}

/* ── Layout top ── */
.tbt-sp__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 60px;
}

/* ── Galleria ── */
.tbt-sp__gallery-main {
  border-radius: 8px;
  overflow: hidden;
  background: #f8f8f8;
  aspect-ratio: 1/1;
}
.tbt-sp__main-img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: opacity 0.2s;
}
.tbt-sp__gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.tbt-sp__thumb {
  width: 72px; height: 72px;
  border: 2px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #f8f8f8;
  transition: border-color 0.2s;
}
.tbt-sp__thumb:hover,
.tbt-sp__thumb.active { border-color: #111; }
.tbt-sp__thumb img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 4px;
}

/* ── Info prodotto ── */
.tbt-sp__brand {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}
.tbt-sp__title {
  font-family: 'Jost', sans-serif;
  font-size: 26px;
  font-weight: 500;
  color: #111;
  line-height: 1.3;
  margin-bottom: 12px;
}
.tbt-sp__price {
  font-size: 22px;
  font-weight: 600;
  color: #111;
  margin-bottom: 16px;
}
.tbt-sp__price del { color: #aaa; font-size: 16px; font-weight: 400; margin-right: 8px; }
.tbt-sp__price ins { text-decoration: none; color: rgb(16,118,189); }

.tbt-sp__short-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}

.tbt-sp__views {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #555;
  margin-bottom: 16px;
}
.tbt-sp__views svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Add to cart WooCommerce */
.tbt-sp__atc { margin-bottom: 16px; }

/* Label "Quantità" */
.tbt-sp__atc .quantity-label,
.tbt-sp__atc label[for="quantity"] {
  display: block;
  font-size: 13px; font-weight: 500;
  color: #333; margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

/* Riga quantità + bottone */
.tbt-sp__atc form.cart {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.tbt-sp__atc .quantity-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Stepper quantità */
.tbt-sp__atc .quantity {
  display: flex !important;
  align-items: center !important;
  border: 1.5px solid #ddd !important;
  border-radius: 50px !important;
  overflow: hidden !important;
  height: 50px !important;
  background: #fff !important;
  flex-shrink: 0 !important;
  padding: 0 4px !important;
}

.tbt-sp__atc .qty {
  width: 40px !important;
  text-align: center !important;
  border: none !important;
  outline: none !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  background: transparent !important;
  -moz-appearance: textfield !important;
  padding: 0 !important;
}
.tbt-sp__atc .qty::-webkit-outer-spin-button,
.tbt-sp__atc .qty::-webkit-inner-spin-button { -webkit-appearance: none !important; }

/* Bottoni +/- */
.tbt-sp__atc .qty-minus,
.tbt-sp__atc .qty-plus {
  width: 36px !important; height: 36px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  background: none !important; border: none !important; border-radius: 50% !important;
  cursor: pointer !important; font-size: 18px !important; font-weight: 300 !important;
  color: #333 !important; flex-shrink: 0 !important; padding: 0 !important;
  transition: background 0.2s !important;
  line-height: 1 !important;
}
.tbt-sp__atc .qty-minus:hover,
.tbt-sp__atc .qty-plus:hover { background: #f0f0f0 !important; }

/* Bottone "Aggiungi al carrello" */
.tbt-sp__atc .single_add_to_cart_button {
  flex: 1 !important;
  height: 50px !important;
  padding: 0 24px !important;
  background: #fff !important; color: #111 !important;
  border: 1.5px solid #ddd !important; border-radius: 50px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important; font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  cursor: pointer !important;
  transition: border-color 0.2s, background 0.2s !important;
  text-align: center !important;
  white-space: nowrap !important;
}
.tbt-sp__atc .single_add_to_cart_button:hover {
  border-color: #111 !important;
  background: #f9f9f9 !important;
}

/* Bottone "Acquista Ora" */
.tbt-sp__atc .wc-buy-now,
.tbt-sp__atc .buy-now,
.tbt-sp__atc input[name="add-to-cart"].alt,
.tbt-sp__atc .alt.button,
.tbt-sp__atc .button.alt {
  display: block !important; width: 100% !important;
  height: 52px !important; padding: 0 !important;
  background: #111 !important; color: #fff !important;
  border: none !important; border-radius: 50px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important; font-weight: 600 !important;
  letter-spacing: 0.06em !important; text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  text-align: center !important; line-height: 52px !important;
  text-decoration: none !important;
}
.tbt-sp__atc .alt:hover,
.tbt-sp__atc .button.alt:hover { background: #333 !important; }

/* Link aggiuntivi */
.tbt-sp__links {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.tbt-sp__link {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: #555; text-decoration: none;
  transition: color 0.2s;
}
.tbt-sp__link:hover { color: #111; }
.tbt-sp__link svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Spedizione */
.tbt-sp__shipping {
  margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.tbt-sp__shipping-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #444;
}
.tbt-sp__shipping-row svg { width: 18px; height: 18px; flex-shrink: 0; color: #666; }

/* Meta */
.tbt-sp__meta {
  font-size: 13px;
  color: #555;
  margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 5px;
}
.tbt-sp__meta-row { display: flex; gap: 8px; }
.tbt-sp__meta-label { font-weight: 600; color: #333; min-width: 80px; }
.tbt-sp__meta a { color: #333; text-decoration: none; }
.tbt-sp__meta a:hover { text-decoration: underline; }

/* Box pagamento */
.tbt-sp__payment {
  padding: 16px 18px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fafafa;
}
.tbt-sp__payment-logos {
  display: flex; align-items: center;
  gap: 8px; flex-wrap: wrap; margin-bottom: 8px;
}
.tbt-sp__payment-text {
  font-size: 11px; color: #666; margin: 0; line-height: 1.5;
}

/* ── Tab ── */
.tbt-sp__tabs { border-top: 1px solid #e8e8e8; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .tbt-sp__top { grid-template-columns: 1fr; gap: 32px; }
}

/* ════ Tab A proposito del marchio ════ */
.tbt-brand-tab {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.tbt-brand-tab__logo {
  flex-shrink: 0;
  width: 220px;
  text-align: center;
}

.tbt-brand-tab__logo img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 16px;
  background: #fff;
}

.tbt-brand-tab__more {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tbt-brand-tab__desc {
  flex: 1;
}

.tbt-brand-tab__desc h3 {
  font-family: 'Jost', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #111;
  margin-bottom: 14px;
}

.tbt-brand-tab__desc p {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 12px;
}

@media (max-width: 700px) {
  .tbt-brand-tab { flex-direction: column; }
  .tbt-brand-tab__logo { width: 100%; max-width: 180px; }
}
