/* Single product page */

.product-hero {
    position: relative;
    padding: 9rem 0 3.5rem;
    background: linear-gradient(135deg, #1C39BB 0%, #153A7A 55%, #00A693 100%);
    color: #fff;
    overflow: hidden;
}
.product-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.14), transparent 45%);
    pointer-events: none;
}

.product-hero__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1.5rem;
}
.product-hero__crumbs a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.15s ease;
}
.product-hero__crumbs a:hover { color: #fff; }
.product-hero__crumb-current { color: #fff; font-weight: 600; }

.product-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.product-hero__badge {
    display: inline-flex;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.product-hero__badge--soft {
    background: rgba(255, 255, 255, 0.08);
    text-transform: none;
    letter-spacing: 0;
}

.product-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    max-width: 56rem;
}

.product-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.product-hero__meta-item {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
}
.product-hero__meta-item strong {
    margin-right: 0.35rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

.product-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
    .product-layout { grid-template-columns: minmax(0, 1fr) 22rem; }
}

.product-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}
@media (min-width: 768px) {
    .product-card { padding: 2.25rem; }
}
.product-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.product-specs__row {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.product-specs__row:last-child { border-bottom: none; }
.product-specs__row dt { color: #64748b; font-weight: 600; font-size: 0.925rem; }
.product-specs__row dd { color: #0f172a; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 520px) {
    .product-specs__row { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
}

.product-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.product-docs__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 0.75rem;
    background: rgba(28, 57, 187, 0.06);
    border: 1px solid rgba(28, 57, 187, 0.15);
    color: #1C39BB;
    font-weight: 600;
}

.product-chem__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.product-chem__lead {
    color: #64748b;
    font-size: 0.95rem;
}
.product-chem__body {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}
@media (min-width: 768px) {
    .product-chem__body {
        grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
    }
}
.product-chem__structure {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 14rem;
    padding: 1.25rem;
    border: 1px solid #e8ecf4;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
    overflow: hidden;
}
.product-chem__structure img,
.product-chem__structure svg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 16rem;
    object-fit: contain;
}
.product-chem__skeleton {
    position: absolute;
    inset: 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(90deg, #eef2ff 0%, #f8fafc 50%, #eef2ff 100%);
    background-size: 200% 100%;
    animation: product-chem-shimmer 1.2s ease-in-out infinite;
}
.product-chem__loading {
    position: relative;
    z-index: 1;
    color: #94a3b8;
    font-size: 0.875rem;
}
.product-chem__structure.is-ready .product-chem__skeleton,
.product-chem__structure.is-ready .product-chem__loading,
.product-chem__structure.is-empty .product-chem__skeleton,
.product-chem__structure.is-empty .product-chem__loading {
    display: none;
}
.product-chem__structure.is-empty {
    min-height: 10rem;
    color: #94a3b8;
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem 1rem;
}
@keyframes product-chem-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.product-chem__facts {
    display: grid;
    gap: 0.85rem;
}
.product-chem__fact {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: #f8faff;
    border: 1px solid #e8ecf4;
}
.product-chem__fact dt {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}
.product-chem__fact dd {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}
.product-chem__fact--wide dd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.45;
    color: #334155;
}
.product-chem__status {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}
.product-chem__status.is-error {
    color: #b45309;
}

.product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}
.product-btn:hover { transform: translateY(-1px); }
.product-btn--outline {
    border: 2px solid #1C39BB;
    color: #1C39BB;
    background: #fff;
}
.product-btn--outline:hover { background: #1C39BB; color: #fff; }
.product-btn--light {
    background: #fff;
    color: #1C39BB;
}
.product-btn--light:hover { background: #f1f5ff; }
.product-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}
.product-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.product-aside { min-width: 0; }
.product-quote {
    position: sticky;
    top: 7rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.75rem;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(145deg, #1C39BB, #00A693);
    box-shadow: 0 16px 40px rgba(28, 57, 187, 0.25);
}
.product-quote__title { font-size: 1.35rem; font-weight: 700; }
.product-quote__text { color: rgba(255, 255, 255, 0.85); line-height: 1.6; margin-bottom: 0.5rem; }
.product-quote__points {
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}
.product-quote__points li::before {
    content: "✓";
    margin-right: 0.5rem;
    font-weight: 700;
}

.product-related {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}
.product-related__card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.product-related__card:hover {
    border-color: rgba(28, 57, 187, 0.35);
    box-shadow: 0 10px 24px rgba(28, 57, 187, 0.1);
    transform: translateY(-2px);
}
.product-related__name { font-weight: 600; color: #0f172a; }
.product-related__meta { font-size: 0.85rem; color: #64748b; }

/* Product listing: rows link to the product page */
.product-row { cursor: pointer; }
.product-row__link {
    color: #0f172a;
    transition: color 0.15s ease;
}
.product-row:hover .product-row__link,
.product-row__link:focus-visible { color: #1C39BB; text-decoration: underline; }
