/* ===== THERGOfit — Single Product Page (Aarau Black) ===== */
.single-product {
    --thf-primary:#143C89;
    --thf-primary-600:#0F2F6A;
    --thf-text:#1C2434;
    --thf-muted:#5C6A8A;
    --thf-card:#fff;
    --thf-bg:#F5F7FB;
    --thf-border:#E4E9F5;
    --thf-radius:16px;
    --thf-shadow:0 10px 30px rgba(20,60,137,.08);
}

/* Page background + spacing */
.single-product .site-main,
.single-product .content-area {
    background: var(--thf-bg);
    padding: clamp(16px, 3vw, 32px) 0;
}

/* Product container card */
.single-product .product {
    background: var(--thf-card);
    border: 1px solid var(--thf-border);
    border-radius: var(--thf-radius);
    box-shadow: var(--thf-shadow);
    padding: clamp(16px, 2.5vw, 28px);
}

/* -------- Gallery -------- */
.single-product .woocommerce-product-gallery {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(12,24,48,.06);
}
.single-product .woocommerce-product-gallery__image img {
    border-radius: 12px;
    object-fit: cover;
}

/* -------- Summary (right column) -------- */
.single-product .summary .product_title {
    color: var(--thf-text);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 6px;
}
.single-product .summary .price {
    display: inline-flex;
    gap: 8px;
    align-items: baseline;
    color: var(--thf-text)!important;
    font-weight: 800;
    font-size: 1.25rem;
    margin: 8px 0 14px;
}
.single-product .summary .price ins {
    color: var(--thf-primary);
    text-decoration: none;
}
.single-product .summary .price del {
    color: var(--thf-muted);
    font-weight: 600;
}

/* Breadcrumbs (subtle) */
.single-product .woocommerce-breadcrumb {
    color: var(--thf-muted);
    font-size: .95rem;
    margin-bottom: 10px;
}
.single-product .woocommerce-breadcrumb a:hover { color: var(--thf-primary); }

/* -------- Variations / selects -------- */
.single-product form.cart .variations td.label {
    color: var(--thf-text);
    font-weight: 800;
}
.single-product form.cart .variations select {
    border: 1px solid var(--thf-border);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    font-weight: 600;
    min-width: 220px;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.single-product form.cart .variations select:focus {
    outline: none;
    border-color: var(--thf-primary);
    box-shadow: 0 0 0 4px rgba(20,60,137,.1);
}

/* -------- Quantity + Add to cart -------- */
.single-product .quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--thf-border);
    border-radius: 12px;
    padding: 4px;
    margin: 8px 10px 8px 0;
    box-shadow: 0 4px 10px rgba(20,60,137,.05);
}
.single-product .quantity .qty {
    width: 58px; height: 36px;
    border: none; background: transparent;
    text-align: center; font-weight: 700; color: var(--thf-text);
}
.single-product .quantity .qty:focus {
    outline: 2px solid rgba(20,60,137,.25); border-radius: 8px;
}
.single-product button.single_add_to_cart_button {
    background: var(--thf-primary);
    background-color: var(--thf-primary) !important;
    color: #fff; border: 0;
    border-radius: 12px;
    padding: 12px 22px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(20,60,137,.18);
    transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
}
.single-product button.single_add_to_cart_button:hover {
    background: var(--thf-primary-600);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15,47,106,.22);
}

/* Stock/sku/meta line tidy */
.single-product .product_meta,
.single-product .sku_wrapper,
.single-product .posted_in {
    color: var(--thf-muted);
    font-size: .95rem;
}
.single-product .product_meta a:hover { color: var(--thf-primary); }

/* -------- Tabs: Beschreibung / Zusätzliche Informationen -------- */
.single-product .woocommerce-tabs {
    margin-top: 22px;
    background: var(--thf-card);
    border: 1px solid var(--thf-border);
    border-radius: var(--thf-radius);
    box-shadow: var(--thf-shadow);
    padding: 0;
}
.single-product .woocommerce-tabs ul.tabs {
    display: flex; gap: 6px; padding: 12px; margin: 0;
    border-bottom: 1px solid var(--thf-border);
}
.single-product .woocommerce-tabs ul.tabs li {
    list-style: none; margin: 0;
}
.single-product .woocommerce-tabs ul.tabs li a {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 14px; border-radius: 999px;
    font-weight: 800; color: var(--thf-text);
    background: #F5F7FB; border: 1px solid var(--thf-border);
    transition: all .2s ease;
}
.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
    background: var(--thf-primary);
    border-color: var(--thf-primary);
    color: #fff;
}
.single-product .woocommerce-Tabs-panel {
    padding: 16px; color: var(--thf-text);
    line-height: 1.6;
}
.single-product .woocommerce-Tabs-panel p { margin: 0 0 10px; }

/* Headings inside panels */
.single-product .woocommerce-Tabs-panel h2,
.single-product .woocommerce-Tabs-panel h3 {
    color: var(--thf-primary);
    font-weight: 900;
    margin: 12px 0 8px;
}

/* -------- Related/Similar products grid -------- */
.single-product .related,
.single-product .upsells {
    margin-top: 28px;
}
.single-product .related > h2,
.single-product .upsells > h2 {
    color: var(--thf-text); font-weight: 900; margin-bottom: 14px;
}
.single-product .related ul.products li.product,
.single-product .upsells ul.products li.product {
    background: var(--thf-card);
    border: 1px solid var(--thf-border);
    border-radius: var(--thf-radius);
    box-shadow: var(--thf-shadow);
    padding: 14px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.single-product .related ul.products li.product:hover,
.single-product .upsells ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(20,60,137,.14);
    border-color: rgba(20,60,137,.25);
}
.single-product .related ul.products li.product a img,
.single-product .upsells ul.products li.product a img {
    aspect-ratio: 4/5; width: 100%; 
    object-fit: contain; border-radius: 12px;
    box-shadow: 0 6px 18px rgba(12,24,48,.06);
}
.single-product .related .woocommerce-loop-product__title,
.single-product .upsells .woocommerce-loop-product__title {
    text-align: center; font-weight: 800; color: var(--thf-text);
    margin: 12px 0 6px;
}
.single-product .related .price,
.single-product .upsells .price {
    display: flex; justify-content: center; gap: 6px;
    font-weight: 700; color: var(--thf-text);
}
.single-product .related .button,
.single-product .upsells .button {
    display: block; width: 100%;
    background: var(--thf-primary); color: #fff;
    border: 0; border-radius: 12px; padding: 10px 14px; font-weight: 800;
    box-shadow: 0 8px 18px rgba(20,60,137,.18);
}
.single-product .related .button:hover,
.single-product .upsells .button:hover {
    background: var(--thf-primary-600);
    transform: translateY(-1px);
}

/* Messages */
.single-product .woocommerce-message,
.single-product .woocommerce-error,
.single-product .woocommerce-info {
    border-radius: 12px; border: 1px solid var(--thf-border);
    background: #fff; box-shadow: var(--thf-shadow);
}

/* ===== THERGOfit PDP Tabs — clean pills (#143C89) ===== */
.single-product .woocommerce-tabs {
    border: 1px solid #E4E9F5!important;
    border-radius: 16px!important;
    box-shadow: 0 10px 30px rgba(20,60,137,.08)!important;
    background: #fff!important;
    overflow: hidden!important;                 /* keep rounded top corners */
}

/* Tabs bar */
.single-product .woocommerce-tabs ul.tabs {
    display: flex!important;
    gap: 8px!important;
    align-items: center!important;
    margin: 0!important;
    padding: 12px!important;
    background: #F5F7FB!important;
    border-bottom: 1px solid #E4E9F5!important;
    position: relative!important;
}

/* Kill WooCommerce’s default triangles/borders */
.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
    content: none !important;
}

/* Reset li */
.single-product .woocommerce-tabs ul.tabs li {
    list-style: none!important;
    /*margin: 0!important;*/
    border: 0!important;
    background: transparent!important;
}

/* Tab links (pill buttons) */
.single-product .woocommerce-tabs ul.tabs li a {
    display: inline-flex!important;
    align-items: center!important;
    justify-content: center!important;
    padding: 10px 16px!important;
    border-radius: 999px!important;
    font-weight: 800!important;
    line-height: 1!important;
    text-decoration: none!important;
    border: 1px solid #E4E9F5!important;
    background: #fff!important;
    color: #1C2434!important;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .1s ease!important;
}

/* Hover / focus */
.single-product .woocommerce-tabs ul.tabs li a:hover,
.single-product .woocommerce-tabs ul.tabs li a:focus {
    border-color: #143C89!important;
    color: #143C89!important;
    background: #EAF0FF!important;
    outline: none!important;
}

/* Active tab */
.single-product .woocommerce-tabs ul.tabs li.active a {
    background: #143C89!important;
    border-color: #143C89!important;
    color: #fff!important;
    box-shadow: 0 6px 16px rgba(20,60,137,.18)!important;
}

/* Panel content */
.single-product .woocommerce-Tabs-panel {
    padding: 16px 18px 20px!important;
    color: #1C2434!important;
    line-height: 1.6!important;
}

/* Headings inside panel */
.single-product .woocommerce-Tabs-panel h2,
.single-product .woocommerce-Tabs-panel h3 {
    color: #143C89!important;
    font-weight: 900!important;
    margin: 10px 0 8px!important;
}

/* Mobile tweaks */
@media (max-width: 768px){
    .single-product .woocommerce-tabs ul.tabs { flex-wrap: wrap; gap: 6px; }
    .single-product .woocommerce-tabs ul.tabs li a { padding: 9px 14px; }
}

body:not(.home) header {
    margin:0!important;
}