/* ==============================================================
   TRANG CHI TIẾT PHẦN MỀM BẢN QUYỀN - FULL LAYOUT ĐỒNG BỘ HEADER
   ============================================================== */
.soft-detail-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 18px auto 50px;
    padding: 0 24px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    color: #334155;
    box-sizing: border-box;
}

/* BREADCRUMB */
.soft-breadcrumb {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.soft-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.soft-breadcrumb a:hover {
    color: #0f172a;
}

.soft-breadcrumb span {
    color: #0f172a;
    font-weight: 500;
}

/* BỐ CỤC 2 CỘT CHÍNH (TRÁI 70% - PHẢI 30%) */
.soft-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.soft-left-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.soft-right-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 84px;
}

/* KHỐI 1: THÔNG TIN SẢN PHẨM (NẰM TRÊN MÔ TẢ Ở CỘT TRÁI) */
.soft-product-hero {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.soft-hero-thumb {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px;
    flex-shrink: 0;
}

.soft-hero-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.soft-hero-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.soft-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 14px;
}

.soft-hero-meta strong {
    color: #0f172a;
    font-weight: 600;
}

.soft-hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.soft-hero-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: #e60012;
    line-height: 1.2;
}

.btn-order-soft {
    padding: 10px 22px;
    background: #e60012;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(230, 0, 18, 0.2);
    transition: background 0.15s;
}

.btn-order-soft:hover {
    background: #c80010;
}

.btn-order-soft.btn-dark {
    background: #0f172a;
    box-shadow: none;
}

/* CARD CHUNG (MÔ TẢ & THÔNG TIN BỔ SUNG) */
.soft-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.soft-section-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.soft-description-text {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
}

/* BẢNG THÔNG TIN BỔ SUNG (NẰM DƯỚI MÔ TẢ) */
.soft-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.soft-specs-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.soft-specs-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.soft-specs-table td:first-child {
    color: #64748b;
    width: 32%;
    font-weight: 500;
}

.soft-specs-table td:last-child {
    color: #0f172a;
    font-weight: 600;
}

/* CỘT PHẢI: SIDEBAR PHẦN MỀM MUA NHIỀU & MỚI */
.sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.sidebar-widget-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-soft-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-soft-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.15s;
}

.sidebar-soft-item:hover {
    background: #f8fafc;
}

.sidebar-soft-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px;
    flex-shrink: 0;
}

.sidebar-soft-info {
    flex: 1;
    min-width: 0;
}

.sidebar-soft-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 3px;
}

.sidebar-soft-price {
    font-size: 13.5px;
    font-weight: 600;
    color: #e60012;
}

/* POPUP ĐẶT MUA ĐƠN GIẢN (KHÔNG QR) */
.order-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    padding: 12px;
}

.order-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalPop 0.18s ease-out;
}

.order-modal-head {
    background: #0f172a;
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #e60012;
}

.order-modal-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.order-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px;
    display: flex;
}

.order-modal-close:hover {
    color: #ffffff;
}

.order-modal-content {
    padding: 18px;
}

.order-product-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.order-field {
    margin-bottom: 12px;
}

.order-field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}

.order-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14.5px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.order-input:focus {
    border-color: #0f172a;
}

.btn-submit-order {
    width: 100%;
    padding: 11px;
    background: #e60012;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit-order:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* ==============================================================
   TỐI ƯU DI ĐỘNG FULL MÀN HÌNH & CÂN ĐỐI FONT CHỮ
   ============================================================== */
@media (max-width: 1024px) {
    .soft-detail-wrapper {
        padding: 0 16px;
    }
    .soft-main-grid {
        grid-template-columns: 1fr;
    }
    .soft-right-column {
        position: static;
    }
}

@media (max-width: 640px) {
    .soft-detail-wrapper {
        margin: 12px auto 36px;
        padding: 0 12px;
        font-size: 14.5px;
    }

    .soft-product-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
        gap: 14px;
    }

    .soft-hero-thumb {
        width: 96px;
        height: 96px;
    }

    .soft-hero-title {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }

    .soft-hero-meta {
        justify-content: center;
        font-size: 13px;
        margin-bottom: 12px;
    }

    .soft-hero-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .soft-hero-price {
        font-size: 1.25rem;
        text-align: center;
    }

    .btn-order-soft {
        width: 100%;
        padding: 11px 16px;
        font-size: 14.5px;
    }

    .soft-section-card,
    .sidebar-widget {
        padding: 15px;
    }

    .soft-section-heading {
        font-size: 1.05rem;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .soft-description-text {
        font-size: 14.5px;
        line-height: 1.65;
    }

    .soft-specs-table td {
        padding: 9px 10px;
        font-size: 13.5px;
    }

    .soft-specs-table td:first-child {
        width: 38%;
    }
}
