/* ==========================================
   TOP BAR
========================================== */

.top-bar {
    background: var(--topbar-bg);
    color: var(--topbar-color);
    line-height: 1.4;
}

.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: var(--topbar-height, 40px);
}

.top-bar__text {
    font-size: var(--topbar-font-size, 15px);
    font-weight: var(--topbar-font-weight, 500);
}

.top-bar a:hover {
    color: inherit;
    text-decoration: underline;
}

.top-bar__close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;

    background: transparent;
    border: none;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.top-bar__close:hover {
    opacity: 1;
}

/* ==========================================
   SECTION TITLE
========================================== */

.section-title {
    max-width: 640px;
    margin: 0 auto var(--space-10);
    text-align: center;
}

.section-title__eyebrow {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-title__heading {
    margin: 0;
    color: var(--color-heading);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
}

.section-title__sub {
    margin: var(--space-3) auto 0;
    color: var(--color-text-light);
    line-height: var(--line-height-normal);
}

/* ==========================================
   PRODUCT CARD
========================================== */

.product-card {
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.product-card__image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--color-background-light);
    overflow: hidden;
}

.product-card__image > a {
    display: block;
    height: 100%;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-card__image img {
    transform: scale(1.04);
}

.product-card__body {
    padding: var(--space-4);
}

.product-card__title {
    margin: 0 0 var(--space-2);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
}

.product-card__title a {
    color: var(--color-heading);
    text-decoration: none;
}

.product-card__title a:hover {
    color: var(--color-primary);
}

.product-card__price {
    margin-bottom: var(--space-3);
    color: var(--color-heading);
    font-weight: var(--font-weight-semibold);
}

.product-card__price del {
    color: var(--color-text-light);
    font-weight: var(--font-weight-normal);
}

.product-card__price ins {
    color: var(--color-primary);
    text-decoration: none;
}

/* Short description — only shown in list view (see archive.css) */
.product-card__excerpt {
    display: none;
}

/* Hover-reveal quick-view button — expands from a circle to a pill on hover */
.product-card__quick-view {
    position: absolute;
    right: var(--space-3);
    bottom: var(--space-3);

    display: flex;
    align-items: center;
    gap: var(--space-2);

    height: 48px;
    width: 48px;
    padding: 0 11px;
    overflow: hidden;

    border: 2px solid var(--color-secondary);
    border-radius: var(--radius-full);
    background: #DFF6FF;
    color: var(--color-secondary);
    cursor: pointer;

    opacity: 0;
    transform: translateY(8px);
    transition: width var(--transition-fast), opacity var(--transition-fast),
        transform var(--transition-fast), background var(--transition-fast);
}

.product-card:hover .product-card__quick-view,
.product-card__quick-view:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card__quick-view:hover {
    width: 130px;
    background: var(--color-white);
}

/* No hover on touch devices — keep the quick-view icon visible */
@media (hover: none) {
    .product-card__quick-view {
        opacity: 1;
        transform: none;
    }
}

.product-card__qv-icon {
    flex: 0 0 auto;
}

.product-card__qv-label {
    white-space: nowrap;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.product-card__quick-view:hover .product-card__qv-label {
    opacity: 1;
}

/* ==========================================
   TRUST STRIP
========================================== */

.trust-strip {
    overflow: hidden;
    padding: var(--space-6) 0;
    background: var(--color-white);
}

.trust-strip__track {
    display: flex;
    width: max-content;
    animation: trust-marquee 30s linear infinite;
}

/* Pause on hover so the text is readable */
.trust-strip:hover .trust-strip__track {
    animation-play-state: paused;
}

.trust-strip__group {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    padding-right: var(--space-12); /* keeps spacing consistent across the seam */
    flex: 0 0 auto;
}

.trust-strip__item {
    display: flex;
    align-items: center;
    gap: var(--space-2);

    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-heading);
    white-space: nowrap;
}

.trust-strip__icon {
    font-size: var(--font-size-xl);
    line-height: 1;
}

@keyframes trust-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .trust-strip__track { animation: none; }
}

@media (max-width: 650px) {
    .trust-strip__item,
    .trust-strip__icon {
        font-size: var(--font-size-base);
    }
}

/* ==========================================
   SHOP BY PURPOSE
========================================== */

.shop-purpose {
    background: #D3F2FF;
}

.purpose-card {
    display: block;
    overflow: hidden;
    background: var(--color-white);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-heading);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.purpose-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.purpose-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.purpose-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.purpose-card:hover .purpose-card__image img {
    transform: scale(1.04);
}

.purpose-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 90px;
    padding: var(--space-5);
    text-align: center;
}

.purpose-card__title {
    margin: 0;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
}

.purpose-card__desc {
    margin: 0;
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

@media (max-width: 1100px) {
    .shop-purpose__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .shop-purpose__grid {
        gap: var(--space-3);
    }
    .purpose-card__content {
        min-height: 70px;
        padding: var(--space-3) var(--space-2);
    }
    .purpose-card__title {
        font-size: var(--font-size-base);
    }
}

/* ==========================================
   BEFORE & AFTER
========================================== */

.before-after {
    background: #D3F2FF;
}

.before-after__inner {
    width: min(100% - 2rem, 1100px);
    margin: 0 auto;
}

.before-after__block {
    margin-bottom: var(--space-16);
}

.before-after__block:last-child {
    margin-bottom: 0;
}

.before-after__eyebrow {
    margin-bottom: var(--space-2);
    text-align: center;
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.before-after__title {
    margin: 0 0 var(--space-5);
    text-align: center;
    color: var(--color-heading);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
}

.before-after__images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.before-after__image {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #111;
    border-radius: var(--radius-md);
}

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

.before-after__image figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--space-3);

    background: #111;
    color: var(--color-white);

    text-align: center;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 2px;
}

.before-after__disclaimer {
    margin: var(--space-3) 0 0;
    text-align: center;
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
}

@media (max-width: 700px) {
    .before-after__block {
        margin-bottom: var(--space-12);
    }
    .before-after__title {
        font-size: var(--font-size-2xl);
    }
    .before-after__images {
        gap: var(--space-2);
    }
    .before-after__image {
        aspect-ratio: 3 / 4;
    }
}

/* ==========================================
   CUSTOMER REPORTED RESULTS
========================================== */

.results {
    background: #D3F2FF;
}

.results__inner {
    width: min(100% - 2rem, 1100px);
    margin: 0 auto;
}

.results__card {
    padding: var(--space-16) var(--space-12) var(--space-12);
    background: #111;
    border-radius: var(--radius-xl);
    color: var(--color-white);
}

.results__header {
    margin-bottom: var(--space-10);
}

.results__eyebrow {
    margin-bottom: var(--space-3);
    color: #8e8e8e;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.results__title {
    margin: 0;
    color: var(--color-white);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    line-height: 1.1;
}

.results__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
}

.results__column {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.results__item {
    display: flex;
    align-items: center;
    gap: var(--space-4);

    color: #eee;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
}

.results__icon {
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
}

.results__divider {
    height: 1px;
    margin: var(--space-10) 0 var(--space-8);
    background: #292929;
}

.results__quote {
    margin: 0;
    color: #a9a9a9;
    font-size: var(--font-size-base);
    font-style: italic;
    line-height: var(--line-height-normal);
}

@media (max-width: 700px) {
    .results__card {
        padding: var(--space-10) var(--space-6) var(--space-8);
        border-radius: var(--radius-lg);
    }
    .results__header {
        margin-bottom: var(--space-8);
    }
    .results__title {
        font-size: var(--font-size-2xl);
    }
    .results__grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    .results__item {
        font-size: var(--font-size-base);
    }
    .results__divider {
        margin: var(--space-8) 0 var(--space-6);
    }
    .results__quote {
        font-size: var(--font-size-sm);
    }
}

/* ==========================================
   QUICK VIEW MODAL
========================================== */

.phl-qv-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);

    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);

    background: rgba(16, 24, 40, 0.55);
}

.phl-qv-overlay[hidden] {
    display: none;
}

.phl-qv-modal {
    position: relative;
    width: min(960px, 95vw);
    max-height: 90vh;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #DFF6FF;
}

.phl-qv-modal.is-loading .phl-qv-loading {
    display: flex;
}

.phl-qv-loading {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    font-size: var(--font-size-3xl);
    color: var(--color-text-light);
}

.phl-qv-modal.is-loading .phl-qv-body {
    display: none;
}

.phl-qv-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 90vh;
}

.phl-qv-image {
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.phl-qv-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* .phl-qv-content carries WC's .summary class so single-product styles apply */
.phl-qv-content.summary {
    margin: 0;
    padding: var(--space-10) var(--space-8);
    overflow-y: auto;
}

.phl-qv-title {
    margin: 0 0 var(--space-3);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-heading);
}

/* Own price class (not .price) so the single-product "hide range" rule
   [.single-product .summary > .price { display:none }] doesn't hit it. */
.phl-qv-price {
    margin: 0 0 var(--space-5);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-heading);
}

.phl-qv-price .price {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.phl-qv-price del {
    margin-right: var(--space-2);
    color: var(--color-text-light);
    font-weight: var(--font-weight-normal);
}

.phl-qv-price ins {
    text-decoration: none;
}

.phl-qv-excerpt {
    margin: 0 0 var(--space-5);
    color: var(--color-text-light);
    line-height: 1.6;
}

.phl-qv-excerpt p:last-child {
    margin-bottom: 0;
}

.phl-qv-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 2;

    width: 38px;
    height: 38px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);

    font-size: 24px;
    line-height: 1;
    color: var(--color-heading);
    cursor: pointer;
}

/* The modal shows a single top price — hide WC's in-form duplicate + reset link.
   Also hide the "View cart" link WC appends after an AJAX add. */
.phl-qv-body .woocommerce-variation-price,
.phl-qv-body .reset_variations,
.phl-qv-body .added_to_cart {
    display: none;
}

@media (max-width: 700px) {
    .phl-qv-modal {
        width: 94vw;
    }
    .phl-qv-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    .phl-qv-image {
        max-height: 300px;
    }
    .phl-qv-content.summary {
        padding: var(--space-6) var(--space-5);
    }
}

/* ==========================================
   FEATURED PRODUCTS SECTION
========================================== */

.featured-products {
    background: #D3F2FF;
}

.featured-products__footer {
    margin-top: var(--space-10);
    text-align: center;
}

.btn.featured-products__cta {
    gap: var(--space-3);
    padding: var(--space-4) var(--space-10);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    min-height: 60px;
    border-radius: var(--radius-full);
}

.featured-products__cta .btn__arrow {
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.featured-products__cta:hover .btn__arrow {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .featured-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .featured-products__grid {
        gap: var(--space-3);
    }
    .section-title__heading {
        font-size: var(--font-size-3xl);
    }
}

/* ==========================================
   SITE FOOTER
========================================== */

.site-footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
}

.site-footer__inner {
    width: min(100% - 48px, 1500px);
    margin-inline: auto;
    padding: var(--space-16) 0 var(--space-8);
}

.site-footer__brand {
    margin-bottom: var(--space-10);
}

.site-footer__brand img,
.site-footer__brand .custom-logo {
    height: 38px;
    width: auto;
}

.site-footer__brand .site-logo--text {
    color: var(--color-heading);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
}

.site-footer__top {
    display: flex;
    justify-content: space-between;
    gap: var(--space-16);
}

/* ---- Newsletter ---- */

.site-footer__newsletter {
    max-width: 560px;
    flex: 1 1 auto;
}

.site-footer__title {
    margin: 0 0 var(--space-2);
    color: var(--color-heading);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
}

.site-footer__subtitle {
    margin: 0 0 var(--space-6);
    color: var(--color-text-light);
    font-size: var(--font-size-base);
}

.phl-newsletter__field {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 520px;
    background: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: border-color var(--transition-fast);
}

.phl-newsletter__field:focus-within {
    border-color: var(--color-primary);
}

.phl-newsletter__input {
    flex: 1 1 auto;
    height: 56px;
    padding: 0 var(--space-6);
    border: 0;
    background: transparent;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: var(--font-size-base);
    color: var(--color-heading);
}

.phl-newsletter__input:focus {
    outline: none;
}

.phl-newsletter__submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: var(--space-2);
    border: 0;
    border-radius: var(--radius-full);
    background: var(--color-secondary);
    color: var(--color-white);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.phl-newsletter__submit:hover {
    background: var(--color-primary);
}

.phl-newsletter.is-loading .phl-newsletter__submit {
    opacity: 0.6;
    pointer-events: none;
}

.phl-newsletter__message {
    margin: var(--space-3) 0 0;
    min-height: 1.2em;
    font-size: var(--font-size-sm);
}

.phl-newsletter__message.is-success {
    color: var(--color-success);
}

.phl-newsletter__message.is-error {
    color: var(--color-danger);
}

/* ---- Footer nav ---- */

.site-footer__nav .footer-menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: right;
}

.site-footer__nav .footer-menu a {
    color: var(--color-heading);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.site-footer__nav .footer-menu a:hover {
    opacity: 0.6;
}

/* ---- Bottom row ---- */

.site-footer__bottom {
    margin-top: var(--space-16);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

@media (max-width: 900px) {
    .site-footer__inner {
        width: min(100% - 2rem, 1500px); /* match the page's 16px side gutter */
        padding: var(--space-12) 0 var(--space-6);
    }
    .site-footer__top {
        flex-direction: column;
        gap: var(--space-10);
    }
    .site-footer__newsletter {
        max-width: none;
    }
    .phl-newsletter__field {
        max-width: none;
    }
    .site-footer__nav .footer-menu {
        text-align: left;
    }
    .site-footer__bottom {
        margin-top: var(--space-10);
    }
}

/* ==========================================
   LEGAL / POLICY PAGES (Terms of Service, etc.)
   Scoped to .phl-legal only — the theme reset zeroes p/heading margins and
   strips list bullets, so restore readable prose spacing here without touching
   any other page. Uses the design tokens.
========================================== */

.phl-legal {
    /* Extra breathing room between the header and the legal content,
       on top of .site-main's 60px — page-scoped via this wrapper. */
    padding-top: var(--space-4);
    max-width: 820px;   /* readable measure; .container stays 1320px elsewhere */
    margin-inline: auto;
    color: var(--color-text);
    line-height: var(--line-height-normal);
}

.phl-legal h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-8);
}

.phl-legal h2 {
    font-size: var(--font-size-2xl);
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
}

.phl-legal p {
    margin-bottom: var(--space-4);
}

.phl-legal a {
    color: var(--color-primary);
    text-decoration: underline;
}

.phl-legal ul,
.phl-legal ol {
    margin: 0 0 var(--space-4);
    padding-left: var(--space-6);
    list-style: revert;
}

.phl-legal li {
    margin-bottom: var(--space-2);
    list-style: revert;
}

@media (max-width: 767px) {
    .phl-legal h1 { font-size: var(--font-size-3xl); }
    .phl-legal h2 { font-size: var(--font-size-xl); margin-top: var(--space-8); }
}
