body[data-page="product-detail"] {
    background: #f5f7f6;
    color: #17221b;
    overflow-x: hidden;
}

.seo-mobile-nav {
    display: none;
}

.seo-product-main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 72px;
}

.seo-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-bottom: 22px;
    color: #6b756e;
    font-size: 0.88rem;
}

.seo-breadcrumb a {
    color: #247242;
    text-decoration: none;
}

.seo-breadcrumb span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seo-breadcrumb i {
    font-size: 0.65rem;
    color: #a8b0aa;
}

.seo-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    gap: 46px;
    align-items: start;
    padding: 34px;
    border: 1px solid #e1e7e3;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(24, 49, 33, 0.08);
    min-width: 0;
}

.seo-product-gallery {
    overflow: hidden;
    border-radius: 18px;
    background: #f2f4f2;
    aspect-ratio: 1 / 1;
    min-width: 0;
}

.seo-product-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seo-product-summary {
    padding: 8px 0;
    min-width: 0;
}

.seo-product-category {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    color: #1d6d3d;
    background: #e9f5ed;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.seo-product-summary h1 {
    margin: 16px 0 10px;
    color: #142219;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.seo-product-code {
    margin: 0 0 22px;
    color: #6d756f;
    font-size: 0.9rem;
}

.seo-product-prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.seo-product-prices > div {
    padding: 15px 16px;
    border: 1px solid #dfe7e1;
    border-radius: 14px;
    background: #f8faf8;
}

.seo-product-prices span,
.seo-product-prices strong {
    display: block;
}

.seo-product-prices span {
    margin-bottom: 5px;
    color: #68716a;
    font-size: 0.78rem;
}

.seo-product-prices strong {
    color: #14723b;
    font-size: 1.4rem;
}

.seo-product-description {
    margin: 0 0 22px;
    color: #536059;
    line-height: 1.75;
}

.seo-product-specs {
    margin: 0 0 24px;
    border-top: 1px solid #e7ece8;
}

.seo-product-specs > div {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #e7ece8;
}

.seo-product-specs dt {
    color: #768078;
}

.seo-product-specs dd {
    margin: 0;
    color: #233128;
    font-weight: 700;
}

.seo-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.seo-product-actions .btn {
    min-height: 50px;
    justify-content: center;
}

.seo-product-note {
    display: flex;
    gap: 8px;
    margin: 16px 0 0;
    color: #7b847e;
    font-size: 0.8rem;
    line-height: 1.5;
}

.seo-related-products {
    padding-top: 58px;
}

.seo-related-products .section-header {
    align-items: end;
}

.seo-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.seo-related-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 8px 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e1e7e3;
    border-radius: 16px;
    color: #1b2a20;
    background: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.seo-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(24, 49, 33, 0.09);
}

.seo-related-card img {
    grid-row: 1 / 3;
    width: 104px;
    height: 104px;
    border-radius: 12px;
    object-fit: cover;
    background: #f2f4f2;
}

.seo-related-card span {
    align-self: end;
    font-weight: 700;
    line-height: 1.35;
}

.seo-related-card strong {
    align-self: start;
    color: #14723b;
}

.seo-share-toast {
    position: fixed;
    z-index: 999;
    right: 22px;
    bottom: 22px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #fff;
    background: #17251c;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: 0.2s ease;
}

.seo-share-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .seo-product-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .seo-related-grid {
        grid-template-columns: 1fr;
    }

    .seo-mobile-nav.is-open {
        display: grid;
        gap: 2px;
        padding: 8px 16px 14px;
        background: #fff;
        border-top: 1px solid #e4e8e5;
    }

    .seo-mobile-menu-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .seo-mobile-nav a {
        padding: 12px;
        border-radius: 8px;
        color: #233128;
        text-decoration: none;
        font-weight: 700;
    }
}

@media (max-width: 600px) {
    .seo-product-main {
        width: min(100% - 20px, 1240px);
        padding-top: 18px;
    }

    .seo-product-layout {
        padding: 14px;
        border-radius: 18px;
    }

    .seo-product-summary {
        padding: 2px;
    }

    .seo-product-prices {
        grid-template-columns: 1fr;
    }

    .seo-product-specs > div {
        grid-template-columns: 105px minmax(0, 1fr);
    }

    .seo-product-actions {
        display: grid;
    }

    .seo-product-actions .btn {
        width: 100%;
    }

    .seo-related-products {
        padding-top: 42px;
    }

    .seo-related-products .section-header {
        display: block;
    }

    .seo-related-products .view-all-link {
        display: inline-flex;
        margin-top: 12px;
    }

    .seo-related-card {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .seo-related-card img {
        width: 86px;
        height: 86px;
    }
}
