/*
 * 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); }

/* Stock badge on gallery image */
.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(4px);
    padding: 5px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-body);
}

.stock-dot { width: 7px; height: 7px; border-radius: 50%; }
.stock-dot.in  { background: #4CAF50; }
.stock-dot.low { background: #FF9800; }
.stock-dot.out { background: var(--text-muted); }

.stock-label.in  { color: var(--green); }
.stock-label.low { color: var(--natures-nectar); }
.stock-label.out { color: var(--text-muted); }

/* ── 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}}

/* ── SPECS TABLE ─────────────────────────────────────────────────────────── */
.specs-table {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.spec-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13.5px;
    color: var(--text-mid);
    font-family: var(--font-body);
}

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

.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; }

/* ── BULLETS ─────────────────────────────────────────────────────────────── */
.bullets-section { display: flex; flex-direction: column; gap: var(--space-sm); }

.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;
}
