/*
 * Southern Plants™ — Plant Detail Page styles
 * plant-detail.css — loaded only on plant-detail.php
 * All colours via CSS variables from style.css. No hardcoded hex values.
 * --brand-colour is set per-plant via inline <style> in <head>.
 */

/* ── BRAND BANNER ────────────────────────────────────────────────────────── */
.brand-banner {
    padding: 14px var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.brand-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/icons/transparentBackground/ARCFOR.png') center / 200px repeat;
    opacity: .06;
    pointer-events: none;
}

.brand-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.brand-name {
    font-size: 22px;
    font-weight: 400;
    color: var(--white);
    font-family: 'sap', 'Ganache', var(--font-body);  /* Ganache for brand names */
    letter-spacing: -.01em;
}

/* ── PRODUCT LAYOUT ──────────────────────────────────────────────────────── */
.product-layout {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

/* ── GALLERY ─────────────────────────────────────────────────────────────── */
.gallery {
    position: sticky;
    top: calc(var(--header-h) + 10px);
}

.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--green-light);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1.5px solid var(--border);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .2s;
}

.gallery-main .img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--green);
    opacity: .3;
    font-size: 12px;
    font-weight: 600;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    background: var(--green-light);
    transition: border-color .15s;
    flex-shrink: 0;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--brand-colour); }
.thumb:hover  { border-color: var(--brand-colour); }

/* Match the Plant Finder photo flags. */
.gallery-photo-flags {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
    pointer-events: none;
}
.gallery-photo-flag {
    display: inline-block;
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 1px 3px #0002;
}
.gallery-flag-available { color: #fff; background: #236b35; }
.gallery-flag-new { color: #503400; background: #ffe09a; margin-left: auto; }
.gallery-flag-unavailable { color: #424b45; background: #f0f2f0; }
/* ── PRODUCT INFO ────────────────────────────────────────────────────────── */
.product-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.product-header { display: flex; flex-direction: column; gap: var(--space-sm); }

.product-title {
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: var(--text);
    font-family: var(--font-body);
}

.product-pot-inline {
    font-weight: 300;
    font-size: .6em;
    color: var(--text-muted);
    letter-spacing: 0;
}

.product-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-family: var(--font-body);
}

.product-subtitle .botanical { font-style: italic; }

.product-identifiers {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

.product-identifier {
    white-space: nowrap;
}

.product-origin {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-mid);
    font-family: var(--font-body);
}

/* ── DESCRIPTION ─────────────────────────────────────────────────────────── */
.product-description {
    white-space: pre-line;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-mid);
    font-family: var(--font-body);
}

.consumer-care-panel{margin-top:var(--space-lg);border:1px solid var(--border-light);border-radius:var(--radius-lg);background:#f5f8f3;padding:var(--space-lg)}
.consumer-care-header{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--space-md);margin-bottom:var(--space-md)}
.consumer-care-kicker{margin:0 0 3px;color:var(--green);font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.consumer-care-header h2{margin:0;font-size:1.35rem;color:var(--text-dark)}
.consumer-care-guide-link{font-size:.85rem;font-weight:700;color:var(--green-dark)}
.consumer-care-plan-link{display:inline-flex;align-items:center;background:var(--green);color:#fff;padding:10px 15px;border-radius:999px;box-shadow:0 5px 14px rgba(28,92,56,.18);text-decoration:none}
.consumer-care-plan-link:hover{background:var(--green-dark);color:#fff}
.consumer-care-intro{margin:0;max-width:760px;color:var(--text-mid);line-height:1.65}
.consumer-care-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-md)}
.consumer-care-card{background:#fff;border:1px solid var(--border-light);border-radius:var(--radius-md);padding:var(--space-md)}
.consumer-care-icon{display:block;font-size:1.45rem;margin-bottom:6px}
.consumer-care-card h3{margin:0 0 8px;font-size:1rem;color:var(--text-dark)}
.consumer-care-card p{margin:0 0 10px;color:var(--text-mid);font-size:.88rem;line-height:1.65}
.consumer-care-card a{font-size:.82rem;font-weight:700;color:var(--green)}
.consumer-watch-card{grid-column:1/-1}
@media(max-width:700px){.consumer-care-header{align-items:flex-start;flex-direction:column}.consumer-care-grid{grid-template-columns:1fr}}

/* ── FEATURE BOXES ──────────────────────────────────────────────────────── */
.specs-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    line-height: 1.5;
    font-size: 13.5px;
    color: var(--text-mid);
    font-family: var(--font-body);
}


.spec-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.spec-icon img { width: 24px; height: 24px; object-fit: contain; }
.spec-icon svg { width: 20px; height: 20px; }

.spec-label {
    font-weight: 600;
    min-width: 80px;
    color: var(--text);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-family: var(--font-body);
}

.spec-value { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* ── BULLETS ─────────────────────────────────────────────────────────────── */
.bullets-section { display: flex; flex-direction: column; gap: 4px; }

.bullets-heading {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    padding: 0 2px;
    font-family: var(--font-body);
}

.bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 13.5px;
    color: var(--text-mid);
    line-height: 1.5;
    font-family: var(--font-body);
}

.bullet-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .06);
    border-radius: var(--radius-sm);
    color: var(--brand-colour);
}

/* ── PLANT ME LIST ───────────────────────────────────────────────────────── */
.plant-me {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
}

.plant-me-heading {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-family: var(--font-body);
}

.plant-me ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.plant-me ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-mid);
    font-family: var(--font-body);
}

.plant-me ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--brand-colour);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── TRADE CTA ───────────────────────────────────────────────────────────── */
.cta-section {
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cta-text { color: var(--white); }

.cta-text strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 2px;
    font-family: var(--font-body);
}

.cta-text span {
    font-size: 12px;
    opacity: .85;
    font-family: var(--font-body);
}

.btn-cta {
    background: var(--white);
    color: var(--brand-colour);
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    display: inline-block;
}

.btn-cta:hover { opacity: .9; color: var(--brand-colour); }

/* ── RELATED PLANTS ──────────────────────────────────────────────────────── */
.related-section {
    padding-bottom: var(--space-2xl);
}

.section-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text);
    font-family: var(--font-body);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.related-card {
    text-decoration: none;
    color: inherit;
    display: block;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .15s, transform .15s;
}

.related-card:hover {
    border-color: var(--brand-colour);
    transform: translateY(-2px);
    color: inherit;
}

.related-img {
    height: 140px;
    background: var(--green-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-img img { width: 100%; height: 100%; object-fit: cover; }

.related-body { padding: 12px 14px; }

.related-range {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--brand-colour);
    margin-bottom: 2px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .gallery { position: static; }
}

@media (max-width: 600px) {
    .product-title { font-size: 1.5rem; }
    .cta-section   { flex-direction: column; text-align: center; }
}

/* Supplier label artwork — shown (uncropped) when a plant has no photo of its own */
.gallery-main--label { background: var(--white); }
.gallery-main--label img { padding: var(--space-sm); box-sizing: border-box; }
.gallery-label-note {
    position: absolute;
    left: 12px;
    bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3px 8px;
}

/* Give feature and benefit icons more presence beside the text. */
.spec-icon,.bullet-icon{width:34px;height:34px}.spec-icon img{width:29px;height:29px}.spec-icon svg{width:24px;height:24px}.bullet-icon img{width:28px;height:28px;object-fit:contain}
/* Variety reviews use the existing site colours and form components. */
.variety-reviews{margin:32px auto;padding-top:24px;padding-bottom:32px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);scroll-margin-top:150px}
.variety-reviews>p,.variety-reviews form>p{line-height:1.6;max-width:850px}
.gardener-review{border-bottom:1px solid var(--border);padding:16px 0;overflow-wrap:anywhere}
.gardener-review p{margin:6px 0}.review-location{color:var(--text-muted)}
.review-form{max-width:780px;margin-top:24px}.review-form summary{cursor:pointer;font-weight:700;color:var(--green-dark);padding:12px 0}
.review-form label{display:block;margin:16px 0 6px}.review-form input:not([type=checkbox]),.review-form textarea,.review-form select{width:100%;padding:10px;border:1px solid var(--border);border-radius:6px;background:var(--surface);font:inherit;color:var(--text)}
.review-form .review-consent{display:flex;gap:10px;align-items:flex-start;line-height:1.5}.review-consent input{margin-top:5px;flex-shrink:0}
.review-error{color:#9b2424}.review-notice{padding:12px;background:var(--green-light)}
.review-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.review-empty{padding:18px 0;margin:16px 0 12px;border-block:1px solid var(--border);font-size:16px}
.variety-reviews .review-context{font-size:13px;font-style:italic;color:var(--text-muted);margin:10px 0 16px}
.review-retailer{font-size:13px}.review-entry{margin-top:20px}
.review-entry>summary{display:inline-flex;align-items:center;list-style:none;padding:11px 20px;border:1px solid var(--green-dark);border-radius:6px;background:var(--green-dark);color:#fff;font-size:14px}
.review-entry>summary::-webkit-details-marker{display:none}
.review-entry>summary:focus-visible,.review-close:focus-visible{outline:3px solid var(--green);outline-offset:4px}
.review-dialog{width:min(660px,calc(100% - 32px));max-width:660px;max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--border);border-radius:16px;color:var(--text);background:var(--white,#fff);box-shadow:0 24px 80px #152d2433;margin:auto;overscroll-behavior:contain}
.review-dialog::backdrop{background:#10251cc2;backdrop-filter:blur(3px)}
.review-dialog-content{padding:28px 32px}.review-dialog-heading{display:flex;gap:16px;justify-content:space-between;align-items:flex-start}.review-dialog-heading h2{font-size:25px;line-height:1.25;margin:5px 0 10px}
.review-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.1em;font-weight:700;color:var(--green-dark);margin:0}
.review-close{flex:none;width:34px;height:34px;line-height:1;border:1px solid var(--border);border-radius:50%;font-size:25px;background:var(--surface);color:var(--text);cursor:pointer}
.review-dialog-intro{font-size:14px;color:var(--text-muted);line-height:1.6;margin:0 0 18px}.review-progress{border-top:1px solid var(--border);padding-top:16px;font-size:12px;color:var(--green-dark);font-weight:700}
.review-step{padding:0;margin:0;border:0;min-width:0}.review-step[hidden],.review-form [hidden]{display:none!important}
.review-step>.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.review-form .review-help,.review-form small{font-size:12px;color:var(--text-muted);line-height:1.6;display:block}.review-guest-note{font-size:14px;line-height:1.6;margin:0 0 8px}
.review-private-fields{display:grid;grid-template-columns:2fr 1fr;gap:16px}.review-form .review-name-choice{display:flex;flex-wrap:wrap;gap:12px 22px;border:0;padding:0;margin:16px 0 0}.review-name-choice legend{font-size:13px;font-weight:700;margin-bottom:6px}
.review-form .review-name-choice label{display:flex;align-items:center;gap:7px;font-size:13px;margin:0}.review-form .review-name-choice input{width:auto;padding:0;accent-color:var(--green-dark)}
.review-form-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:22px}.review-dialog .review-consent{font-size:12px}.review-form textarea{resize:vertical}
@media(max-width:600px){.review-dialog-content{padding:22px 20px}.review-dialog-heading h2{font-size:22px}.review-private-fields{grid-template-columns:1fr}.review-form-actions{flex-wrap:wrap}.review-form-actions .btn{flex:1;justify-content:center}.review-dialog{max-height:calc(100dvh - 24px)}}
