/* Single product page — matches the onboarding / shop look. Scoped to body.hz-product. */
body.hz-product {
    --hz-green: #0e9c6f;
    --hz-purple: #7c3aed;
    --hz-border: #e4e4e7;
    --hz-text: #16181d;
    --hz-muted: #6b7280;
}

body.hz-product,
body.hz-product .site-main,
body.hz-product .site-content,
body.hz-product .site-header,
body.hz-product .site-footer {
    background: #fff !important;
    color: var(--hz-text) !important;
    font-family: "IBM Plex Sans", sans-serif;
}

body.hz-product .site-header,
body.hz-product header#masthead { border-bottom: 1px solid var(--hz-border); }

body.hz-product .site-header .site-title a,
body.hz-product .site-header .site-description,
body.hz-product .main-navigation ul li a,
body.hz-product .secondary-navigation ul.menu a {
    color: var(--hz-text) !important;
    -webkit-text-fill-color: var(--hz-text) !important;
}

body.hz-product .site-header .site-title a {
    color: var(--hz-green) !important;
    -webkit-text-fill-color: var(--hz-green) !important;
}

/* layout: no sidebar, full width, centred */
body.hz-product #secondary,
body.hz-product .widget-area { display: none !important; }

body.hz-product .content-area {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

body.hz-product .storefront-breadcrumb,
body.hz-product .storefront-product-pagination,
body.hz-product .storefront-sticky-add-to-cart,
body.hz-product .product_meta,
body.hz-product section.related,
body.hz-product section.upsells { display: none !important; }

body.hz-product .site-main {
    background:
        radial-gradient(800px 380px at 10% -10%, rgba(14, 156, 111, 0.10), transparent 60%),
        radial-gradient(800px 380px at 95% 0%, rgba(124, 58, 237, 0.10), transparent 60%),
        #fff !important;
    padding: 3rem 0 4rem;
}

/* the plan "card" */
body.hz-product div.product {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding: 2.6rem 2.2rem 2.2rem;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 50px rgba(14, 156, 111, 0.12), 0 2px 16px rgba(0, 0, 0, 0.05);
    isolation: isolate;
}

body.hz-product div.product::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(145deg, var(--hz-green), var(--hz-purple));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

body.hz-product.hz-product--no-image div.product div.summary {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    clear: both;
}

/* with a photo: keep the two-column layout inside the card */
body.hz-product:not(.hz-product--no-image) div.product { max-width: 960px; }

body.hz-product .product_title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 0.6rem;
    background: linear-gradient(90deg, var(--hz-green), var(--hz-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

body.hz-product .summary .price {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--hz-text) !important;
    margin: 0 0 1.4rem;
}

body.hz-product .summary .price .amount,
body.hz-product .summary .price bdi { color: var(--hz-text) !important; }

body.hz-product .summary .price .hms-interval {
    display: inline-block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--hz-green);
    background: rgba(14, 156, 111, 0.09);
    border: 1px solid rgba(14, 156, 111, 0.25);
    border-radius: 50px;
    padding: 0.3rem 0.85rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}

/* description: lead line + check-marked feature list */
body.hz-product .hz-plan-description { color: var(--hz-muted); font-size: 1rem; line-height: 1.6; }
body.hz-product .hz-plan-description p { margin: 0 0 1rem; }
body.hz-product .hz-plan-description strong { color: var(--hz-green); font-family: "IBM Plex Mono", monospace; }

body.hz-product .hz-plan-description ul {
    list-style: none;
    margin: 0 0 1.8rem;
    padding: 1.2rem 0 0;
    border-top: 1px solid var(--hz-border);
    display: grid;
    gap: 0.7rem;
}

body.hz-product .hz-plan-description li {
    position: relative;
    margin: 0;
    padding-left: 1.7rem;
    color: var(--hz-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

body.hz-product .hz-plan-description li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: var(--hz-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.7 2.7L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}

/* add to cart */
body.hz-product form.cart { margin: 0; }

body.hz-product .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, var(--hz-green), var(--hz-purple)) !important;
    border: 0;
    border-radius: 50px;
    padding: 1rem 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.hz-product .single_add_to_cart_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(14, 156, 111, 0.3);
}

@media (max-width: 600px) {
    body.hz-product div.product { padding: 2rem 1.3rem 1.6rem; margin: 0 1rem; }
}
