.cgaf-product-page {
    color: #151922;
}

body.cgaf-single-product {
    background: #f7f8fa;
}

body.cgaf-single-product #header,
body.cgaf-single-product .site-header,
body.cgaf-single-product .site-footer,
body.cgaf-single-product .wp-site-blocks > header,
body.cgaf-single-product .wp-site-blocks > footer {
    display: none !important;
}

.cgaf-product-store-header,
.cgaf-product-store-footer {
    max-width: none !important;
    width: 100vw !important;
    margin-right: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50vw) !important;
}

.cgaf-product-store-header {
    margin-top: 0 !important;
}

.cgaf-product-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px 56px;
}

.cgaf-product-breadcrumb {
    margin-bottom: 22px;
    color: #536274;
    font-size: 0.95rem;
}

.cgaf-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    gap: 28px;
    align-items: start;
}

.cgaf-product-title-panel,
.cgaf-content-panel,
.cgaf-media-panel,
.cgaf-purchase-panel,
.cgaf-info-panel {
    border: 1px solid #e2e7ed;
    border-radius: 8px;
    background: #fff;
}

.cgaf-product-policy-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf0f3;
}

.cgaf-product-policy-links a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid #dfe5eb;
    border-radius: 6px;
    color: #3f4c5b;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.cgaf-product-title-panel {
    padding: 24px 24px 20px;
    margin-bottom: 18px;
}

.cgaf-product-title-panel h1 {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e6ebef;
    color: #111722;
    font-size: 2rem;
    line-height: 1.22;
    letter-spacing: 0;
}

.cgaf-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 30px;
    color: #4d5968;
    font-size: 1rem;
}

.cgaf-product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cgaf-product-page .dashicons {
    width: 22px;
    height: 22px;
    font-size: 22px;
    line-height: 1;
}

.cgaf-content-panel {
    margin-bottom: 22px;
    overflow: hidden;
}

.cgaf-detail-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    border-bottom: 1px solid #e1e6ec;
}

.cgaf-detail-tabs a,
.cgaf-sidebar-tabs a,
.cgaf-sidebar-tabs span {
    color: #5b6470;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.cgaf-detail-tabs a {
    padding: 18px 12px;
    border-bottom: 3px solid transparent;
    font-size: 0.98rem;
}

.cgaf-detail-tabs a.is-active {
    color: #151922;
    border-bottom-color: #1aa9b9;
}

.cgaf-description {
    padding: 24px 26px 30px;
    color: #273241;
    font-size: 1.05rem;
    line-height: 1.75;
}

.cgaf-description p {
    margin: 0 0 1.25em;
}

.cgaf-description p:last-child {
    margin-bottom: 0;
}

.cgaf-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.cgaf-benefits section {
    min-height: 158px;
    padding: 22px 16px;
    border: 1px solid #eef1f4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(21, 25, 34, 0.06);
    text-align: center;
}

.cgaf-benefits .dashicons {
    margin-bottom: 20px;
    color: #151922;
}

.cgaf-benefits h2,
.cgaf-content-panel h2,
.cgaf-content-panel h3 {
    margin: 0 0 14px;
    color: #111722;
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: 0;
}

.cgaf-content-panel h3 {
    font-size: 1rem;
}

.cgaf-benefits p,
.cgaf-content-panel > p,
.cgaf-content-panel > ul,
.cgaf-content-panel > ol {
    margin: 0;
    color: #526070;
    line-height: 1.55;
}

.cgaf-benefits p {
    font-size: 0.95rem;
}

.cgaf-content-panel > h2,
.cgaf-content-panel > h3,
.cgaf-content-panel > p {
    padding-left: 24px;
    padding-right: 24px;
}

.cgaf-content-panel > h2 {
    padding-top: 22px;
}

.cgaf-content-panel > h3 {
    padding-top: 8px;
}

.cgaf-content-panel > p {
    padding-bottom: 24px;
}

.cgaf-content-panel > ul,
.cgaf-content-panel > ol {
    padding: 0 24px 22px 48px;
}

.cgaf-product-sidebar {
    position: sticky;
    top: 32px;
}

.admin-bar .cgaf-product-sidebar {
    top: 64px;
}

.cgaf-media-panel,
.cgaf-purchase-panel,
.cgaf-info-panel {
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 10px 26px rgba(21, 25, 34, 0.06);
}

.cgaf-product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.cgaf-product-actions .button,
.cgaf-wishlist-action a,
.cgaf-live-preview {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    border-radius: 6px;
    text-align: center;
    white-space: normal;
}

.cgaf-live-preview {
    background: #1aa0af;
    color: #fff;
}

.cgaf-media-frame {
    overflow: hidden;
    border-radius: 8px;
    background: #f2f5f7;
}

.cgaf-product-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.cgaf-purchase-panel {
    padding: 24px;
}

.cgaf-purchase-panel .cgaf-point-action {
    margin: 0;
}

.cgaf-purchase-panel .button {
    width: 100%;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #e85e4f;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
}

.cgaf-purchase-panel .cgaf-download-ready {
    background: #1e7d4f;
}

.cgaf-point-message {
    display: block;
    padding: 14px 16px;
    border: 1px solid #e8edf2;
    border-radius: 6px;
    background: #f7f9fb;
    color: #4d5968;
    text-align: center;
}

.cgaf-sidebar-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #e2e7ed;
}

.cgaf-sidebar-tabs a,
.cgaf-sidebar-tabs span {
    padding: 16px 8px;
    border-bottom: 3px solid transparent;
}

.cgaf-sidebar-tabs .is-active {
    color: #151922;
    border-bottom-color: #1aa9b9;
}

.cgaf-info-table {
    margin: 18px 8px 0;
}

.cgaf-info-table div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f3;
}

.cgaf-info-table div:last-child {
    border-bottom: 0;
}

.cgaf-info-table dt {
    color: #687383;
}

.cgaf-info-table dd {
    margin: 0;
    color: #202630;
    font-weight: 700;
    text-align: right;
}

@media (max-width: 980px) {
    .cgaf-product-layout,
    .cgaf-benefits {
        grid-template-columns: 1fr;
    }

    .cgaf-product-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .cgaf-product-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .cgaf-product-title-panel {
        padding: 20px 18px;
    }

    .cgaf-product-title-panel h1 {
        font-size: 1.55rem;
    }

    .cgaf-detail-tabs,
    .cgaf-product-actions {
        grid-template-columns: 1fr;
    }

    .cgaf-detail-tabs a {
        padding: 14px 10px;
    }

    .cgaf-description {
        padding: 20px 18px 24px;
    }

    .cgaf-info-table div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .cgaf-info-table dd {
        text-align: left;
    }

    .cgaf-product-policy-links {
        grid-template-columns: 1fr;
    }
}
