.single-product {
    --il-ink: #101418;
    --il-muted: #65717c;
    --il-line: #e4e8ec;
    --il-soft: #f6f8fa;
    --il-accent: #FF751F;
    --il-accent-dark: #c85100;
    --il-accent-soft: #fff0e7;
}

.il-product-badges,
.il-feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.il-product-image-wrap {
    position: relative;
}

.il-product-image-wrap .elementor-widget-container,
.il-product-image-wrap .woocommerce-product-gallery {
    position: relative;
}

.il-product-image-wrap .il-product-badges {
    position: absolute;
    top: 16px;
    right: 16px;
    left: 16px;
    bottom: auto;
    z-index: 8;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.il-product-image-wrap .il-pill {
    box-shadow: 0 6px 18px rgba(16, 20, 24, .10);
    pointer-events: auto;
}

.il-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid var(--il-line);
    border-radius: 999px;
    background: #fff;
    color: var(--il-ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.il-pill-dark {
    border-color: var(--il-ink);
    background: var(--il-ink);
    color: #fff;
}

.il-pill-purity {
    border-color: #62bf82;
    background: #62bf82;
    color: #fff;
}

.il-pill-link {
    color: var(--il-accent);
    text-decoration: none;
}

.il-image-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.il-image-trust-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 14px 16px;
    border: 1px solid #d9e7dd;
    border-radius: 8px;
    background: #f7fcf8;
    color: var(--il-ink);
    text-decoration: none;
}

.il-image-trust-coa {
    border-color: #d8dafd;
    background: #f7f7ff;
}

.il-image-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid #42a66b;
    border-radius: 999px;
    color: #42a66b;
    font-size: 13px;
    font-weight: 900;
}

.il-image-trust-coa .il-image-trust-icon {
    border-color: #4b59ff;
    color: #4b59ff;
}

.il-image-trust-card strong,
.il-image-trust-card small {
    display: block;
    line-height: 1.25;
}

.il-image-trust-card strong {
    color: var(--il-ink);
    font-size: 15px;
    font-weight: 800;
}

.il-image-trust-card small {
    margin-top: 2px;
    color: var(--il-muted);
    font-size: 13px;
}

.il-image-trust-open {
    color: var(--il-muted);
    font-size: 18px;
    font-weight: 800;
}

.il-image-trust-card[data-il-popup="true"] {
    cursor: pointer;
}

.il-coa-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.il-coa-popup.is-open {
    display: flex;
}

.il-coa-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 20, 24, .72);
}

.il-coa-popup-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(var(--il-popup-width, 760px), 100%);
    height: min(var(--il-popup-height, 560px), calc(100vh - 40px));
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

.il-coa-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--il-line);
}

.il-coa-popup-title {
    color: var(--il-ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
}

.il-coa-popup-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--il-line);
    border-radius: 6px;
    background: #fff;
    color: var(--il-ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.il-coa-popup-body {
    flex: 1;
    min-height: 0;
    background: #f4f6f8;
}

.il-coa-popup-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

body.il-coa-popup-open {
    overflow: hidden;
}

.il-block {
    padding: 18px;
    border: 1px solid rgba(255, 117, 31, .28);
    border-radius: 8px;
    background: var(--il-accent-soft);
}

.il-block-title {
    margin-bottom: 12px;
    color: var(--il-ink);
    font-size: 15px;
    font-weight: 800;
}

.il-bulk-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.il-bulk-card {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid rgba(255, 117, 31, .22);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.il-bulk-card:hover,
.il-bulk-card:focus-visible {
    border-color: var(--il-accent);
    background: #fff8f3;
    outline: none;
}

.il-bulk-card.is-active {
    border-color: var(--il-accent);
    background: #fff8f3;
    box-shadow: inset 0 0 0 1px var(--il-accent);
}

.il-bulk-card span,
.il-bulk-card strong,
.il-bulk-card b {
    display: block;
}

.il-bulk-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--il-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.il-bulk-card strong {
    margin: 5px 0;
    color: var(--il-ink);
    font-size: 14px;
}

.il-bulk-card b {
    color: var(--il-ink);
    font-size: 15px;
}

.il-feature-grid {
    margin: 16px 0;
}

.il-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid var(--il-line);
    border-radius: 8px;
    background: #fff;
    color: var(--il-ink);
    font-size: 13px;
    font-weight: 700;
}

.il-feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--il-accent);
}

.il-discount-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 2px solid var(--il-accent);
    border-radius: 8px;
    background: #fff;
}

.il-discount-summary[hidden] {
    display: none;
}

.il-discount-copy,
.il-discount-prices {
    display: flex;
    align-items: center;
    gap: 10px;
}

.il-discount-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--il-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.il-discount-copy strong,
.il-discount-prices strong {
    color: var(--il-ink);
    font-weight: 900;
}

.il-discount-prices del {
    color: var(--il-muted);
    font-size: 14px;
}

.il-spec-table {
    border: 1px solid var(--il-line);
    border-radius: 8px;
    overflow: hidden;
}

.il-spec-row {
    display: grid;
    grid-template-columns: minmax(130px, 220px) 1fr;
    border-bottom: 1px solid var(--il-line);
}

.il-spec-row:last-child {
    border-bottom: 0;
}

.il-spec-row dt,
.il-spec-row dd {
    margin: 0;
    padding: 13px 15px;
}

.il-spec-row dt {
    background: var(--il-soft);
    color: var(--il-muted);
    font-weight: 800;
}

.il-spec-row dd {
    color: var(--il-ink);
    font-weight: 600;
}

.il-research-notice {
    padding: 18px;
    border: 1px solid #f0d9a5;
    border-radius: 8px;
    background: #fff8e8;
    color: #4d3713;
}

.il-research-notice strong {
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.il-research-notice p {
    margin: 0;
}

.il-sticky-cart {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: calc(100vw - 40px);
    padding: 12px 14px;
    border: 1px solid var(--il-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(16, 20, 24, .14);
}

.il-sticky-cart span,
.il-sticky-cart strong {
    display: block;
    color: var(--il-ink);
    line-height: 1.2;
}

.il-sticky-cart span {
    max-width: 240px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.il-sticky-cart strong {
    margin-top: 3px;
    font-size: 14px;
}

.il-sticky-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 6px;
    background: var(--il-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.il-cart-discount-note {
    display: block;
    margin-top: 4px;
    color: var(--il-accent, #FF751F);
    font-size: 12px;
    font-weight: 700;
}

.il-related-section {
    width: 100%;
}

.il-related-title {
    margin: 0 0 24px;
    color: var(--il-ink);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
}

.il-related-grid {
    display: grid;
    grid-template-columns: repeat(var(--il-related-columns, 4), minmax(0, 1fr));
    gap: 24px;
}

.il-related-card {
    overflow: hidden;
    border: 1px solid var(--il-line);
    border-radius: 8px;
    background: #fff;
}

.il-related-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1.1;
    padding: 10px 16px;
    background: #fff;
    text-decoration: none;
}

.il-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.il-related-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--il-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.il-related-body {
    padding: 0 16px 16px;
}

.il-related-body h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
}

.il-related-body h3 a {
    color: var(--il-ink);
    text-decoration: none;
}

.il-related-stock {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
}

.il-related-stock.is-in-stock {
    color: #2f8f5b;
}

.il-related-stock.is-out-of-stock {
    color: #b00020;
}

.il-related-price {
    margin-bottom: 8px;
    color: var(--il-ink);
    font-size: 20px;
    font-weight: 900;
}

.il-related-price del,
.il-related-price ins {
    text-decoration-thickness: 1px;
}

.il-related-meta,
.il-related-purity {
    color: var(--il-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.il-related-purity {
    margin-top: 4px;
    color: #47515a;
}

.il-related-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.il-related-lab,
.il-related-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.il-related-lab {
    border: 1px solid #b8e1c6;
    background: #f7fcf8;
    color: #2f8f5b;
}

.il-related-lab.is-disabled {
    opacity: .55;
}

.il-related-cart {
    border: 1px solid var(--il-accent);
    background: var(--il-accent);
    color: #fff;
}

.il-related-cart:hover,
.il-related-cart:focus-visible {
    background: var(--il-accent-dark);
    color: #fff;
}

@media (max-width: 767px) {
    .il-bulk-grid {
        grid-template-columns: 1fr;
    }

    .il-spec-row {
        grid-template-columns: 1fr;
    }

    .il-spec-row dt {
        padding-bottom: 4px;
    }

    .il-spec-row dd {
        padding-top: 4px;
    }

    .il-sticky-cart {
        right: 10px;
        bottom: 10px;
        left: 10px;
        justify-content: space-between;
        max-width: none;
    }

    .il-discount-summary,
    .il-discount-copy,
    .il-discount-prices {
        align-items: flex-start;
    }

    .il-discount-summary {
        flex-direction: column;
    }

    .il-product-image-wrap .il-product-badges {
        left: 12px;
        right: 12px;
        top: 12px;
        bottom: auto;
    }

    .il-image-trust-grid {
        grid-template-columns: 1fr;
    }

    .il-coa-popup {
        padding: 10px;
    }

    .il-coa-popup-panel {
        height: calc(100vh - 20px);
    }

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

@media (min-width: 768px) and (max-width: 1024px) {
    .il-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
