/*
 * Carolyne Potvin — native model detail pages.
 *
 * Presentation only. Shared controllers, forms, routes, payment components,
 * authentication, cart and access-control services remain authoritative.
 */

body.cp-single-page {
    margin: 0;
    background: #f8f5ef;
    color: #263a37;
    font-family: "Figtree", sans-serif;
}

.cp-single-page .cp-main {
    min-height: 55vh;
}

.cp-single-page .cp-single-hero {
    position: relative;
    display: grid;
    min-height: clamp(410px, 56vw, 640px);
    align-items: end;
    overflow: hidden;
    background: #173f3a center 35% / cover no-repeat;
    color: #fff;
}

.cp-single-page .cp-single-hero::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 49, 45, .94) 0%, rgba(12, 49, 45, .72) 52%, rgba(12, 49, 45, .32) 100%);
    content: "";
}

.cp-single-page .cp-single-hero__content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    padding: clamp(90px, 14vw, 170px) 0 clamp(62px, 9vw, 110px);
    margin-inline: auto;
}

.cp-single-page .cp-single-hero h1 {
    max-width: 940px;
    margin: 10px 0 0;
    color: #fff;
    font-family: "Fraunces", serif;
    font-size: clamp(2.8rem, 7vw, 6.3rem);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .94;
    text-wrap: balance;
}

.cp-single-page .cp-single-hero .cp-eyebrow {
    color: #f4d9b4;
}

.cp-single-page .cp-single-languages {
    display: flex;
    gap: 8px;
    margin-top: 28px;
}

.cp-single-page .cp-single-languages a {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
}

.cp-single-page .cp-single-section {
    padding: clamp(55px, 8vw, 105px) 0;
}

.cp-single-page .cp-single-section--soft {
    background: #edf5f2;
}

.cp-single-page .cp-single-wrap {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.cp-single-page .cp-single-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.cp-single-page .cp-single-content,
.cp-single-page .cp-single-panel {
    border: 1px solid rgba(23, 63, 58, .1);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(31, 66, 61, .08);
}

.cp-single-page .cp-single-content {
    overflow: hidden;
}

.cp-single-page .cp-single-content__body {
    padding: clamp(25px, 4vw, 48px);
}

.cp-single-page .cp-single-content h2,
.cp-single-page .cp-single-content h3,
.cp-single-page .cp-single-panel h2,
.cp-single-page .cp-single-panel h3,
.cp-single-page .cp-single-rich h2,
.cp-single-page .cp-single-rich h3 {
    color: #173f3a;
    font-family: "Fraunces", serif;
    font-weight: 500;
    letter-spacing: -.025em;
}

.cp-single-page .cp-single-content h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.cp-single-page .cp-single-content h3,
.cp-single-page .cp-single-panel h2 {
    font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.cp-single-page .cp-single-rich,
.cp-single-page .cp-single-rich p,
.cp-single-page .cp-single-rich li {
    color: #50625e;
    font-size: 1.04rem;
    line-height: 1.8;
}

.cp-single-page .cp-single-rich ul,
.cp-single-page .cp-single-rich ol {
    padding-left: 1.25rem;
}

.cp-single-page .cp-single-rich ul {
    list-style: disc;
}

.cp-single-page .cp-single-rich ol {
    list-style: decimal;
}

.cp-single-page .cp-single-rich li {
    margin-bottom: 7px;
    list-style: inherit;
}

.cp-single-page .cp-single-media,
.cp-single-page .cp-single-media img,
.cp-single-page .cp-single-media video {
    display: block;
    width: 100%;
}

.cp-single-page .cp-single-media img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.cp-single-page .cp-single-media video {
    max-height: 680px;
    background: #0c2926;
}

.cp-single-page .cp-single-sidebar {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 24px;
}

.cp-single-page .cp-single-panel {
    padding: 28px;
}

.cp-single-page .cp-single-panel--accent {
    background: #173f3a;
    color: #fff;
}

.cp-single-page .cp-single-panel--accent h2,
.cp-single-page .cp-single-panel--accent h3,
.cp-single-page .cp-single-panel--accent p,
.cp-single-page .cp-single-panel--accent label {
    color: #fff;
}

.cp-single-page .cp-single-price {
    margin-bottom: 20px;
    color: #173f3a;
    font-family: "Fraunces", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1;
}

.cp-single-page .cp-single-panel--accent .cp-single-price {
    color: #f4d9b4;
}

.cp-single-page .cp-single-price small {
    display: block;
    margin-top: 7px;
    font-family: "Figtree", sans-serif;
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.35;
}

.cp-single-page .cp-single-facts {
    display: grid;
    gap: 0;
}

.cp-single-page .cp-single-facts li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 0;
    border-bottom: 1px solid rgba(23, 63, 58, .1);
    color: #405550;
}

.cp-single-page .cp-single-facts li:last-child {
    border-bottom: 0;
}

.cp-single-page .cp-single-facts i {
    width: 18px;
    margin-top: 5px;
    color: #c56f4a;
    text-align: center;
}

.cp-single-page .cp-single-benefits {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.cp-single-page .cp-single-benefits li {
    position: relative;
    padding-left: 27px;
    color: #405550;
}

.cp-single-page .cp-single-benefits li::before {
    position: absolute;
    top: .1em;
    left: 0;
    color: #2e9c98;
    content: "✓";
    font-weight: 800;
}

.cp-single-page .cp-single-description {
    display: grid;
    gap: 28px;
    margin-top: 38px;
}

.cp-single-page .cp-single-description__section {
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(23, 63, 58, .1);
    border-radius: 20px;
    background: #fff;
}

.cp-single-page .cp-single-description__section img {
    width: 100%;
    margin-top: 22px;
    border-radius: 14px;
}

.cp-single-page .cp-single-meta,
.cp-single-page .cp-single-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    align-items: center;
}

.cp-single-page .cp-single-meta {
    margin: 14px 0 28px;
    color: #697873;
    font-size: .9rem;
}

.cp-single-page .cp-single-categories {
    margin-bottom: 22px;
}

.cp-single-page .cp-single-category {
    padding: 6px 12px;
    border-radius: 999px;
    background: #e4f0ed;
    color: #173f3a;
    font-size: .76rem;
    font-weight: 700;
}

.cp-single-page .cp-single-other {
    display: grid;
    gap: 10px;
}

.cp-single-page .cp-single-other a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid rgba(23, 63, 58, .1);
    color: #173f3a;
    font-weight: 650;
    text-decoration: none;
}

.cp-single-page .payment-methods-container,
.cp-single-page .md_payment_methods {
    display: grid;
    gap: 10px;
    background: transparent !important;
    box-shadow: none !important;
}

.cp-single-page .payment-method-button {
    position: relative;
    display: flex;
    min-height: 52px;
    align-items: center;
    cursor: pointer;
}

.cp-single-page .payment-method-input,
.cp-single-page .plan-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cp-single-page .payment-method-label,
.cp-single-page .variation-option,
.cp-single-page .plan-input + .payment-method-label {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: inherit;
    line-height: 1.35;
    transition: .2s ease;
}

.cp-single-page .payment-method-input:checked + .payment-method-label,
.cp-single-page .plan-input:checked + .payment-method-label,
.cp-single-page .variation-option.is-selected {
    border-color: #f4d9b4;
    background: rgba(244, 217, 180, .16);
}

.cp-single-page .checkmark {
    display: none;
}

.cp-single-page .form-control,
.cp-single-page input[type="text"],
.cp-single-page input[type="email"],
.cp-single-page input[type="password"],
.cp-single-page input[type="number"],
.cp-single-page select,
.cp-single-page textarea {
    width: 100%;
    min-height: 50px;
    padding: 10px 13px;
    border: 1px solid rgba(23, 63, 58, .18);
    border-radius: 11px;
    background: #fff;
    color: #263a37;
}

.cp-single-page .md_orange_btn,
.cp-single-page .md_a_btn,
.cp-single-page .md_buy_btn,
.cp-single-page .cp-single-action {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid #c56f4a;
    border-radius: 999px;
    background: #c56f4a !important;
    color: #fff !important;
    font-size: .81rem;
    font-weight: 750;
    letter-spacing: .05em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.cp-single-page .md_orange_btn:hover,
.cp-single-page .md_a_btn:hover,
.cp-single-page .md_buy_btn:hover,
.cp-single-page .cp-single-action:hover {
    border-color: #2e9c98;
    background: #2e9c98 !important;
}

.cp-single-page button[disabled] {
    cursor: not-allowed;
    opacity: .52;
}

.cp-single-page .cp-single-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.cp-single-page .cp-single-back {
    margin-top: 36px;
}

.cp-single-page .md_fluid_login {
    padding: 28px;
    border: 1px solid rgba(23, 63, 58, .1);
    border-radius: 20px;
    background: #fff;
}

.cp-single-page .md_fluid_login label,
.cp-single-page .md_fluid_login a {
    color: #173f3a;
}

.cp-single-page .alert {
    border: 0;
    border-radius: 12px;
}

.cp-single-page .thumb-carousel,
.cp-single-page .cp-product-thumbs {
    display: flex;
    gap: 9px;
    padding: 14px;
    overflow-x: auto;
    background: #fff;
}

.cp-single-page .thumb-carousel__item {
    padding: 2px;
    border: 1px solid rgba(23, 63, 58, .15);
    border-radius: 9px;
    background: #fff;
}

.cp-single-page .thumb-carousel__item img {
    width: 68px;
    height: 68px;
    border-radius: 7px;
    object-fit: cover;
}

.cp-single-page .thumb-carousel__item.is-active {
    border-color: #c56f4a;
}

.cp-single-page .variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cp-single-page .variation-option {
    width: auto;
    min-height: 38px;
    color: #fff;
}

.cp-single-page .cart-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    display: flex;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 10px;
    background: #173f3a;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: .2s ease;
}

.cp-single-page .cart-notice--visible {
    opacity: 1;
    transform: none;
}

.cp-single-page .cart-notice--error {
    background: #a43d3d;
}

.cp-single-page .cp-footer h2,
.cp-single-page .cp-footer h3,
.cp-single-page .cp-footer p,
.cp-single-page .cp-footer li,
.cp-single-page .cp-footer a,
.cp-single-page .cp-footer span {
    color: #fff;
}

.cp-single-page .cp-powered-by span {
    color: rgba(255, 255, 255, .78);
}

@media (max-width: 960px) {
    .cp-single-page .cp-single-grid {
        grid-template-columns: 1fr;
    }

    .cp-single-page .cp-single-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .cp-single-page .cp-single-hero {
        min-height: 360px;
    }

    .cp-single-page .cp-single-wrap,
    .cp-single-page .cp-single-hero__content {
        width: min(100% - 28px, 1180px);
    }

    .cp-single-page .cp-single-content,
    .cp-single-page .cp-single-panel,
    .cp-single-page .cp-single-description__section {
        border-radius: 16px;
    }

    .cp-single-page .cp-single-panel {
        padding: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-single-page *,
    .cp-single-page *::before,
    .cp-single-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
