/**
 * Paper Smart Machine Catalog - Frontend Stylesheet
 * Incorporates Paper Smart Design Tokens & Brand Kit
 */

:root {
    --psmc-paper: #f7f8f4;
    --psmc-ink: #262626;
    --psmc-green: #3aa935;
    --psmc-forest: #1f7a2e;
    --psmc-lime: #8cd03c;
    --psmc-sage: #e4f1dc;
    --psmc-line: #dce3d5;
    --psmc-white: #ffffff;
    --psmc-shadow: 0 4px 18px rgba(31, 122, 46, 0.08);
    --psmc-shadow-hover: 0 10px 28px rgba(31, 122, 46, 0.16);
    --psmc-radius: 8px;
    --psmc-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ====================================================
 * Global & Scoped Reset
 * ==================================================== */
.psmc-catalog-wrapper,
.psmc-detail-container,
.psmc-modal-overlay {
    font-family: var(--psmc-font);
    color: var(--psmc-ink);
    box-sizing: border-box;
}

.psmc-catalog-wrapper *,
.psmc-detail-container *,
.psmc-modal-overlay * {
    box-sizing: border-box;
}

/* ====================================================
 * Archive / Catalog Hero
 * ==================================================== */
.psmc-archive-hero {
    background: linear-gradient(135deg, #1f7a2e 0%, #2f8e2b 100%);
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.psmc-archive-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(140, 208, 60, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.psmc-archive-hero-inner {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.psmc-hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--psmc-lime);
    margin-bottom: 12px;
}
.psmc-hero-heading {
    font-size: 38px;
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.2;
    color: #ffffff;
    text-transform: uppercase;
}
.psmc-hero-lead {
    font-size: 16px;
    line-height: 1.6;
    color: #e4f1dc;
    margin: 0 auto;
    max-width: 680px;
}

.psmc-archive-body {
    padding: 50px 20px;
    background: var(--psmc-paper);
}
.psmc-archive-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ====================================================
 * Catalog Filter Toolbar
 * ==================================================== */
.psmc-filter-toolbar {
    background: #ffffff;
    border: 1px solid var(--psmc-line);
    border-radius: var(--psmc-radius);
    padding: 18px 22px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.psmc-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.psmc-search-box {
    position: relative;
    flex: 1 1 280px;
}
.psmc-icon-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    font-size: 14px;
}
.psmc-search-box input {
    width: 100%;
    padding: 10px 36px 10px 36px;
    border: 1px solid var(--psmc-line);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fafbfa;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.psmc-search-box input:focus {
    outline: none;
    border-color: var(--psmc-green);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(58, 169, 53, 0.15);
}
.psmc-clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.psmc-select-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.psmc-filter-select {
    padding: 10px 14px;
    border: 1px solid var(--psmc-line);
    border-radius: 6px;
    background: #fafbfa;
    font-size: 13px;
    font-family: inherit;
    color: var(--psmc-ink);
    cursor: pointer;
    transition: border-color 0.2s;
}
.psmc-filter-select:focus {
    outline: none;
    border-color: var(--psmc-green);
}
.psmc-btn-reset {
    background: #f1f5f0;
    color: var(--psmc-forest);
    border: 1px solid var(--psmc-line);
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.psmc-btn-reset:hover {
    background: var(--psmc-sage);
}

.psmc-results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}
.psmc-loader-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--psmc-line);
    border-top-color: var(--psmc-green);
    border-radius: 50%;
    animation: psmc-spin 0.6s linear infinite;
}
@keyframes psmc-spin { to { transform: rotate(360deg); } }

/* ====================================================
 * Catalog Cards Grid
 * ==================================================== */
.psmc-grid {
    display: grid;
    gap: 26px;
}
.psmc-cols-2 { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.psmc-cols-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.psmc-cols-4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

@media (max-width: 768px) {
    .psmc-cols-2, .psmc-cols-3, .psmc-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ====================================================
 * Machine Card
 * ==================================================== */
.psmc-card {
    background: #ffffff;
    border: 1px solid var(--psmc-line);
    border-radius: var(--psmc-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--psmc-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}
.psmc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--psmc-shadow-hover);
    border-color: var(--psmc-green);
}
.psmc-card-featured {
    border-color: var(--psmc-green);
    box-shadow: 0 6px 20px rgba(58, 169, 53, 0.14);
}
.psmc-featured-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #1f7a2e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.psmc-card-media {
    position: relative;
    width: 100%;
    height: 230px;
    background: #eef2eb;
    overflow: hidden;
}
.psmc-media-link {
    display: block;
    width: 100%;
    height: 100%;
}
.psmc-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}
.psmc-card:hover .psmc-card-img {
    transform: scale(1.05);
}
.psmc-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    background: #f1f4ed;
}
.psmc-placeholder-icon {
    font-size: 36px;
    margin-bottom: 6px;
    opacity: 0.6;
}
.psmc-placeholder-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.psmc-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
.psmc-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.psmc-badge-cat {
    background: rgba(255, 255, 255, 0.95);
    color: var(--psmc-forest);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.psmc-badge-new { background: #1f7a2e; color: #ffffff; }
.psmc-badge-refurbished { background: #0284c7; color: #ffffff; }
.psmc-badge-used { background: #d97706; color: #ffffff; }

.psmc-card-body {
    padding: 18px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.psmc-card-submeta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.psmc-brand-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--psmc-forest);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.psmc-model-tag {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    background: #f1f5f0;
    padding: 1px 6px;
    border-radius: 4px;
}
.psmc-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
}
.psmc-card-title a {
    color: var(--psmc-ink);
    text-decoration: none;
    transition: color 0.2s;
}
.psmc-card-title a:hover {
    color: var(--psmc-green);
}

.psmc-card-excerpt {
    font-size: 13px;
    line-height: 1.55;
    color: #555;
    margin: 0 0 14px;
    flex-grow: 1;
}

.psmc-card-specs {
    list-style: none;
    margin: 0 0 14px;
    padding: 10px 0;
    border-top: 1px solid #f0f2ed;
    border-bottom: 1px solid #f0f2ed;
}
.psmc-card-specs li {
    font-size: 12px;
    color: #444;
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}
.psmc-card-specs li:last-child { margin-bottom: 0; }
.psmc-check-bullet {
    color: var(--psmc-green);
    font-weight: bold;
}

.psmc-card-commercial {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 4px;
}
.psmc-price-tag {
    font-size: 16px;
    font-weight: 800;
    color: var(--psmc-ink);
}
.psmc-price-request {
    font-size: 13px;
    font-weight: 700;
    color: var(--psmc-forest);
}
.psmc-avail-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
}
.psmc-avail-tag.in-stock { color: #166534; background: #dcfce7; }
.psmc-avail-tag.on-order { color: #854d0e; background: #fef9c3; }

.psmc-card-footer {
    padding: 12px 20px 16px;
    background: #fafbfa;
    border-top: 1px solid var(--psmc-line);
    display: flex;
    gap: 8px;
}
.psmc-card-footer .psmc-btn {
    flex: 1;
    text-align: center;
}

/* Buttons */
.psmc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1.2;
}
.psmc-btn-primary {
    background: var(--psmc-green);
    color: #ffffff;
}
.psmc-btn-primary:hover {
    background: var(--psmc-forest);
    color: #ffffff;
}
.psmc-btn-secondary {
    background: #ffffff;
    color: var(--psmc-ink);
    border: 1px solid var(--psmc-line);
}
.psmc-btn-secondary:hover {
    background: #f1f4ed;
    color: var(--psmc-ink);
}
.psmc-btn-whatsapp {
    background: #25d366;
    color: #ffffff;
}
.psmc-btn-whatsapp:hover {
    background: #1ebc59;
    color: #ffffff;
}

/* Empty State */
.psmc-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    border: 1px dashed var(--psmc-line);
    border-radius: var(--psmc-radius);
}
.psmc-empty-icon { font-size: 42px; margin-bottom: 12px; opacity: 0.5; }
.psmc-empty-state h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.psmc-empty-state p { color: #666; margin: 0 0 16px; font-size: 14px; }

/* Pagination */
.psmc-pagination {
    margin-top: 36px;
    text-align: center;
}
.psmc-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
}
.psmc-pagination li a,
.psmc-pagination li span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--psmc-ink);
    background: #ffffff;
    border: 1px solid var(--psmc-line);
    transition: all 0.2s;
}
.psmc-pagination li span.current {
    background: var(--psmc-forest);
    color: #ffffff;
    border-color: var(--psmc-forest);
}
.psmc-pagination li a:hover {
    background: var(--psmc-sage);
    border-color: var(--psmc-green);
}

/* ====================================================
 * Single Machine Detail Page
 * ==================================================== */
.psmc-single-page-wrapper {
    background: var(--psmc-paper);
    padding: 40px 20px 70px;
}
.psmc-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Breadcrumbs */
.psmc-breadcrumbs {
    font-size: 13px;
    color: #666;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.psmc-breadcrumbs a {
    color: var(--psmc-forest);
    text-decoration: none;
    font-weight: 500;
}
.psmc-breadcrumbs a:hover { text-decoration: underline; }
.psmc-crumb-sep { color: #aaa; }
.psmc-crumb-current { color: var(--psmc-ink); font-weight: 600; }

/* Showcase Grid */
.psmc-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    background: #ffffff;
    border: 1px solid var(--psmc-line);
    border-radius: var(--psmc-radius);
    padding: 30px;
    box-shadow: var(--psmc-shadow);
    margin-bottom: 40px;
}
@media (max-width: 900px) {
    .psmc-showcase-grid { grid-template-columns: 1fr; }
}

/* Gallery Showcase */
.psmc-gallery-col {
    display: flex;
    flex-direction: column;
}
.psmc-main-image-wrap {
    position: relative;
    width: 100%;
    height: 420px;
    background: #fafbfa;
    border: 1px solid var(--psmc-line);
    border-radius: var(--psmc-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.psmc-featured-photo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.psmc-zoom-toggle {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(31, 122, 46, 0.85);
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.psmc-zoom-toggle:hover { background: var(--psmc-forest); }

.psmc-thumbs-strip {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.psmc-thumb-btn {
    flex: 0 0 74px;
    height: 74px;
    border: 2px solid var(--psmc-line);
    border-radius: 6px;
    background: #fff;
    padding: 2px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.psmc-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.psmc-thumb-btn.is-active,
.psmc-thumb-btn:hover {
    border-color: var(--psmc-green);
}

/* Info Column */
.psmc-info-col {
    display: flex;
    flex-direction: column;
}
.psmc-badges-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.psmc-machine-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px;
    color: var(--psmc-ink);
}
.psmc-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.psmc-meta-pill {
    background: #f1f5f0;
    border: 1px solid var(--psmc-line);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #444;
}
.psmc-short-overview {
    font-size: 15px;
    line-height: 1.65;
    color: #4a4a4a;
    margin-bottom: 20px;
}

/* Commercial Box */
.psmc-commercial-box {
    background: #fafcfa;
    border: 1px solid var(--psmc-line);
    border-left: 4px solid var(--psmc-green);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.psmc-big-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--psmc-ink);
}
.psmc-price-sub {
    font-size: 12px;
    color: #777;
    display: block;
    margin-top: 2px;
}
.psmc-availability-badge-wrap {
    margin-top: 10px;
}
.psmc-avail-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}
.psmc-avail-pill.in-stock { background: #dcfce7; color: #15803d; }
.psmc-avail-pill.on-order { background: #fef9c3; color: #a16207; }

/* CTAs */
.psmc-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.psmc-btn-quote {
    background: var(--psmc-green);
    color: #fff;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
}
.psmc-btn-quote:hover { background: var(--psmc-forest); }
.psmc-btn-wa {
    background: #25d366;
    color: #fff;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
}
.psmc-btn-wa:hover { background: #1ebc59; }
.psmc-btn-brochure {
    background: #ffffff;
    color: var(--psmc-ink);
    border: 1px solid var(--psmc-line);
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
}
.psmc-btn-brochure:hover { background: #f1f4ed; }

.psmc-warranty-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f1f8ee;
    border: 1px solid #c7e6bc;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
    color: #2b5e27;
}
.psmc-warranty-callout p { margin: 4px 0 0; }
.psmc-shield-icon { font-size: 18px; }

/* Sections */
.psmc-section {
    background: #ffffff;
    border: 1px solid var(--psmc-line);
    border-radius: var(--psmc-radius);
    padding: 28px 32px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.psmc-section-heading {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--psmc-ink);
    position: relative;
    padding-bottom: 10px;
}
.psmc-section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--psmc-green);
    border-radius: 2px;
}

/* Rich Content */
.psmc-rich-content {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}
.psmc-rich-content p { margin-bottom: 1em; }
.psmc-rich-content ul { padding-left: 20px; margin-bottom: 1em; }

/* Features Grid */
.psmc-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.psmc-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fafcfa;
    border: 1px solid var(--psmc-line);
    border-radius: 6px;
    padding: 14px 16px;
}
.psmc-feat-icon {
    color: var(--psmc-green);
    font-weight: bold;
    font-size: 16px;
}
.psmc-feat-text {
    font-size: 14px;
    line-height: 1.45;
    color: var(--psmc-ink);
}

/* Applications Grid */
.psmc-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.psmc-app-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fafcfa;
    border: 1px solid var(--psmc-line);
    border-radius: 6px;
    padding: 14px 18px;
    transition: transform 0.2s;
}
.psmc-app-card:hover { transform: translateY(-2px); border-color: var(--psmc-green); }
.psmc-app-icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: var(--psmc-sage);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.psmc-app-info h4 { margin: 0 0 3px; font-size: 14px; font-weight: 700; color: var(--psmc-ink); }
.psmc-app-info p { margin: 0; font-size: 12px; color: #666; line-height: 1.4; }

/* Grouped Specifications Tables */
.psmc-specs-groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.psmc-specs-group-card {
    border: 1px solid var(--psmc-line);
    border-radius: 6px;
    overflow: hidden;
}
.psmc-specs-group-title {
    background: #f1f5f0;
    color: var(--psmc-forest);
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    padding: 10px 18px;
    border-bottom: 1px solid var(--psmc-line);
}
.psmc-specs-table {
    width: 100%;
    border-collapse: collapse;
}
.psmc-specs-table tr { border-bottom: 1px solid #f0f2ee; }
.psmc-specs-table tr:last-child { border-bottom: none; }
.psmc-specs-table tr:nth-child(even) { background: #fafbfa; }
.psmc-spec-label {
    width: 40%;
    padding: 10px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #4b5563;
}
.psmc-spec-value {
    width: 60%;
    padding: 10px 18px;
    font-size: 13px;
    color: var(--psmc-ink);
}
.psmc-spec-unit {
    color: #6b7280;
    font-size: 12px;
    font-weight: normal;
    margin-left: 4px;
}
@media (max-width: 640px) {
    .psmc-spec-label, .psmc-spec-value {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Video Wrapper */
.psmc-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
}
.psmc-video-wrapper iframe,
.psmc-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Accessories */
.psmc-accessories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .psmc-accessories-grid { grid-template-columns: 1fr; }
}
.psmc-accessory-card {
    background: #fafcfa;
    border: 1px solid var(--psmc-line);
    border-radius: 6px;
    padding: 18px 20px;
}
.psmc-accessory-card h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--psmc-ink);
}
.psmc-accessory-body {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

/* Lightbox Modal */
.psmc-lightbox-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}
.psmc-lightbox-modal.is-active { display: flex; }
.psmc-lightbox-backdrop {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
}
.psmc-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 2;
}
.psmc-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.psmc-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    color: #fff;
    font-size: 32px;
    border: none;
    cursor: pointer;
}

/* ====================================================
 * Accessible Quote Modal Dialog
 * ==================================================== */
.psmc-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.psmc-modal-overlay.is-open {
    display: flex;
}
.psmc-modal-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(20, 40, 20, 0.65);
    backdrop-filter: blur(4px);
}
.psmc-modal-container {
    position: relative;
    background: #ffffff;
    border-radius: var(--psmc-radius);
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    border: 1px solid var(--psmc-line);
    animation: psmc-modal-in 0.25s ease-out;
}
@keyframes psmc-modal-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.psmc-modal-header {
    background: #fafcfa;
    border-bottom: 1px solid var(--psmc-line);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.psmc-modal-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--psmc-green);
    display: block;
    margin-bottom: 4px;
}
.psmc-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--psmc-ink);
}
.psmc-modal-close {
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}
.psmc-modal-close:hover { color: #000; }

.psmc-modal-body {
    padding: 24px;
}
.psmc-modal-target-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f8ee;
    border: 1px solid #cce8bf;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 18px;
}
.psmc-target-icon { font-size: 20px; color: var(--psmc-forest); }
.psmc-target-label { font-size: 11px; color: #555; display: block; text-transform: uppercase; font-weight: 600; }
.psmc-target-title { font-size: 14px; color: var(--psmc-forest); }

.psmc-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.45;
}
.psmc-alert.success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.psmc-alert.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.psmc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 500px) { .psmc-form-row { grid-template-columns: 1fr; } }

.psmc-input-group {
    margin-bottom: 14px;
}
.psmc-input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #444;
}
.psmc-input-group input,
.psmc-input-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--psmc-line);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: #fafbfa;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.psmc-input-group input:focus,
.psmc-input-group textarea:focus {
    outline: none;
    border-color: var(--psmc-green);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(58, 169, 53, 0.15);
}

.psmc-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    color: #777;
    margin-bottom: 18px;
    line-height: 1.4;
}
.psmc-privacy-icon { font-size: 14px; color: #888; }

.psmc-modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.psmc-btn-submit {
    flex: 1 1 200px;
    padding: 11px 18px;
    font-size: 14px;
}
.psmc-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: psmc-spin 0.6s linear infinite;
    margin-left: 6px;
}
