/* ============================================================
   PainHunting — Global Base Styles
   ============================================================ */

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

html {
    font-size: var(--ph-font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-size: var(--ph-text-md);
    font-weight: var(--ph-fw-regular);
    color: var(--ph-black);
    background-color: var(--ph-gray-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--ph-fw-bold);
    color: var(--ph-black);
    line-height: 1.2;
}

h1 { font-size: var(--ph-h1); }
h2 { font-size: var(--ph-h2); }
h3 { font-size: var(--ph-h3); }
h4 { font-size: var(--ph-h4); }
h5 { font-size: var(--ph-h5); }
h6 { font-size: var(--ph-h6); }

p {
    color: var(--ph-gray-dark);
    line-height: 1.4;
    margin-bottom: var(--ph-space-sm);
}

p:last-child { margin-bottom: 0; }

a {
    color: var(--ph-green);
    text-decoration: none;
    transition: color var(--ph-transition);
}

a:hover { color: var(--ph-green-dark); }

ul, ol { list-style: none; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---- Container ---- */

.ph-container {
    width: 100%;
    max-width: var(--ph-container);
    margin-left: auto;
    margin-right: auto;
}
h1.ph-page-default__title {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.ph-container--sm {
    max-width: var(--ph-container-sm);
}

/* Forms submission spinner */
form{
    position: relative;
}
.wpcf7-spinner{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    margin: 0;
    background-color: #ffffffcc;
}
.wpcf7-spinner:before{
    top: 50%;
    left: 50%;
    transform-origin: 30px 30px;
    background-color: var(--ph-green);
}
.wpcf7 form .wpcf7-response-output{
    margin: 0;
    border-color: var(--ph-green) !important;
}
.ph-cf7-row.ph-cf7-contact-form-row--2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
@media (max-width: 640px) {
	.ph-cf7-row.ph-cf7-contact-form-row--2 {
		grid-template-columns: 1fr;
	}
}
/* CF7 + contact forms: country phone row (same as register / profile). */
.wpcf7 .ph-country-phone-field,
.ph-contact-form-block__form .ph-country-phone-field {
    margin-top: 0;
}
/* CF7: outer <label> already shows the field title — hide duplicate inner label. */
.wpcf7 .ph-country-phone-field .ph-login-modal__label,
.ph-contact-form-block__form .ph-country-phone-field .ph-login-modal__label,
.wpcf7-form-control-wrap .ph-country-phone-field .ph-login-modal__label {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    position: absolute !important;
    width: 1px !important;
}

/* CF7 autop: drop <br> / empty <p> gaps around country-phone field. */
.wpcf7-form label:has(.ph-country-phone-field) br,
.wpcf7 label:has(.ph-country-phone-field) ~ br,
.ph-contact-form-block__form label:has(.ph-country-phone-field) br {
    display: none !important;
}
.wpcf7-form .wpcf7-form-control-wrap:has(.ph-country-phone-field) {
    margin-top: 0 !important;
}
.wpcf7-form > p:empty,
.wpcf7-form .ph-cf7-form-fields > p:empty,
.wpcf7-form .ph-cf7-form-fields > p:has(> br:only-child),
.wpcf7-form:has(.ph-country-phone-field) > p:empty,
.wpcf7-form:has(.ph-country-phone-field) p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
}
.wpcf7 .ph-country-phone-field--cf7,
.wpcf7 .ph-country-phone-field.ph-country-phone-field--cf7 {
    gap: 0;
    margin: 0;
    margin-top: -32px;
}
.ph-form-popup-modal__cf7 .wpcf7 .ph-country-phone-field.ph-country-phone-field--cf7{
    margin-top: -12px;
}
.ph-contact-form-block#contact-form .wpcf7 .ph-country-phone-field--cf7, 
.ph-contact-form-block#contact-form .wpcf7 .ph-country-phone-field.ph-country-phone-field--cf7,
.ph-contact-form-block#support-contact-form .wpcf7 .ph-country-phone-field.ph-country-phone-field--cf7{
    margin-top: -17px;
}
#ph-painhunter-book-modal .ph-form-popup-modal__cf7 .wpcf7 .ph-country-phone-field.ph-country-phone-field--cf7{
    margin-top: -20px;
}

.wpcf7 form.ph-cf7-success .wpcf7-response-output,
.ph-cf7-success .wpcf7-response-output {
	display: block;
	margin: 0;
	padding: 32px 40px;
	border: 3px solid #469f10;
	border-radius: 24px;
	text-align: center;
	font-size: 1.2rem;
	line-height: 1.4;
	color: #2b2b2b;
}

.ph-cf7-popup-success {
	display: flex;
	align-items: center;
	justify-content: center;
}
/* ---- Buttons ---- */

.ph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    padding: 16px 32px;
    border-radius: var(--ph-border-radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--ph-transition);
    white-space: nowrap;
}

.ph-btn--primary {
    background-color: var(--ph-green);
    color: var(--ph-white);
    border-color: var(--ph-green);
}

.ph-btn--primary:hover {
    background-color: var(--ph-green-dark);
    border-color: var(--ph-green-dark);
    color: var(--ph-white);
}

.ph-btn--outline {
    background-color: white;
    color: var(--ph-black);
    border-color: var(--ph-border);
}

.ph-btn--outline:hover {
    border-color: var(--ph-green);
    color: var(--ph-green);
}

.ph-btn--outline-green {
    background-color: transparent;
    color: var(--ph-green);
    border-color: var(--ph-green);
}

.ph-btn--outline-green:hover {
    background-color: var(--ph-green);
    color: var(--ph-white);
}

.ph-btn--sm {
    font-size: var(--ph-text-sm);
    padding: 10px 20px;
}
.ph-btn--md{
    font-size: 15px;
    padding: 12px 16px;
}
.ph-btn--header {
    font-size: 16px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 50px;
}

.ph-btn--lg {
    font-size: var(--ph-text-lg);
    padding: 18px 36px;
}

/* ---- Cards ---- */

.ph-card {
    background: var(--ph-white);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-border-radius);
    padding: var(--ph-space-md);
    box-shadow: var(--ph-shadow-sm);
    transition: box-shadow var(--ph-transition), transform var(--ph-transition);
}

.ph-card:hover {
    box-shadow: var(--ph-shadow-md);
    transform: translateY(-2px);
}

/* ---- Section Spacing ---- */

.ph-section {
    padding: var(--ph-space-lg) 0;
}

.ph-section--sm {
    padding-top: var(--ph-space-lg);
    padding-bottom: var(--ph-space-lg);
}

.ph-section--green {
    background-color: var(--ph-green);
    color: var(--ph-white);
}

.ph-section--green-light {
    background-color: var(--ph-green-bg);
}

.ph-section--gray {
    background-color: var(--ph-gray-bg);
}

/* ---- Section Heading ---- */

.ph-section-label {
    display: inline-block;
    font-size: var(--ph-text-xs);
    font-weight: var(--ph-fw-semi);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ph-green);
    margin-bottom: var(--ph-space-xs);
}

.ph-section-title {
    font-size: var(--ph-h2);
    font-weight: var(--ph-fw-bold);
    color: var(--ph-black);
    margin-bottom: var(--ph-space-sm);
}

.ph-section-subtitle {
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: var(--ph-fw-medium);
    color: var(--ph-gray);
    line-height: 1.6;
    letter-spacing: 0.4px;
    margin: 0 auto;
}

.ph-section-header {
    text-align: center;
    margin-bottom: var(--ph-space-lg);
}

/* ---- Forms ---- */

.ph-input {
    width: 100%;
    font-size: var(--ph-text-md);
    color: var(--ph-black);
    background: var(--ph-white);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-border-radius);
    padding: 12px 16px;
    outline: none;
    transition: border-color var(--ph-transition);
}

.ph-input:focus {
    border-color: var(--ph-green);
    box-shadow: 0 0 0 3px rgba(70,159,16,0.12);
}

.ph-input::placeholder {
    color: var(--ph-gray-mid);
}

.ph-label {
    display: block;
    font-size: var(--ph-text-sm);
    font-weight: var(--ph-fw-medium);
    color: var(--ph-black);
    margin-bottom: 6px;
}
.woocommerce-checkout td.product-total {
    text-align: center;
    font-size: 1.5rem;
}
.ph-form-group {
    margin-bottom: var(--ph-space-sm);
}

/* ---- Badges / Tags ---- */

.ph-badge {
    display: inline-flex;
    align-items: center;
    font-size: var(--ph-text-xs);
    font-weight: var(--ph-fw-semi);
    padding: 4px 10px;
    border-radius: var(--ph-border-radius-pill);
    background: var(--ph-green-light);
    color: var(--ph-green);
}

.ph-tag {
    display: inline-flex;
    align-items: center;
    font-size: var(--ph-text-xs);
    font-weight: var(--ph-fw-medium);
    padding: 4px 12px;
    border-radius: var(--ph-border-radius-pill);
    background: var(--ph-gray-bg);
    color: var(--ph-gray-dark);
    border: 1px solid var(--ph-border);
}

/* ---- Grid Utilities ---- */

.ph-grid {
    display: grid;
    gap: var(--ph-space-md);
}

.ph-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ph-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ph-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Star Rating ---- */

.ph-rating {
    display: inline-flex;
    gap: 2px;
    color: #F59E0B;
    font-size: 14px;
}

/* ---- Divider ---- */

.ph-divider {
    border: none;
    border-top: 1px solid var(--ph-border);
    margin: var(--ph-space-md) 0;
}

/* ---- Text Utilities ---- */

.ph-text-green  { color: var(--ph-green); }
.ph-text-gray   { color: var(--ph-gray); }
.ph-text-center { text-align: center; }
.ph-text-bold   { font-weight: var(--ph-fw-bold); }

/* ---- Screen reader only ---- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ---- CTA Banner (shared across pages) ---- */

.ph-cta {
    background-color: var(--ph-gray-bg);
    padding: 100px 0;
}

.ph-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.ph-cta__heading-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ph-cta__icon {
    height: 85px !important;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    position: relative;
    top: -8px;
}

.ph-cta__title {
    font-size: clamp(36px, 5vw, 50px);
    font-weight: 800;
    color: var(--ph-black);
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.02em;
}

.ph-cta__title-accent {
    color: var(--ph-green);
    font-weight: inherit;
}

.ph-cta__subtitle {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 500;
    color: #4b5563;
    line-height: 1.26;
    max-width: 1000px;
    margin: 0;
    margin-bottom: 20px;
    margin-top: -10px;
}

.ph-cta__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}


/* ---- Responsive ---- */

@media (max-width: 1024px) {
    .ph-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .ph-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .ph-container{
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .ph-grid--4,
    .ph-grid--3,
    .ph-grid--2 { grid-template-columns: 1fr; }

    .ph-section { padding-top: var(--ph-space-lg); padding-bottom: var(--ph-space-lg); padding-left: 20px; padding-right: 20px; }

    .ph-cta { padding: 42px 0 48px; }
    .ph-cta__heading-row { gap: 8px; }
    .ph-cta__icon { width: 44px; height: 44px; }
    .ph-cta__title { font-size: clamp(30px, 3vw, 45px); line-height: 1.2; }
    .ph-cta__subtitle { font-size: clamp(18px, 3.2vw, 22px); max-width: 96%; }
    .ph-cta__actions { flex-direction: column; align-items: stretch; width: 100%; }
    .ph-cta__actions .ph-btn { width: 100%; text-align: center; }
    .ph-footer{ padding-left: 20px; padding-right: 20px; }
    .ph-cta { padding-left: 20px; padding-right: 20px; }
    h1.ph-page-default__title {
        margin-top: 2rem;
        margin-bottom: 0rem;
    }
}
@media screen and (min-width: 1024px) {
    .ph-cta__subtitle{
        padding-left: 75px;
    }
}
/* ============================================================
   404 Page
   ============================================================ */

.ph-404 {
    padding: 80px 0 100px;
}

.ph-404__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.ph-404__number {
    font-size: clamp(100px, 20vw, 180px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -6px;
    /* Green-tinted transparent text */
    color: transparent;
    -webkit-text-stroke: 2px var(--ph-green-light);
    background: linear-gradient(135deg, var(--ph-green) 0%, var(--ph-green-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    user-select: none;
}

.ph-404__icon {
    margin-bottom: 24px;
    animation: ph-404-pulse 2.5s ease-in-out infinite;
}

@keyframes ph-404-pulse {
    0%, 100% { transform: scale(1);   opacity: 1;    }
    50%       { transform: scale(1.08); opacity: 0.75; }
}

.ph-404__title {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 700;
    color: var(--ph-black);
    margin-bottom: 16px;
}

.ph-404__desc {
    font-size: 16px;
    color: var(--ph-gray);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 420px;
}

.ph-404__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}

/* Quick links row */
.ph-404__links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 24px;
    border-top: 1px solid var(--ph-border);
    width: 100%;
}

.ph-404__links-label {
    font-size: 13px;
    color: var(--ph-gray);
    margin: 0;
    white-space: nowrap;
}

.ph-404__links ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.ph-404__links ul li a {
    font-size: 13px;
    color: var(--ph-green);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid var(--ph-green-light);
    border-radius: 20px;
    background: var(--ph-green-bg);
    transition: all var(--ph-transition);
}

.ph-404__links ul li a:hover {
    background: var(--ph-green);
    color: var(--ph-white);
    border-color: var(--ph-green);
}

@media (max-width: 480px) {
    .ph-404 { padding: 48px 0 64px; }
    .ph-404__actions { flex-direction: column; width: 100%; }
    .ph-404__actions .ph-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Meet the Painhunters (global — homepage, single problem, etc.)
   ============================================================ */

.ph-painhunters.ph-section {
    padding: 80px 20px;
}

.ph-painhunters .ph-section__title {
    font-size: clamp(28px, 3.5vw, 45px);
    font-weight: 800;
    color: var(--ph-black);
    line-height: 1.2;
    letter-spacing: 0.72px;
    margin: 0 0 12px;
}

.ph-painhunters {
    background-color: var(--ph-gray-bg);
}

.ph-painhunters__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.ph-painhunters__titles {
    flex: 1;
    min-width: 0;
}

.ph-painhunters__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ph-painhunters__header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    flex-shrink: 0;
}

.ph-painhunters__nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ph-painhunters__eyebrow {
    display: block;
    margin-bottom: 0;
    color: var(--ph-green);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ph-painhunters__title {
    margin: 0;
}

/* Grid: ≤3 cards — 3 columns desktop/tablet, 1 column mobile */
.ph-painhunters__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* Slider: >3 cards — 3 visible desktop, 2 tablet, 1 mobile */
.ph-painhunters__slider {
    position: relative;
}

.ph-painhunters__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ph-painhunters__viewport::-webkit-scrollbar {
    display: none;
}

.ph-painhunters__track {
    display: flex;
    gap: 24px;
    padding-bottom: 2px;
}

.ph-painhunters__slide {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
    scroll-snap-align: start;
}

.ph-painhunters__slider--is-static .ph-painhunters__track {
    justify-content: center;
}

.ph-painhunters__slider--is-static .ph-painhunters__slide:only-child {
    flex: 0 0 min(380px, 100%);
    max-width: 100%;
}

.ph-painhunters__slider--is-static .ph-painhunters__slide:not(:only-child) {
    flex: 0 0 min(380px, calc((100% - 24px) / 2));
    max-width: calc((100% - 24px) / 2);
}

@media (max-width: 1024px) {
    .ph-painhunters__slide {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media (max-width: 767px) {
    .ph-painhunters__slide {
        flex: 0 0 100%;
    }
}

/* Figma card */
.ph-ph-card {
    background: var(--ph-white);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--ph-black);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow var(--ph-transition), transform var(--ph-transition);
    height: 100%;
    box-sizing: border-box;
}

.ph-ph-card__top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ph-ph-card__top-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ph-ph-card__top-link:hover .ph-ph-card__name,
.ph-ph-card__top-link:focus .ph-ph-card__name,
.ph-ph-card__top-link:focus-visible .ph-ph-card__name {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ph-ph-card__top-link:focus-visible {
    outline: 2px solid var(--ph-green);
    outline-offset: 4px;
    border-radius: 18px;
}

.ph-ph-card__photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--ph-gray-bg);
    border: 1px solid var(--ph-border);
}

.ph-ph-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ph-ph-card__photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ph-gray-bg);
}

.ph-ph-card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ph-ph-card__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ph-black);
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.ph-ph-card__spec {
    display: inline-flex;
    align-self: flex-start;
    background: var(--ph-green-bg);
    color: var(--ph-green);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    border: 1px solid var(--ph-green);
}

.ph-ph-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ph-ph-card__specs .ph-ph-card__spec {
    align-self: auto;
    max-width: none;
}

.ph-ph-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    align-items: start;
}

.ph-ph-card__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ph-ph-card__stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ph-gray);
    line-height: 1.2;
}

.ph-ph-card__stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--ph-black);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ph-ph-card__pricing {
    padding-top: 4px;
    border-top: 1px solid var(--ph-border);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.ph-ph-card__pricing-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--ph-gray-dark);
}

.ph-ph-card__pricing-range {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ph-black);
    line-height: 1.3;
}

.ph-ph-card__cta {
    margin-top: auto;
}
.ph-ph-card__cta .ph-ph-card__book {
    width: 100%;
    padding: 13px;
}
/* Carousel / testimonial / books / painhunters — round nav */
.ph-results__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1.5px solid var(--ph-border);
    border-radius: 50%;
    background: var(--ph-white);
    color: var(--ph-black);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--ph-transition), border-color var(--ph-transition), color var(--ph-transition);
}

.ph-results__nav:hover:not(:disabled) {
    border-color: var(--ph-green);
    color: var(--ph-green);
    background: var(--ph-green-bg);
}

.ph-results__nav[disabled],
.ph-results__nav[aria-disabled="true"] {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.ph-results__nav svg {
    display: block;
}

@media (max-width: 640px) {

    .ph-painhunters__grid {
        grid-template-columns: 1fr;
    }

    .ph-painhunters__header {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 24px;
    }

    .ph-painhunters__title-row {
        gap: 12px;
    }

    .ph-painhunters__header-actions {
        align-items: flex-start;
    }

    .ph-results__nav {
        width: 40px;
        height: 40px;
    }
}

/* ---- Woo single product (minimal checkout layout) ---- */

p.order-again{
    display: none;
}

.single-product .ph-product-minimal {
    max-width: 760px;
    margin: 50px auto 50px !important;
    padding: 36px;
    border: 1px solid var(--ph-border);
    border-radius: 24px;
    background: var(--ph-white);
}

.single-product .ph-product-minimal .product_title {
    margin: 0 0 24px;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-align: center;
}

.single-product .ph-product-minimal .ph-product-minimal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.single-product .ph-product-minimal .ph-product-minimal-actions p {
    margin: 0;
}

.single-product .ph-product-minimal .ph-product-minimal-actions .ph-product-minimal-type {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 10px;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    font-size: 16px;
    line-height: 1.4;
    color: var(--ph-gray);
}

.single-product .ph-product-minimal .ph-product-minimal-type__label {
    text-align: right;
    font-weight: var(--ph-fw-bold);
    color: var(--ph-black);
    margin-right: 10px;
}
.ph-product-minimal-type{
    font-size: 1.5rem;
    text-align: center !important;
    margin-bottom: 20px;
    border: 1px solid black;
}


.single-product .ph-product-minimal .ph-product-minimal-type__value {
    color: var(--ph-gray);
}

.single-product .ph-product-minimal form.cart {
    margin: 0;
}

.single-product .ph-product-minimal .variations {
    margin: 0 0 14px;
    border: 0;
}

.single-product .ph-product-minimal .variations td,
.single-product .ph-product-minimal .variations th {
    padding: 0;
    border: 0;
    vertical-align: middle;
}

.single-product .ph-product-minimal .variations th.label {
    width: 120px;
    padding-right: 12px;
    text-align: right;
}

.single-product .ph-product-minimal .variations th.label label {
    margin: 0;
    font-size: 15px;
    font-weight: var(--ph-fw-bold);
    color: var(--ph-black);
    position: relative;
    top: 8px;
    font-size: 1.5rem !important;
}

.single-product .ph-product-minimal .variations select {
    width: 100%;
    min-height: 52px;
    padding: 0 42px 0 18px;
    border: 1px solid var(--ph-border);
    border-radius: 9999px;
    background-color: #f5f5f7;
    color: var(--ph-black);
    font-size: 16px;
    line-height: 1.2;
}

.single-product .ph-product-minimal .variations select:focus {
    border-color: var(--ph-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(70, 159, 16, 0.2);
    background: var(--ph-white);
}

.single-product .ph-product-minimal .reset_variations {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--ph-gray);
}

.single-product .ph-product-minimal .single_variation_wrap {
    margin-top: 50px;
}
.woocommerce-notices-wrapper{
    max-width: var(--ph-container);
    margin: 0 auto;
}

.single-product .ph-product-minimal .single_variation_wrap .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.single-product .ph-product-minimal .woocommerce-variation-price {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: var(--ph-fw-bold);
    color: var(--ph-black);
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
}
.single-product .ph-product-minimal .ph-product-minimal-price {
    margin: 34px 0 46px;
    text-align: center;
    font-size: 3rem;
    line-height: 1.05;
    font-weight: var(--ph-fw-bold);
    color: var(--ph-black);
}

.single-product .ph-product-minimal .ph-product-minimal-price bdi {
    color: var(--ph-black);
}
.single-product .woocommerce-variation-price bdi {
    color: var(--ph-black);
}
.woocommerce div.product form.cart .reset_variations{
    display: none !important;
}

.single-product .ph-product-minimal .single_variation_wrap .quantity input.qty {
    min-height: 52px;
    border-radius: 9999px;
    border: 1px solid var(--ph-border);
    background: #f5f5f7;
}

.single-product .ph-product-minimal .single_variation_wrap .button,
.single-product .ph-product-minimal .ph-product-minimal-actions .button {
    min-height: 52px;
    padding: 0 28px;
    border-radius: 9999px;
    float: none;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Force checkout/add-to-checkout actions to match theme primary CTA */
.single-product .ph-product-minimal .single_add_to_cart_button,
.single-product .ph-product-minimal .single_variation_wrap .button.single_add_to_cart_button,
.single-product .ph-product-minimal .ph-product-minimal-actions .button.alt {
    background: var(--ph-green);
    border: 2px solid var(--ph-green);
    color: var(--ph-white);
    font-weight: 800;
    min-width: 240px;
    font-size: 18px;
}

.single-product .ph-product-minimal .single_variation_wrap .ph-product-details-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    min-width: 240px;
    padding: 0 28px;
    border-radius: 9999px;
}

.single-product .ph-product-minimal .single_add_to_cart_button:hover,
.single-product .ph-product-minimal .single_variation_wrap .button.single_add_to_cart_button:hover,
.single-product .ph-product-minimal .ph-product-minimal-actions .button.alt:hover {
    background: var(--ph-green-dark);
    border-color: var(--ph-green-dark);
    color: var(--ph-white);
}

.single-product .ph-product-minimal .single_add_to_cart_button:focus,
.single-product .ph-product-minimal .single_variation_wrap .button.single_add_to_cart_button:focus,
.single-product .ph-product-minimal .ph-product-minimal-actions .button.alt:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(70, 159, 16, 0.2);
}

.single-product .ph-product-minimal .ph-product-minimal-actions .ph-btn {
    width: auto;
    min-width: 240px;
}

.single-product .ph-product-minimal .ph-product-minimal-actions > p {
    margin: 0;
}

@media (max-width: 768px) {
    .single-product .ph-product-minimal {
        margin: 32px auto 56px;
        padding: 22px 18px;
        border-radius: 16px;
    }

    .single-product .ph-product-minimal .product_title {
        margin-bottom: 20px;
        font-size: clamp(28px, 8vw, 38px);
    }

    .single-product .ph-product-minimal .variations th.label,
    .single-product .ph-product-minimal .variations td.value {
        display: block;
        width: 100%;
    }

    .single-product .ph-product-minimal .variations th.label {
        margin-bottom: 8px;
        text-align: left;
    }

    .single-product .ph-product-minimal .ph-product-minimal-actions .ph-product-minimal-type {
        grid-template-columns: 1fr;
        row-gap: 4px;
        max-width: none;
    }

    .single-product .ph-product-minimal .ph-product-minimal-type__label {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .single-product .ph-product-minimal .ph-product-minimal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .single-product .ph-product-minimal .ph-product-minimal-actions .ph-btn {
        width: 100%;
        min-width: 0;
    }

    .single-product .ph-product-minimal .single_variation_wrap .woocommerce-variation-add-to-cart {
        flex-direction: column;
        align-items: stretch;
    }

    .single-product .ph-product-minimal .single_variation_wrap .button.single_add_to_cart_button,
    .single-product .ph-product-minimal .single_variation_wrap .ph-product-details-inline {
        width: 100%;
        min-width: 0;
    }
}

/* Carousels (books, testimonials, etc.): single slide — full-width grid, hide nav, center card. */
.ph-books__slider:has(.ph-books__slide:only-child),
.ph-results__slider:has(.ph-results__slide:only-child),
.ph-books__slider.ph-results__slider--no-nav,
.ph-results__slider.ph-results__slider--no-nav {
    grid-template-columns: minmax(0, 1fr) !important;
}

.ph-books__slider:has(.ph-books__slide:only-child) .ph-books__nav-btn,
.ph-books__slider:has(.ph-books__slide:only-child) .ph-results__nav,
.ph-results__slider:has(.ph-results__slide:only-child) .ph-results__nav {
    display: none !important;
}

.ph-books__slider:has(.ph-books__slide:only-child) .ph-books__track,
.ph-results__slider:has(.ph-results__slide:only-child) .ph-results__track,
.ph-books__slider.ph-results__slider--is-static .ph-books__track,
.ph-results__slider.ph-results__slider--is-static .ph-results__track {
    justify-content: center;
    transform: none !important;
}

.ph-books__slider:has(.ph-books__slide:only-child) .ph-books__slide,
.ph-results__slider:has(.ph-results__slide:only-child) .ph-results__slide,
.ph-books__slider.ph-results__slider--is-static .ph-books__slide,
.ph-results__slider.ph-results__slider--is-static .ph-results__slide {
    flex: 0 0 min(420px, 100%) !important;
    width: min(420px, 100%) !important;
    max-width: 100%;
}

@media (min-width: 768px) {
    .ph-books__slider:has(.ph-books__slide:first-child:nth-last-child(2)),
    .ph-results__slider:has(.ph-results__slide:first-child:nth-last-child(2)) {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .ph-books__slider:has(.ph-books__slide:first-child:nth-last-child(2)) .ph-books__nav-btn,
    .ph-books__slider:has(.ph-books__slide:first-child:nth-last-child(2)) .ph-results__nav,
    .ph-results__slider:has(.ph-results__slide:first-child:nth-last-child(2)) .ph-results__nav {
        display: none !important;
    }

    .ph-books__slider:has(.ph-books__slide:first-child:nth-last-child(2)) .ph-books__track,
    .ph-results__slider:has(.ph-results__slide:first-child:nth-last-child(2)) .ph-results__track {
        justify-content: center;
        transform: none !important;
    }

    .ph-books__slider:has(.ph-books__slide:first-child:nth-last-child(2)) .ph-books__slide,
    .ph-results__slider:has(.ph-results__slide:first-child:nth-last-child(2)) .ph-results__slide {
        flex: 0 0 min(420px, calc((100% - var(--ph-results-gap, 24px)) / 2)) !important;
        width: min(420px, calc((100% - var(--ph-results-gap, 24px)) / 2)) !important;
        max-width: calc((100% - var(--ph-results-gap, 24px)) / 2);
    }
}

.ph-research-list__slider:has(.ph-research-card:only-child) .ph-research-list__grid {
    justify-content: center;
}

.ph-research-list__slider:has(.ph-research-card:only-child) .ph-research-card {
    flex: 0 0 min(420px, 100%) !important;
    max-width: 100%;
}
