/* Radar chart — ensure labels are not clipped */
.padelful-radar-chart svg {
    overflow: visible;
    display: block;
    width: 100%;
    height: auto;
}

/* =============================================
   Padelful Rating Tab
   ============================================= */

.pf-tab .pf-container {
    max-width: 1000px;
    margin: 0 auto;
    font-family: inherit;
}

/* Desktop: score+bars and radar side by side */
.pf-tab .pf-main {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.pf-tab .pf-main > .pf-columns {
    flex: 1 1 0;
    min-width: 0;
}

.pf-tab .pf-main > .pf-radar-wrap {
    flex: 1 1 0;
    min-width: 0;
    margin-top: 0;
}

/* Two-column layout */
.pf-tab .pf-columns {
    display: flex;
    gap: 30px;
    align-items: stretch;
    background: #FDFBF5;
    border: 1px solid #D4C9A8;
    border-radius: 10px;
    padding: 28px 24px;
}

/* Left column: circular score */
.pf-tab .pf-score-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    flex-shrink: 0;
}

.pf-tab .pf-circle-wrap {
    width: 130px;
    height: 130px;
}

.pf-tab .pf-circle-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Padelful logo link below circle */
.pf-tab .pf-score-label-link {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.pf-tab .pf-score-label-link:hover {
    opacity: 0.75;
}

.pf-tab .pf-score-logo {
    height: 38px;
    width: auto;
}

/* Right column: progress bars */
.pf-tab .pf-bars-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.pf-tab .pf-bar-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pf-tab .pf-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.pf-tab .pf-bar-label {
    font-size: 13px;
    color: #0F5041;
    font-weight: 500;
}

.pf-tab .pf-bar-value {
    font-size: 13px;
    color: #0F5041;
    font-weight: 700;
}

.pf-tab .pf-bar-track {
    width: 100%;
    height: 6px;
    background: #D4C9A8;
    border-radius: 3px;
    overflow: hidden;
}

.pf-tab .pf-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #0F5041, #BB7543);
    transition: width 0.4s ease;
}

/* Radar chart */
.pf-tab .pf-radar-wrap {
    margin-top: 24px;
    padding: 0;
    display: flex;
    justify-content: center;
}

.pf-tab .pf-radar-wrap .padelful-radar-chart {
    max-width: 420px;
    width: 100%;
}

/* Full review link */
.pf-tab .pf-review-link {
    margin-top: 20px;
    text-align: center;
}

.pf-tab .pf-review-link a {
    color: #0F5041;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.pf-tab .pf-review-link a:hover {
    color: #BB7543;
}

/* Tablet/mobile: stack the two main blocks */
@media (max-width: 900px) {
    .pf-tab .pf-main {
        flex-direction: column;
    }

    .pf-tab .pf-main > .pf-radar-wrap {
        margin-top: 24px;
    }
}

/* =============================================
   Product card score badge (shop/archive/search loops)
   ============================================= */

.products-thumb .pf-loop-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 2;
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.pf-loop-badge .pf-loop-badge-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.pf-loop-badge .pf-loop-badge-ring {
    stroke-dashoffset: var(--pf-ring-offset);
}

.product-wapper:hover .pf-loop-badge {
    transform: scale(1.08);
}

.product-wapper:hover .pf-loop-badge .pf-loop-badge-ring {
    animation: pf-ring-draw 0.6s ease-out;
}

@keyframes pf-ring-draw {
    from { stroke-dashoffset: var(--pf-ring-length); }
    to   { stroke-dashoffset: var(--pf-ring-offset); }
}

/* Sticky header is 98px (menu); the marketing bar is not sticky.
   The JS shim scrolls .woocommerce-tabs (nav row) to 120px = header + gap. */
.woocommerce-tabs {
    scroll-margin-top: 120px;
}

/* The tab PANEL owns id="tab-padelful_rating", so Chrome's native fragment
   anchoring targets it, not the nav row above it. Offset = nav-row landing
   target (120, per rule above) + nav row (49) + nav-to-panel gap (46) = 215,
   so native/late re-anchoring lands the nav row just below the sticky header. */
#tab-padelful_rating {
    scroll-margin-top: 215px;
}

@media (prefers-reduced-motion: reduce) {
    .products-thumb .pf-loop-badge {
        transition: none;
    }
    .product-wapper:hover .pf-loop-badge {
        transform: none;
    }
    .product-wapper:hover .pf-loop-badge .pf-loop-badge-ring {
        animation: none;
    }
}

/* Mobile: single column inside score+bars block */
@media (max-width: 560px) {
    .pf-tab .pf-columns {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 16px;
    }

    .pf-tab .pf-score-col {
        min-width: unset;
    }

    .pf-tab .pf-radar-wrap .padelful-radar-chart {
        max-width: 100%;
    }

    .pf-tab .pf-bars-col {
        width: 100%;
    }
}
