/* Product composition built on Tolik UI. Checkout and catalog data stay unchanged. */
.storefront-service-page main {
    padding-top: var(--ts-space-4);
    margin-top: 0;
}

.storefront-service-page .storefront-compact-hero {
    min-height: 0;
    align-items: start;
    gap: var(--ts-space-8);
    padding: var(--ts-space-6) 0 var(--ts-space-4);
}

.category-page .storefront-compact-hero {
    display: block;
}

.storefront-service-page .back-link {
    min-height: var(--ts-touch-target);
    margin-bottom: var(--ts-space-4);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ts-text-muted);
    backdrop-filter: none;
}

.storefront-title-row {
    display: flex;
    align-items: center;
    gap: var(--ts-space-4);
}

.storefront-title-row #categoryIcon,
.storefront-purchase-card .product-hero-icon {
    width: var(--ts-control-height-lg);
    height: var(--ts-control-height-lg);
    flex: none;
}

.storefront-title-row .category-logo,
.storefront-purchase-card .product-hero-icon .category-logo {
    width: var(--ts-control-height-md);
    height: var(--ts-control-height-md);
    object-fit: contain;
}

.storefront-service-page .category-hero-copy h1,
.storefront-service-page .product-hero-copy h1 {
    margin: 0;
    color: var(--ts-text);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: var(--ts-line-heading);
    letter-spacing: -.045em;
}

.storefront-service-page .category-hero-copy .lead,
.storefront-service-page .product-hero-copy .lead {
    max-width: 45rem;
    margin: var(--ts-space-3) 0 0;
    color: var(--ts-text-muted);
    font-size: var(--ts-font-size-body);
    line-height: var(--ts-line-body);
}

.storefront-service-page .category-hero-card,
.storefront-service-page #categoryMeta {
    display: none;
}

.storefront-service-page .category-filter-row {
    margin-top: var(--ts-space-5);
    gap: var(--ts-space-2);
}

.storefront-service-page .filter-pill {
    min-height: var(--ts-touch-target);
    padding: 0 var(--ts-space-4);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-sm);
    background: var(--ts-surface);
    color: var(--ts-text-muted);
    font-size: var(--ts-font-size-sm);
    font-weight: var(--ts-weight-bold);
    box-shadow: none;
}

.storefront-service-page .filter-pill.is-active {
    border-color: var(--ts-border-focus);
    color: var(--ts-brand-text);
    background: var(--ts-brand-soft);
    box-shadow: none;
}

.storefront-filter-label {
    flex-basis: 100%;
    color: var(--ts-text);
    font-size: var(--ts-font-size-md);
    font-weight: var(--ts-weight-bold);
    margin-bottom: var(--ts-space-1);
}

.storefront-region-hint {
    margin: var(--ts-space-3) 0 0;
    color: var(--ts-text-muted);
    font-size: var(--ts-font-size-sm);
}

.storefront-service-page #products {
    padding-top: var(--ts-space-5);
    margin-top: 0;
}

.storefront-service-page .section-head {
    margin-bottom: var(--ts-space-5);
}

.storefront-service-page .section-head h2 {
    color: var(--ts-text);
    font-size: var(--ts-font-size-2xl);
    letter-spacing: -.03em;
}

.storefront-service-page .product-card {
    min-height: 0;
    padding: var(--ts-space-5);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-lg);
    background: var(--ts-surface);
    box-shadow: none;
    backdrop-filter: none;
}

.storefront-service-page .product-title {
    color: var(--ts-text);
    font-size: var(--ts-font-size-lg);
    line-height: var(--ts-line-heading);
}

.storefront-service-page .product-tag {
    color: var(--ts-text-muted);
    font-size: var(--ts-font-size-xs);
}

.storefront-service-page .product-desc {
    color: var(--ts-text-muted);
    font-size: var(--ts-font-size-md);
    line-height: var(--ts-line-body);
}

.storefront-service-page .price {
    color: var(--ts-text);
    font-size: var(--ts-font-size-xl);
}

.storefront-service-page .details-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--ts-touch-target);
    color: var(--ts-text-muted);
    font-size: var(--ts-font-size-sm);
}

.storefront-service-page .buy-button {
    min-height: var(--ts-touch-target);
    border: 0;
    border-radius: var(--ts-radius-sm);
    color: var(--ts-text);
    background: var(--ts-brand-soft);
    box-shadow: none;
}

.category-page .category-product-grid.storefront-grouped-plans {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ts-space-3);
}

.storefront-plan-group {
    overflow: hidden;
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-lg);
    background: var(--ts-surface);
}

.storefront-plan-group > summary {
    display: flex;
    align-items: center;
    gap: var(--ts-space-5);
    min-height: 6rem;
    padding: var(--ts-space-5) var(--ts-space-6);
    list-style: none;
    cursor: pointer;
}

.storefront-plan-group > summary::-webkit-details-marker,
.storefront-disclosure > summary::-webkit-details-marker {
    display: none;
}

.storefront-plan-name {
    display: grid;
    flex: 1;
    gap: var(--ts-space-1);
    min-width: 0;
}

.storefront-plan-name strong {
    color: var(--ts-text);
    font-size: var(--ts-font-size-lg);
}

.storefront-plan-name > span {
    color: var(--ts-text-muted);
    font-size: var(--ts-font-size-sm);
}

.storefront-plan-price {
    color: var(--ts-text);
    font-size: var(--ts-font-size-xl);
    font-weight: var(--ts-weight-extrabold);
    white-space: nowrap;
}

.storefront-plan-indicator {
    color: var(--ts-brand-text);
    font-size: var(--ts-font-size-2xl);
    font-weight: var(--ts-weight-regular);
}

.storefront-plan-group[open] .storefront-plan-indicator {
    transform: rotate(45deg);
}

.storefront-plan-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ts-space-3);
    padding: 0 var(--ts-space-5) var(--ts-space-5);
}

.storefront-plan-methods .product-card {
    background: var(--ts-surface-soft);
}

.storefront-plan-methods .product-logo,
.storefront-plan-methods .product-tag {
    display: none;
}

.storefront-additional-service {
    margin-top: var(--ts-space-3);
    background: var(--ts-surface-soft);
}

.storefront-disclosure {
    margin-top: var(--ts-space-6);
    border-top: 1px solid var(--ts-border);
    border-bottom: 1px solid var(--ts-border);
}

.storefront-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--ts-control-height-lg);
    padding: var(--ts-space-3) 0;
    list-style: none;
    cursor: pointer;
    color: var(--ts-text);
    font-weight: var(--ts-weight-bold);
}

.storefront-disclosure > summary::after {
    content: "+";
    color: var(--ts-brand-text);
    font-size: var(--ts-font-size-xl);
    font-weight: var(--ts-weight-regular);
}

.storefront-disclosure[open] > summary::after {
    content: "−";
}

.storefront-disclosure > summary > h2 {
    margin: 0;
    font-size: var(--ts-font-size-lg);
    line-height: var(--ts-line-heading);
}

.storefront-disclosure .product-detail-card,
.storefront-disclosure #categoryBotSection {
    min-height: 0;
    margin: 0;
    padding: 0 0 var(--ts-space-5);
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.storefront-service-page .rich-copy,
.storefront-service-page .rich-copy a {
    color: var(--ts-text-muted);
    overflow-wrap: anywhere;
}

.storefront-service-page .rich-copy p {
    margin: 0;
}

.product-page .storefront-compact-hero {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, .65fr);
}

.storefront-service-page .product-hero-copy > .eyebrow {
    display: none;
}

.storefront-service-page .product-hero-meta {
    margin-top: var(--ts-space-4);
    gap: var(--ts-space-2);
}

.storefront-service-page .product-hero-meta > span {
    min-height: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: var(--ts-text-muted) !important;
    font-size: var(--ts-font-size-sm);
    box-shadow: none;
}

.storefront-service-page .product-hero-meta > span + span::before {
    content: "·";
    margin-right: var(--ts-space-2);
}

.storefront-service-page .storefront-purchase-card {
    display: grid;
    justify-items: start;
    gap: var(--ts-space-3);
    min-height: 0;
    padding: var(--ts-space-6);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-xl);
    color: var(--ts-text);
    background: var(--ts-surface);
    box-shadow: var(--ts-shadow-sm);
    backdrop-filter: none;
    text-align: left;
}

.storefront-purchase-card .product-hero-price {
    color: var(--ts-text);
    font-size: var(--ts-font-size-2xl);
    line-height: var(--ts-line-heading);
}

.storefront-purchase-card .product-hero-note {
    min-height: 0;
    padding: 0;
    border: 0;
    color: var(--ts-text-muted);
    background: transparent;
    font-size: var(--ts-font-size-sm);
    box-shadow: none;
}

.storefront-purchase-card .hero-actions {
    display: grid;
    width: 100%;
    gap: var(--ts-space-2);
    margin-top: var(--ts-space-2);
}

.storefront-service-page .product-important-card {
    min-height: 0;
    padding: var(--ts-space-4) var(--ts-space-5);
    margin-top: var(--ts-space-5);
    border: 1px solid var(--ts-warning-border);
    border-radius: var(--ts-radius-md);
    background: var(--ts-warning-bg);
    box-shadow: none;
    backdrop-filter: none;
}

.storefront-service-page .product-important-card h2 {
    color: var(--ts-text);
    font-size: var(--ts-font-size-md);
    margin-bottom: var(--ts-space-3);
}

.storefront-service-page .product-important-card .rich-copy {
    font-size: var(--ts-font-size-sm);
    color: var(--ts-text);
    gap: var(--ts-space-2);
}

.storefront-service-page .product-detail-grid {
    display: block;
    padding: 0;
}

.storefront-service-page .product-video-section,
.storefront-service-page .product-instruction-section,
.storefront-service-page .product-faq-section,
.storefront-service-page #relatedSection {
    padding-top: var(--ts-space-8);
}

@media (max-width: 800px) {
    .product-page .storefront-compact-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--ts-space-5);
    }

    .storefront-service-page .storefront-compact-hero {
        padding-top: var(--ts-space-3);
    }

    .storefront-service-page .category-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .storefront-service-page .storefront-purchase-card {
        padding: var(--ts-space-5);
    }

    .storefront-purchase-card .product-hero-icon {
        display: none;
    }
}

@media (max-width: 560px) {
    .storefront-title-row {
        gap: var(--ts-space-3);
    }

    .storefront-title-row #categoryIcon,
    .storefront-title-row .category-logo {
        width: var(--ts-control-height-md);
        height: var(--ts-control-height-md);
    }

    .storefront-service-page .category-product-grid,
    .storefront-plan-methods {
        grid-template-columns: minmax(0, 1fr);
    }

    .storefront-plan-group > summary {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto 1rem;
        min-height: 5.5rem;
        padding: var(--ts-space-4);
        gap: var(--ts-space-3);
    }

    .storefront-plan-indicator {
        justify-self: end;
    }

    .storefront-plan-price {
        font-size: var(--ts-font-size-lg);
    }

    .storefront-plan-methods {
        padding: 0 var(--ts-space-3) var(--ts-space-3);
    }

    .storefront-service-page .product-bottom {
        flex-wrap: wrap;
        gap: var(--ts-space-3);
    }

    .storefront-service-page .product-actions {
        margin-left: auto;
    }
}
