.pqt-detail,
.pqt-qr-card,
.pqt-catalog,
.pqt-approval {
    --pqt-ink: #173126;
    --pqt-ink-soft: #5c665f;
    --pqt-leaf: #1f6d4a;
    --pqt-leaf-dark: #10261d;
    --pqt-moss: #8faf4f;
    --pqt-line: #d9e6db;
    --pqt-paper: #fbf9f4;
    --pqt-clay: #9a6334;
    --pqt-gold: #e5b25d;
    box-sizing: border-box;
    color: var(--pqt-ink);
    font-family: inherit;
}

.pqt-detail *,
.pqt-qr-card *,
.pqt-catalog *,
.pqt-approval * {
    box-sizing: border-box;
}

body.single-plant_tag .wp-block-post-featured-image,
body.single-plant_tag .post-thumbnail,
body.single-plant_tag .entry-thumbnail,
body.single-plant_tag .entry-featured-image,
body.single-plant_tag .featured-image,
body.single-plant_tag .elementor-widget-theme-post-featured-image,
body.single-plant_tag img.wp-post-image:not(.pqt-catalog-photo) {
    display: none !important;
}

body.single-plant_tag .entry-header,
body.single-plant_tag .page-header,
body.single-plant_tag .wp-block-post-title,
body.single-plant_tag .elementor-widget-theme-post-title,
body.single-plant_tag h1.entry-title,
body.single-plant_tag .entry-title,
body.single-plant_tag .page-title {
    display: none !important;
}

body.single-plant_tag .site-main,
body.single-plant_tag .content-area,
body.single-plant_tag .entry-content,
body.single-plant_tag .wp-block-post-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.single-plant_tag .pqt-detail {
    margin-top: 0;
}

.pqt-detail {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
    width: 100%;
    max-width: 1120px;
    margin: 28px auto 42px;
    align-items: start;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pqt-photo-wrap {
    position: relative;
    min-width: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
        linear-gradient(145deg, #244436 0%, #557449 100%);
}

.pqt-photo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0;
    background: linear-gradient(180deg, transparent 58%, rgba(16, 38, 29, 0.22));
    pointer-events: none;
}

.pqt-photo {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    border-radius: 0;
    background: #e7eee5;
}

.pqt-photo-empty {
    display: grid;
    place-items: center;
    color: #eaf4e7;
    font-size: 15px;
    font-weight: 800;
}

.pqt-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 26px;
    width: 100%;
    margin: 0;
    padding: 10px 0 0 clamp(24px, 3vw, 38px);
    background: transparent;
}

.pqt-heading {
    display: grid;
    gap: 8px;
}

.pqt-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pqt-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 11px;
    border: 1px solid rgba(31, 109, 74, 0.18);
    border-radius: 8px;
    background: #eaf4e7;
    color: #275d41;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.pqt-chip-soft {
    border-color: rgba(154, 99, 52, 0.22);
    background: #f8efe5;
    color: var(--pqt-clay);
}

.pqt-eyebrow {
    margin: 0;
    color: #5c7c44;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.pqt-heading h1 {
    margin: 0;
    color: var(--pqt-leaf-dark);
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.01;
    letter-spacing: 0;
}

.pqt-botanical {
    margin: 0;
    color: var(--pqt-ink-soft);
    font-size: 18px;
    font-style: italic;
}

.pqt-detail-tabs {
    display: grid;
    grid-template-columns: repeat(var(--pqt-tab-count, 3), minmax(0, 1fr));
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--pqt-line);
    border-radius: 8px;
    background: #f5f8f0;
}

.pqt-tab-trigger {
    min-width: 0;
    min-height: 42px;
    padding: 9px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--pqt-ink);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.pqt-tab-trigger:hover,
.pqt-tab-trigger:focus {
    background: #eaf4e7;
}

.pqt-tab-trigger.is-active,
.pqt-tab-trigger[aria-selected="true"] {
    background: var(--pqt-leaf-dark);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(16, 38, 29, 0.18);
}

.pqt-tab-panels {
    min-height: 278px;
}

.pqt-tab-panel {
    display: grid;
    gap: 16px;
}

.pqt-tab-panel[hidden] {
    display: none;
}

.pqt-summary-strip {
    display: grid;
    grid-template-columns: repeat(var(--pqt-summary-count, 3), minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    border-top: 1px solid var(--pqt-line);
    border-bottom: 1px solid var(--pqt-line);
    border-radius: 0;
    background: transparent;
}

.pqt-summary-item {
    min-width: 0;
    padding: 14px 18px 14px 0;
    border-right: 0;
    background: transparent;
}

.pqt-summary-item + .pqt-summary-item {
    padding-left: 18px;
}

.pqt-summary-item span {
    display: block;
    margin-bottom: 6px;
    color: #6a756e;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.pqt-summary-item strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--pqt-clay);
    font-size: 18px;
    line-height: 1.2;
}

.pqt-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    border-top: 1px solid var(--pqt-line);
}

.pqt-metric {
    position: relative;
    min-height: auto;
    padding: 15px 0;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--pqt-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pqt-metric::before {
    content: none;
}

.pqt-metric span,
.pqt-specs dt {
    display: block;
    margin-bottom: 7px;
    color: #657168;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.pqt-metric strong {
    display: block;
    overflow-wrap: anywhere;
    color: #1f3f32;
    font-size: 22px;
    line-height: 1.12;
}

.pqt-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin: 0;
    border-top: 1px solid var(--pqt-line);
}

.pqt-specs div {
    min-width: 0;
    padding: 15px 0;
    border: 0;
    border-bottom: 1px solid var(--pqt-line);
    border-radius: 0;
    background: transparent;
}

.pqt-specs dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #1f3f32;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.pqt-care {
    padding: 18px 0 0;
    border: 0;
    border-top: 1px solid var(--pqt-line);
    border-left: 0;
    border-radius: 0;
    background: transparent;
}

.pqt-care h2 {
    margin: 0 0 8px;
    color: #1f3f32;
    font-size: 20px;
    line-height: 1.2;
}

.pqt-care p {
    margin: 0;
    color: #38483f;
    font-size: 16px;
    line-height: 1.6;
}

.pqt-approval {
    padding: 18px 0 0;
    border-top: 1px solid var(--pqt-line);
    background: transparent;
}

.pqt-approval-heading {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.pqt-approval-heading h2 {
    margin: 0;
    color: #1f3f32;
    font-size: 20px;
    line-height: 1.2;
}

.pqt-approval-heading p,
.pqt-form-note {
    margin: 0;
    color: #5c665f;
    font-size: 14px;
    line-height: 1.45;
}

.pqt-form-warning {
    margin: 0;
    color: #9a6334;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.pqt-approval-notice {
    margin: 0 0 14px;
    padding: 10px 0;
    border-top: 1px solid var(--pqt-line);
    border-bottom: 1px solid var(--pqt-line);
    font-size: 14px;
    font-weight: 800;
}

.pqt-approval-success {
    color: #1f6d4a;
}

.pqt-approval-error {
    color: #9a6334;
}

.pqt-approval-form {
    display: grid;
    gap: 14px;
}

.pqt-approval-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.pqt-field {
    display: grid;
    min-width: 0;
    gap: 7px;
    margin: 0;
}

.pqt-field-wide {
    grid-column: 1 / -1;
}

.pqt-field span {
    color: #657168;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.pqt-field-required > span::after {
    content: " *";
    color: #9a6334;
}

.pqt-field input,
.pqt-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid #cfded2;
    border-radius: 0;
    background: #ffffff;
    color: #173126;
    font: inherit;
    font-size: 15px;
}

.pqt-field textarea {
    min-height: 96px;
    resize: vertical;
}

.pqt-field input:focus,
.pqt-field textarea:focus {
    border-color: var(--pqt-leaf);
    box-shadow: 0 0 0 2px rgba(31, 109, 74, 0.12);
    outline: none;
}

.pqt-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pqt-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 46px;
    padding: 13px 18px;
    border: 0;
    border-radius: 0;
    background: var(--pqt-leaf);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

.pqt-submit-button:hover,
.pqt-submit-button:focus {
    background: var(--pqt-leaf-dark);
}

.pqt-submit-button:disabled {
    background: #bdcabe;
    color: #f7faf4;
    cursor: not-allowed;
}

.pqt-design-passport {
    grid-template-columns: 1fr;
    max-width: 560px;
    background: #ffffff;
}

.pqt-design-passport .pqt-photo-wrap {
    padding: 0;
    background: #244436;
}

.pqt-design-passport .pqt-photo-wrap::after {
    inset: 0;
    border-radius: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(16, 38, 29, 0.36));
}

.pqt-design-passport .pqt-photo {
    height: 100%;
    min-height: 0;
    border-radius: 0;
}

.pqt-design-passport .pqt-main {
    position: relative;
    z-index: 1;
    margin: -34px 14px 14px;
    padding: 22px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.pqt-design-passport .pqt-heading h1 {
    font-size: clamp(34px, 8vw, 48px);
}

.pqt-design-passport .pqt-summary-strip {
    grid-template-columns: 1fr;
}

.pqt-design-passport .pqt-summary-item {
    border-right: 0;
    border-bottom: 1px solid var(--pqt-line);
}

.pqt-design-passport .pqt-summary-item:last-child {
    border-bottom: 0;
}

.pqt-design-passport .pqt-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pqt-design-passport .pqt-tab-panels {
    min-height: 0;
}

.pqt-design-compact {
    grid-template-columns: 260px minmax(0, 1fr);
    max-width: 940px;
}

.pqt-design-compact .pqt-photo-wrap {
    padding: 0;
}

.pqt-design-compact .pqt-photo {
    height: 100%;
    min-height: 0;
}

.pqt-design-compact .pqt-main {
    gap: 16px;
    padding: 22px;
}

.pqt-design-compact .pqt-heading {
    gap: 6px;
}

.pqt-design-compact .pqt-heading h1 {
    font-size: clamp(30px, 3vw, 42px);
}

.pqt-design-compact .pqt-botanical {
    font-size: 16px;
}

.pqt-design-compact .pqt-detail-tabs {
    max-width: 420px;
}

.pqt-design-compact .pqt-tab-panels {
    min-height: 0;
}

.pqt-design-compact .pqt-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 18px;
}

.pqt-design-compact .pqt-metric {
    min-height: auto;
    padding: 13px 0;
}

.pqt-design-compact .pqt-metric strong {
    font-size: 17px;
}

.pqt-design-compact .pqt-specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 18px;
}

.pqt-design-compact .pqt-specs div {
    padding: 12px 0;
}

.pqt-qr-card {
    width: min(100%, 380px);
    padding: 18px;
    border: 1px solid var(--pqt-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--pqt-ink);
    text-align: center;
    box-shadow: 0 14px 32px rgba(25, 52, 42, 0.09);
}

.pqt-qr-label h3 {
    margin: 0 0 4px;
    color: var(--pqt-leaf-dark);
    font-size: 24px;
    line-height: 1.1;
}

.pqt-qr-label p {
    margin: 0 0 8px;
    color: #5a675f;
    font-size: 14px;
    line-height: 1.35;
}

.pqt-qr-meta {
    font-weight: 800;
}

.pqt-qr-image {
    display: block;
    width: min(100%, 260px);
    height: auto;
    margin: 12px auto;
    border: 8px solid #ffffff;
    outline: 1px solid #dde8df;
}

.pqt-qr-url {
    width: 100%;
    min-height: 40px;
    margin: 8px 0 10px;
    padding: 8px 10px;
    border: 1px solid #cedbd1;
    border-radius: 8px;
    color: #34443b;
    font-size: 13px;
}

.pqt-qr-actions {
    display: flex;
    gap: 8px;
}

.pqt-mini-button {
    flex: 1;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #b8cdbf;
    border-radius: 8px;
    background: #f5f9f2;
    color: #1f3f32;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.pqt-mini-button:hover,
.pqt-mini-button:focus {
    border-color: #7aa35a;
    background: #edf5e7;
}

.pqt-catalog {
    width: 100%;
    max-width: 1180px;
    margin: 24px auto;
}

.pqt-catalog-toolbar {
    margin-bottom: 16px;
}

.pqt-catalog-search {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #cedbd1;
    border-radius: 8px;
    color: var(--pqt-ink);
    font-size: 16px;
}

.pqt-catalog-grid {
    display: grid;
    grid-template-columns: repeat(var(--pqt-columns, 3), minmax(0, 1fr));
    gap: 16px;
}

.pqt-catalog-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 124px;
    padding: 10px;
    border: 1px solid var(--pqt-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--pqt-ink);
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pqt-catalog-card:hover,
.pqt-catalog-card:focus {
    border-color: var(--pqt-moss);
    box-shadow: 0 12px 28px rgba(25, 52, 42, 0.1);
    color: var(--pqt-ink);
    transform: translateY(-2px);
}

.pqt-catalog-photo {
    display: block;
    width: 104px;
    height: 104px;
    border-radius: 8px;
    background: #e8efe5;
    object-fit: cover;
}

.pqt-catalog-body {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.pqt-catalog-body strong {
    overflow-wrap: anywhere;
    color: var(--pqt-leaf-dark);
    font-size: 17px;
    line-height: 1.2;
}

.pqt-catalog-body em {
    overflow-wrap: anywhere;
    color: var(--pqt-ink-soft);
    font-size: 14px;
}

.pqt-catalog-body span {
    overflow-wrap: anywhere;
    color: #5c7c44;
    font-size: 13px;
    font-weight: 800;
}

.pqt-empty {
    margin: 18px 0 0;
    color: #627466;
    font-weight: 700;
}

.pqt-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.pqt-admin-field {
    margin: 0;
}

.pqt-admin-field label,
.pqt-admin-qr label {
    display: block;
    margin: 0 0 6px;
    font-weight: 700;
}

.pqt-admin-field input,
.pqt-admin-field textarea,
.pqt-admin-qr input {
    width: 100%;
}

.pqt-admin-qr img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    margin-bottom: 10px;
}

.pqt-admin-table-qr {
    width: 48px;
    height: 48px;
}

@media (max-width: 900px) {
    .pqt-detail {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .pqt-design-passport {
        max-width: 560px;
    }

    .pqt-design-compact {
        max-width: 680px;
    }

    .pqt-photo {
        height: 100%;
        min-height: 0;
    }

    .pqt-main {
        padding: 26px clamp(18px, 4vw, 30px) 0;
    }

    .pqt-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pqt-detail {
        margin: 10px auto;
        overflow: visible;
        border-radius: 0;
        box-shadow: none;
    }

    .pqt-photo-wrap {
        padding: 0;
    }

    .pqt-photo-wrap::after {
        inset: 0;
    }

    .pqt-photo {
        height: 100%;
        min-height: 0;
    }

    .pqt-main {
        gap: 18px;
        padding: 18px;
    }

    .pqt-heading h1 {
        font-size: 36px;
    }

    .pqt-design-passport .pqt-main {
        margin: -28px 10px 10px;
        padding: 18px;
    }

    .pqt-design-passport .pqt-photo {
        min-height: 0;
    }

    .pqt-design-compact .pqt-detail-tabs,
    .pqt-design-compact .pqt-specs {
        max-width: none;
    }

    .pqt-design-compact .pqt-metrics,
    .pqt-design-compact .pqt-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pqt-detail-tabs {
        position: sticky;
        top: 8px;
        z-index: 2;
        box-shadow: 0 10px 24px rgba(24, 49, 38, 0.1);
    }

    .pqt-tab-panels {
        min-height: 0;
    }

    .pqt-summary-strip,
    .pqt-specs,
    .pqt-approval-grid,
    .pqt-catalog-grid {
        grid-template-columns: 1fr;
    }

    .pqt-summary-item {
        border-right: 0;
        border-bottom: 1px solid var(--pqt-line);
    }

    .pqt-summary-item:last-child {
        border-bottom: 0;
    }

    .pqt-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 18px;
    }

    .pqt-metric {
        min-height: auto;
        padding: 14px 0;
    }

    .pqt-metric strong {
        font-size: 19px;
    }

    .pqt-submit-button {
        width: 100%;
    }

    .pqt-catalog-card {
        grid-template-columns: 86px minmax(0, 1fr);
        min-height: 106px;
    }

    .pqt-catalog-photo {
        width: 86px;
        height: 86px;
    }

    .pqt-qr-actions {
        flex-direction: column;
    }

    .pqt-admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .pqt-detail {
        margin: 0 auto;
    }

    .pqt-photo {
        height: 100%;
        min-height: 0;
    }

    .pqt-main {
        gap: 15px;
        padding: 14px;
    }

    .pqt-heading h1 {
        font-size: 32px;
    }

    .pqt-botanical {
        font-size: 16px;
    }

    .pqt-chip {
        min-height: 28px;
        padding: 7px 9px;
        font-size: 11px;
    }

    .pqt-summary-item,
    .pqt-specs div,
    .pqt-care {
        padding: 13px 0;
    }

    .pqt-metrics {
        grid-template-columns: 1fr;
    }

    .pqt-metric {
        min-height: auto;
        padding: 13px 0;
    }

}

@media print {
    body.pqt-printing * {
        visibility: hidden;
    }

    body.pqt-printing .pqt-qr-card,
    body.pqt-printing .pqt-qr-card * {
        visibility: visible;
    }

    body.pqt-printing .pqt-qr-card {
        position: absolute;
        top: 0;
        left: 0;
        width: 86mm;
        box-shadow: none;
    }

    body.pqt-printing .pqt-qr-actions,
    body.pqt-printing .pqt-qr-url {
        display: none;
    }
}
