.jina-scan-page .entry-title,
.jina-scan-page .page-title {
    display: none !important;
}

.jina-scan-app {
    --js-bg: #f4f1eb;
    --js-card: #ffffff;
    --js-text: #252525;
    --js-muted: #74706a;
    --js-line: #ded9d1;
    --js-dark: #252525;
    max-width: 760px;
    margin: 0 auto;
    padding: 22px 14px 50px;
    color: var(--js-text);
    font-family: inherit;
}

.jina-scan-header {
    text-align: center;
    margin-bottom: 18px;
}

.jina-scan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 32px;
    padding: 0 16px;
    border: 1px solid var(--js-dark);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
}

.jina-scan-header h1 {
    margin: 14px 0 6px;
    font-size: clamp(28px, 7vw, 42px);
    line-height: 1.05;
}

.jina-scan-header p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--js-muted);
    font-size: 15px;
}

.jina-scan-panel,
.jina-scan-product-card,
.jina-scan-not-found {
    background: var(--js-card);
    border: 1px solid var(--js-line);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(34, 31, 27, .07);
}

.jina-scan-panel {
    padding: 16px;
}

.jina-scan-camera-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 14px;
    border-radius: 15px;
    background: #111;
}

.jina-scan-camera-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jina-scan-frame {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 31%;
    height: 31%;
    border: 3px solid #fff;
    border-radius: 12px;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, .28);
}

.jina-scan-camera-hint {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90%;
    margin: 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 13px;
}

.jina-scan-actions {
    display: grid;
    gap: 10px;
}

.jina-scan-primary,
.jina-scan-secondary,
.jina-scan-input-row button,
.jina-scan-product-actions a,
.jina-scan-product-actions button,
.jina-scan-restart {
    min-height: 50px;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}

.jina-scan-primary:hover,
.jina-scan-secondary:hover,
.jina-scan-input-row button:hover,
.jina-scan-product-actions a:hover,
.jina-scan-product-actions button:hover,
.jina-scan-restart:hover {
    transform: translateY(-1px);
}

.jina-scan-primary,
.jina-scan-input-row button,
.jina-scan-product-actions a {
    border: 1px solid var(--js-dark);
    background: var(--js-dark);
    color: #fff;
}

.jina-scan-secondary,
.jina-scan-product-actions button,
.jina-scan-restart {
    border: 1px solid var(--js-line);
    background: #f6f4f0;
    color: var(--js-text);
}

.jina-scan-photo {
    margin-top: 12px;
    text-align: center;
}

.jina-scan-photo-label {
    display: inline-block;
    color: var(--js-muted);
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

.jina-scan-photo input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.jina-scan-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 17px 0;
    color: var(--js-muted);
    font-size: 13px;
}

.jina-scan-divider::before,
.jina-scan-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--js-line);
}

.jina-scan-manual label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
}

.jina-scan-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.jina-scan-input-row input {
    min-width: 0;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--js-line);
    border-radius: 12px;
    background: #fff;
    color: var(--js-text);
    font-size: 16px;
}

.jina-scan-input-row button {
    padding: 0 17px;
}

.jina-scan-status {
    min-height: 0;
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
}

.jina-scan-status.is-loading,
.jina-scan-status.is-warning {
    color: #7a5b16;
}

.jina-scan-status.is-error {
    color: #a62c2c;
}

.jina-scan-result {
    margin-top: 18px;
}

.jina-scan-product-card {
    display: grid;
    grid-template-columns: minmax(190px, 42%) 1fr;
    overflow: hidden;
}

.jina-scan-product-image {
    min-height: 300px;
    background: #f4f2ee;
}

.jina-scan-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jina-scan-product-content {
    padding: 22px;
}

.jina-scan-code-ok {
    margin: 0 0 8px;
    color: #4c6f43;
    font-size: 13px;
    font-weight: 700;
}

.jina-scan-product-content h2,
.jina-scan-not-found h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
}

.jina-scan-price {
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 700;
}

.jina-scan-attributes {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.jina-scan-attribute {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f4f2ee;
}

.jina-scan-attribute span {
    color: var(--js-muted);
}

.jina-scan-stock {
    font-weight: 700;
}

.jina-scan-stock.is-in-stock { color: #4c6f43; }
.jina-scan-stock.is-out-of-stock { color: #a62c2c; }

.jina-scan-product-actions {
    display: grid;
    gap: 9px;
    margin-top: 20px;
}

.jina-scan-product-actions a,
.jina-scan-product-actions button,
.jina-scan-restart {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    text-align: center;
    text-decoration: none;
}

.jina-scan-not-found {
    padding: 34px 20px;
    text-align: center;
}

.jina-scan-not-found-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 13px;
    border-radius: 50%;
    background: #f1ede6;
    font-size: 28px;
    font-weight: 800;
}

.jina-scan-not-found p {
    color: var(--js-muted);
}

.jina-scan-not-found .jina-scan-restart {
    width: 100%;
    margin-top: 18px;
}

@media (max-width: 620px) {
    .jina-scan-app {
        padding-top: 14px;
    }

    .jina-scan-panel {
        padding: 12px;
        border-radius: 16px;
    }

    .jina-scan-product-card {
        grid-template-columns: 1fr;
    }

    .jina-scan-product-image {
        min-height: 250px;
        max-height: 340px;
    }

    .jina-scan-product-content {
        padding: 18px;
    }

    .jina-scan-input-row {
        grid-template-columns: 1fr;
    }
}
