/* ============================================
   POINTUS SINGLE PRODUCT PAGE
   Editorial, sectioned, magazine-style
   ============================================ */

/* Break out of Astra container width */
.single-product .ast-container,
.woocommerce.single-product .ast-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.single-product #primary,
.woocommerce.single-product #primary {
    padding: 0 !important;
    margin: 0 !important;
}

.pp-product {
    font-family: var(--font-body);
    color: var(--color-body);
    background: var(--color-bg);
    overflow-x: hidden;
}

.pp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Reveal animation base state */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

/* ============ BREADCRUMB ============ */
.pp-breadcrumb {
    padding: 24px 0 0;
    font-size: 13px;
}

.pp-breadcrumb a {
    color: var(--color-body);
    text-decoration: none;
    transition: color 0.15s ease;
}

.pp-breadcrumb a:hover {
    color: var(--color-accent);
}

.pp-sep {
    margin: 0 8px;
    color: #9CA3AF;
}

.pp-current {
    color: var(--color-heading);
    font-weight: 500;
}

/* ============ HERO ============ */
.pp-hero {
    padding: 48px 0 96px;
}

.pp-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: start;
}

/* Gallery */
.pp-gallery {
    position: sticky;
    top: 24px;
}

.pp-gallery-main {
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, #FAFBFC 0%, #F2F0FE 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pp-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: opacity 0.3s ease;
}

.pp-gallery-main img.is-swapping {
    opacity: 0;
}

.pp-gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.pp-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--color-bg-muted);
    padding: 6px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.pp-thumb:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.pp-thumb.is-active {
    border-color: var(--color-accent);
}

.pp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Hero Info (sticky right) */
.pp-hero-info {
    position: sticky;
    top: 24px;
    padding-top: 8px;
}

.pp-mfr {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--color-body);
    letter-spacing: 0.02em;
}

.pp-mfr-prefix {
    color: #9CA3AF;
}

.pp-mfr-name {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

.pp-mfr-name:hover {
    text-decoration: underline;
}

.pp-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-heading);
    margin: 0 0 16px;
}

.pp-lead {
    font-size: 17px;
    line-height: 1.55;
    color: var(--color-body);
    margin: 0 0 28px;
}

/* Trust badges */
.pp-trust {
    list-style: none;
    margin: 0 0 28px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pp-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-heading);
    font-weight: 500;
}

.pp-trust li svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

/* CTA buttons */
.pp-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.pp-btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 103, 255, 0.25);
}

.pp-btn-primary:hover {
    background: #0052cc;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 103, 255, 0.3);
}

.pp-btn-outline {
    background: var(--color-bg);
    color: var(--color-heading);
    border: 1.5px solid var(--color-border);
}

.pp-btn-outline:hover {
    border-color: var(--color-heading);
    color: var(--color-heading);
    transform: translateY(-2px);
}

/* ============ SECTIONS ============ */
.pp-section {
    padding: 96px 0;
    border-top: 1px solid var(--color-border);
}

.pp-section-alt {
    background: var(--color-bg-muted);
}

.pp-section-inner {
    max-width: 1100px;
}

.pp-section-head {
    margin-bottom: 48px;
}

.pp-section-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.pp-section-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-heading);
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.pp-section-count {
    font-size: 18px;
    font-weight: 500;
    color: #9CA3AF;
    letter-spacing: 0;
}

/* Prose (overview content) */
.pp-prose {
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-body);
    max-width: 760px;
}

.pp-prose p {
    margin: 0 0 1.2em;
}

.pp-prose strong {
    color: var(--color-heading);
}

.pp-prose h3 {
    color: var(--color-heading);
    font-size: 22px;
    font-weight: 700;
    margin: 2em 0 0.6em;
}

.pp-prose ul,
.pp-prose ol {
    margin: 0 0 1.5em;
    padding-left: 24px;
}

.pp-prose li {
    margin-bottom: 0.4em;
}

.pp-prose a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============ VARIANTS ============ */
.pp-variants {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pp-variant {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
    padding: 24px 28px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pp-variant:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.pp-variant-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-heading);
    margin: 0 0 6px;
    line-height: 1.3;
}

.pp-variant-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 10px;
}

.pp-variant-sku {
    font-family: ui-monospace, monospace;
}

.pp-variant-desc {
    font-size: 14px;
    color: var(--color-body);
    margin: 0;
    line-height: 1.55;
    max-width: 560px;
}

.pp-variant-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.pp-variant-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.pp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: var(--color-bg-muted);
    color: var(--color-body);
    white-space: nowrap;
}

.pp-badge-stock {
    background: #DCFCE7;
    color: #166534;
}

.pp-badge-stock .pp-dot {
    background: #16A34A;
}

.pp-badge-out {
    background: #FEE2E2;
    color: #991B1B;
}

.pp-badge-out .pp-dot {
    background: #DC2626;
}

.pp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ============ ACCESSORIES ============ */
.pp-accessories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.pp-acc-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pp-acc-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-4px);
}

.pp-acc-image {
    aspect-ratio: 1 / 1;
    background: var(--color-bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.pp-acc-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

.pp-acc-card:hover .pp-acc-image img {
    transform: scale(1.04);
}

.pp-acc-body {
    padding: 14px 16px 18px;
}

.pp-acc-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-heading);
    margin: 0 0 4px;
}

.pp-acc-desc {
    font-size: 12px;
    color: var(--color-accent);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============ DATASHEETS ============ */
.pp-datasheets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.pp-sheet {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pp-sheet:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.pp-sheet-icon {
    width: 52px;
    height: 52px;
    background: var(--color-bg-soft);
    color: var(--color-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pp-sheet-body {
    min-width: 0;
}

.pp-sheet-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-heading);
    margin: 0 0 2px;
}

.pp-sheet-meta {
    font-size: 12px;
    color: #9CA3AF;
    margin: 0;
    font-family: ui-monospace, monospace;
    letter-spacing: 0.02em;
}

.pp-sheet-action {
    width: 40px;
    height: 40px;
    background: var(--color-bg-soft);
    border-radius: 50%;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pp-sheet:hover .pp-sheet-action {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(2px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .pp-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pp-gallery,
    .pp-hero-info {
        position: relative;
        top: auto;
    }

    .pp-hero-info {
        max-width: 600px;
    }

    .pp-section {
        padding: 64px 0;
    }
}

@media (max-width: 768px) {
    .pp-container {
        padding: 0 20px;
    }

    .pp-hero {
        padding: 32px 0 64px;
    }

    .pp-section {
        padding: 56px 0;
    }

    .pp-section-head {
        margin-bottom: 32px;
    }

    .pp-variant {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pp-variant-side {
        align-items: flex-start;
    }

    .pp-variant-badges {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .pp-trust {
        gap: 10px;
    }

    .pp-actions .pp-btn {
        width: 100%;
    }

    .pp-sheet {
        padding: 16px 18px;
        gap: 14px;
    }

    .pp-sheet-icon {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .pp-thumb {
        width: 56px;
        height: 56px;
    }

    .pp-gallery-main {
        padding: 28px;
        border-radius: 14px;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
