/* ===================================================================
 * WiderMatrix - Phone Case Product Post Template (phone-case.css)
 * Loaded only on single posts using the phone-case template.
 * Depends on: style.css, main.css
 * =================================================================== */

/* ===================================================================
 * 1. Hero
 * =================================================================== */
.pc-hero { padding: 48px 0 40px; }

/* ===================================================================
 * 2. Product Top Section — Gallery + Info
 * =================================================================== */
.pc-product-section {
    padding: 40px 0 60px;
    background: var(--color-bg);
}
.pc-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* ---------- Gallery ---------- */
.pc-gallery-main {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f5f0f4;
    aspect-ratio: 1 / 1;
}
.pc-main-video,
.pc-main-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pc-main-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pc-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pc-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;
    opacity: 0.9;
    transition: opacity var(--transition), transform var(--transition);
}
.pc-video-play-btn:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}
.pc-main-video.video-playing .pc-video-play-btn { display: none; }

/* ===== Video Modal ===== */
.pc-video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}
.pc-video-modal.is-open {
    display: flex;
}
.pc-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 860px;
    aspect-ratio: 16 / 9;
}
.pc-video-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 12px;
    transition: opacity 0.2s;
}
.pc-video-modal-close:hover {
    opacity: 0.7;
}
.pc-video-modal-overlay {
    position: absolute;
    inset: 0;
}
.pc-video-container {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.pc-video-container video.modal-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Thumbnails */
.pc-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.pc-thumb-item {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition);
    flex-shrink: 0;
}
.pc-thumb-item.active {
    border-color: var(--brand-primary);
}
.pc-thumb-item:hover {
    border-color: var(--brand-primary-light);
}
.pc-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pc-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Product Info ---------- */
.pc-product-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.pc-product-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.3;
    margin: 0 0 16px;
}
.pc-product-desc {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}
.pc-product-desc p { margin: 0 0 10px; }
.pc-services {
    margin-bottom: 28px;
}
.pc-services h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 12px;
}
.pc-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.pc-services li {
    font-size: 14px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.pc-check {
    color: var(--brand-primary);
    font-weight: 700;
    flex-shrink: 0;
}
.pc-inquiry-btn {
    margin-top: 8px;
    padding: 16px 40px;
}

/* ---------- Promo Box + ROI ---------- */
.pc-promo-box {
    /* margin-top: 20px; */
    padding: 24px;
    flex: 1;
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}
.pc-promo-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(136,62,116,0.08);
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    margin-bottom: 10px;
}
.pc-promo-text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0 0 14px;
}
.pc-promo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pc-promo-list li {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.5;
}
.pc-roi-highlight {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.pc-roi-stat {
    text-align: center;
    padding: 14px 8px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}
.pc-roi-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.2;
}
.pc-roi-label {
    display: block;
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}
.pc-roi-note {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
}

/* ===================================================================
 * 3. Tabs + Sidebar Layout
 * =================================================================== */
.pc-tabs-section {
    padding: 60px 0 80px;
    background: var(--color-bg-soft);
}
.pc-tabs-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
    min-width: 0;
}
.pc-tabs-content {
    min-width: 0;
    overflow: hidden;
}

/* Tab Navigation */
.pc-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 0;
    background: var(--color-bg);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}
.pc-tab-btn {
    flex: 1;
    padding: 16px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    transition: color var(--transition), border-color var(--transition);
}
.pc-tab-btn:hover {
    color: var(--brand-primary);
}
.pc-tab-btn.active {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
}

/* Tab Panels — all visible, scroll-based */
.pc-tab-panel {
    display: block;
    background: var(--color-bg);
    padding: 36px 32px;
    scroll-margin-top: 60px;
}
.pc-tab-panel + .pc-tab-panel {
    border-top: 1px solid var(--color-border);
}
.pc-tab-panel:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.pc-panel-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 24px;
}
.pc-panel-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
}
.pc-panel-body p { margin: 0 0 16px; }
.pc-panel-body img {
    border-radius: var(--radius-sm);
    margin: 16px auto;
    display: block;
}
.pc-panel-body .aligncenter {
    margin-left: auto;
    margin-right: auto;
}
.pc-panel-body h2,
.pc-panel-body h3 {
    margin-top: 28px;
    margin-bottom: 12px;
}

/* Quick Note */
.pc-quick-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    margin-top: 32px;
    background: var(--color-bg-soft);
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-muted);
}
.pc-quick-note svg { flex-shrink: 0; margin-top: 2px; }
.pc-quick-note p { margin: 0; }

/* Specs Table */
.pc-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid var(--color-border);
}
.pc-specs-table tr {
    border-bottom: 1px solid var(--color-border);
}
.pc-specs-table tr:last-child { border-bottom: none; }
.pc-specs-table td {
    padding: 14px 16px;
    vertical-align: top;
}
.pc-specs-table td:first-child {
    font-weight: 600;
    color: var(--color-text);
    width: 35%;
    background: var(--color-bg-soft);
}
.pc-specs-table td:last-child {
    color: var(--color-text-muted);
}

/* Certificates */
.pc-certs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.pc-cert-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
}
.pc-cert-card img {
    width: 100px;
    height: auto;
    margin: 0 auto 12px;
}
.pc-cert-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 4px;
}
.pc-cert-card p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
    word-break: break-all;
}
.cert-validity {
    display: block;
    font-size: 11px;
    color: var(--color-text-muted);
    opacity: 0.7;
    margin-top: 6px;
}

/* Panel Images */
.pc-panel-image {
    margin: 20px auto 24px;
    border-radius: 10px;
    overflow: hidden;
    max-width: 650px;
}
.pc-panel-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* About */
.pc-about-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0 0 16px;
}

/* Services List */
.pc-services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pc-service-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
}
.pc-service-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pc-service-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 6px;
}
.pc-service-item p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* FAQ */
.pc-faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pc-faq-item {
    border-bottom: 1px solid var(--color-border);
}
.pc-faq-item:last-child { border-bottom: none; }
.pc-faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    line-height: 1.5;
}
.pc-faq-icon {
    font-size: 20px;
    font-weight: 300;
    color: var(--brand-primary);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform var(--transition);
}
.pc-faq-q[aria-expanded="true"] .pc-faq-icon {
    transform: rotate(45deg);
}
.pc-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.pc-faq-a p {
    padding: 0 0 18px;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Flat FAQ (no accordion) */
.faq-item {
    background: var(--color-bg-soft, #faf6f9);
    border: 1px solid var(--color-border, #ece2ea);
    border-left: 3px solid var(--brand-primary);
    border-radius: 8px;
    padding: 20px 24px;
    transition: box-shadow 0.2s ease;
}
.faq-item:last-child {
    margin-bottom: 0;
}
.faq-item:hover {
    box-shadow: 0 2px 8px rgba(136, 62, 116, 0.08);
}
.faq-question h3,
.faq-answer h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-primary);
    margin: 0 0 10px;
    line-height: 1.5;
}
.faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
}
.faq-answer h3 {
    margin-top: 4px;
}
.faq-answer p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin: 0 0 8px;
}
.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Reviews */
.pc-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.pc-review-item {
    padding: 24px;
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
}
.pc-review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.pc-reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pc-reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}
.pc-review-stars {
    color: #f5a623;
    font-size: 14px;
    letter-spacing: 2px;
}
.pc-review-date {
    margin-left: auto;
    font-size: 13px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}
.pc-review-item > p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0;
}
.pc-reviews-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0 0;
    font-size: 13px;
    color: var(--color-text-muted);
}
.pc-reviews-footer svg { flex-shrink: 0; }

/* ---------- Sidebar Form ---------- */
.pc-sidebar-form {
    position: sticky;
    top: 90px;
    align-self: start;
}
.pc-sticky-form {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.pc-sticky-form h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px;
}
.pc-sticky-form > p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0 0 20px;
    line-height: 1.6;
}
.pc-sticky-form .wm-inquiry-form input,
.pc-sticky-form .wm-inquiry-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-bg-soft);
    margin-bottom: 10px;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.pc-sticky-form .wm-inquiry-form input:focus,
.pc-sticky-form .wm-inquiry-form textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(136, 62, 116, 0.1);
}
.pc-sticky-form .btn { margin-top: 4px; }

/* ===================================================================
 * 4. Industry Advantages
 * =================================================================== */
.pc-advantages-section {
    padding: 80px 0;
    background: var(--color-bg);
}
.pc-adv-subtitle {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-top: -8px;
}

/* Comparison Table */
.pc-compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 48px;
}
.pc-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
}
.pc-compare-table thead th {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: left;
    background: #f5f0f4;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
}
.pc-compare-table thead th.pc-col-us {
    background: var(--brand-primary);
    color: #fff;
}
.pc-col-badge {
    font-size: 15px;
}
.pc-compare-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background 0.15s ease;
}
.pc-compare-table tbody tr:last-child {
    border-bottom: none;
}
.pc-compare-table tbody tr:nth-child(even) {
    background: var(--color-bg-soft, #faf6f9);
}
.pc-compare-table tbody tr:hover {
    background: rgba(136, 62, 116, 0.04);
}
.pc-compare-table td {
    padding: 14px 20px;
    vertical-align: middle;
}
.pc-compare-table td:first-child {
    color: var(--color-text);
    white-space: nowrap;
}
.pc-compare-table td:first-child strong {
    font-weight: 600;
}
.pc-compare-table td.pc-col-us {
    color: var(--color-text);
    font-weight: 500;
}
.pc-compare-table td:last-child {
    color: var(--color-text-muted);
}
.pc-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Stat Highlights */
.pc-stat-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pc-stat-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--color-bg-soft, #faf6f9);
    border: 1px solid var(--color-border, #ece2ea);
    border-radius: 10px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pc-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(136, 62, 116, 0.1);
}
.pc-stat-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.2;
    margin-bottom: 6px;
}
.pc-stat-label {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===================================================================
 * 5.5 Latest + Popular Articles
 * =================================================================== */
.pc-articles-section {
    padding: 60px 0;
    background: var(--color-bg-soft, #faf6f9);
}
.pc-articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.pc-articles-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-primary);
}
.pc-article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pc-article-card {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--color-border, #ece2ea);
    border-radius: 8px;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.pc-article-card:hover {
    box-shadow: 0 4px 12px rgba(136, 62, 116, 0.1);
    transform: translateY(-2px);
}
.pc-article-thumb {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    /* height: 80px; */
    border-radius: 6px;
    overflow: hidden;
}
.pc-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pc-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
}
.pc-badge-new {
    background: var(--brand-primary);
}
.pc-badge-hot {
    background: #e74c3c;
}
.pc-article-info {
    flex: 1;
    min-width: 0;
}
.pc-article-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 6px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pc-article-date {
    font-size: 12px;
    color: var(--color-text-muted);
}
.pc-article-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 6px 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================================================
 * 5. Related Products (override single.css 4-col → 3-col)
 * =================================================================== */
#related-posts .related-grid {
    grid-template-columns: repeat(3, 1fr);
}
.related-card-excerpt {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-card-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary);
}

/* ===================================================================
 * 6. Inquiry Modal
 * =================================================================== */
.pc-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.pc-modal.showing {
    display: flex;
}
.pc-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.pc-modal-content {
    position: relative;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    max-width: 480px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}
.pc-modal-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 24px;
}
.pc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    font-size: 24px;
    color: var(--color-text-muted);
    background: var(--color-bg-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background var(--transition);
}
.pc-modal-close:hover {
    background: var(--color-border);
}
.pc-modal-content .wm-inquiry-form input,
.pc-modal-content .wm-inquiry-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-bg-soft);
    margin-bottom: 10px;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.pc-modal-content .wm-inquiry-form input:focus,
.pc-modal-content .wm-inquiry-form textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(136, 62, 116, 0.1);
}

/* ===================================================================
 * 6. Related Posts (self-contained, replaces single.css dependency)
 * =================================================================== */
.related-section {
    padding: 80px 0;
    background: var(--color-bg-soft);
    position: relative;
    overflow: visible;
}
.rp-wave-top,
.rp-wave-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 60px;
    display: block;
}
.rp-wave-top { top: -59px; }
.rp-wave-bottom { bottom: -59px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.related-card {
    display: block;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.related-card-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.related-card:hover .related-card-img img {
    transform: scale(1.05);
}
.related-card-body {
    padding: 18px 20px;
}
.related-card-date {
    font-size: 12px;
    color: var(--color-text-muted);
}
.related-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.4;
    margin: 6px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-card-excerpt {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 6px 0 0;
}
.related-card-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-top: 8px;
}

/* ===================================================================
 * 6b. CTA Banner (self-contained, replaces single.css dependency)
 * =================================================================== */
.cta-banner {
    padding: 80px 0;
}
.cta-inner {
    background: linear-gradient(135deg, #2a1626 0%, #3a1d33 50%, #883E74 100%);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.cta-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.95);
    line-height: 1.7;
    margin: 0;
    max-width: 560px;
}
.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
    flex-shrink: 0;
}

/* ===================================================================
 * 7. Responsive — Tablet
 * =================================================================== */
@media (max-width: 1100px) {
    .pc-product-grid { grid-template-columns: 1fr; gap: 36px; }
    .pc-tabs-layout {
        grid-template-columns: 1fr;
        gap: 36px;
        overflow: hidden;
    }
    .pc-tabs-content {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }
    .pc-sticky-form { position: static; }
        .pc-sidebar-form { position: static; }
    .pc-stat-highlights { grid-template-columns: 1fr; gap: 16px; }
    .pc-articles-grid { grid-template-columns: 1fr; gap: 32px; }
    .pc-compare-table td:first-child { white-space: normal; }
    .pc-certs-grid { grid-template-columns: repeat(2, 1fr); }
    #related-posts .related-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-inner { flex-direction: column; text-align: center; padding: 40px 32px; }
}

/* ===================================================================
 * 8. Responsive — Mobile
 * =================================================================== */
/* Content Tables (matching single.css .article-content table) */
.pc-panel-body table,
.pc-product-desc table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 28px;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}
.pc-panel-body thead,
.pc-product-desc thead {
    background: var(--brand-primary);
    color: #fff;
}
.pc-panel-body th,
.pc-product-desc th {
    padding: 12px 16px;
    font-weight: 700;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.pc-panel-body td,
.pc-product-desc td {
    padding: 12px 16px;
    border-top: 1px solid var(--color-border);
}
.pc-panel-body tbody tr:nth-child(even),
.pc-product-desc tbody tr:nth-child(even) {
    background: var(--color-bg-soft, #faf6f9);
}
.pc-panel-body tbody tr:hover,
.pc-product-desc tbody tr:hover {
    background: rgba(136, 62, 116, 0.04);
}

@media (max-width: 768px) {
    .pc-hero { padding: 32px 0 28px; }
    .pc-product-section { padding: 24px 0 40px; }
    .pc-product-title { font-size: 22px; }
    .pc-services ul { grid-template-columns: 1fr; }
    .pc-thumbnails {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .pc-thumb-item { width: 60px; height: 60px; }

    .pc-tabs-section { padding: 40px 0 60px; }
    .pc-tab-nav { gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pc-tab-btn { padding: 12px 8px; font-size: 12px; white-space: normal; }
    .pc-tab-panel { padding: 24px 18px; }
    .pc-panel-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .pc-panel-body img {
        max-width: 100%;
        height: auto;
    }
    .pc-panel-title { font-size: 18px; }
    .pc-specs-table { font-size: 13px; }
    .pc-specs-table td { padding: 10px 12px; }

    .pc-certs-grid { grid-template-columns: repeat(2, 1fr); }
    .pc-advantages-section { padding: 60px 0; }
        .pc-stat-num { font-size: 28px; }
    .pc-service-item { padding: 16px; gap: 14px; }

    .pc-modal-content { padding: 28px 20px; }

    .pc-panel-body table,
    .pc-product-desc table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .pc-panel-body th,
    .pc-product-desc th,
    .pc-panel-body td,
    .pc-product-desc td { padding: 8px 10px; }

    .related-grid { grid-template-columns: 1fr; }
    .related-section { padding: 60px 0; }
    .rp-wave-top,
    .rp-wave-bottom { height: 36px; }
    .rp-wave-top { top: -35px; }
    .rp-wave-bottom { bottom: -35px; }
    .cta-banner { padding: 60px 0; }
    .cta-inner { padding: 36px 24px; }
}

/* ===================================================================
 * 9. Overflow Fix — min-content containment & long-word wrapping
 * Appended-only rules: no visual change for normal English text;
 * long unbreakable words (de/ru/urls) now wrap instead of overflowing.
 * =================================================================== */
/* 1) Stop min-content from forcing grid tracks wider than the column */
.pc-product-grid > * { min-width: 0; }

/* 2) ROI stats: allow tracks to shrink below content size */
.pc-roi-highlight { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 3) Break long words inside ROI labels (anywhere joins min-content calc) */
.pc-roi-label {
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* 4) Safety net for other text containers (overflow-wrap is inherited) */
.pc-promo-box,
.pc-product-desc {
    overflow-wrap: anywhere;
    hyphens: auto;
}
